
/* 基础样式与渐变背景 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0c49f, #8b9a7d, #4a5c6c);
    background-size: 300% 300%;
    animation: gradientShift 15s infinite alternate;
    color: #222;
    line-height: 1.6;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
header, footer {
    grid-column: span 12;
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
    font-family: 'Bodoni', serif;
    font-size: 2.5rem;
    color: #4a5c6c;
    margin: 0;
}
nav {
    grid-column: span 12;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
nav a {
    text-decoration: none;
    color: #4a5c6c;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}
nav a:hover {
    color: #8b9a7d;
}
main {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 768px) {
    main {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .content {
        grid-column: span 8;
    }
    .sidebar {
        grid-column: span 4;
    }
}
.content article {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.content h2, .content h3 {
    font-family: 'Bodoni', serif;
    color: #4a5c6c;
}
.content p, .content li {
    font-family: 'Roboto', sans-serif;
    color: #333;
}
pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #222;
}
button {
    background: radial-gradient(circle, #ccc, #aaa);
    border: 2px solid #666;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
button:hover {
    transform: scale(1.1);
}
button:active {
    transform: scale(0.9);
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
footer p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }
    .content {
        grid-column: span 6;
    }
    .sidebar {
        grid-column: span 6;
    }
}

