
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #F5F5DC, #D2B48C);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.header {
    grid-column: span 3;
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(90deg, #784A2F, #4B0082);
    color: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.header h1 {
    font-family: 'Baskerville', serif;
    font-size: 3em;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.8;
}

.grid-item {
    background: #F5F5DC;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Baskerville', serif;
    font-size: 2em;
    color: #784A2F;
    text-align: center;
    margin-bottom: 20px;
}

.article-section {
    grid-column: span 3;
    background: #FFF8DC;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    font-family: 'Baskerville', serif;
    font-size: 2.2em;
    color: #784A2F;
    margin-bottom: 15px;
}

.article-section h3 {
    font-family: 'Baskerville', serif;
    font-size: 1.8em;
    color: #4B0082;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-section p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-section pre {
    background: #EED8AE;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 20px;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.article-section th, .article-section td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.article-section th {
    background-color: #EED8AE;
    font-weight: bold;
}

.button {
    background-color: #4B0082;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.button:hover {
    transform: scale(1.1);
}

.button:active {
    transform: scale(0.9);
}

@media (max-width: 400px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2em;
    }

    .header p {
        font-size: 1em;
    }

    .article-section pre {
        font-size: 0.8em;
    }
}

@media (min-width: 401px) and (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer {
    grid-column: span 3;
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #4B0082, #784A2F);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.9em;
}

