:root {
    --primary-color: #ff6f61; /* 珊瑚红 */
    --accent-color: #74b9ff; /* 天蓝 */
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Merriweather', serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.8;
    font-size: clamp(16px, 2.5vw, 18px);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.main-nav.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
}

.articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.parallax {
    background: url('../images/covers/article1.jpg') center/cover fixed;
    min-height: 40vh;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.toc.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 8px;
    position: sticky;
    top: 2rem;
}

.toc-toggle {
    display: none;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    .toc {
        display: none;
    }
    .toc-toggle {
        display: block;
    }
    .toc.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        padding: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .articles {
        grid-template-columns: 1fr;
    }
}