/* ============================================================
   毛选精读 · 全站样式 —— 朱红 · 宣纸 · 玄墨 · 璀璨金
   纯原生 CSS，移动优先，兼容微信内置浏览器
   ============================================================ */
:root {
  --red: #a8202a;          /* 朱红主色 */
  --red-deep: #7a1420;     /* 深红 */
  --red-dark: #4a0d13;     /* 暗红（底） */
  --gold: #c9a227;         /* 璀璨金 */
  --gold-light: #e3c76a;
  --ink: #26221d;          /* 玄墨 */
  --ink-soft: #5a554e;     /* 墨灰 */
  --paper: #f6f1e7;        /* 宣纸 */
  --paper-deep: #efe7d6;   /* 深宣纸 */
  --card: #fffdf7;         /* 卡片 */
  --line: #e2d8c3;         /* 分隔线 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --kai: "STKaiti", "KaiTi", "楷体", "Noto Serif SC", "SimSun", serif;
  --hei: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(168,32,42,.045), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(201,162,39,.05), transparent 40%);
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; display: block; }
::selection { background: rgba(168,32,42,.18); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-deep) 45%, var(--red) 100%);
  box-shadow: 0 2px 14px rgba(74,13,19,.35);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; height: 56px; gap: 4px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: #f8ecd2; font-family: var(--kai); font-weight: 700;
  font-size: 19px; letter-spacing: 2px; margin-right: 10px; white-space: nowrap;
}
.brand .star { color: var(--gold-light); font-size: 17px; }
.brand small { font-size: 11px; letter-spacing: 3px; color: #e8c987; font-weight: 400; }
.main-nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: #f2dfc0; padding: 6px 13px; margin: 0 1px; border-radius: 6px 6px 0 0;
  font-size: 15px; white-space: nowrap; font-family: var(--kai); letter-spacing: 1px;
  border-bottom: 2px solid transparent; transition: .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.page-title {
  font-family: var(--kai); font-size: clamp(26px, 5vw, 36px); color: var(--red-deep);
  letter-spacing: 4px; margin: 30px 0 6px; font-weight: 700;
  display: flex; align-items: baseline; gap: 12px;
}
.page-title .en { font-size: 13px; color: var(--ink-soft); letter-spacing: 2px; font-family: var(--serif); }
.page-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.rule {
  display: flex; align-items: center; gap: 10px; margin: 34px 0 22px;
  font-family: var(--kai); font-size: 21px; color: var(--red-deep); letter-spacing: 3px; font-weight: 700;
}
.rule::before { content: "★"; color: var(--gold); font-size: 15px; }
.rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; box-shadow: 0 3px 14px rgba(90,70,40,.06);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 按钮 / 标签 ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; border: none;
  padding: 9px 22px; border-radius: 8px; font-size: 15px; cursor: pointer;
  font-family: var(--kai); letter-spacing: 2px; transition: .2s;
  box-shadow: 0 3px 10px rgba(168,32,42,.3);
}
.btn:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); box-shadow: none; }
.btn.ghost:hover { background: rgba(168,32,42,.06); }
.tag {
  display: inline-block; background: rgba(168,32,42,.08); color: var(--red-deep);
  border: 1px solid rgba(168,32,42,.22); font-size: 12px; padding: 2px 10px;
  border-radius: 20px; margin: 2px 4px 2px 0; letter-spacing: 1px;
}
.tag.gold { background: rgba(201,162,39,.12); color: #8a6d14; border-color: rgba(201,162,39,.4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #f8ecd2;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(201,162,39,.16), transparent 46%),
    linear-gradient(160deg, var(--red-dark) 0%, #61121c 52%, var(--red-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 119 L60 65 L120 119' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3Cpath d='M-30 119 L30 75 L90 119 L150 75 L210 119' fill='none' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 58px 18px 46px;
  display: flex; gap: 34px; align-items: center;
}
.hero-text { flex: 1; min-width: 0; }
.hero-eyebrow {
  letter-spacing: 6px; font-size: 14px; color: var(--gold-light);
  border: 1px solid rgba(227,199,106,.5); display: inline-block;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--kai); font-weight: 700;
  font-size: clamp(38px, 8vw, 64px); line-height: 1.25; letter-spacing: 6px;
  text-shadow: 0 3px 16px rgba(0,0,0,.35);
}
.hero h1 .gold { color: var(--gold-light); }
.hero-sub {
  margin-top: 16px; font-size: clamp(14px, 2.4vw, 17px); color: #edd9b4;
  max-width: 640px; line-height: 2;
}
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { background: var(--gold); color: var(--red-dark); box-shadow: 0 4px 14px rgba(0,0,0,.3); font-weight: 700; }
.hero-actions .btn:hover { background: var(--gold-light); color: var(--red-dark); }
.hero-actions .btn.plain { background: rgba(255,255,255,.1); color: #f8ecd2; border: 1px solid rgba(248,236,210,.45); }
.hero-actions .btn.plain:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-figure { width: 300px; flex-shrink: 0; position: relative; }
.hero-figure .photo {
  border: 3px solid var(--gold); border-radius: 8px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: rotate(1.5deg);
}
.hero-figure figcaption {
  text-align: center; margin-top: 10px; font-size: 12px; color: #d9b98a; letter-spacing: 3px;
}
@media (max-width: 760px) {
  .hero-inner { flex-direction: column; padding: 40px 18px 34px; }
  .hero-figure { width: 210px; order: -1; }
}

/* ---------- 统计条 ---------- */
.stats-band {
  background: linear-gradient(90deg, var(--paper-deep), var(--paper));
  border-block: 1px solid var(--line);
}
.stats-inner { max-width: 1160px; margin: 0 auto; padding: 20px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.stat b { display: block; font-size: clamp(24px, 4.5vw, 34px); color: var(--red-deep); font-family: var(--kai); }
.stat b .u { font-size: 13px; color: var(--gold); margin-left: 2px; }
.stat span { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 2px; }
@media (max-width: 560px) { .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }

/* ---------- 卷次卡 ---------- */
.vol-card {
  position: relative; border-radius: 12px; overflow: hidden; color: #f6ecd8;
  padding: 22px 20px 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--red-dark), var(--red-deep) 70%, #8f1c26);
  border: 1px solid rgba(201,162,39,.35); transition: .25s; cursor: pointer;
  box-shadow: 0 4px 16px rgba(74,13,19,.22);
}
.vol-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(74,13,19,.35); }
.vol-card .vol-no { position: absolute; right: 8px; top: -14px; font-family: var(--kai); font-size: 92px; opacity: .1; font-weight: 700; }
.vol-card h3 { font-family: var(--kai); font-size: 21px; letter-spacing: 2px; margin-bottom: 4px; color: #fbe9c4; }
.vol-card p { font-size: 13px; color: #e5c393; }
.vol-card .meta { margin-top: 10px; font-size: 12.5px; color: var(--gold-light); letter-spacing: 1px; }

/* ---------- 文章列表 ---------- */
.art-list { display: grid; gap: 10px; }
.art-item {
  display: flex; gap: 14px; align-items: baseline; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  transition: .18s; cursor: pointer;
}
.art-item:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(90,70,40,.1); transform: translateX(3px); }
.art-item .no {
  font-family: var(--kai); color: var(--gold); font-size: 14px; font-weight: 700;
  min-width: 44px; flex-shrink: 0;
}
.art-item .ti { font-size: 16px; color: var(--ink); flex: 1; min-width: 0; }
.art-item:hover .ti { color: var(--red-deep); }
.art-item .dt { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.art-item.read .ti::after { content: " ✓"; color: var(--gold); font-size: 13px; }
@media (max-width: 560px) {
  .art-item { flex-wrap: wrap; }
  .art-item .dt { order: 3; width: 100%; margin-left: 58px; margin-top: 2px; }
}

/* ---------- 阅读器 ---------- */
.reader-layout { display: grid; grid-template-columns: 288px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .reader-layout { grid-template-columns: 1fr; } }
.reader-side {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 0; position: sticky; top: 72px; max-height: calc(100vh - 90px);
  overflow-y: auto;
}
@media (max-width: 900px) { .reader-side { position: static; max-height: 380px; } }
.side-head { padding: 4px 16px 10px; font-family: var(--kai); font-weight: 700; color: var(--red-deep); font-size: 17px; border-bottom: 1px dashed var(--line); letter-spacing: 2px; }
.side-vol { padding: 10px 16px 4px; font-size: 13px; color: var(--gold); letter-spacing: 1px; font-family: var(--kai); }
.side-list { padding: 4px 8px; }
.side-list a {
  display: block; padding: 7px 10px; border-radius: 7px; font-size: 14px;
  color: var(--ink); line-height: 1.5;
}
.side-list a:hover { background: rgba(168,32,42,.07); }
.side-list a.on { background: var(--red); color: #fff; }
.article {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(22px, 4vw, 46px);
}
.art-head { border-bottom: 2px solid var(--gold); padding-bottom: 18px; margin-bottom: 22px; text-align: center; }
.art-head .crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; letter-spacing: 1px; }
.art-head h1 { font-family: var(--kai); font-size: clamp(26px, 5vw, 38px); color: var(--red-deep); letter-spacing: 3px; line-height: 1.4; }
.art-head .sub { margin-top: 6px; font-size: 16px; color: var(--ink-soft); font-family: var(--kai); }
.art-head .date { margin-top: 10px; font-size: 14px; color: var(--gold); letter-spacing: 2px; }
.art-intro {
  background: linear-gradient(135deg, rgba(168,32,42,.06), rgba(201,162,39,.07));
  border-left: 4px solid var(--red); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 0 0 24px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.9;
}
.article-body { font-size: var(--fs, 17px); line-height: 2.05; }
.article-body p { text-indent: 2em; margin: 0 0 6px; text-align: justify; }
.article-body h2 {
  font-family: var(--kai); font-size: 1.3em; color: var(--red-deep); margin: 30px 0 10px;
  padding-left: 12px; border-left: 5px solid var(--red); letter-spacing: 2px; text-indent: 0;
}
.article-body h3 {
  font-family: var(--kai); font-size: 1.12em; color: var(--ink); margin: 24px 0 8px; letter-spacing: 1px; text-indent: 0;
}
.article-body .qt {
  background: rgba(201,162,39,.09); border-radius: 8px; padding: 12px 18px; margin: 14px 0;
  color: #6b5510; font-style: normal; text-indent: 0;
}
.article-body sup { color: var(--red); cursor: pointer; font-size: .72em; }
.notes-sec { margin-top: 34px; border-top: 1px dashed var(--line); padding-top: 18px; }
.notes-sec h3 { font-family: var(--kai); color: var(--ink-soft); font-size: 16px; letter-spacing: 4px; margin-bottom: 10px; }
.notes-sec ol { padding-left: 1.6em; font-size: 13.5px; color: var(--ink-soft); line-height: 1.95; }
.notes-sec li { margin-bottom: 6px; }

/* ---------- 解读卡（背景/要点/现代意义） ---------- */
.anno { margin-top: 30px; display: grid; gap: 14px; }
.anno-block { border-radius: 12px; padding: 18px 20px; border: 1px solid; }
.anno-block h4 {
  font-family: var(--kai); font-size: 17px; letter-spacing: 3px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.anno-bg { background: rgba(201,162,39,.07); border-color: rgba(201,162,39,.35); }
.anno-bg h4 { color: #8a6d14; }
.anno-pt { background: rgba(168,32,42,.05); border-color: rgba(168,32,42,.25); }
.anno-pt h4 { color: var(--red-deep); }
.anno-md { background: rgba(38,34,29,.045); border-color: rgba(38,34,29,.18); }
.anno-md h4 { color: var(--ink); }
.anno-theme {
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep)); color: #fbe9c4;
  border-radius: 12px; padding: 16px 20px; font-family: var(--kai);
  font-size: clamp(16px, 2.6vw, 19px); letter-spacing: 2px; line-height: 1.7;
  border: 1px solid rgba(201,162,39,.4);
}
.anno-theme h4 { color: var(--gold-light); font-size: 14px; letter-spacing: 4px; margin-bottom: 6px; }
.anno-block ul { padding-left: 1.4em; }
.anno-block li { margin-bottom: 5px; font-size: 14.8px; }
.anno-block p { font-size: 14.8px; }

/* ---------- 阅读工具条 ---------- */
.reader-tools {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px; font-size: 13.5px; color: var(--ink-soft);
}
.reader-tools .btn { padding: 6px 14px; font-size: 13.5px; letter-spacing: 1px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager a {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; color: var(--ink); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pager a:hover { border-color: var(--red); color: var(--red-deep); }
.pager a.prev::before { content: "← "; color: var(--gold); }
.pager a.next::after { content: " →"; color: var(--gold); }
#progress-bar {
  position: fixed; top: 56px; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold)); z-index: 99; transition: width .1s;
}

/* ---------- 语录 ---------- */
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; position: relative; transition: .2s;
}
.quote-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(90,70,40,.12); border-color: var(--gold); }
.quote-card::before {
  content: "『"; position: absolute; top: 6px; left: 14px;
  font-family: var(--kai); font-size: 44px; color: rgba(168,32,42,.14); line-height: 1;
}
.quote-card .qtext { font-family: var(--kai); font-size: 17px; line-height: 1.9; letter-spacing: .5px; margin: 8px 0 14px; }
.quote-card .qsrc { font-size: 12.5px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.quote-card .qsrc a { color: var(--red); }
.feature-quote {
  background: linear-gradient(150deg, var(--red-dark), var(--red-deep));
  color: #fbe9c4; border-radius: 14px; padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(201,162,39,.45); position: relative; overflow: hidden;
}
.feature-quote .qtext { font-family: var(--kai); font-size: clamp(20px, 4vw, 30px); line-height: 1.9; letter-spacing: 2px; text-align: center; }
.feature-quote .qsrc { text-align: center; margin-top: 16px; color: var(--gold-light); font-size: 14px; letter-spacing: 2px; }
.feature-quote::before, .feature-quote::after {
  content: "★"; position: absolute; color: rgba(227,199,106,.25); font-size: 90px;
}
.feature-quote::before { top: -28px; left: -8px; }
.feature-quote::after { bottom: -30px; right: -8px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), var(--red));
}
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 8px; width: 12px; height: 12px;
  background: var(--paper); border: 3px solid var(--red); border-radius: 50%;
}
.tl-item .year { font-family: var(--kai); font-size: 20px; color: var(--red-deep); font-weight: 700; letter-spacing: 2px; }
.tl-item .ev { font-size: 13.5px; color: var(--ink-soft); margin: 2px 0 8px; }
.tl-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 概念 ---------- */
.concept-block { margin-bottom: 26px; }
.concept-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.concept-head h3 { font-family: var(--kai); font-size: 20px; color: var(--red-deep); letter-spacing: 3px; }
.concept-head .cnt { font-size: 13px; color: var(--gold); }
.bar-wrap { height: 8px; background: var(--paper-deep); border-radius: 6px; overflow: hidden; flex: 1; }
.bar-wrap .bar { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 6px; }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 10px; margin-bottom: 18px; }
.search-box input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 12px 16px; font-size: 16px; font-family: var(--serif); color: var(--ink); outline: none;
}
.search-box input:focus { border-color: var(--red); }
.search-box .btn { flex-shrink: 0; }
.sr-hit { background: rgba(201,162,39,.28); border-radius: 3px; padding: 0 2px; color: #6b4a00; }
.sr-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 12px; cursor: pointer; transition: .18s; }
.sr-item:hover { border-color: var(--gold); }
.sr-item .t { font-size: 16px; color: var(--red-deep); margin-bottom: 4px; font-weight: 700; }
.sr-item .t small { color: var(--ink-soft); font-weight: 400; margin-left: 8px; }
.sr-item .s { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.sr-count { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- 精读 ---------- */
.dive-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 26px; transition: .2s;
}
.dive-card:hover { box-shadow: 0 12px 30px rgba(90,70,40,.14); border-color: var(--gold); }
.dive-card .ph { height: 100%; min-height: 220px; background: var(--paper-deep); }
.dive-card .ph img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; filter: sepia(.15) contrast(1.02); }
.dive-card .tx { padding: 22px 24px 22px 0; }
.dive-card .k { font-size: 12px; color: var(--gold); letter-spacing: 3px; margin-bottom: 6px; }
.dive-card h3 { font-family: var(--kai); font-size: clamp(20px, 3vw, 25px); color: var(--red-deep); letter-spacing: 2px; margin-bottom: 4px; }
.dive-card .d { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.dive-card p { font-size: 14.6px; color: var(--ink); line-height: 1.95; }
.dive-card .go { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--red); font-family: var(--kai); letter-spacing: 1px; }
@media (max-width: 700px) {
  .dive-card { grid-template-columns: 1fr; }
  .dive-card .ph img { max-height: 210px; }
  .dive-card .tx { padding: 4px 20px 22px; }
}

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 10px; overflow: hidden; }
.tbl th { background: var(--red-deep); color: #fbe9c4; padding: 10px 12px; font-family: var(--kai); letter-spacing: 2px; font-weight: 400; text-align: left; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(201,162,39,.06); }
.tbl-scroll { overflow-x: auto; }

/* ---------- 图表容器 ---------- */
.chart-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; overflow-x: auto; }
.chart-box h3 { font-family: var(--kai); color: var(--red-deep); font-size: 18px; letter-spacing: 2px; margin-bottom: 4px; }
.chart-box .cap { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 60px; background: linear-gradient(160deg, var(--red-dark), var(--red-deep));
  color: #e5c393; padding: 40px 16px 30px; text-align: center; border-top: 2px solid var(--gold);
}
.site-footer .fx { font-family: var(--kai); font-size: 20px; letter-spacing: 6px; color: #fbe9c4; margin-bottom: 12px; }
.site-footer p { font-size: 12.5px; line-height: 2; max-width: 760px; margin: 0 auto; color: #d9b98a; }
.site-footer .links { margin-top: 14px; }
.site-footer .links a { color: var(--gold-light); margin: 0 8px; font-size: 13px; }

/* ---------- 杂项 ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-14 { margin-bottom: 14px; }
.empty { text-align: center; color: var(--ink-soft); padding: 46px 0; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #f6f1e7; padding: 10px 22px; border-radius: 24px;
  font-size: 14px; letter-spacing: 1px; opacity: 0; transition: .3s; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.backtop {
  position: fixed; right: 18px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer; font-size: 17px;
  box-shadow: 0 4px 14px rgba(168,32,42,.4); opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
}
.backtop.show { opacity: 1; pointer-events: auto; }
