/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #9a7e2c;
    --red: #8b1a1a;
    --red-light: #c0392b;
    --bg-dark: #0d0b0a;
    --bg-card: #1a1614;
    --bg-section: #151110;
    --text-main: #d4cfc8;
    --text-light: #a89f94;
    --text-dark: #6b6358;
    --border: #2a2420;
    --border-gold: rgba(201, 168, 76, 0.3);
    --shadow: rgba(0, 0, 0, 0.5);
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
    --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    min-height: 100vh;
}

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

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 顶部导航 ===== */
.site-header {
    background: linear-gradient(180deg, #1a1410 0%, #0d0b0a 100%);
    border-bottom: 2px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.logo span {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
    margin-top: -4px;
}

.main-nav {
    display: flex;
    gap: 2px;
}

.main-nav a {
    color: var(--text-light);
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== 页面横幅 ===== */
.hero {
    background: linear-gradient(135deg, #0d0b0a 0%, #1a1410 50%, #0d0b0a 100%);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 6px;
    position: relative;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ===== 通用布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
}

/* ===== 首页特色卡片 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== 文章列表 ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 28px;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-color: var(--border-gold);
}

.article-item h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.article-item h3 a {
    color: var(--text-main);
}

.article-item h3 a:hover {
    color: var(--gold);
}

.article-meta {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== 内容页面 ===== */
.page-content {
    padding: 50px 0;
}

.content-body {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 44px;
}

.content-body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gold);
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 2px;
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin: 24px 0 12px;
    letter-spacing: 1px;
}

.content-body p {
    margin-bottom: 16px;
    text-indent: 2em;
    text-align: justify;
}

.content-body ul,
.content-body ol {
    margin: 12px 0 16px 2em;
    color: var(--text-light);
}

.content-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===== 下载页面 ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.download-card h3 {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.download-card .size {
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #1a1410;
    padding: 10px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a1410;
    transform: scale(1.03);
}

/* ===== 页脚 ===== */
.site-footer {
    background: #0a0807;
    border-top: 1px solid var(--border);
    padding: 40px 20px 30px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.footer-col p,
.footer-col a {
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dark);
    font-size: 0.82rem;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--gold-dark);
    color: #1a1410;
    border-color: var(--gold);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.breadcrumb a {
    color: var(--text-dark);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-dark);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .content-body {
        padding: 28px 24px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #1a1410;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        padding: 50px 16px 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .content-body {
        padding: 20px 16px;
    }

    .section {
        padding: 36px 0;
    }

    .article-item {
        padding: 18px 16px;
    }
}
