
/* 页面全局样式与配色 */
:root {
    --primary-color: #8B4513;
    --secondary-color: #0074D9;
    --accent-color: #A0522D;
    --background-gradient: linear-gradient(135deg, #f4e0d9, #e6ccb2);
    --font-title: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--background-gradient);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

.header {
    background: linear-gradient(to right, #8B4513, #A0522D);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: moveGradient 10s infinite linear;
}

@keyframes moveGradient {
    from { transform: rotate(45deg) translateX(-100%); }
    to { transform: rotate(45deg) translateX(100%); }
}

.header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.article {
    background: #fffdf8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.8;
}

.article h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.article code {
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #333;
    display: inline-block;
    margin: 5px 0;
}

.article pre {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.button {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

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

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

    .article {
        padding: 15px;
    }
}

