/* ============================================================
   高三高考动员会议资料 · 设计系统
   暖纸底 + 藏青墨 + 金 + 朱红；尊重 reduced-motion
   ============================================================ */

:root {
  /* 色板 */
  --paper: #F6F3EC;
  --paper-2: #EFEAE0;
  --card: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #46505E;
  --ink-faint: #7A8290;
  --navy: #1F3A5F;
  --navy-2: #16304F;
  --navy-ink: #0F2338;
  --gold: #B98A2E;
  --gold-soft: #E8D9B0;
  --red: #BE3E2E;
  --red-soft: #F4DCD6;
  --teal: #2E7D6B;
  --teal-soft: #DCEBE5;
  --line: rgba(31, 58, 95, 0.14);
  --line-strong: rgba(31, 58, 95, 0.28);
  --shadow-1: 0 1px 2px rgba(15, 35, 56, 0.06), 0 2px 8px rgba(15, 35, 56, 0.05);
  --shadow-2: 0 4px 14px rgba(15, 35, 56, 0.10), 0 10px 30px rgba(15, 35, 56, 0.08);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  /* 字号可调：html font-size 由 JS 控制在 15/17/19px */
  --fs: 17px;
  --content-w: 1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--fs);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  /* 细腻纸纹 */
  background-image:
    radial-gradient(rgba(31,58,95,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}

a { color: var(--navy); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(31,58,95,.25); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 字号调节（大字模式） ---------- */
html[data-fs="2"] { --fs: 15px; }
html[data-fs="3"] { --fs: 17px; }
html[data-fs="4"] { --fs: 19px; }
html[data-fs="5"] { --fs: 21px; }

/* ---------- 阅读进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: transparent; z-index: 200; pointer-events: none;
}
.scroll-progress::after {
  content: ""; display: block; height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  width: var(--w, 0%); transition: width .08s linear;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 150;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--content-w); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.brand-mark {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.12rem; color: var(--navy); letter-spacing: .12em;
}
.brand-sub {
  font-size: .62rem; color: var(--gold); letter-spacing: .28em;
  font-weight: 600; margin-top: 1px;
}
.topnav { display: flex; gap: 4px; margin: 0 auto; flex-wrap: wrap; }
.topnav a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem;
  color: var(--ink-soft); transition: all .25s var(--ease);
  white-space: nowrap;
}
.topnav a:hover { color: var(--navy); background: rgba(31,58,95,.07); }
.topnav a.active { color: #fff; background: var(--navy); font-weight: 600; }
.topbar-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.font-btn {
  width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: .82rem;
  font-weight: 600; transition: all .2s;
}
.font-btn:hover { border-color: var(--navy); color: var(--navy); }
.font-btn.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-toggle {
  width: 38px; height: 34px; border-radius: 9px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.search-toggle:hover { transform: scale(1.05); }

/* ---------- 搜索面板 ---------- */
.search-panel {
  border-top: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-2);
  animation: slideDown .3s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
.search-panel-inner { max-width: var(--content-w); margin: 0 auto; padding: 16px 22px; }
.search-input {
  width: 100%; padding: 13px 16px; font-size: 1rem; border-radius: 12px;
  border: 2px solid var(--navy); outline: none; background: var(--paper);
  color: var(--ink);
}
.search-input:focus { box-shadow: 0 0 0 4px rgba(31,58,95,.15); }
.search-results { margin-top: 6px; max-height: 46vh; overflow: auto; }
.search-hit {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; margin-top: 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  transition: all .2s var(--ease);
}
.search-hit:hover, .search-hit:focus-visible { border-color: var(--navy); background: rgba(31,58,95,.04); }
.search-hit .sh-title { font-weight: 600; color: var(--navy); }
.search-hit .sh-title mark { background: var(--gold-soft); color: var(--navy-ink); border-radius: 4px; padding: 0 2px; }
.search-hit .sh-sub { font-size: .85rem; color: var(--ink-faint); margin-top: 2px; }
.search-empty { padding: 18px 8px; color: var(--ink-faint); text-align: center; }
.search-hint { margin-top: 8px; font-size: .8rem; color: var(--ink-faint); }

/* ---------- 主体 ---------- */
#main { max-width: var(--content-w); margin: 0 auto; padding: 0 20px 40px; }

/* ---------- 封面 ---------- */
.hero {
  position: relative;
  margin: 26px 0 46px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 52%, #0F2338 100%);
  color: #F3EEDF;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.hero-deco {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 84% 18%, rgba(185,138,46,.28), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(185,138,46,.16), transparent 34%),
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,.05) 40.2%, transparent 40.6%);
}
.hero-inner { position: relative; padding: clamp(46px, 8vw, 86px) clamp(24px, 6vw, 70px); }
.hero-kicker {
  display: inline-block; font-size: .92rem; letter-spacing: .34em;
  color: var(--gold); border: 1px solid rgba(185,138,46,.55);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 26px;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.32; font-weight: 700; letter-spacing: .04em;
}
.hero-title span { color: var(--gold); }
.hero-meta { margin-top: 26px; font-size: 1.02rem; color: #D8CFB8; letter-spacing: .06em; }
.hero-sub { margin-top: 6px; font-size: .92rem; color: rgba(243,238,223,.72); }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  color: #F3EEDF; padding: 10px 18px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; transition: all .25s var(--ease);
}
.hero-chip:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); transform: translateY(-2px); }
.hero-chip.dark { background: rgba(0,0,0,.22); }

/* ---------- 章节 ---------- */
.part { margin: 60px 0; scroll-margin-top: 96px; }
.part-head {
  display: flex; align-items: center; gap: 20px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 18px; margin-bottom: 28px;
}
.part-no {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
  color: var(--gold); line-height: 1; flex-shrink: 0;
  min-width: 74px; text-align: center;
}
.part-heading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--navy); letter-spacing: .02em; }
.part-heading p { color: var(--ink-faint); margin-top: 2px; font-size: .95rem; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3.4vw, 32px);
  margin-bottom: 26px;
  box-shadow: var(--shadow-1);
  position: relative;
  transition: box-shadow .35s var(--ease);
}
.card > *, .split-2 > *, .insight-grid > *, .view-grid > *, .progress-cols > * { min-width: 0; }
.card:hover { box-shadow: var(--shadow-2); }
.card-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 1.18rem; color: var(--navy-ink);
  margin-bottom: 16px; letter-spacing: .01em;
}
.card-title .tick {
  font-size: .82rem; font-weight: 700; color: var(--gold);
  letter-spacing: .1em; flex-shrink: 0;
  border: 1px solid var(--gold-soft); background: rgba(185,138,46,.08);
  border-radius: 7px; padding: 3px 9px;
}
.card-note { font-size: .88rem; color: var(--ink-faint); margin-top: 12px; line-height: 1.7; }
.sub-title { font-size: 1rem; color: var(--navy); margin: 14px 0 10px; font-weight: 600; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 要点列表 ---------- */
.keypoints { list-style: none; counter-reset: kp; display: grid; gap: 10px; }
.keypoints li {
  counter-increment: kp;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 1rem; transition: all .25s var(--ease);
}
.keypoints li:hover { border-color: var(--navy); transform: translateX(3px); }
.keypoints li::before {
  content: counter(kp, decimal-leading-zero);
  font-family: var(--font-serif); font-weight: 700; color: var(--gold);
  font-size: 1.05rem; flex-shrink: 0; line-height: 1.5;
}

/* ---------- 图表区 ---------- */
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; font-size: .88rem; color: var(--ink-soft); }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.trend-chart { width: 100%; overflow-x: auto; }
.dist-chart, .subj-chart { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trend-chart svg, .dist-chart svg, .subj-chart svg { display: block; min-width: 640px; }
.level-chart { width: 100%; overflow-x: auto; }
.level-chart svg { display: block; min-width: 460px; }
.trend-chart svg text, .dist-chart svg text, .subj-chart svg text, .level-chart svg text {
  font-family: var(--font-body); font-size: .78rem; fill: var(--ink-soft);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--card);
  color: var(--ink-soft); border-radius: 999px; padding: 7px 16px;
  font-size: .9rem; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

/* 标签：mark 色块 */
.mark-sp { color: var(--red); font-weight: 700; }
.mark-ug { color: var(--navy); font-weight: 700; }

/* ---------- 数据表格 ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.data-table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 560px; }
.data-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--navy); color: #fff;
  font-weight: 600; padding: 11px 12px; text-align: left;
  font-size: .88rem; white-space: nowrap;
}
.data-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top; white-space: nowrap;
}
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: rgba(31,58,95,.05); }
.data-table tr:nth-child(even) { background: rgba(246,243,236,.6); }
.data-table tr:nth-child(even):hover { background: rgba(31,58,95,.05); }
.data-table .total-row td { background: var(--gold-soft); font-weight: 700; color: var(--navy-ink); }
.data-table .sp-row td { background: var(--red-soft); font-weight: 600; }
.data-table .ug-row td { background: rgba(31,58,95,.09); font-weight: 600; }
.data-table .ref-row td { background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.data-table.compact { min-width: 380px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .pos { color: var(--teal); font-weight: 700; }
.data-table .neg { color: var(--red); font-weight: 700; }
.data-table .zero { color: var(--ink-faint); }
.data-table .new { color: var(--gold); font-weight: 600; }
.data-table.sortable td:first-child { cursor: default; }

/* 排序栏 */
.sortbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sortbar-label { font-size: .88rem; color: var(--ink-faint); }

/* ---------- 手风琴 ---------- */
.accordion { display: grid; gap: 12px; }
.accordion-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.accordion-item.open { box-shadow: var(--shadow-1); border-color: var(--navy); }
.accordion-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; background: var(--paper); border: none;
  text-align: left; font-size: 1rem; color: var(--navy-ink);
  font-weight: 600; transition: background .2s;
}
.accordion-head:hover { background: var(--paper-2); }
.accordion-head .acc-num {
  font-family: var(--font-serif); color: var(--gold); font-weight: 700;
  flex-shrink: 0; font-size: 1.02rem;
}
.accordion-head .acc-sub { font-size: .8rem; color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
.accordion-head .acc-arrow { margin-left: auto; transition: transform .3s var(--ease); color: var(--navy); flex-shrink: 0; }
.accordion-item.open .acc-arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 16px 18px; border-top: 1px solid var(--line); }
.accordion-item.open .accordion-body { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

.acc-major-list { margin: 8px 0 4px; font-size: .9rem; color: var(--ink-soft); line-height: 1.8; }
.acc-meta { font-size: .82rem; color: var(--ink-faint); margin-bottom: 8px; }
.acc-note { font-size: .86rem; color: var(--ink-faint); margin: 10px 0 6px; }

/* ---------- 散列 / 子选项卡 ---------- */
.sub-tabs, .star-tabs, .gaozhi-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-tab {
  border: 1px solid var(--line-strong); background: var(--card);
  color: var(--ink-soft); border-radius: 10px; padding: 8px 18px;
  font-size: .92rem; transition: all .2s var(--ease); font-weight: 500;
}
.sub-tab:hover { border-color: var(--navy); color: var(--navy); }
.sub-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); font-weight: 700; }

/* ---------- 各省看板 ---------- */
.province-bar-rank { display: grid; gap: 8px; }
.province-row {
  display: grid; grid-template-columns: 52px 1fr 120px 90px;
  align-items: center; gap: 10px; font-size: .9rem;
}
.province-row .pr-rank { color: var(--ink-faint); text-align: right; font-variant-numeric: tabular-nums; }
.province-row .pr-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.province-row .pr-track { height: 18px; background: rgba(31,58,95,.06); border-radius: 6px; position: relative; overflow: hidden; }
.province-row.province-head { margin-bottom: 8px; }
.province-row.province-head .pr-name,
.province-row.province-head .pr-track-label,
.province-row.province-head .pr-val { font-size: .78rem; color: var(--ink-faint); font-weight: 600; }
.province-row .pr-track-label { font-size: .78rem; color: var(--ink-faint); }
.province-row .pr-fill {
  display: block;
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--navy), #3D6BA8);
  width: 0; transition: width 1s var(--ease);
  min-width: 3px;
}
.province-row .pr-fill.grow { background: linear-gradient(90deg, var(--teal), #4FA18C); }
.province-row .pr-fill.shrink { background: linear-gradient(90deg, var(--red), #D96A58); }
.province-row .pr-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 500; }
.province-row .pr-delta { font-size: .8rem; }
.toplist-note { font-size: .82rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- 洞察卡 ---------- */
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.insight-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); }
.insight-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.insight-card h4::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px;
  background: var(--gold); display: inline-block;
}
.insight-card h4.alt::before { background: var(--teal); }
.insight-card li { font-size: .92rem; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.6; list-style: none; position: relative; padding-left: 14px; }
.insight-card li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* ---------- 两栏 ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }

/* ---------- 阶梯（分数对标） ---------- */
.ladder { display: grid; gap: 10px; }
.ladder-step {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card); transition: box-shadow .3s var(--ease);
}
.ladder-step:hover { box-shadow: var(--shadow-1); }
.ladder-head {
  width: 100%; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px;
  background: linear-gradient(90deg, var(--navy), #2A4E7E);
  color: #fff; cursor: pointer; text-align: left; font-weight: 600; font-size: .98rem;
}
.ladder-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ladder-heading strong { line-height: 1.35; }
.ladder-year { font-family: var(--font-serif); color: var(--gold); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.ladder-head-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ladder-head-meta small { color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 500; }
.ladder-state { padding: 4px 8px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .68rem; white-space: nowrap; }
.ladder-arrow { font-size: 1.15rem; transition: transform .24s var(--ease); }
.ladder-step.open .ladder-arrow { transform: rotate(180deg); }
.ladder-body { display: none; padding: 14px 18px; border-top: 1px solid var(--line); }
.ladder-step.open .ladder-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation: fadeUp .3s var(--ease); }
.ladder-guide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 13px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.ladder-guide strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: .88rem; }
.ladder-guide p { color: var(--ink-soft); font-size: .8rem; line-height: 1.65; }
.ladder-guide button { flex-shrink: 0; border: 1px solid var(--navy); padding: 9px 12px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 750; }
.ladder-band { background: var(--paper); border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.ladder-band > span { color: var(--gold); font: 750 .72rem/1.6 var(--font-serif); }
.ladder-band h5 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .95rem; color: var(--red); margin-bottom: 8px; font-weight: 700; }
.ladder-band h5 em { flex-shrink: 0; padding: 3px 6px; background: rgba(185,138,46,.15); color: var(--navy); font: 800 .7rem/1 var(--font-body); font-style: normal; }
.ladder-band p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }
.ladder-band p b { color: var(--navy); font-weight: 700; }
.ladder-band p:empty { display: none; }
.ladder-col-label { font-size: .8rem; color: var(--ink-faint); margin-bottom: 8px; font-weight: 600; letter-spacing: .08em; }
.ladder-disclaimer { grid-column: 1 / -1; padding-top: 2px; color: var(--ink-faint); font-size: .72rem; line-height: 1.65; }

/* ---------- 路径网格 ---------- */
.path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.path-tile {
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--paper); font-size: .93rem; color: var(--ink-soft);
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 10px;
  transition: all .22s var(--ease);
}
.path-tile:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); color: var(--navy-ink); }
.path-tile:focus-visible { outline: 3px solid rgba(185,138,46,.34); outline-offset: 2px; }
.path-tile .pt-no { font-family: var(--font-serif); color: var(--gold); font-weight: 700; flex-shrink: 0; font-size: .88rem; }
.path-tile .pt-title { line-height: 1.5; }
.path-tile .pt-more { grid-column: 2; color: var(--navy); font-size: .68rem; font-weight: 750; opacity: .72; }
.path-tile .pt-more i { font-style: normal; }
.path-tile:hover .pt-no, .path-tile:hover .pt-more { color: var(--gold); opacity: 1; }

/* ---------- 批次 ---------- */
.batch-list { display: grid; gap: 12px; }
.batch-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  background: var(--paper); border-left: 5px solid var(--navy);
}
.batch-item h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.batch-item p { font-size: .92rem; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--gold), var(--navy));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(185,138,46,.18);
}
.timeline-time {
  display: inline-block; font-family: var(--font-serif); font-weight: 700;
  color: var(--navy); background: var(--gold-soft);
  padding: 3px 12px; border-radius: 8px; margin-bottom: 8px; font-size: .92rem;
}
.timeline-events { font-size: .95rem; color: var(--ink); line-height: 1.75; }
.timeline-action {
  margin-top: 8px; font-size: .88rem; color: var(--teal); line-height: 1.7;
  border-left: 3px solid var(--teal); padding-left: 12px;
}

/* ---------- 目标设定 ---------- */
.goal-layout { display: grid; gap: 18px; }
.goal-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; text-align: center; }
.goal-node {
  border: 2px dashed var(--navy); border-radius: 14px; padding: 16px 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.goal-node.final { border-style: solid; background: var(--navy); color: #fff; }
.goal-node.final .gn-label { color: var(--gold); }
.gn-label { font-size: .78rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .06em; }
.gn-val { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--navy); }
.gn-arrow { display: grid; place-items: center; color: var(--gold); font-size: 1.4rem; }
.goal-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.goal-method {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: var(--paper); font-size: .93rem; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start; counter-increment: gm;
}
.goal-method::before {
  content: counter(gm); font-family: var(--font-serif); color: var(--gold);
  font-weight: 700; flex-shrink: 0;
}
.goal-bullets { margin-top: 6px; }
.goal-bullets li { list-style: none; position: relative; padding-left: 24px; font-size: .95rem; margin-bottom: 8px; color: var(--ink-soft); }
.goal-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- 家长群 ---------- */
.wechat-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; }
.wechat-qr {
  aspect-ratio: 1; max-width: 240px; margin: 0 auto; width: 100%;
  border: 1px solid var(--line); border-radius: 14px;
  background: repeating-conic-gradient(var(--paper-2) 0% 25%, var(--card) 0% 50%) 50% / 14px 14px;
  display: grid; place-items: center; position: relative;
}
.wechat-qr .qr-center {
  background: var(--card); padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); text-align: center;
  font-size: .85rem; color: var(--navy); font-weight: 600;
}
.wechat-btns { text-align: center; }
.wechat-btns h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.wechat-btns .wg-name { font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.wechat-btns ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wechat-btns li {
  font-size: .9rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; transition: all .2s;
}
.wechat-btns li::before { content: "✦"; color: var(--gold); }
.wechat-btns li:hover { border-color: var(--gold); }

/* ---------- 学校：统计格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-cell {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px;
  text-align: center; background: linear-gradient(160deg, var(--card), var(--paper));
  transition: transform .25s var(--ease), box-shadow .3s;
}
.stat-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.stat-cell .sc-label { font-size: .85rem; color: var(--ink-faint); margin-bottom: 6px; }
.stat-cell .sc-val { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-cell.hot .sc-val { color: var(--red); }
.stat-cell.gold .sc-val { color: var(--gold); }
.stat-cell.teal .sc-val { color: var(--teal); }
.stat-cell .sc-sub { font-size: .78rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- 单科明星 ---------- */
.star-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
.star-panel .sp-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1rem; color: var(--navy); margin-bottom: 10px; font-weight: 600; }
.star-panel .sp-title span { color: var(--ink-faint); font-size: .7rem; font-weight: 600; }
.star-panel table { white-space: nowrap; }
.star-score-table td.star-score-cell { background: rgba(231,182,74,.1); }
.star-score-badge { display: inline-flex; align-items: baseline; gap: 2px; min-width: 58px; justify-content: center; padding: 4px 10px; background: var(--gold); color: var(--navy); font: 850 1.04rem/1 var(--font-serif); }
.star-score-badge small { font: 700 .62rem/1 var(--font-body); }
.star-score-table tr.best-score-row td { background-color: rgba(231,182,74,.17); }
.star-score-table tr.best-score-row td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.star-score-table tr.best-score-row .star-score-badge { background: var(--red); color: #fff; }

/* ---------- 事件/特性列表 ---------- */
.event-list { list-style: none; display: grid; gap: 10px; }
.event-list li {
  padding: 13px 16px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); font-size: .95rem; line-height: 1.7;
  border-left: 4px solid var(--gold); color: var(--ink-soft);
}
.event-list li:hover { border-left-color: var(--navy); }
.feature-list { list-style: none; counter-reset: fl; display: grid; gap: 10px; }
.feature-list li {
  counter-increment: fl; position: relative; padding: 13px 16px 13px 52px;
  border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  font-size: .95rem; line-height: 1.75; color: var(--ink-soft);
}
.feature-list li::before {
  content: "0" counter(fl); position: absolute; left: 14px; top: 13px;
  font-family: var(--font-serif); font-weight: 700; color: var(--gold);
}
.bullet-list li { list-style: none; position: relative; padding: 8px 0 8px 26px; font-size: .95rem; line-height: 1.75; color: var(--ink-soft); }
.bullet-list li::before { content: "◎"; position: absolute; left: 2px; color: var(--gold); }

/* ---------- 等级考概览 ---------- */
.view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.view-cell { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); transition: all .25s var(--ease); }
.view-cell:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.view-cell h4 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.view-cell h4 .vc-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700;
}
.view-cell p { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 进步名单 ---------- */
.progress-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress-col { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; }
.progress-col h4 { color: var(--navy); margin-bottom: 10px; font-size: .98rem; }
.progress-col h4 span { float: right; color: var(--ink-faint); font-size: .66rem; font-weight: 500; line-height: 1.5; }
.progress-col table { min-width: 480px; }
.progress-cols .pos { color: var(--teal); font-weight: 700; }
.progress-score-table td.progress-score { color: var(--navy); background: rgba(31,58,95,.045); font-weight: 750; }
.progress-score-current strong { display: inline-flex; align-items: baseline; gap: 2px; min-width: 54px; justify-content: center; padding: 4px 8px; background: var(--gold); color: var(--navy); font: 850 1rem/1 var(--font-serif); }
.progress-score-current small, .progress-gain small { font: 700 .6rem/1 var(--font-body); }
.progress-gain { color: var(--teal); background: rgba(46,125,107,.08); white-space: nowrap; }
.progress-gain strong { font: 850 1rem/1 var(--font-serif); }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center; padding: 40px 20px 90px; color: var(--ink-faint);
  border-top: 1px solid var(--line); margin-top: 30px; font-size: .9rem;
}
.footer .footer-sub { margin-top: 6px; font-size: .82rem; letter-spacing: .1em; color: var(--ink-faint); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: var(--shadow-2); opacity: 0; transform: translateY(14px);
  pointer-events: none; transition: all .3s var(--ease);
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--navy-2); }

/* ---------- 底部导航（移动端） ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  display: none;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 2px 8px; font-size: .7rem; color: var(--ink-faint);
  transition: color .2s;
}
.bottom-nav a .bn-ico {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  line-height: 1; display: grid; place-items: center;
  width: 30px; height: 24px; border-radius: 8px; transition: all .25s var(--ease);
}
.bottom-nav a.active { color: var(--navy); font-weight: 600; }
.bottom-nav a.active .bn-ico { background: var(--navy); color: #fff; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .insight-grid, .split-2, .view-grid, .progress-cols { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-tools { margin-left: auto; }
}

@media (max-width: 760px) {
  #main { padding: 0 14px 0; }
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .part { margin: 44px 0; scroll-margin-top: 84px; }
  .part-head { gap: 14px; }
  .part-no { font-size: 2.4rem; min-width: 58px; }
  .card { padding: 18px 16px; }
  .hero { margin: 16px 0 34px; }
  .hero-inner { padding: 40px 22px; }
  .back-top { bottom: 84px; right: 16px; }
  .ladder-body, .ladder-step.open .ladder-body { grid-template-columns: 1fr; }
  .goal-flow { grid-template-columns: 1fr; }
  .gn-arrow { transform: rotate(90deg); }
  .wechat-layout { grid-template-columns: 1fr; }
  .popover-stats { display: none; }
  .timeline { padding-left: 26px; }
  .timeline-item::before { left: -22px; width: 11px; height: 11px; }
  .path-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .data-table { font-size: .86rem; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .back-top { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 触屏：避免 hover 粘滞 */
@media (hover: none) {
  .keypoints li:hover, .path-tile:hover, .view-cell:hover, .stat-cell:hover { transform: none; }
}

/* ============================================================
   2027 家长端重建设计层
   编辑部手册感：深海军蓝 / 考场红 / 米白纸张
   ============================================================ */
:root {
  --paper: #F3EFE5;
  --paper-2: #EAE3D5;
  --card: #FFFEFA;
  --ink: #17212B;
  --ink-soft: #4A5661;
  --ink-faint: #5F6972;
  --navy: #102A43;
  --navy-2: #0A1E30;
  --navy-ink: #081927;
  --gold: #E7B64A;
  --gold-soft: #F3E4BA;
  --red: #D24A3A;
  --red-soft: #F6DDD7;
  --teal: #187A6A;
  --teal-soft: #DCEBE6;
  --line: rgba(16, 42, 67, .13);
  --line-strong: rgba(16, 42, 67, .3);
  --shadow-1: 0 1px 0 rgba(16,42,67,.05), 0 8px 24px rgba(16,42,67,.055);
  --shadow-2: 0 20px 60px rgba(10,30,48,.16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 28px;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "FZSongKeBenXiuKaiS-R-GB", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --content-w: 1160px;
}

[hidden] { display: none !important; }

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(16,42,67,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,42,67,.022) 1px, transparent 1px),
    radial-gradient(circle at 10% 0%, rgba(231,182,74,.1), transparent 28%);
  background-size: 32px 32px, 32px 32px, auto;
  letter-spacing: .008em;
}

body.drawer-open { overflow: hidden; }

button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(210,74,58,.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  transform: translateY(-160%); background: #fff; color: var(--navy);
  padding: 10px 14px; border: 2px solid var(--navy); font-weight: 700;
}
.skip-link:focus { transform: none; }

.topbar {
  background: rgba(243,239,229,.9);
  border-bottom: 1px solid rgba(16,42,67,.14);
  box-shadow: 0 8px 30px rgba(10,30,48,.035);
}
.topbar-inner { min-height: 66px; padding: 9px 24px; gap: 22px; }
.brand-mark { font-family: var(--font-body); font-size: 1rem; font-weight: 850; letter-spacing: .08em; }
.brand-sub { color: var(--red); letter-spacing: .2em; font-size: .59rem; }
.topnav { gap: 0; }
.topnav a { border-radius: 4px; padding: 8px 16px; font-size: .88rem; font-weight: 650; }
.topnav a.active { background: var(--navy); }
.font-btn, .search-toggle { border-radius: 6px; }
.font-btn { background: transparent; }
.action-toggle {
  height: 34px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--red); border-radius: 6px; padding: 0 9px;
  background: var(--red); color: #fff; font-size: .78rem; font-weight: 750;
}
.action-toggle-check { font-size: .9rem; }
.action-count {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: var(--red); font-size: .7rem;
}

.search-panel { background: rgba(255,254,250,.98); }
.search-input { border-radius: 6px; background: #fff; border-color: var(--navy); }
.search-hit { border-radius: 6px; }

#main { max-width: var(--content-w); padding: 0 22px 64px; }

/* 封面：不像网页 Banner，更像一本正在展开的行动手册 */
.hero {
  margin: 28px 0 30px; border-radius: var(--r-lg); isolation: isolate;
  background: linear-gradient(135deg, #102A43 0%, #102A43 62%, #0A1E30 100%);
  box-shadow: 0 22px 70px rgba(10,30,48,.22);
}
.hero::after {
  content: ""; position: absolute; inset: auto -8% -44% 42%; height: 92%;
  border: 1px solid rgba(255,255,255,.1); transform: rotate(-11deg); z-index: -1;
}
.hero-deco { opacity: 1; background: none; overflow: hidden; }
.hero-deco::before {
  content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 9px;
  background: var(--red);
}
.hero-deco::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) .7px, transparent .7px);
  background-size: 7px 7px; opacity: .22; mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-deco span {
  position: absolute; right: -1.4vw; top: -5.5vw; font: 900 clamp(8rem,22vw,17rem)/1 var(--font-body);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); letter-spacing: -.08em;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: clamp(34px,7vw,90px); align-items: end; padding: clamp(48px,7vw,82px) clamp(28px,6vw,72px) 54px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  display: flex; gap: 0; width: fit-content; padding: 0; margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 4px; letter-spacing: .12em;
  color: #fff; font-size: .74rem;
}
.hero-kicker span { padding: 7px 11px; }
.hero-kicker span:first-child { background: var(--red); border-right: 1px solid rgba(255,255,255,.28); }
.hero-title {
  max-width: 720px; font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(2.35rem,5.6vw,4.6rem); line-height: 1.13; letter-spacing: -.02em;
}
.hero-title span { color: #F0C65E; }
.hero-lead { max-width: 660px; margin-top: 24px; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-cta, .secondary-cta {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  border-radius: 5px; padding: 0 19px; font-size: .91rem; font-weight: 750; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.primary-cta { background: var(--red); color: #fff; }
.primary-cta:hover { color: #fff; background: #E25746; transform: translateY(-2px); }
.secondary-cta { background: transparent; color: #fff; border-color: rgba(255,255,255,.36); }
.secondary-cta:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.hero-meta { color: rgba(255,255,255,.48); margin-top: 26px; font-size: .75rem; letter-spacing: .04em; }

.countdown-panel {
  position: relative; z-index: 2; border-top: 3px solid var(--red);
  background: rgba(255,255,255,.075); padding: 24px; color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.countdown-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: rgba(255,255,255,.62); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #79D5A9; box-shadow: 0 0 0 5px rgba(121,213,169,.12); }
.countdown-panel > strong { display: inline-block; margin-top: 12px; font: 850 clamp(4.6rem,9vw,7.4rem)/.95 var(--font-body); letter-spacing: -.07em; }
.countdown-unit { color: #F0C65E; margin-left: 8px; font-weight: 800; }
.countdown-panel > p { margin-top: 15px; color: rgba(255,255,255,.68); font-size: .82rem; line-height: 1.7; }
.countdown-track { height: 3px; margin-top: 25px; background: rgba(255,255,255,.16); }
.countdown-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#F0C65E,var(--red)); transition: width 1s var(--ease); }
.countdown-foot { display: flex; justify-content: space-between; margin-top: 7px; color: rgba(255,255,255,.42); font-size: .62rem; }
.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.12); background: rgba(4,17,28,.18);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 20px clamp(16px,3vw,34px); border-right: 1px solid rgba(255,255,255,.1); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { font-size: 1.45rem; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats small { font-size: .66em; color: #F0C65E; margin-left: 2px; }
.hero-stats span { color: rgba(255,255,255,.52); font-size: .72rem; }

/* 首次阅读入口 */
.quick-start {
  margin: 22px 0 30px; padding: clamp(26px,4vw,46px);
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--red);
  box-shadow: var(--shadow-1); scroll-margin-top: 86px;
}
.quick-start-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: end; margin-bottom: 26px; }
.section-eyebrow { color: var(--red); font-size: .69rem; font-weight: 850; letter-spacing: .16em; margin-bottom: 8px; }
.quick-start-head h2 { color: var(--navy); font: 800 clamp(1.55rem,3.4vw,2.35rem)/1.25 var(--font-serif); }
.quick-start-head > p { color: var(--ink-faint); font-size: .9rem; line-height: 1.75; border-left: 2px solid var(--gold); padding-left: 18px; }
.route-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.route-card {
  position: relative; min-height: 230px; display: flex; flex-direction: column; text-align: left;
  border: 0; border-right: 1px solid var(--line); padding: 22px; background: #FBF9F3;
  color: var(--ink); transition: background .25s, color .25s, transform .25s var(--ease);
}
.route-card:last-child { border-right: 0; }
.route-card:hover, .route-card.active { background: var(--navy); color: #fff; transform: translateY(-4px); z-index: 2; }
.route-no { font-size: .66rem; font-weight: 800; color: var(--red); letter-spacing: .12em; }
.route-icon { margin-left: auto; margin-top: -16px; font-size: 1.5rem; color: var(--gold); }
.route-card strong { margin-top: 38px; font-size: 1.03rem; line-height: 1.55; }
.route-card > span:not(.route-no):not(.route-icon) { margin-top: 9px; color: var(--ink-faint); font-size: .79rem; line-height: 1.6; }
.route-card:hover > span:not(.route-no):not(.route-icon), .route-card.active > span:not(.route-no):not(.route-icon) { color: rgba(255,255,255,.6); }
.route-card em { margin-top: auto; padding-top: 18px; color: var(--teal); font-size: .69rem; font-style: normal; font-weight: 750; }
.route-card:hover em, .route-card.active em { color: #88D8CA; }

.route-result { margin-top: 20px; padding: 22px; background: var(--navy); color: #fff; animation: fadeUp .35s var(--ease); }
.route-result-copy { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.13); }
.route-result-copy p { color: #F0C65E; font-size: .68rem; letter-spacing: .12em; font-weight: 800; }
.route-result-copy h3 { font-family: var(--font-serif); font-size: 1.28rem; text-align: right; }
.route-result ol { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); }
.route-result li { border-right: 1px solid rgba(255,255,255,.13); }
.route-result li:last-child { border-right: 0; }
.route-result button { width: 100%; min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 18px; border: 0; background: transparent; color: #fff; text-align: left; }
.route-result button:hover { background: rgba(255,255,255,.07); }
.route-result button b { color: var(--red); font-size: .7rem; }
.route-result button span { display: flex; flex-direction: column; gap: 5px; }
.route-result button strong { font-size: .86rem; }
.route-result button small { color: rgba(255,255,255,.54); font-size: .7rem; line-height: 1.55; }
.route-result button i { color: #F0C65E; font-size: .68rem; font-style: normal; }

/* 章节地图 */
.reading-map { margin: 26px 0 70px; padding: 24px 28px; border: 1px solid var(--line); background: rgba(255,254,250,.58); }
.reading-map-title { display: flex; gap: 15px; align-items: baseline; }
.reading-map-title span { color: var(--red); font-size: .65rem; letter-spacing: .16em; font-weight: 850; }
.reading-map-title strong { color: var(--navy); font-family: var(--font-serif); }
.reading-map-line { height: 2px; background: var(--line); margin: 19px 0 14px; }
.reading-map-line span { display: block; width: 0; height: 100%; background: var(--red); transition: width .2s linear; }
.reading-map ol { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); }
.reading-map li + li { border-left: 1px solid var(--line); }
.reading-map a { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--ink); }
.reading-map a:hover { color: var(--red); }
.reading-map b { color: var(--gold); font: 800 1.55rem/1 var(--font-serif); }
.reading-map a > span { display: flex; flex-direction: column; font-weight: 750; }
.reading-map small { margin-top: 2px; color: var(--ink-faint); font-size: .66rem; font-weight: 400; }

/* 完整资料：保留密度，但建立更清楚的编辑层级 */
.part { margin: 78px 0; }
.part-head { position: relative; gap: 24px; padding: 26px 0 22px; border: 0; border-top: 6px solid var(--navy); }
.part-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.part-no { min-width: 88px; font-size: 4.2rem; color: var(--red); text-align: left; }
.part-heading h2 { font-family: var(--font-serif); font-size: clamp(1.75rem,3.5vw,2.55rem); color: var(--navy); }
.part-heading p { margin-top: 6px; font-size: .88rem; }
#part4 .part-head { border-top-color: var(--red); }

.card {
  border-radius: 2px; border: 1px solid var(--line); padding: clamp(21px,3.5vw,36px);
  margin-bottom: 22px; box-shadow: 0 1px 0 rgba(16,42,67,.04), 0 10px 28px rgba(16,42,67,.035);
}
.card:hover { box-shadow: 0 1px 0 rgba(16,42,67,.05), 0 16px 40px rgba(16,42,67,.07); }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 6px; height: 54px; background: var(--gold); }
.card-title { font-family: var(--font-serif); font-size: 1.22rem; margin-bottom: 20px; }
.card-title .tick { border: 0; border-radius: 0; background: var(--navy); color: #fff; padding: 4px 8px; font-family: var(--font-body); }
.sub-title { font-family: var(--font-serif); }
.keypoints { grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.keypoints li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 15px 18px; }
.keypoints li:nth-child(odd) { border-right: 1px solid var(--line); }
.keypoints li:nth-last-child(-n+2) { border-bottom: 0; }
.keypoints li::before { color: var(--red); }

.chip, .sub-tab { border-radius: 4px; }
.chip.active { background: var(--navy); }
.sub-tab.active { background: var(--gold); }
.accordion-item, .accordion-head, .batch-item, .path-tile, .insight-card, .view-cell, .stat-cell, .ladder-step, .ladder-band { border-radius: 5px; }
.accordion-head { background: #F7F4EC; }
.path-tile { background: #F8F5ED; }
.path-tile:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.batch-item { background: #F8F5ED; }
.goal-flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; }
.goal-node { border-radius: 5px; }

.table-scroll { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.data-table th { background: var(--navy); }
.data-table td { line-height: 1.55; }
.data-table tbody tr:hover { background: rgba(231,182,74,.13); }
.swipe-hint { display: none; color: var(--ink-faint); font-size: .69rem; margin-top: 7px; text-align: right; }
.table-tools { display: none; }

.school-filter {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  margin-bottom: 14px; padding: 8px 10px 8px 14px; background: #F8F5ED; border: 1px solid var(--line);
}
.school-filter > span:first-child { color: var(--navy); font-size: .76rem; font-weight: 800; }
.school-filter input { width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 7px 11px; color: var(--ink); outline: none; }
.school-filter-count { color: var(--red); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.school-empty { text-align: center; color: var(--ink-faint); padding: 28px !important; }

.privacy-note {
  display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center;
  margin-bottom: 18px; padding: 13px 16px; border: 1px solid rgba(210,74,58,.28); border-left: 5px solid var(--red);
  background: #FFF7F4; color: var(--ink-soft); font-size: .78rem; line-height: 1.65;
}
.privacy-note strong { color: var(--red); white-space: nowrap; }

/* 行动清单抽屉 */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 500; background: rgba(7,20,31,.58);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s;
}
body.drawer-open .drawer-backdrop { opacity: 1; }
.action-drawer {
  position: fixed; z-index: 510; top: 0; right: 0; bottom: 0; width: min(480px,100vw);
  display: flex; flex-direction: column; padding: 30px; background: #FFFDF8;
  box-shadow: -22px 0 70px rgba(7,20,31,.24); transform: translateX(105%); transition: transform .38s var(--ease);
}
body.drawer-open .action-drawer { transform: none; }
.drawer-handle { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head p { color: var(--red); font-size: .65rem; letter-spacing: .14em; font-weight: 850; }
.drawer-head h2 { margin-top: 4px; color: var(--navy); font: 800 1.75rem/1.2 var(--font-serif); }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--navy); font-size: 1.6rem; line-height: 1; }
.action-progress { height: 4px; margin-top: 24px; background: var(--paper-2); }
.action-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--red),var(--gold)); transition: width .5s var(--ease); }
.action-progress-label { margin: 8px 0 16px; color: var(--ink-faint); font-size: .73rem; }
.action-list { overflow-y: auto; display: grid; gap: 8px; padding-right: 3px; }
.action-item {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--line); background: #F8F5ED; cursor: pointer; transition: border-color .2s, background .2s;
}
.action-task { display: contents; cursor: pointer; }
.action-item:hover { border-color: var(--navy); }
.action-item.done { background: var(--teal-soft); border-color: rgba(24,122,106,.28); }
.action-item input { position: absolute; opacity: 0; pointer-events: none; }
.action-checkbox { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line-strong); color: transparent; background: #fff; }
.action-item.done .action-checkbox { background: var(--teal); border-color: var(--teal); color: #fff; }
.action-copy { display: grid; grid-template-columns: auto 1fr; gap: 1px 9px; }
.action-copy small { grid-row: 1 / span 2; color: var(--red); font-weight: 800; font-size: .64rem; }
.action-copy strong { font-size: .84rem; line-height: 1.5; }
.action-copy em { color: var(--ink-faint); font-size: .69rem; line-height: 1.55; font-style: normal; }
.action-item.done .action-copy strong { text-decoration: line-through; color: var(--ink-soft); }
.action-item > button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--navy); font-weight: 800; }
.drawer-privacy { margin-top: 16px; color: var(--ink-faint); font-size: .68rem; line-height: 1.55; }
.drawer-reset { margin-top: 10px; border: 0; background: transparent; color: var(--red); font-size: .72rem; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* 升学路径官方说明弹窗 */
.path-modal-backdrop {
  position: fixed; inset: 0; z-index: 540; background: rgba(7,20,31,.66);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .26s;
}
body.path-modal-open { overflow: hidden; }
body.path-modal-open .path-modal-backdrop { opacity: 1; }
.path-modal {
  position: fixed; z-index: 550; left: 50%; top: 50%; width: min(680px,calc(100vw - 32px)); max-height: min(84vh,760px);
  overflow: auto; padding: 28px; background: #FFFDF8; border-top: 5px solid var(--gold);
  box-shadow: 0 28px 90px rgba(7,20,31,.34); transform: translate(-50%,calc(-50% + 24px)) scale(.98); opacity: 0;
  transition: transform .3s var(--ease), opacity .22s;
}
body.path-modal-open .path-modal { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.path-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.path-modal-head p { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: .66rem; letter-spacing: .08em; }
#pathModalNo { color: var(--red); font-weight: 850; }
#pathModalCategory { padding: 3px 7px; background: var(--gold-soft); color: var(--navy); font-weight: 750; letter-spacing: 0; }
.path-modal-head h2 { margin-top: 8px; color: var(--navy); font: 800 1.72rem/1.28 var(--font-serif); }
.path-modal-close { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line); background: transparent; color: var(--navy); font-size: 1.6rem; line-height: 1; }
.path-modal-body { padding-top: 20px; }
.path-modal-summary { color: var(--ink); font-size: 1rem; line-height: 1.85; }
.path-modal-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.path-modal-points section { padding: 15px; background: #F8F5ED; border-left: 4px solid var(--navy); }
.path-modal-points section:last-child { border-left-color: var(--red); }
.path-modal-points span, .path-modal-source > p { display: block; margin-bottom: 5px; color: var(--ink-faint); font-size: .66rem; font-weight: 800; letter-spacing: .08em; }
.path-modal-points p { color: var(--ink-soft); font-size: .82rem; line-height: 1.7; }
.path-modal-source { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); }
.path-modal-source > p { margin: 0; }
.path-modal-source a { color: var(--navy); font-size: .78rem; font-weight: 800; text-align: right; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.path-modal-policy { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink-faint); font-size: .7rem; line-height: 1.65; }
.toast {
  position: fixed; z-index: 700; left: 50%; bottom: 30px; transform: translate(-50%,20px);
  padding: 11px 17px; background: var(--navy); color: #fff; font-size: .78rem;
  box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

.footer { font-size: .78rem; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr minmax(250px,.58fr); gap: 30px; }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-card:nth-child(2) { border-right: 0; }
  .route-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .keypoints { grid-template-columns: 1fr; }
  .keypoints li:nth-child(odd) { border-right: 0; }
  .keypoints li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --fs: 16px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); background-size: 24px 24px,24px 24px,auto; }
  #main { padding: 0 12px 12px; }
  .topbar-inner { min-height: 58px; padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .brand-mark { font-size: .88rem; letter-spacing: .04em; }
  .brand-sub { font-size: .52rem; }
  .topbar-tools { gap: 5px; }
  #fontSmall, #fontNormal { display: none; }
  .font-btn, .search-toggle { width: 34px; height: 34px; }
  .action-toggle { width: 34px; padding: 0; justify-content: center; }
  .action-toggle-label, .action-toggle .action-count { display: none; }
  .search-panel-inner { padding: 12px; }
  .search-input { font-size: 16px; }

  .hero { margin: 12px 0 18px; border-radius: 16px; }
  .hero-inner { display: block; padding: 36px 20px 26px; }
  .hero-deco span { top: 1rem; right: -1rem; font-size: 7.5rem; }
  .hero-kicker { margin-bottom: 24px; font-size: .62rem; }
  .hero-title { font-size: clamp(2.2rem,11vw,3.15rem); line-height: 1.16; }
  .hero-lead { margin-top: 18px; font-size: .9rem; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
  .primary-cta, .secondary-cta { width: 100%; }
  .hero-meta { line-height: 1.6; }
  .countdown-panel { margin-top: 28px; padding: 19px; }
  .countdown-panel > strong { font-size: 5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div { padding: 15px 16px; }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-stats strong { font-size: 1.22rem; }
  .hero-stats span { font-size: .65rem; }

  .quick-start { margin: 16px 0; padding: 24px 16px; border-top-width: 4px; }
  .quick-start-head { grid-template-columns: 1fr; gap: 13px; }
  .quick-start-head > p { font-size: .81rem; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 3px 12px; padding: 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-card:last-child { border-bottom: 0; }
  .route-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .route-card:hover, .route-card.active { transform: none; }
  .route-icon { grid-column: 3; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .route-card strong { grid-column: 2; margin-top: 0; font-size: .92rem; }
  .route-card > span:not(.route-no):not(.route-icon) { grid-column: 2; margin-top: 2px; font-size: .71rem; }
  .route-card em { grid-column: 2; padding-top: 5px; }
  .route-result { padding: 18px 14px; }
  .route-result-copy { display: block; }
  .route-result-copy h3 { margin-top: 8px; text-align: left; font-size: 1.08rem; }
  .route-result ol { grid-template-columns: 1fr; }
  .route-result li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .route-result li:last-child { border-bottom: 0; }
  .route-result button { min-height: 88px; padding: 13px 5px; }

  .reading-map { margin: 16px 0 52px; padding: 18px 15px; }
  .reading-map-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .reading-map ol { grid-template-columns: 1fr 1fr; }
  .reading-map li + li { border-left: 0; }
  .reading-map li:nth-child(even) { border-left: 1px solid var(--line); }
  .reading-map li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reading-map a { padding: 12px 9px; }
  .reading-map b { font-size: 1.25rem; }

  .part { margin: 52px 0; scroll-margin-top: 76px; }
  .part-head { gap: 13px; padding: 18px 0 16px; border-top-width: 4px; }
  .part-no { min-width: 48px; font-size: 2.7rem; }
  .part-heading h2 { font-size: 1.45rem; line-height: 1.3; }
  .part-heading p { font-size: .73rem; line-height: 1.55; }
  .card { margin-bottom: 16px; padding: 19px 14px 18px; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card::before { width: 4px; height: 42px; }
  .card-title { align-items: flex-start; font-size: 1.08rem; line-height: 1.45; }
  .card-title .tick { margin-top: 1px; }

  .keypoints { display: block; }
  .keypoints li { font-size: .9rem; padding: 13px 12px; }
  .keypoints li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .chart-legend { gap: 8px 13px; font-size: .72rem; }
  .trend-chart svg, .dist-chart svg, .subj-chart svg { min-width: 560px; }
  .goal-flow { grid-template-columns: 1fr; }
  .gn-arrow { transform: rotate(90deg); }

  .table-tools { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 7px; }
  .table-tools > span { color: var(--ink-faint); font-size: .68rem; }
  .table-tools > div { display: flex; border: 1px solid var(--line); }
  .table-tools button { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink-faint); padding: 5px 10px; font-size: .67rem; }
  .table-tools button:last-child { border-right: 0; }
  .table-tools button.active { background: var(--navy); color: #fff; }
  .swipe-hint { display: block; }

  .adaptive-table[data-table-mode="cards"] { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .adaptive-table[data-table-mode="cards"] table,
  .adaptive-table[data-table-mode="cards"] tbody,
  .adaptive-table[data-table-mode="cards"] tr,
  .adaptive-table[data-table-mode="cards"] td { display: block; width: 100%; min-width: 0; }
  .adaptive-table[data-table-mode="cards"] thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .adaptive-table[data-table-mode="cards"] tbody { display: grid; gap: 9px; }
  .adaptive-table[data-table-mode="cards"] tbody tr {
    border: 1px solid var(--line); border-left: 4px solid var(--navy); background: #FBF9F3; padding: 7px 10px;
  }
  .adaptive-table[data-table-mode="cards"] tbody tr:nth-child(even) { background: #F5F1E7; }
  .adaptive-table[data-table-mode="cards"] tbody td {
    display: grid; grid-template-columns: minmax(88px,.8fr) minmax(0,1.2fr); gap: 9px;
    padding: 7px 3px; border-bottom: 1px dashed var(--line); white-space: normal; text-align: left;
  }
  .adaptive-table[data-table-mode="cards"] tbody td:last-child { border-bottom: 0; }
  .adaptive-table[data-table-mode="cards"] tbody td::before { content: attr(data-label); color: var(--ink-faint); font-size: .7rem; font-weight: 650; }
  .adaptive-table[data-table-mode="cards"] tbody tr.total-row { border-left-color: var(--gold); }
  .adaptive-table[data-table-mode="cards"] tbody tr.sp-row { border-left-color: var(--red); }
  .adaptive-table[data-table-mode="cards"] tbody tr.ug-row { border-left-color: var(--navy); }

  .province-row { grid-template-columns: 28px minmax(76px,.8fr) minmax(90px,1.2fr) 76px; gap: 6px; font-size: .76rem; }
  .school-filter { grid-template-columns: 1fr auto; gap: 6px; }
  .school-filter > span:first-child { display: none; }
  .school-filter input { border-left: 0; padding-left: 3px; font-size: 16px; }
  .privacy-note { grid-template-columns: 1fr; gap: 3px; }

  .ladder-head { align-items: flex-start; padding: 13px 12px; }
  .ladder-heading { display: grid; gap: 4px; }
  .ladder-head-meta small { display: none; }
  .ladder-state { padding: 3px 6px; }
  .ladder-step.open .ladder-body { grid-template-columns: 1fr; padding: 12px; }
  .ladder-guide, .ladder-disclaimer { grid-column: 1; }
  .ladder-guide { display: grid; gap: 10px; }
  .ladder-guide button { width: 100%; }
  .ladder-band { grid-template-columns: 22px 1fr; padding: 11px; }
  .ladder-band h5 { font-size: .88rem; }
  .ladder-band h5 { align-items: flex-start; }
  .ladder-band h5 em { font-size: .64rem; }
  .ladder-band p { font-size: .82rem; }

  .path-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .path-tile { padding: 11px 10px; font-size: .82rem; }
  .path-tile .pt-more { font-size: .62rem; }

  .progress-col { padding: 12px; }
  .progress-col h4 span { float: none; display: block; margin-top: 3px; }
  .progress-col .table-scroll { min-width: 0; }
  .progress-col table { min-width: 0; }
  .adaptive-table[data-table-mode="cards"] td.progress-score-current strong,
  .adaptive-table[data-table-mode="cards"] .star-score-badge { justify-self: start; }

  .path-modal {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88dvh; padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
    border-top-width: 4px; transform: translateY(105%); opacity: 1;
  }
  body.path-modal-open .path-modal { transform: translateY(0); }
  .path-modal-head h2 { font-size: 1.42rem; }
  .path-modal-points { grid-template-columns: 1fr; }
  .path-modal-source { align-items: flex-start; }

  .action-drawer {
    top: auto; width: 100%; height: min(88dvh,760px); max-height: none; overflow: hidden;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0; transform: translateY(105%);
  }
  .drawer-handle { display: block; width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: var(--line-strong); }
  .drawer-head h2 { font-size: 1.45rem; }
  .drawer-close { width: 34px; height: 34px; }
  .action-list { flex: 1 1 auto; min-height: 0; max-height: none; }
  .action-item { padding: 12px 10px; }
  .action-copy strong { font-size: .79rem; }
  .action-copy em { font-size: .65rem; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); white-space: nowrap; }

  .bottom-nav { min-height: 62px; background: rgba(255,254,250,.97); }
  .bottom-nav a, .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 7px 2px 6px; border: 0; background: transparent; color: var(--ink-faint); font-size: .65rem;
  }
  .bottom-nav a .bn-ico, .bottom-nav button .bn-ico { font-family: var(--font-body); font-size: 1rem; width: 30px; height: 24px; border-radius: 4px; }
  .bottom-nav a.active { color: var(--navy); }
  .bottom-nav a.active .bn-ico { background: var(--navy); }
  .bottom-nav button { position: relative; color: var(--red); }
  .bottom-nav button .bn-ico { background: var(--red); color: #fff; display: grid; place-items: center; }
  .bottom-nav button i { position: absolute; top: 4px; left: calc(50% + 8px); display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--gold); color: var(--navy); font-size: .58rem; font-style: normal; font-weight: 850; }
  .back-top { bottom: 78px; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 2.22rem; }
  .hero-kicker span { padding: 6px 8px; }
  .reading-map a { gap: 8px; }
  .action-copy { grid-template-columns: 1fr; }
  .action-copy small { display: none; }
}

.wechat-qr.unavailable { background: #F7F3E9; border-style: dashed; }
.wechat-qr.unavailable .qr-center { background: transparent; border: 0; line-height: 1.7; }
.wechat-qr.unavailable .qr-center strong {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px;
  background: var(--navy); color: #fff; font: 800 1.4rem/1 var(--font-serif);
}
