﻿:root {
    --brand: #1a5f7a;
    --brand-dark: #144a60;
    --brand-deep: #0f3d4e;
    --accent: #57cc99;
    --accent-dark: #3fae7d;
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #333;
    --text-soft: #5d6b70;
    --line: #e0e0e0;
    --soft-blue: #f0f7ff;
    --soft-green: #f0f9f5;
    --warn-bg: #fff8e1;
    --warn-text: #5d4037;
    --warn-line: #ffb300;
    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 3px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 26px rgba(26, 95, 122, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
header {
    background-color: var(--brand);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s;
}

    header.compact {
        padding: 12px 0;
    }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
}

    .logo i {
        font-size: 2.5rem;
        color: var(--accent);
    }

.logo-text h1,
.logo-text .logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

    .nav-menu a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 0;
        position: relative;
        transition: color 0.3s;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--accent);
        }

            .nav-menu a.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: var(--accent);
                border-radius: 2px;
            }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ===== 主要内容区 ===== */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    overflow-x: auto;
    white-space: nowrap;
}

    .breadcrumb a {
        color: var(--brand);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 8px;
    }

.page-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--brand);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

    .page-title i {
        margin-right: 15px;
        font-size: 1.8rem;
    }

    .page-title h2 {
        font-size: 1.8rem;
        line-height: 1.35;
    }

    .page-title .subtitle {
        font-size: 0.95rem;
        color: var(--text-soft);
        font-weight: 400;
        margin-top: 6px;
    }

.update-time {
    background-color: var(--soft-blue);
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    color: var(--brand);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .update-time i {
        color: var(--accent);
    }

    .update-time .divider {
        color: #c7d6dd;
    }

/* ===== 概览指标 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--accent);
    transition: transform 0.25s, box-shadow 0.25s;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .stat-card .num {
        font-size: 2rem;
        font-weight: 700;
        color: var(--brand);
        line-height: 1.2;
    }

        .stat-card .num small {
            font-size: 0.9rem;
            font-weight: 500;
            margin-left: 4px;
        }

    .stat-card .label {
        font-size: 0.9rem;
        color: var(--text-soft);
        margin-top: 6px;
    }

/* ===== 通用卡片 ===== */
.article-content {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.article-section {
    margin-bottom: 35px;
}

    .article-section:last-child {
        margin-bottom: 0;
    }

.section-title {
    color: var(--brand);
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--soft-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: var(--accent);
        font-size: 1.25rem;
    }

.article-text {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.85;
    text-align: justify;
}

.highlight-text {
    background-color: var(--soft-green);
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    margin: 20px 0;
    line-height: 1.8;
}

/* ===== 使用须知步骤 ===== */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

    .steps li {
        counter-increment: step;
        position: relative;
        padding: 18px 18px 18px 58px;
        background: #fbfcfd;
        border: 1px solid #eef2f4;
        border-radius: var(--radius);
        line-height: 1.7;
        font-size: 0.95rem;
    }

        .steps li::before {
            content: counter(step);
            position: absolute;
            left: 16px;
            top: 16px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--brand);
            color: #fff;
            font-size: 0.85rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .steps strong {
        color: var(--brand);
        display: block;
    }

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid #eef2f4;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

    .faq-item:last-child {
        margin-bottom: 0;
    }

.faq-q {
    width: 100%;
    text-align: left;
    background: #fbfcfd;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    line-height: 1.6;
}

    .faq-q:hover {
        background: var(--soft-blue);
    }

    .faq-q i {
        transition: transform 0.3s;
        color: var(--accent);
        flex: 0 0 auto;
    }

.faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 4px 20px 18px;
    color: var(--text);
    line-height: 1.85;
    font-size: 0.95rem;
    text-align: justify;
}

.faq-item.open .faq-a {
    display: block;
}

/* ===== 全部年份收录（纯年份导航） ===== */
.list-heading {
    color: var(--brand);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

    .list-heading .lh-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--brand) 0%, #2a7fa0 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        box-shadow: 0 6px 16px rgba(26, 95, 122, 0.28);
        flex: 0 0 auto;
    }

        .list-heading .lh-icon i {
            line-height: 1;
        }

    .list-heading .count {
        font-size: 0.85rem;
        color: var(--text-soft);
        font-weight: 400;
        background: var(--soft-blue);
        padding: 3px 12px;
        border-radius: 20px;
        margin-left: 4px;
    }

.year-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

    .year-links li {
        display: flex;
        align-items: center;
    }

    .year-links a.yl {
        display: inline-block;
        min-width: 96px;
        text-align: center;
        padding: 13px 26px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text);
        background: #fff;
        border: 1px solid #e8ecef;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: all 0.25s;
    }

        .year-links a.yl:hover {
            background: var(--brand);
            border-color: var(--brand);
            color: #fff;
            box-shadow: 0 6px 14px rgba(26, 95, 122, 0.24);
            transform: translateY(-2px);
        }

        .year-links a.yl.legacy {
            color: #6b7280;
        }

        .year-links a.yl.current {
            color: var(--brand);
            font-weight: 600;
        }

/* ===== 相关年鉴推荐 ===== */
.related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

    .related-head .section-title {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

.related-more {
    font-size: 0.9rem;
    color: var(--brand);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: all 0.25s;
    white-space: nowrap;
}

    .related-more:hover {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eef2f4;
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

    .related-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        border-color: #dbe9ef;
    }

    .related-card .rc-top {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .related-card .rc-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: var(--soft-blue);
        color: var(--brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex: 0 0 auto;
    }

    .related-card:hover .rc-icon {
        background: var(--accent);
        color: #fff;
    }

    .related-card h4 {
        font-size: 1rem;
        color: var(--brand);
        font-weight: 600;
        line-height: 1.45;
    }

    .related-card .rc-year {
        font-size: 0.78rem;
        color: var(--accent-dark);
        background: var(--soft-green);
        padding: 1px 8px;
        border-radius: 10px;
        margin-left: auto;
        flex: 0 0 auto;
    }


/* ===== 免责声明 ===== */
.disclaimer {
    background-color: var(--warn-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--warn-text);
    border-left: 4px solid var(--warn-line);
    line-height: 1.8;
}

/* ===== 页脚 ===== */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.7;
}

    .footer-section a:hover {
        color: var(--accent);
    }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
    line-height: 1.9;
}

    .copyright a {
        color: var(--accent);
        text-decoration: none;
    }

        .copyright a:hover {
            text-decoration: underline;
        }

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 99;
}

    .back-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-top:hover {
        background: var(--accent);
    }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 0;
    }

        .logo i {
            font-size: 2rem;
        }

    .logo-text h1, .logo-text .logo-title {
        font-size: 1.4rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

        .nav-menu.show {
            display: flex;
        }

        .nav-menu li {
            width: 100%;
        }

        .nav-menu a {
            display: block;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

            .nav-menu a.active::after {
                display: none;
            }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 8px;
        right: 0;
    }

    .main-content {
        padding: 26px 0;
    }

    .article-content {
        padding: 25px;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .list-heading {
        font-size: 1.3rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card .num {
        font-size: 1.6rem;
    }

    .faq-q {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-a {
        padding: 2px 16px 16px;
    }

    .back-top {
        right: 16px;
        bottom: 20px;
    }

    .year-links {
        gap: 10px;
    }

        .year-links a.yl {
            min-width: 78px;
            padding: 11px 18px;
            font-size: 0.95rem;
        }

    .list-heading {
        font-size: 1.25rem;
        gap: 10px;
    }

        .list-heading .lh-icon {
            width: 40px;
            height: 40px;
            font-size: 1.1rem;
            border-radius: 10px;
        }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-content {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .page-title i {
            margin-bottom: 5px;
        }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 14px;
    }

        .stat-card .num {
            font-size: 1.35rem;
        }

        .stat-card .label {
            font-size: 0.8rem;
        }

    .update-time {
        font-size: 0.88rem;
        padding: 10px 14px;
    }
}

/* ===== 打印 ===== */
@media print {
    header, footer, .breadcrumb, .back-top {
        display: none;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }

    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .year-links a.yl {
        border: 1px solid #ccc;
        color: #000;
        box-shadow: none;
    }
}
