/* ==================================================================
   仙剑奇侠传官网 · 国风设计系统
   青绿山水 / 宣纸 / 鎏金 / 朱砂
   ================================================================== */

:root {
    /* 色板 */
    --paper:       #f3ecd9;
    --paper-soft:  #f8f3e6;
    --paper-card: #fbf7ec;
    --ink:         #20302c;
    --ink-deep:    #182623;
    --ink-section: #20332e;
    --qing:        #2f5d57;
    --qing-dark:   #234641;
    --qing-light:  #4a7a73;
    --gold:        #bd9a55;
    --gold-light:  #d3b87e;
    --gold-deep:   #9c7c3c;
    --cinnabar:    #9e3b32;
    --ochre:       #7c6a4f;
    --jade-mist:   #dfe6dd;

    --text:        #33382f;
    --text-soft:   #5d6257;
    --text-mute:   #8a8575;
    --line:        #ddd2b9;
    --line-dark:   #3a4d47;

    /* 字体 */
    --serif: "Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
    --kai:   "KaiTi","STKaiti","楷体","Noto Serif SC",serif;
    --sans:  "Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif;

    --shadow-card: 0 10px 30px -18px rgba(32,48,44,.35);
    --shadow-deep: 0 24px 60px -30px rgba(15,28,25,.6);
    --radius: 3px;
    --container: 1200px;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--serif);
    color: var(--text);
    background: var(--paper);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    /* 宣纸纤维纹理 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* ---------------- 通用组件 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    font-family: var(--sans);
    font-size: 15px;
    letter-spacing: 2px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold-deep);
    background: transparent;
    transition: all .3s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn--gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #fff8e8;
    border-color: var(--gold-deep);
    box-shadow: 0 8px 22px -10px rgba(156,124,60,.7);
}
.btn--gold:hover { filter: brightness(1.08); color: #fff; }
.btn--lg { padding: 14px 38px; font-size: 16px; }
.btn--ghost {
    color: var(--gold-light);
    border-color: var(--gold);
    background: rgba(0,0,0,.18);
}
.btn--ghost:hover { background: var(--gold); color: #fff; }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--gold-deep);
    padding-bottom: 10px;
    position: relative;
}
.eyebrow::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 34px; height: 2px; background: var(--gold);
}
.eyebrow--light { color: var(--gold-light); }

.section { padding: 92px 0; }
.section--ink {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(189,154,85,.12), transparent),
        var(--ink-section);
    color: var(--paper-soft);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow::after { left: 50%; transform: translateX(-50%); }
.section-title {
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: 4px;
    margin: 14px 0 12px;
}
.section-sub {
    color: var(--text-mute);
    font-family: var(--kai);
    font-size: 17px;
    letter-spacing: 2px;
    margin: 0;
}
.section--ink .section-sub { color: #a9b3a6; }

.link-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--qing); font-family: var(--sans);
    font-size: 14px; letter-spacing: 1px;
    border-bottom: 1px solid transparent;
}
.link-more:hover { color: var(--gold-deep); border-color: var(--gold); }

.cat-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--cinnabar);
    background: rgba(158,59,50,.08);
    border: 1px solid rgba(158,59,50,.25);
    padding: 1px 9px;
    border-radius: 2px;
    margin-right: 10px;
}

.center-link { text-align: center; margin-top: 46px; }

/* ---------------- 顶部公告 ---------------- */
.top-notice {
    background: var(--ink-deep);
    color: var(--gold-light);
    font-family: var(--sans);
    font-size: 13.5px;
    position: relative;
    z-index: 60;
}
.top-notice__inner {
    width: min(var(--container), 92%);
    margin-inline: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
}
.top-notice__icon { color: var(--gold); font-size: 11px; }
.top-notice p { margin: 0; letter-spacing: 1px; }

/* ---------------- 头部导航 ---------------- */
.site-header {
    position: absolute;
    top: 38px; left: 0; right: 0;
    z-index: 50;
    transition: all .35s ease;
}
body .site-header.is-stuck {
    position: fixed;
    top: 0;
    background: rgba(24,38,35,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px -20px #000;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.brand__text {
    font-size: 26px;
    letter-spacing: 8px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.brand__img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    color: #ece4d2;
    font-size: 16px;
    letter-spacing: 3px;
    padding: 6px 2px;
    position: relative;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: 0; height: 2px; background: var(--gold);
    transform: translateX(-50%);
    transition: width .3s ease;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--gold-light); }
.main-nav ul a:hover::after, .main-nav ul a.active::after { width: 100%; }
.header-cta { padding: 8px 22px; }
.nav-toggle {
    display: none; background: none; border: 0;
    width: 34px; padding: 6px 0;
}
.nav-toggle span {
    display: block; height: 2px; background: #fff; margin: 6px 0;
    transition: .3s;
}

/* ---------------- 首屏 Hero ---------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex; align-items: center;
}
.hero__track { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(18,30,27,.78) 0%, rgba(18,30,27,.4) 45%, rgba(18,30,27,.25) 100%),
        linear-gradient(0deg, rgba(18,30,27,.6), transparent 40%);
}
.hero__content { position: relative; z-index: 3; color: #f3ecd9; }
.hero__seal {
    display: inline-block;
    background: var(--cinnabar);
    color: #fff3e2;
    font-family: var(--kai);
    letter-spacing: 4px;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 26px;
}
.hero__title {
    font-size: clamp(42px, 7vw, 84px);
    letter-spacing: 12px;
    font-weight: 700;
    color: #fbf5e6;
    text-shadow: 0 6px 30px rgba(0,0,0,.5);
    margin-bottom: 18px;
}
.hero__subtitle {
    font-family: var(--kai);
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: 5px;
    color: #d8cdb4;
    margin-bottom: 40px;
}
.hero__dots {
    position: absolute; bottom: 56px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 5;
}
.hero__dots button {
    width: 28px; height: 3px; border: 0;
    background: rgba(255,255,255,.35);
    transition: .3s;
}
.hero__dots button.is-active { background: var(--gold-light); }
.hero__scroll {
    position: absolute; bottom: 22px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans); font-size: 11px;
    letter-spacing: 3px; color: rgba(255,255,255,.6);
    z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll span {
    width: 1px; height: 34px; background: rgba(255,255,255,.5);
    animation: scrolldrop 1.8s infinite;
}
@keyframes scrolldown { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------------- 首页：简介 + 新闻 ---------------- */
.home-news__grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 70px;
    align-items: center;
}
.home-news__intro .section-title { margin: 16px 0 22px; line-height: 1.5; }
.home-news__intro p { color: var(--text-soft); }
.home-news__panel {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 34px 36px;
    box-shadow: var(--shadow-card);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-head h3 { font-size: 22px; letter-spacing: 3px; }
.panel-head a { font-family: var(--sans); font-size: 13px; color: var(--qing); }
.panel-head a:hover { color: var(--gold-deep); }
.news-lines li {
    display: flex; align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
}
.news-lines li:last-child { border-bottom: 0; }
.news-lines a { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-lines a:hover { color: var(--cinnabar); }
.news-lines time { font-family: var(--sans); font-size: 13px; color: var(--text-mute); }

/* ---------------- 特色卡片 ---------------- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 26px;
}
.feature-card {
    background: rgba(248,243,230,.04);
    border: 1px solid var(--line-dark);
    padding: 40px 32px;
    border-radius: var(--radius);
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
    position: relative;
}
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 50%;
    width: 0; height: 2px; background: var(--gold);
    transform: translateX(-50%); transition: width .4s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--gold); background: rgba(248,243,230,.07); }
.feature-card:hover::before { width: 70%; }
.feature-card__icon {
    display: inline-flex; color: var(--gold-light);
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; letter-spacing: 2px; margin-bottom: 14px; color: #f0e8d6; }
.feature-card p { font-size: 14.5px; color: #b7c0b4; margin: 0; line-height: 1.9; }

/* ---------------- 门派角色 ---------------- */
.chars__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
}
.char-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .35s ease, box-shadow .35s ease;
}
.char-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); }
.char-card__media {
    aspect-ratio: 4/3;
    background: linear-gradient(150deg, var(--qing), var(--ink));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.char-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.char-card:hover .char-card__media img { transform: scale(1.07); }
.char-card__initial {
    font-family: var(--kai); font-size: 52px; color: rgba(255,255,255,.85);
}
.char-card__body { padding: 22px 20px 26px; }
.char-card__body h3 { font-size: 19px; letter-spacing: 2px; margin-bottom: 4px; }
.char-card__title { font-family: var(--kai); font-size: 14px; color: var(--gold-deep); margin-bottom: 12px; }
.char-card__desc { font-size: 13.5px; color: var(--text-soft); margin-bottom: 12px; }
.char-card__skill {
    font-size: 12.5px; color: var(--text-mute);
    border-top: 1px dashed var(--line); padding-top: 10px; margin: 0;
}
.char-card__skill b { display: block; color: var(--cinnabar); font-family: var(--sans); font-weight: 600; margin-bottom: 2px; }

/* ---------------- 画廊 ---------------- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}
.gallery__item {
    position: relative; margin: 0; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line-dark);
    aspect-ratio: 16/10;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item figcaption {
    position: absolute; inset: auto 0 0; padding: 26px 18px 14px;
    background: linear-gradient(transparent, rgba(15,25,22,.9));
    color: #efe7d5; display: flex; justify-content: space-between; align-items: flex-end;
    transform: translateY(8px); opacity: 0; transition: .4s ease;
}
.gallery__item figcaption span { font-size: 16px; letter-spacing: 2px; }
.gallery__item figcaption small { font-family: var(--sans); color: var(--gold-light); font-size: 12px; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* 画廊内页墙 */
.gallery-wall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}
.gallery-wall__item {
    margin: 0; position: relative; overflow: hidden; cursor: zoom-in;
    border-radius: var(--radius); border: 1px solid var(--line);
    aspect-ratio: 1;
}
.gallery-wall__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-wall__item:hover img { transform: scale(1.08); }
.gallery-wall__item figcaption {
    position: absolute; inset: auto 0 0; padding: 20px 12px 10px;
    background: linear-gradient(transparent, rgba(20,32,29,.9));
    color: #efe7d5;
}
.gallery-wall__item figcaption span { display: block; font-size: 14px; letter-spacing: 1px; }
.gallery-wall__item figcaption small { font-family: var(--sans); font-size: 11px; color: var(--gold-light); }
.is-hidden { display: none !important; }

/* ---------------- 开服表 ---------------- */
.server-table {
    border: 1px solid var(--line);
    background: var(--paper-card);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.server-table table { width: 100%; border-collapse: collapse; }
.server-table th {
    background: var(--ink-section); color: var(--gold-light);
    font-family: var(--sans); font-weight: 500;
    letter-spacing: 2px; font-size: 14px;
    padding: 16px; text-align: left;
}
.server-table td { padding: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.server-table tbody tr:hover { background: var(--paper-soft); }
.status-pill {
    font-family: var(--sans); font-size: 12.5px;
    padding: 3px 12px; border-radius: 20px; letter-spacing: 1px;
}
.status-已开服 { color: var(--qing); background: rgba(47,93,87,.1); border: 1px solid rgba(47,93,87,.3); }
.status-今日开服 { color: var(--cinnabar); background: rgba(158,59,50,.1); border: 1px solid rgba(158,59,50,.35); }
.status-即将开服 { color: var(--gold-deep); background: rgba(189,154,85,.12); border: 1px solid rgba(189,154,85,.4); }
.table-link { color: var(--qing); font-family: var(--sans); font-size: 14px; }
.table-link:hover { color: var(--cinnabar); }
.text-muted { color: var(--text-mute); font-size: 13.5px; }

/* ---------------- 下载 CTA ---------------- */
.cta-download {
    position: relative;
    padding: 110px 0;
    background: url('../img/cta-bg.jpg') center/cover fixed;
    color: #f3ecd9;
    text-align: center;
}
.cta-download__veil { position: absolute; inset: 0; background: rgba(20,32,29,.82); }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(28px,4vw,42px); letter-spacing: 8px; margin-bottom: 14px; }
.cta-inner > p { font-family: var(--kai); letter-spacing: 3px; color: #d4cab2; margin-bottom: 44px; }
.cta-btns { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.cta-btn {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--gold);
    background: rgba(0,0,0,.25);
    padding: 14px 28px;
    border-radius: var(--radius);
    color: #f0e8d6;
    transition: .3s;
}
.cta-btn:hover { background: var(--gold); color: #fff; }
.cta-btn small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 2px; opacity: .8; text-align: left; }
.cta-btn b { display: block; font-size: 17px; letter-spacing: 2px; font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    background: var(--ink-deep);
    color: #b7bfb3;
    padding: 76px 0 34px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr);
    gap: 50px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { font-size: 24px; letter-spacing: 6px; color: #ece4d2; margin-bottom: 6px; }
.footer-slogan { font-family: var(--kai); color: var(--gold-light); letter-spacing: 2px; margin-bottom: 16px; }
.footer-text { font-size: 13px; color: #939c90; line-height: 1.9; }
.footer-col h4 {
    font-family: var(--sans); font-size: 14px; letter-spacing: 3px;
    color: #e2dac8; margin-bottom: 18px; font-weight: 500;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { font-family: var(--sans); font-size: 13px; }
.friend-links {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.friend-links__label { font-family: var(--sans); color: var(--gold-light); font-size: 13px; letter-spacing: 2px; }
.friend-links a { font-family: var(--sans); font-size: 13px; color: #939c90; }
.friend-links a:hover { color: var(--gold-light); }
.footer-meta { padding-top: 26px; text-align: center; }
.footer-meta p { margin-bottom: 8px; font-family: var(--sans); font-size: 13px; }
.footer-icp a { color: #939c90; margin: 0 10px; }
.footer-icp a:hover { color: var(--gold-light); }
.footer-disclaimer { color: #79817a; font-size: 12px; letter-spacing: 1px; }

/* ---------------- 返回顶部 ---------------- */
.back-top {
    position: fixed; right: 26px; bottom: 30px;
    width: 44px; height: 44px;
    border: 1px solid var(--gold);
    background: rgba(24,38,35,.9);
    color: var(--gold-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: .3s; z-index: 40;
    font-size: 18px;
}
.back-top.is-show { opacity: 1; visibility: visible; }

/* ---------------- 内页头 ---------------- */
.page-hero {
    padding: 150px 0 56px;
    background:
        linear-gradient(rgba(24,38,35,.82), rgba(24,38,35,.9)),
        radial-gradient(600px 300px at 20% 0, rgba(189,154,85,.25), transparent),
        var(--ink-section);
    color: #f0e8d6;
}
.page-hero--sm { padding: 120px 0 30px; }
.page-hero h1 { font-size: clamp(28px,4vw,40px); letter-spacing: 6px; margin-bottom: 18px; }
.crumb { font-family: var(--sans); font-size: 13px; color: #b7bfb3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--gold-light); }
.crumb i { color: var(--gold); font-style: normal; }

/* ---------------- 内容布局（主+侧） ---------------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 40px;
    align-items: start;
}
.article-layout__main { min-width: 0; }
.article-layout__side { min-width: 0; position: sticky; top: 30px; }

.cat-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-switch a, .cat-switch button {
    font-family: var(--sans); font-size: 14px;
    padding: 7px 22px; border: 1px solid var(--line);
    border-radius: 2px; color: var(--text-soft); background: var(--paper-card);
    letter-spacing: 1px;
}
.cat-switch a.is-active, .cat-switch button.is-active {
    background: var(--ink-section); color: var(--gold-light); border-color: var(--ink-section);
}
.cat-switch a:hover, .cat-switch button:hover { border-color: var(--gold); color: var(--gold-deep); }

/* 文章卡片列表 */
.article-cards li { margin-bottom: 28px; }
.article-card {
    display: flex; gap: 26px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.article-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.article-card__thumb {
    flex: 0 0 220px; aspect-ratio: 16/10; align-self: center;
    border-radius: var(--radius); overflow: hidden;
    background: var(--ink-section);
    display: flex; align-items: center; justify-content: center; color: var(--gold-light);
}
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { min-width: 0; }
.article-card__meta { display: flex; align-items: center; margin-bottom: 8px; font-family: var(--sans); font-size: 12.5px; color: var(--text-mute); gap: 14px; }
.article-card__body h2 { font-size: 21px; margin-bottom: 8px; line-height: 1.5; }
.article-card__body h2 a:hover { color: var(--cinnabar); }
.article-card__body p { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.empty-tip { color: var(--text-mute); padding: 60px 0; text-align: center; }

/* 侧栏 */
.side-box {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    margin-bottom: 24px;
}
.side-box h3 { font-size: 18px; letter-spacing: 2px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--gold); }
.side-box li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-box li a::before { content: "·"; color: var(--gold); margin-right: 8px; }
.side-box li a:hover { color: var(--cinnabar); }
.side-box--download { text-align: center; background: var(--ink-section); color: #cdd5cb; border-color: var(--line-dark); }
.side-box--download h3 { color: #f0e8d6; border-color: var(--gold-deep); }
.side-box--download p { font-family: var(--sans); font-size: 13px; margin-bottom: 18px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
    font-family: var(--sans); font-size: 14px;
    min-width: 42px; padding: 8px 14px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-card); color: var(--text-soft);
}
.pagination a.is-active { background: var(--ink-section); color: var(--gold-light); border-color: var(--ink-section); }
.pagination a:hover { border-color: var(--gold); color: var(--gold-deep); }
.pg-ellipsis { border: 0; background: none; }

/* ---------------- 文章详情 ---------------- */
.article-detail {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px 50px;
}
.article-detail__head { text-align: center; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-detail__head h1 { font-size: clamp(24px,3vw,32px); letter-spacing: 2px; margin: 16px 0 18px; line-height: 1.5; }
.article-detail__meta { display: flex; justify-content: center; gap: 26px; font-family: var(--sans); font-size: 13px; color: var(--text-mute); }
.article-detail__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-detail__cover { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; }
.article-share { text-align: center; color: var(--text-mute); font-family: var(--kai); letter-spacing: 2px; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--line); }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prev-next a {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; font-size: 14px; background: var(--paper-soft);
}
.prev-next small { display: block; font-family: var(--sans); color: var(--gold-deep); font-size: 12px; letter-spacing: 1px; }
.prev-next__next { text-align: right; }
.prev-next a:hover { border-color: var(--gold); color: var(--cinnabar); }

/* 正文排版 */
.article-content { font-size: 16.5px; line-height: 2; color: #3a3f36; }
.article-content > p:first-child::first-letter {
    font-family: var(--kai); font-size: 2.4em; float: left;
    line-height: 1; padding: 4px 10px 0 0; color: var(--cinnabar);
}
.article-content h2 { font-size: 23px; margin: 1.8em 0 .7em; letter-spacing: 2px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-content h3 { font-size: 19px; margin: 1.6em 0 .6em; color: var(--qing-dark); }
.article-content ul, .article-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article-content ul li { list-style: none; position: relative; padding-left: 16px; }
.article-content ul li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7em; top: .5em; }
.article-content ol li { list-style: decimal; }
.article-content blockquote {
    margin: 1.4em 0; padding: 14px 22px;
    border-left: 4px solid var(--gold);
    background: var(--paper-soft); color: var(--text-soft); font-family: var(--kai);
}
.article-content img { border-radius: var(--radius); margin: 1.4em auto; }
.article-content a { color: var(--qing); border-bottom: 1px solid var(--qing-light); }
.article-content a:hover { color: var(--cinnabar); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 14px; }
.article-content th { background: var(--paper-soft); }

/* 静态单页 */
.static-page { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 50px; }

/* ---------------- 下载页 ---------------- */
.download-cards {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 26px; margin-bottom: 60px;
}
.download-card {
    text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper-card); padding: 42px 28px;
    transition: transform .3s, box-shadow .3s;
}
.download-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.download-card__icon {
    display: inline-flex; width: 74px; height: 74px; align-items: center; justify-content: center;
    border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-deep); margin-bottom: 20px;
}
.download-card h2 { font-size: 22px; letter-spacing: 3px; margin-bottom: 8px; }
.download-card__tip { font-family: var(--sans); font-size: 13px; color: var(--text-mute); margin-bottom: 22px; }
.download-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.download-info__block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 32px; }
.download-info__block h3 { font-size: 19px; letter-spacing: 2px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.spec-table { width: 100%; font-size: 14px; }
.spec-table th { text-align: left; color: var(--text-soft); width: 110px; padding: 8px 0; font-weight: 400; }
.spec-table td { padding: 8px 0; }
.plain-list li { position: relative; padding-left: 18px; margin-bottom: 12px; font-size: 14px; color: var(--text-soft); }
.plain-list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7em; top: .5em; }
.download-contact { text-align: center; margin-top: 50px; font-family: var(--sans); font-size: 14px; color: var(--text-soft); }
.download-contact b { color: var(--cinnabar); font-weight: 600; }

/* ---------------- 灯箱 ---------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(12,20,18,.94);
    display: none; align-items: center; justify-content: center;
    flex-direction: column; padding: 50px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.lightbox p { color: var(--gold-light); font-family: var(--kai); letter-spacing: 2px; margin-top: 20px; }
.lightbox__close {
    position: absolute; top: 24px; right: 34px;
    background: none; border: 0; color: #fff; font-size: 42px; line-height: 1;
}
.lightbox__close:hover { color: var(--gold-light); }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==================================================================
   响应式
   ================================================================== */
@media (max-width: 1024px) {
    .chars__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .gallery-wall { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .features__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-layout__side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .article-layout__side .side-box { margin-bottom: 0; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .site-header { top: 0; background: rgba(24,38,35,.9); }
    .nav-toggle { display: block; z-index: 60; }
    .main-nav {
        position: fixed; inset: 0; background: var(--ink-deep);
        flex-direction: column; justify-content: center; gap: 30px;
        transform: translateX(100%); transition: transform .4s ease;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: center; gap: 26px; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .home-news__grid { grid-template-columns: 1fr; gap: 40px; }
    .features__grid, .gallery__grid, .download-cards, .download-info { grid-template-columns: 1fr; }
    .chars__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-wall { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .article-card { flex-direction: column; }
    .article-card__thumb { flex-basis: auto; width: 100%; }
    .article-detail, .static-page { padding: 30px 22px; }
    .article-layout__side { grid-template-columns: 1fr; }
    .prev-next { grid-template-columns: 1fr; }
    .cta-download { background-attachment: scroll; }
    /* 移动端表格转卡片 */
    .server-table thead { display: none; }
    .server-table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
    .server-table td { display: flex; justify-content: space-between; border: 0; padding: 8px 16px; }
    .server-table td::before { content: attr(data-label); font-family: var(--sans); color: var(--text-mute); font-size: 13px; }
}

@media (max-width: 480px) {
    .hero__title { letter-spacing: 8px; }
    .chars__grid, .gallery-wall { grid-template-columns: 1fr; }
    .news-lines .cat-tag { display: none; }
    .lightbox { padding: 20px; }
}
