/* ===== 越山海，见文脉 · 样式（v3：全页宣纸底 + 连续场景） ===== */
@font-face { font-family: "NSerif"; font-weight: 400; src: url(../fonts/NotoSerifSC-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "NSerif"; font-weight: 900; src: url(../fonts/NotoSerifSC-Black.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "ZQFS"; font-weight: 400; src: url(../fonts/ZhuqueFangsong.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #F4EBD8; --paper-hi: #FBF6EA; --paper-2: #EBDDC0; --paper-3: #D9C7A3;
  --ink: #2E1D0D; --ink-2: #4A3722; --ink-3: #7B6547;
  --brown: #734C28; --brown-d: #492B13; --ochre: #A58765;
  --gold: #B88A3E; --gold-hi: #E3C688; --gold-d: #8F6A2A;
  --jade: #2F5D4A; --jade-d: #1E4033; --jade-l: #5E9483;
  --sun: #F2B272; --cinnabar: #A8432A;
  --out: #B8672A; --in: #2F7468;
  --serif: "NSerif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --fs: "ZQFS", "FangSong", "STFangsong", "NSerif", serif;
  --ts: clamp(64px, min(12.6vw, 24vh), 300px);      /* 封面标题字号 */
  --padx: 6.2vw;
  --k: 1;                                            /* 组件随屏幕等比缩放的系数，main.js 按窗口大小设置（1440×900 时为 1） */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink-2); font-family: var(--serif); font-size: 18px; line-height: 1.95; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
main { position: relative; z-index: 1; }

/* ---------- 固定背景 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-paper { position: absolute; inset: 0; background-color: var(--paper); background-image: url(../img/grain.png); }
.bg-paper.has-img { background-size: cover; background-position: center; }
.bg-wash { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.bg-wash.w1 { left: -22vw; bottom: -34vh; width: 76vw; height: 78vh; background: radial-gradient(closest-side, rgba(191,144,91,.42), rgba(191,144,91,0)); }
.bg-wash.w2 { right: -20vw; top: -30vh; width: 66vw; height: 74vh; background: radial-gradient(closest-side, rgba(94,148,131,.26), rgba(94,148,131,0)); }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-drift { position: absolute; inset: 0; }
.bg-drift .cloud { opacity: .36; }
.bg-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(150,110,55,0) 55%, rgba(150,110,55,.17) 100%); }

/* ---------- 进度条、章节导航 ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brown), var(--gold-hi)); }
.chapnav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.chapnav a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--brown); transition: background .3s, transform .3s; }
.chapnav a.on { background: var(--brown); transform: scale(1.3); }
.chapnav a span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 3px; background: rgba(46,29,13,.9); color: var(--paper-hi); opacity: 0; pointer-events: none; transition: opacity .2s; }
.chapnav a:hover span { opacity: 1; }

/* ---------- 半透明文字框 ---------- */
.glass { position: relative; border-radius: 14px; border: 1px solid rgba(184,138,62,.5);
  background: linear-gradient(180deg, rgba(255,253,246,.74), rgba(251,245,232,.6));
  -webkit-backdrop-filter: blur(10px) saturate(1.08); backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 20px 44px rgba(110,75,30,.13), inset 0 1px 0 rgba(255,255,255,.85); }
.glass::before, .glass::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); pointer-events: none; }
.glass::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.glass::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* =====================================================================
   连续场景（宽屏 cine 模式）
   ===================================================================== */
.stage { position: relative; }
.cine .stage { height: 100vh; min-height: 620px; overflow: hidden; }
.cine .sc { position: absolute; inset: 0; }
.cine .sc-face, .cine .sc-bub, .cine .sc-jour, .cine .sc-arch { visibility: hidden; opacity: 0; pointer-events: none; }
.cine .sc-face > *, .cine .sc-bub > *, .cine .sc-jour > *, .cine .sc-arch > * { pointer-events: auto; }
.sc-cover { z-index: 1; }
.sc-face { z-index: 4; } .sc-bub { z-index: 5; } .sc-jour { z-index: 5; } .sc-arch { z-index: 5; }

/* ---------- 封面 ---------- */
.sc-cover { overflow: hidden; }
.cv-art { position: absolute; inset: 0; overflow: hidden; }
.cv-layer { position: absolute; left: 0; top: 0; will-change: transform; }
.cv-layer > svg, .cv-layer > img { display: block; width: 100%; height: 100%; }
.cv-clouds, .cv-cranes, .cv-plum { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; will-change: transform; }
.cloud-in { animation: drift 16s ease-in-out infinite alternate; }
.cloud-in > svg, .cloud-in > img { display: block; width: 100%; height: auto; }
@keyframes drift { from { transform: translate(-1.4vw, 0); } to { transform: translate(1.4vw, -.5vh); } }
.crane { position: absolute; will-change: transform; }
.crane > svg, .crane > img { display: block; width: 100%; height: auto; }
.crane .wing { transform-box: fill-box; animation: flap 1.7s ease-in-out infinite; }
.crane .wing.near { transform-origin: 85% 95%; }
.crane .wing.far { transform-origin: 30% 95%; animation-delay: -.12s; }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.22); } }
.plum { position: absolute; right: -2.5vw; bottom: -5vh; width: min(18vw, 34vh); transform-origin: 100% 100%; animation: sway 9s ease-in-out infinite; }
.plum img { display: block; width: 100%; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.6deg); } }

.cv-text { position: absolute; left: var(--padx); top: 10.5vh; z-index: 2; }
.title { margin: 0; font-weight: 900; font-size: var(--ts); line-height: 1.12; letter-spacing: .02em; color: var(--ink); filter: url(#rough); }
.safari .title { filter: none; }
.title .tl { display: block; white-space: nowrap; }
.title .ch { display: inline-block; background: linear-gradient(178deg, #1d1107 0%, #3a2311 58%, #6c4621 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.title .cm { margin: 0 -.5em 0 -.08em; }
.subtitle { display: flex; align-items: center; gap: .7em; margin: 2.4vh 0 0 .08em; font-weight: 900; font-size: clamp(17px, min(2.05vw, 3.6vh), 46px); letter-spacing: .24em; color: var(--brown-d); line-height: 1.3; }
.subtitle .dash { flex: none; width: 2.4em; height: 3px; background: var(--brown-d); }
.cue { position: absolute; left: 0; right: 0; bottom: 2.6vh; z-index: 6; font-size: 13.5px; font-weight: 900; letter-spacing: .35em; color: var(--brown-d); text-shadow: 0 0 6px #FBF6EA, 0 0 12px #FBF6EA, 0 0 18px #FBF6EA; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding-left: .35em; pointer-events: none; }
.cine .sc-cover { pointer-events: none; }
.cine .sc-cover .cloud, .cine .sc-cover .crane { pointer-events: auto; }
.crane img { transition: opacity .06s linear; }
.cue i { width: 2px; height: 26px; background: linear-gradient(var(--brown-d), rgba(73,43,19,0)); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 主角：人头像 ---------- */
.actor { position: absolute; left: 0; top: 0; height: 86vh; aspect-ratio: 584 / 1070; z-index: 3; pointer-events: none; will-change: transform; }
.cine .actor { visibility: hidden; }
.halo { position: absolute; left: 50%; top: 39%; width: 138%; aspect-ratio: 1; margin: -69% 0 0 -69%; border-radius: 50%;
  background: radial-gradient(closest-side, #FAD6A2 0%, #F5BF80 68%, #F1AE6A 97%, rgba(241,174,106,0) 100%); box-shadow: 0 0 9vh 3vh rgba(244,188,124,.3); }
.halo-ring { position: absolute; left: 50%; top: 50%; width: 128%; height: 128%; margin: -64% 0 0 -64%; animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actor-in { position: absolute; inset: 0; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.1vh); } }
.a-base, .a-lit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.a-base { filter: drop-shadow(0 2.6vh 2.2vh rgba(73,43,19,.4)); pointer-events: auto; }
.a-lit { pointer-events: none; filter: brightness(1.34) saturate(1.2);
  -webkit-mask-image: radial-gradient(circle 17vh at var(--mx, 40%) var(--my, 30%), rgba(0,0,0,.95) 0%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle 17vh at var(--mx, 40%) var(--my, 30%), rgba(0,0,0,.95) 0%, rgba(0,0,0,0) 100%); }
.hot { position: absolute; width: calc(22px * var(--k)); height: calc(22px * var(--k)); margin: calc(-11px * var(--k)) 0 0 calc(-11px * var(--k)); padding: 0; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; z-index: 2; pointer-events: auto;
  box-shadow: 0 0 0 1px rgba(73,43,19,.45), 0 2px 8px rgba(0,0,0,.3); opacity: 0; }
.cine .hot { pointer-events: none; }
.on-cover .a-base { cursor: pointer; }
.hot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.hot span { position: absolute; left: calc(30px * var(--k)); top: 50%; transform: translateY(-50%) translateX(-4px); white-space: nowrap; font-size: calc(15px * var(--k)); font-weight: 900; line-height: 1; color: var(--paper-hi); background: var(--jade-d);
  padding: 7px 11px; border-radius: 3px; box-shadow: 0 6px 16px rgba(0,0,0,.3); opacity: 0; transition: .25s; pointer-events: none; }
.hot.left span { left: auto; right: calc(30px * var(--k)); transform: translateY(-50%) translateX(4px); }
.hot:hover span, .hot.on span { opacity: 1; transform: translateY(-50%); }
.hot.on { background: var(--gold-hi); }

/* ---------- 引言正文 ---------- */
.fc-h { margin: 0; font-weight: 900; font-size: clamp(30px, min(3.7vw, 6.6vh), 84px); line-height: 1.28; letter-spacing: .04em; color: var(--ink); }
.fc-h::after { content: ""; display: block; width: 3.2em; height: 3px; margin-top: .5em; background: linear-gradient(90deg, var(--brown-d), var(--gold-hi)); }
.fc-panel .lead { margin: 0 0 .6em; text-indent: 0; font-weight: 900; font-size: clamp(18px, min(1.62vw, 2.9vh), 36px); line-height: 1.7; color: var(--ink); text-wrap: balance; }
.fc-panel p { margin: 0; text-indent: 2em; font-size: clamp(16px, min(1.38vw, 2.45vh), 31px); line-height: 2.05; color: var(--ink-2); }
.fc-emph { margin: 0; font-weight: 900; font-size: clamp(20px, min(2vw, 3.6vh), 44px); line-height: 1.6; color: var(--brown-d); }
.fc-emph span { padding-bottom: .22em; background: linear-gradient(90deg, var(--gold), var(--gold-hi)) left bottom / 100% 3px no-repeat; }
.hotword { border-bottom: 1px dashed rgba(115,76,40,.6); cursor: pointer; transition: color .25s, background .25s; }
.hotword.on { color: var(--jade-d); background: rgba(227,198,136,.5); }
.m-head { display: none; }
.cine .fc-h { position: absolute; left: var(--padx); top: 10vh; }
.cine .fc-panel { position: absolute; left: var(--padx); top: 32vh; width: 45vw; padding: 3.2vh 2.6vw 3.4vh; }
.cine .fc-emph { position: absolute; left: var(--padx); top: 77vh; width: 48vw; }

/* ---------- 气泡 ---------- */
.bubble-field { position: absolute; inset: 0; }
.bubble-slot { position: absolute; }
.bubble-slot .bubble, .hero-wrap .bubble { animation: bob 5.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bubble { position: relative; display: flex; align-items: center; gap: calc(12px * var(--k)); padding: calc(9px * var(--k)) calc(22px * var(--k)) calc(9px * var(--k)) calc(9px * var(--k)); border-radius: 999px; text-align: left; cursor: default;
  background: linear-gradient(160deg, #3D735C 0%, #2B5846 55%, #1E4033 100%); border: 1.5px solid #C9A257; color: #F8F0DE; font-family: var(--serif); font-weight: 900; font-size: calc(15.5px * var(--k)); line-height: 1.5;
  box-shadow: 0 12px 24px rgba(70,45,15,.28), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -6px 12px rgba(0,0,0,.2); }
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 34px; width: 14px; height: 14px; background: #234B3B; border-right: 1.5px solid #C9A257; border-bottom: 1.5px solid #C9A257; transform: rotate(45deg) skew(8deg, 8deg); border-bottom-right-radius: 3px; }
.bubble.tail-r::after { left: auto; right: 34px; }
.bubble img { width: calc(56px * var(--k)); height: calc(56px * var(--k)); border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #E3C688; box-shadow: 0 0 0 3px rgba(255,255,255,.16); background: #2a2017; }
.bubble .t { max-width: 12.5em; text-wrap: balance; }
.bubble.sm { font-size: calc(14px * var(--k)); } .bubble.sm img { width: calc(48px * var(--k)); height: calc(48px * var(--k)); }
.bubble.lg { font-size: calc(17px * var(--k)); } .bubble.lg img { width: calc(64px * var(--k)); height: calc(64px * var(--k)); }
.bubble.hero { font-size: calc(27px * var(--k)); padding: calc(14px * var(--k)) calc(36px * var(--k)) calc(14px * var(--k)) calc(14px * var(--k)); gap: calc(18px * var(--k)); border: 2.5px solid #C9A257; cursor: pointer; line-height: 1.45; color: var(--ink);
  background: radial-gradient(130% 150% at 28% 18%, #FFFDF6 0%, #F8EEDC 45%, #EBD9B9 100%); box-shadow: 0 0 0 5px rgba(47,93,74,.9), 0 0 0 6.5px #C9A257, 0 20px 40px rgba(70,45,15,.35), inset 0 2px 5px rgba(255,255,255,.95); }
.bubble.hero img { width: calc(102px * var(--k)); height: calc(102px * var(--k)); border: 2.5px solid #C9A257; box-shadow: none; }
.bubble.hero::after { left: 50%; margin-left: -8px; bottom: -14px; width: 16px; height: 16px; background: var(--jade); border-color: #C9A257; }
.hero-wrap { position: absolute; left: 0; right: 0; bottom: 9.5vh; z-index: 4; display: flex; justify-content: center; pointer-events: none !important; }
.hero-box { position: relative; pointer-events: auto; }
.hero-wrap .bubble { position: relative; }
.hero-ring { position: absolute; inset: -14px; border-radius: 999px; border: 2px solid rgba(184,138,62,.9); animation: ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.1, 1.32); opacity: 0; } }
.click-hint { position: absolute; right: calc(100% + 36px); top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; font-weight: 900; font-size: calc(25px * var(--k)); color: var(--brown-d); border: 0; background: none; cursor: pointer; padding: 0; }
.click-hint span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.click-hint b { display: inline-block; font-weight: 400; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.bubble-tip { position: absolute; z-index: 10; width: calc(300px * var(--k)); padding: calc(12px * var(--k)) calc(14px * var(--k)); border-radius: 10px; background: rgba(255,252,244,.97); color: var(--ink-2); border: 1px solid var(--gold);
  font-size: calc(13.5px * var(--k)); line-height: 1.7; box-shadow: 0 14px 30px rgba(80,55,20,.25); pointer-events: none !important; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.bubble-tip.on { opacity: 1; transform: none; }
.bubble-tip b { display: block; font-size: calc(16px * var(--k)); color: var(--jade-d); margin-bottom: 2px; }
.bubble-tip .era { color: var(--ink-3); font-size: calc(12.5px * var(--k)); margin-left: .5em; font-weight: 400; }
.bubble-tip .rt { color: var(--ink); font-weight: 900; }
.bubble-tip .nt { color: var(--gold-d); font-size: calc(12.5px * var(--k)); }

/* ---------- 出差行程 ---------- */
.jr-head { display: flex; align-items: center; gap: 18px; }
.luggage { position: relative; display: inline-flex; align-items: center; gap: calc(10px * var(--k)); padding: calc(8px * var(--k)) calc(18px * var(--k)) calc(8px * var(--k)) calc(28px * var(--k)); background: linear-gradient(#FFFBF0, #EFE0C2); color: var(--ink); flex: none;
  font-weight: 900; font-size: calc(19px * var(--k)); letter-spacing: .12em; border-radius: 6px; box-shadow: 0 6px 14px rgba(80,55,20,.22); transform: rotate(-3deg); border: 1.5px solid #C9A257; }
.luggage::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px #C9A257; }
.luggage svg { width: calc(22px * var(--k)); height: calc(22px * var(--k)); color: var(--jade); }
.jr-head p { margin: 0; font-size: calc(16px * var(--k)); color: var(--ink-2); letter-spacing: .06em; }
.jr-head em { font-style: normal; font-family: var(--fs); color: var(--ink-3); font-size: calc(15.5px * var(--k)); }
.route { position: relative; height: calc(300px * var(--k)); }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-svg .rope { fill: none; stroke: rgba(115,76,40,.5); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.route-svg .rope-done { fill: none; stroke: url(#ropeGrad); stroke-width: 3.4; stroke-linecap: round; }
.stop { position: absolute; top: 0; width: 0; height: 100%; }
.pin { position: absolute; left: calc(-14px * var(--k)); width: calc(28px * var(--k)); height: calc(36px * var(--k)); transition: transform .35s; }
.stop .stem { position: absolute; left: -1px; width: 2px; background: linear-gradient(#B88A3E, rgba(184,138,62,.35)); }
.card { position: absolute; left: 50%; width: calc(170px * var(--k)); transform: translateX(-50%); text-align: center; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(#FFFBF0, #F1E3C7); border: 2px solid #C9A257; box-shadow: 0 10px 22px rgba(80,55,20,.2), inset 0 0 0 3px rgba(255,255,255,.4);
  transition: transform .35s, box-shadow .35s, opacity .35s, filter .35s; opacity: .55; filter: saturate(.5); }
.card .yr { display: block; padding: calc(6px * var(--k)) 4px calc(5px * var(--k)); background: linear-gradient(#35664F, #1F4334); color: #F8F0DE; font-weight: 900; font-size: calc(15px * var(--k)); letter-spacing: .02em; border-bottom: 1.5px solid #C9A257; }
.card .ct { display: block; padding: calc(9px * var(--k)) 4px calc(4px * var(--k)); color: var(--ink); font-weight: 900; font-size: calc(23px * var(--k)); letter-spacing: .08em; line-height: 1.3; }
.card .orn { display: block; width: calc(46px * var(--k)); height: calc(12px * var(--k)); margin: 2px auto calc(8px * var(--k)); }
.stop.done .card { opacity: 1; filter: none; }
.stop.now .card { opacity: 1; filter: none; transform: translateX(-50%) translateY(-6px) scale(1.07); box-shadow: 0 18px 34px rgba(80,55,20,.32), 0 0 0 4px rgba(201,162,87,.4); }
.stop.now .pin { transform: translateY(-6px) scale(1.15); }
.pop { position: absolute; left: 50%; width: calc(256px * var(--k)); transform: translate(-50%, 8px); padding: calc(12px * var(--k)) calc(14px * var(--k)); border-radius: 10px; background: rgba(255,252,244,.98); color: var(--ink-2);
  border: 1px solid #C9A257; font-size: calc(13.5px * var(--k)); line-height: 1.7; box-shadow: 0 16px 34px rgba(80,55,20,.3); opacity: 0; pointer-events: none; transition: .22s; z-index: 6; text-align: left; }
.pop b { display: block; font-size: calc(15.5px * var(--k)); color: var(--jade-d); }
.pop .km { color: var(--gold-d); font-size: calc(12.5px * var(--k)); }
.stop:hover .pop, .stop.open .pop { opacity: 1; transform: translate(-50%, 0); }
.stop:hover { z-index: 7; }
.traveler { position: absolute; left: 0; top: 0; width: calc(64px * var(--k)); height: calc(64px * var(--k)); margin: calc(-32px * var(--k)) 0 0 calc(-32px * var(--k)); z-index: 5; pointer-events: none; }
.traveler-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #C9A257; box-shadow: 0 0 0 5px rgba(242,178,114,.45), 0 10px 20px rgba(80,55,20,.4); background: #111; }
.traveler img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr-lines { list-style: none; margin: 0; padding: 0; font-size: calc(19.5px * var(--k)); line-height: 1.9; }
.jr-lines li { position: relative; padding-left: 1.5em; text-wrap: pretty; color: rgba(74,55,34,.34); transition: color .4s; margin-bottom: .25em; }
.jr-lines li::before { content: ""; position: absolute; left: 0; top: .72em; width: .56em; height: .56em; border-radius: 50%; border: 1.5px solid rgba(115,76,40,.4); transition: .4s; }
.jr-lines li.on { color: var(--ink); }
.jr-lines li.on::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,198,136,.5); }
.jr-map { margin: 0; position: relative; align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
.jr-map svg { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.jr-map figcaption { text-align: center; font-family: var(--fs); font-size: calc(14.5px * var(--k)); color: var(--ink-3); letter-spacing: .2em; line-height: 1.4; }
#jmap .jbg { fill: rgba(255,252,244,.9); stroke: rgba(184,138,62,.6); }
#jmap .jp { fill: rgba(165,135,101,.18); stroke: rgba(115,76,40,.42); stroke-width: .6; }
#jmap .jseg { fill: none; stroke: var(--jade); stroke-width: 2.2; stroke-linecap: round; }
#jmap .jseg-bg { fill: none; stroke: rgba(47,93,74,.25); stroke-width: 1.2; stroke-dasharray: 2 4; }
#jmap .jpt circle { fill: var(--paper-hi); stroke: var(--brown); stroke-width: 1.5; transition: .3s; }
#jmap .jpt.on circle { fill: var(--gold); stroke: var(--jade-d); }
#jmap .jpt text { font-family: var(--serif); font-size: 12.5px; fill: var(--ink-2); paint-order: stroke; stroke: rgba(244,235,216,.9); stroke-width: 3px; }
#jmap .jpt.on text { font-weight: 900; fill: var(--ink); }
#jmap .jnow { fill: #F2B272; stroke: #fff; stroke-width: 2; }
.cine .jr-head { position: absolute; left: var(--padx); right: var(--padx); top: 8vh; }
.cine .route { position: absolute; left: 5vw; right: 5vw; top: 16.5vh; }
.cine .jr-bottom { position: absolute; left: var(--padx); right: var(--padx); top: max(calc(16.5vh + 246px * var(--k)), 50vh); bottom: 4.5vh; display: grid; grid-template-columns: 1fr minmax(300px, 31vw); gap: 4vw; align-items: center; }

/* ---------- 档案卡 ---------- */
.acard { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(#FFFBF0, #F1E3C7); color: var(--ink);
  box-shadow: 0 0 0 2px #C9A257, 0 0 0 9px var(--jade), 0 0 0 11px #C9A257, 0 34px 60px rgba(80,55,20,.3); }
.ac-photo { position: relative; height: 27vh; min-height: 180px; overflow: hidden; background: radial-gradient(circle at 50% 46%, #FBDCAB 0%, #F5BE7F 46%, #E59F58 100%); }
.ac-photo::before { content: ""; position: absolute; left: 50%; top: 46%; width: 33vh; height: 33vh; margin: -16.5vh 0 0 -16.5vh; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); box-shadow: 0 0 0 1.4vh rgba(255,255,255,.14), 0 0 0 3.4vh rgba(255,255,255,.08); }
.ac-photo img { position: absolute; left: 50%; top: 5%; height: 170%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 12px 14px rgba(73,43,19,.4)); }
.ac-body { padding: 0 0 14px; }
.ac-kicker { margin: 0; padding: calc(9px * var(--k)) 12px 0; text-align: center; font-family: var(--fs); font-size: calc(14px * var(--k)); letter-spacing: .5em; color: #E3C688; background: linear-gradient(#35664F, #2A5644); line-height: 1.4; }
.acard h3 { margin: 0; padding: 2px 12px 13px; text-align: center; font-weight: 900; font-size: calc(27px * var(--k)); letter-spacing: .06em; color: #F8F0DE; background: linear-gradient(#2A5644, #1F4334); border-bottom: 2px solid #C9A257; line-height: 1.4; }
.acard dl { margin: 0; padding: calc(4px * var(--k)) calc(22px * var(--k)) 0; }
.acard .row { display: grid; grid-template-columns: calc(68px * var(--k)) 1fr; gap: calc(14px * var(--k)); align-items: center; padding: min(1.5vh, 13px) 0; border-bottom: 1px solid rgba(143,106,42,.28); }
.acard .row:last-child { border-bottom: 0; }
.acard dt { text-align: center; font-weight: 900; font-size: calc(15px * var(--k)); letter-spacing: .3em; padding: 2px 0 2px .3em; border-radius: 999px; color: #F8F0DE; background: linear-gradient(#35664F, #1F4334); border: 1.5px solid #C9A257; line-height: 1.7; }
.acard dd { margin: 0; font-weight: 900; font-size: calc(16.5px * var(--k)); line-height: 1.5; }
.acard dd small { font-weight: 400; font-size: .86em; color: var(--ink-3); margin-left: .2em; }
.ar-text p { margin: 0 0 1.3em; text-indent: 2em; font-size: clamp(16.5px, min(1.45vw, 2.6vh), 32px); line-height: 2.1; color: var(--ink-2); }
.ar-text .ar-emph { margin: 0; text-indent: 0; font-weight: 900; color: var(--brown-d); font-size: clamp(18px, min(1.7vw, 3.05vh), 38px); line-height: 1.8; padding-left: 1em; border-left: 4px solid var(--gold); }
.cine .sc-arch { display: grid; grid-template-columns: minmax(330px, 29vw) 1fr; gap: 6vw; align-items: center; padding: 0 8vw 0 9vw; }
.cine .ar-text { padding: 4.4vh 3.2vw; }

/* =====================================================================
   第一章
   ===================================================================== */
.chapter { position: relative; }
.ch1 { padding: 16vh 0 12vh; }
.chap-head { text-align: center; padding: 0 20px 6vh; }
.chap-num { position: relative; display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; font-weight: 900; font-size: 54px; line-height: 1; color: #F8F0DE;
  background: radial-gradient(circle at 35% 30%, #3D735C, #1E4033); box-shadow: 0 0 0 2px #C9A257, 0 0 0 7px rgba(255,251,240,.9), 0 0 0 8.5px #C9A257, 0 14px 26px rgba(80,55,20,.25); }
.chap-head h2 { margin: .5em 0 0; font-weight: 900; font-size: clamp(32px, 4.2vw, 62px); letter-spacing: .08em; color: var(--ink); line-height: 1.35; }
.chap-rule { display: block; width: 190px; height: 12px; margin: 16px auto 0; background:
  linear-gradient(var(--gold), var(--gold)) left center / 78px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 78px 1.5px no-repeat,
  radial-gradient(circle, var(--brown) 0 3px, transparent 3.6px) center / 12px 12px no-repeat; }
.ch-cols { max-width: calc(1260px * var(--k)); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.prose { padding: 34px 40px; }
.prose p { margin: 0; text-indent: 2em; font-size: clamp(17px, 1.42vw, 28px); line-height: 2.1; color: var(--ink-2); }
.prose strong { font-weight: 900; color: var(--brown-d); background: linear-gradient(90deg, var(--gold), var(--gold-hi)) left bottom / 100% 3px no-repeat; padding-bottom: .15em; }
.prose.wide { max-width: calc(980px * var(--k)); margin: 0 auto; }
.ch-end { padding: 0 24px; }
.question { margin: 13vh auto 5vh; text-align: center; font-weight: 900; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.6; letter-spacing: .04em; color: var(--ink); }
.num { font-style: normal; font-weight: 900; font-size: 2.1em; line-height: 1; color: var(--jade); padding: 0 .08em; font-variant-numeric: tabular-nums; }
.tbc { margin: 12vh auto 0; text-align: center; font-family: var(--fs); font-size: 15.5px; letter-spacing: .3em; color: var(--ink-3); }
.tbc span { display: inline-block; padding: 10px 26px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }

/* 地图 */
.mapwrap { max-width: calc(1260px * var(--k)); margin: 8vh auto 0; padding: 0 24px; }
.map-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.map-top h3 { margin: 0; font-weight: 900; font-size: clamp(21px, 2vw, 29px); letter-spacing: .06em; color: var(--ink); line-height: 1.4; }
.map-top h3 small { display: block; font-family: var(--fs); font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--ink-3); }
.map-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.map-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; border: 1px solid #C9B48A; background: rgba(255,252,245,.6); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .2s; }
.map-filter button i { width: 18px; height: 3px; border-radius: 2px; }
.map-filter button.on { background: var(--jade-d); color: var(--paper-hi); border-color: var(--jade-d); }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map-canvas { position: relative; border-radius: 16px; overflow: hidden; background: #B3BFA6; aspect-ratio: 1000 / 820; box-shadow: 0 0 0 1px rgba(143,106,42,.5), 0 0 0 6px rgba(255,251,240,.7), 0 0 0 7px rgba(143,106,42,.45), 0 26px 46px rgba(80,55,20,.2); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
#map .prov { fill: #F1E8D3; stroke: #BBAE8E; stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .3s; }
#map .prov.dst { fill: #DCE4CF; stroke: #6f8f78; }
#map .prov.org { fill: #EEDFBF; }
#map .arc { fill: none; stroke-linecap: round; transition: opacity .25s, stroke-width .25s; cursor: pointer; }
#map .arc-hit { fill: none; stroke: transparent; cursor: pointer; }
#map .dim { opacity: .1 !important; }
#map .node circle { stroke: #FFF8EA; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
#map .node text { font-family: var(--serif); font-size: 12.5px; fill: #3e2c1a; paint-order: stroke; stroke: rgba(246,239,223,.92); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
#map .node.hkmt text { font-weight: 900; font-size: 15px; fill: #1c3a2a; }
#map .particle { pointer-events: none; }
#map .inset-frame { fill: rgba(241,232,211,.35); stroke: #8f8a6c; stroke-width: 1; }
#map .inset-label { font-family: var(--serif); font-size: 11px; fill: #5f5a44; }
.map-zoom { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.map-zoom button { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid #B9AA88; background: rgba(251,246,236,.94); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; white-space: nowrap; }
.map-zoom button.txt { font-size: 13px; }
.map-zoom button:hover { background: #fff; border-color: var(--gold-d); }
.map-legend { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(251,246,236,.9); font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.map-legend div { display: flex; align-items: center; gap: 8px; }
.map-legend i { display: inline-block; width: 26px; border-radius: 3px; }
.map-tip { position: absolute; z-index: 3; width: 268px; padding: 12px 14px; border-radius: 10px; background: rgba(255,252,244,.97); border: 1px solid #C9A257; box-shadow: 0 14px 30px rgba(60,40,20,.22); font-size: 13px; line-height: 1.65; color: var(--ink-2); pointer-events: none; opacity: 0; transition: opacity .15s; }
.map-tip.on { opacity: 1; }
.map-tip b { display: block; font-size: 16px; color: var(--ink); }
.map-tip .n { color: var(--gold-d); font-weight: 900; }
.map-tip ul { margin: 6px 0 0; padding: 0; list-style: none; }
.map-tip li { padding-left: .9em; position: relative; }
.map-tip li::before { content: "·"; position: absolute; left: 0; }
.map-tip .unsure { color: var(--ink-3); font-size: 12px; }
.map-panel { display: flex; flex-direction: column; gap: 15px; padding: 20px; }
.stat-big { display: flex; align-items: baseline; gap: 8px; }
.stat-big strong { font-weight: 900; font-size: 58px; line-height: 1; color: var(--jade); font-variant-numeric: tabular-nums; }
.stat-big span { font-size: 15px; color: var(--ink-3); }
.dir-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.dir-row i { height: 4px; border-radius: 2px; }
.dir-row b { font-weight: 900; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dir-bar { height: 8px; border-radius: 4px; background: #E6D7B9; overflow: hidden; display: flex; margin-top: 8px; }
.dir-bar i { display: block; height: 100%; }
.panel-h { font-weight: 900; font-size: 15px; letter-spacing: .08em; color: var(--ink); border-top: 1px solid rgba(184,138,62,.5); padding-top: 13px; margin: 0; }
.toplist { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.toplist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 5px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: background .2s; }
.toplist li:hover, .toplist li.on { background: rgba(201,162,87,.22); }
.toplist .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--out); opacity: .85; }
.toplist .bar.in { background: var(--in); }
.toplist b { font-weight: 900; font-variant-numeric: tabular-nums; }
.dest-list { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.dest-list li { display: grid; grid-template-columns: 3em 1fr 2.4em; align-items: center; gap: 10px; }
.dest-list i { display: block; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #a8642a, #E3A65A); }
.dest-list b { font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.map-note { margin: 14px 0 0; font-family: var(--fs); font-size: 14px; line-height: 1.75; color: var(--ink-3); }

.credits { position: relative; z-index: 1; color: var(--ink-3); font-family: var(--fs); font-size: 14px; line-height: 1.9; padding: 0 24px 60px; }
.credits div { max-width: 1100px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(184,138,62,.6); }
.credits p { margin: 0 0 .3em; }
.credits b { font-family: var(--serif); color: var(--brown-d); font-weight: 900; letter-spacing: .1em; margin-right: .6em; }

.reveal { opacity: 0; transform: translateY(34px); }
.flow .reveal.shown, .nogsap .reveal { opacity: 1; transform: none; }

/* =====================================================================
   普通上下排版（手机、窄窗口、减少动效）
   ===================================================================== */
.flow .chapnav { display: none; }
.flow .sc { position: relative; }
.flow .sc-cover { height: 100vh; height: 100svh; min-height: 600px; }
.flow .cv-text { left: 0; right: 0; top: 9vh; text-align: center; padding: 0 16px; }
.flow .title { font-size: clamp(54px, min(18.5vw, 13vh), 150px); }
.flow .title .cm { margin-right: -.5em; }
.flow .subtitle { justify-content: center; font-size: clamp(14px, 3.9vw, 26px); letter-spacing: .14em; margin-top: 1.6vh; }
.flow .subtitle .dash { width: 1.4em; }
.flow .actor { visibility: visible; left: 50%; top: 45vh; height: 44vh; margin-left: calc(44vh * -0.273); }
.flow .actor .hot, .flow .a-lit { display: none; }
.flow .sc-face { padding: 9vh 18px 4vh; }
.flow .fc-h { font-size: clamp(27px, 7.4vw, 46px); }
.flow .m-head { display: block; position: relative; width: min(62vw, 300px); margin: 5vh auto 5vh; }
.flow .m-head::before { content: ""; position: absolute; left: 50%; top: 39%; width: 138%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #FAD6A2 0%, #F5BF80 68%, #F1AE6A 97%, rgba(241,174,106,0) 100%); }
.flow .m-head img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 16px rgba(73,43,19,.4)); }
.flow .fc-panel { padding: 22px 20px; }
.flow .fc-panel .lead { font-size: 18.5px; }
.flow .fc-panel p { font-size: 16.5px; }
.flow .fc-emph { margin: 5vh 4px 0; font-size: 20px; }
.flow .sc-bub { padding: 8vh 16px 4vh; }
.flow .bubble-field { position: relative; inset: auto; display: flex; flex-direction: column; gap: 22px; }
.flow .bubble-slot { position: relative; left: auto !important; right: auto !important; top: auto !important; max-width: 92%; align-self: flex-start; }
.flow .bubble-slot:nth-child(even) { align-self: flex-end; }
.flow .bubble { font-size: 14px; }
.flow .bubble img { width: 46px; height: 46px; }
.flow .hero-wrap { position: relative; left: auto; bottom: auto; transform: none; margin: 46px auto 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.flow .click-hint { position: static; transform: none; order: 2; font-size: 18px; }
.flow .bubble.hero { font-size: 18px; }
.flow .bubble.hero img { width: 76px; height: 76px; }
.flow .sc-jour { padding: 9vh 16px 6vh; }
.flow .jr-head { flex-wrap: wrap; }
.flow .jr-head em { display: none; }
.flow .route { height: auto; margin-top: 30px; }
.flow .route-svg, .flow .traveler { display: none; }
.flow .stops { display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 26px; }
.flow .stops::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(rgba(115,76,40,.6) 0 3px, transparent 3px 9px); }
.flow .stop { position: relative !important; left: auto !important; width: auto; height: auto; display: block; }
.flow .stop .pin, .flow .stop .stem { display: none; }
.flow .card { position: relative; left: auto; top: auto !important; transform: none !important; width: 100%; display: grid; grid-template-columns: 130px 1fr; align-items: stretch; opacity: 1; filter: none; text-align: left; }
.flow .card .yr { border-bottom: 0; border-right: 1.5px solid #C9A257; display: flex; align-items: center; justify-content: center; text-align: center; }
.flow .card .ct { padding: 10px 14px; font-size: 19px; }
.flow .card .orn { display: none; }
.flow .stop::before { content: ""; position: absolute; left: -24px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(227,198,136,.5); }
.flow .pop { position: relative; left: auto; top: auto !important; width: auto; transform: none !important; display: none; opacity: 1; margin-top: 8px; }
.flow .stop.open .pop { display: block; }
.flow .jr-bottom { margin-top: 26px; display: flex; flex-direction: column; gap: 24px; }
.flow .jr-lines li { color: var(--ink); }
.flow .jr-map svg { height: 300px; flex: none; }
.flow .sc-arch { padding: 9vh 22px 4vh; display: flex; flex-direction: column; gap: 46px; }
.flow .acard { max-width: 420px; margin: 0 auto; width: 100%; }
.flow .ar-text { padding: 24px 20px; }
.flow .ar-text p { font-size: 16.5px; }
.flow .ar-text .ar-emph { font-size: 18px; }
.flow .ch1 { padding-top: 10vh; }
.flow .ch-cols { grid-template-columns: 1fr; padding: 0 14px; gap: 22px; }
.flow .prose { padding: 22px 20px; }
.flow .prose p { font-size: 16.5px; }
.flow .mapwrap { padding: 0 12px; }
.flow .map-body { grid-template-columns: 1fr; }
.flow .map-canvas { aspect-ratio: 1000 / 900; }
.flow .map-legend { font-size: 11px; padding: 7px 9px; }
.flow .ch-end { padding: 0 14px; }
.flow .question { font-size: clamp(22px, 6vw, 34px); }
@media (max-width: 1100px) { .cine .ch-cols { grid-template-columns: 1fr; max-width: 860px; } }
