/* ============================================================
   journey.css —— 3D 长卷：固定全屏画布 + 极简 HUD
   页面滚动只作为「时间轴」驱动相机前进，内容本身不占视觉空间
   ============================================================ */

/* 长卷模式：隐藏页脚（它在 900vh 轨道之后，会破坏长卷的连续性），
   头部保留（导航与语言切换仍需可用） */
body.is-journey .site-foot { display: none; }
body.is-journey { background: #0e1113; }
body.is-journey .paper-photo,
body.is-journey #paper-grain { opacity: .12; }
body.is-journey .site-head {
  background: linear-gradient(to bottom, rgba(14,17,19,.82), rgba(14,17,19,0));
  border-bottom-color: transparent;
}
/* 长卷有自己的品牌区（银幕左上），页头的品牌收起避免重复 */
body.is-journey .site-head .brand { opacity: 0; pointer-events: none; }

.jr { position: relative; }

/* 3D 画布：固定全屏 */
.jr__app { position: fixed; inset: 0; z-index: 0; }
.jr__app canvas { display: block; }

/* 滚动行程：真实滚动条驱动 progress */
/* 滚动行程：整条长卷 376 个场景单位要铺在多少"屏"上。
   900vh 时每一格滚轮推进 1.46% 进度 —— 实测后半程快到 10.6 单位/1%，
   观众的第一反应就是"飞得太急"。1300vh 把稳态速度压掉 31%，
   急段另由 animate() 里的巡航上限（CRUISE_UPS）兜住。 */
.jr__track { position: relative; height: 1300vh; pointer-events: none; }

/* 暗角 + 上下压暗：把 3D 画面压成「银幕感」 */
.jr__vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 38%, rgba(8,10,12,.55) 100%),
    linear-gradient(to bottom, rgba(8,10,12,.36) 0%, transparent 18%, transparent 78%, rgba(8,10,12,.62) 100%);
}

/* 开场白场：穿过纸面 */
.jr__flash {
  position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background: #f7f2e7; transition: opacity 1.1s ease; opacity: 1;
}
.jr__flash.is-out { opacity: 0; }

/* ============================================================
   视觉签名：墨底 · 宣纸 · 朱砂 · 金
   —— 全片只留一个强调色（朱砂），其余交给明暗与材质
   ============================================================ */
.jr { --ink: #0d1013; --paper: #f4efe3; --cinnabar: #c0392b; --gold: #c9a227; }

/* 胶片颗粒：叠在 3D 之上，让画面有「材质」而不是纯 CG */
.jr__grain {
  position: fixed; inset: -8px; z-index: 3; pointer-events: none;
  width: calc(100% + 16px); height: calc(100% + 16px);
  mix-blend-mode: overlay; opacity: .14;
  animation: jr-grain 2.2s steps(3) infinite;
}
@keyframes jr-grain {
  0% { transform: translate3d(0, 0, 0) }
  33% { transform: translate3d(-6px, 4px, 0) }
  66% { transform: translate3d(5px, -5px, 0) }
  100% { transform: translate3d(0, 0, 0) }
}

/* ---------- 序章：宣纸上的开场 ---------- */
.jr__open {
  position: fixed; inset: 0; z-index: 8; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: #f4efe3;
  background-image:
    radial-gradient(120% 80% at 50% 12%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(80% 60% at 18% 88%, rgba(120,110,92,.10), transparent 70%),
    radial-gradient(60% 50% at 84% 78%, rgba(120,110,92,.08), transparent 70%);
  color: #14181b;
}
.jr__open-inner { position: relative; padding: 0 24px; }
.jr__open-k {
  font-size: 11px; letter-spacing: .52em; color: rgba(20,24,27,.5);
  margin-bottom: 26px; text-transform: uppercase;
}
.jr__open-t {
  margin: 0; font-weight: 500; letter-spacing: .06em;
  font-size: clamp(64px, 13vw, 168px); line-height: .96; color: #14181b;
}
.jr__open-t i { font-style: normal; display: inline-block; }
.jr__open.is-anim .jr__open-t i {
  animation: jr-ink .9s cubic-bezier(.16,.84,.28,1) both;
}
.jr__open.is-anim .jr__open-t i:nth-child(1) { animation-delay: .10s }
.jr__open.is-anim .jr__open-t i:nth-child(2) { animation-delay: .22s }
.jr__open.is-anim .jr__open-t i:nth-child(3) { animation-delay: .34s }
.jr__open.is-anim .jr__open-t i:nth-child(4) { animation-delay: .46s }
@keyframes jr-ink {
  0% { opacity: 0; transform: translateY(26px) scale(1.06); filter: blur(14px) }
  60% { opacity: 1; filter: blur(0) }
  100% { opacity: 1; transform: none; filter: none }
}
.jr__open-sub { margin-top: 18px; font-size: 14px; letter-spacing: .34em; color: rgba(20,24,27,.62) }
/* 序章的主设问：开场第一屏就要把整部作品的问题砸出来 */
.jr__open-ask {
  margin: 30px auto 0; max-width: 22em;
  font-size: clamp(17px, 2.1vw, 26px); line-height: 1.85; letter-spacing: .12em;
  color: var(--cinnabar);
}
.jr__open-asksub {
  margin-top: 14px; font-size: 12.5px; letter-spacing: .16em;
  color: rgba(20,24,27,.55);
}
.jr__open-meta {
  margin-top: 30px; font-family: Georgia, serif; font-size: 13px;
  letter-spacing: .34em; color: rgba(20,24,27,.45);
}
/* 朱印：印章式落款，压在标题右下 —— 挂在标题（inline-block）上，
   不再挂在被 meta 行撑宽的容器上（否则会漂到画面右下角） */
.jr__open-t { position: relative; display: inline-block; }
.jr__open-seal {
  position: absolute; right: -84px; bottom: 4px; width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--cinnabar); font-size: 26px;
  border-radius: 4px; box-shadow: 0 6px 18px rgba(192,57,43,.28);
  transform: rotate(-6deg);
}
.jr__open.is-anim .jr__open-seal { animation: jr-stamp .5s cubic-bezier(.2,1.5,.3,1) .8s both }
@keyframes jr-stamp {
  0% { opacity: 0; transform: rotate(-24deg) scale(2.1) }
  100% { opacity: 1; transform: rotate(-6deg) scale(1) }
}
.jr__open-cta {
  position: fixed; left: 0; right: 0; bottom: 58px;
  font-size: 11.5px; letter-spacing: .42em; color: rgba(20,24,27,.62);
  animation: jr-breathe 2.6s ease-in-out infinite;
}
/* 片头的播放键：纸面上的一个朱砂圈 + 一行小字。
   不做实心按钮 —— 这是宣纸，不是 APP。落在 CTA 上方 76px，不打架 */
.jr__open-play {
  margin-top: 30px; font-family: inherit; cursor: pointer;
  font-size: 12px; letter-spacing: .30em; color: rgba(20,24,27,.74);
  background: transparent; padding: 11px 26px;
  border: 1px solid rgba(20,24,27,.30); border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.jr__open-play:hover {
  color: #fff; background: var(--cinnabar); border-color: var(--cinnabar);
}
.jr__open-play:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px }

/* 序章纸面态（body.jr-open-on，由 animate 在 openA>0.5 时切换）：
   暗角与颗粒会把米白纸面压脏 —— 退场；导航降到 0.35 退到视线之后，
   但仍可点击。序章合上后一切恢复 */
body.jr-open-on .jr__vignette,
body.jr-open-on .jr__grain { opacity: 0; }
body.jr-open-on .site-head { opacity: .35; }
body.jr-open-on .jr__rail--top { opacity: 0; }

/* ---------- 篇章卡：跨章时整屏砸入 ---------- */
.jr__card {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
}
.jr__card.is-on { visibility: visible; animation: jr-card 2.1s ease forwards }
@keyframes jr-card {
  0% { opacity: 0 } 12% { opacity: 1 } 78% { opacity: 1 } 100% { opacity: 0 }
}
.jr__card-no {
  font-family: Georgia, serif; font-size: clamp(80px, 15vw, 200px); line-height: .9;
  color: rgba(244,239,227,.14); letter-spacing: .04em;
}
.jr__card-t {
  margin-top: 6px; font-size: clamp(30px, 5.4vw, 62px); letter-spacing: .22em;
  color: var(--paper); text-shadow: 0 2px 26px rgba(0,0,0,.7);
}
.jr__card-k {
  margin-top: 14px; font-size: 11px; letter-spacing: .46em; color: rgba(244,239,227,.55);
}
/* 设问主线：章卡上必须同时出现「这一章回答什么」与「答案是什么」。
   没有这两行，读者只知道自己在山谷里飞，不知道为什么飞 */
.jr__card-q {
  margin-top: 26px; max-width: 78vw; text-align: center;
  font-size: clamp(13px, 1.5vw, 17px); letter-spacing: .16em;
  color: #d4665a; text-shadow: 0 1px 12px rgba(0,0,0,.65);
}
.jr__card-a {
  margin-top: 10px; max-width: 78vw; text-align: center;
  font-size: clamp(12px, 1.35vw, 15px); line-height: 2; letter-spacing: .06em;
  color: rgba(244,239,227,.82); text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.jr__card-rule {
  display: block; width: 0; height: 1px; margin-top: 22px; background: var(--cinnabar);
}
.jr__card.is-on .jr__card-rule { animation: jr-rule 1.5s cubic-bezier(.2,.8,.2,1) .25s forwards }
@keyframes jr-rule { from { width: 0 } to { width: 148px } }
.jr__card.is-on .jr__card-t { animation: jr-ink .8s cubic-bezier(.16,.84,.28,1) both }

/* ---------- 上下信息轨（电影打板式） ---------- */
.jr__rail {
  position: fixed; left: 0; right: 0; z-index: 5; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 26px; height: 46px; font-size: 12.5px; letter-spacing: .18em;
  color: rgba(244,239,227,.75); pointer-events: none;
}
.jr__rail--top { top: 62px; background: linear-gradient(to bottom, rgba(13,16,19,.55), transparent) }
.jr__rail--bot { bottom: 0; background: linear-gradient(to top, rgba(13,16,19,.62), transparent) }
.jr__rail span { display: flex; align-items: baseline; gap: 12px }
.jr__rail b { font-weight: 500; font-size: 14px; color: rgba(244,239,227,.95); letter-spacing: .22em }
.jr__rail em { font-style: normal; font-size: 10px; letter-spacing: .28em; opacity: .72 }
.jr__rail a {
  pointer-events: auto; color: rgba(244,239,227,.62); letter-spacing: .22em;
  border-bottom: 1px solid rgba(244,239,227,.24); padding-bottom: 3px;
}
.jr__rail a:hover { color: var(--paper); border-bottom-color: var(--cinnabar) }
/* 声音开关：常驻右上角，默认静音状态也要看得出「有声音这回事」 */
.jr__sound {
  pointer-events: auto; font-family: inherit; font-size: 10px; letter-spacing: .22em;
  color: rgba(244,239,227,.72); background: transparent; cursor: pointer;
  border: 1px solid rgba(244,239,227,.26); padding: 4px 10px; margin-right: 4px;
}
.jr__sound:hover { color: var(--paper); border-color: var(--cinnabar) }
.jr__sound.is-off { color: rgba(244,239,227,.38); text-decoration: line-through }
/* 音色切换：与声音开关同族但更轻 —— 它是个"口味"选项，不是功能开关 */
.jr__voice {
  pointer-events: auto; font-family: inherit; font-size: 10px; letter-spacing: .18em;
  color: rgba(244,239,227,.62); background: transparent; cursor: pointer;
  border: 1px solid rgba(244,239,227,.18); padding: 4px 9px; margin-right: 4px;
}
.jr__voice:hover { color: var(--paper); border-color: var(--cinnabar) }
/* 播放：与声音开关同族，但要更「主」一点 —— 它是这部片子的入场券。
   播放中左边多一个小方块当"正在走"的提示，不额外做进度条（底部已经有百分比） */
.jr__play {
  pointer-events: auto; font-family: inherit; font-size: 10px; letter-spacing: .22em;
  color: var(--paper); background: rgba(244,239,227,.08); cursor: pointer;
  border: 1px solid rgba(244,239,227,.36); padding: 4px 12px; margin-right: 4px;
  transition: background .18s, border-color .18s, color .18s;
}
.jr__play:hover { background: rgba(192,57,43,.20); border-color: var(--cinnabar); color: #fff }
.jr__play.is-on { border-color: var(--cinnabar); color: #fff }
.jr__play.is-on::before {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px;
  background: var(--cinnabar); vertical-align: 1px;
  animation: jrPlayPulse 1.6s ease-in-out infinite;
}
@keyframes jrPlayPulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
@media (prefers-reduced-motion: reduce) { .jr__play.is-on::before { animation: none } }
#jr-rail-pct { font-family: Georgia, serif; color: var(--cinnabar) }

/* ============================================================
   HUD 底板系统：所有浮在 3D 上的文字块共用一张「墨底纸签」
   ------------------------------------------------------------
   3D 背景的明暗不可控（纸浆是亮的、焙壁是暗的），
   裸文字必然在某些机位下消失。统一给半透墨底 + 细边 + 轻模糊，
   文字才在任何画面上都站得住。 */
.jr__hud, .jr__stage, .jr__chapter, .jr__hint, .jr__note {
  background: linear-gradient(160deg, rgba(13,16,19,.90), rgba(13,16,19,.82));
  border: 1px solid rgba(247,242,231,.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 38px rgba(0,0,0,.42);
}

/* ============================================================
   正文侧栏 jr__note
   ------------------------------------------------------------
   展板正文的归处。3D 牌面上的字随镜头距离缩放，怎么调都两头不讨好
   （近了糊屏、远了看不见），正文改在这里用固定 CSS 字号呈现：
   不管镜头在哪，正文都是 15px 的屏上字号，永远读得清。
   位置压在右下，避开左下的阶段轨与底部的打板信息轨。 */
.jr__note {
  position: fixed; z-index: 6; right: 34px; bottom: 168px; width: 330px;
  padding: 16px 18px 17px; pointer-events: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.jr__note.is-on { opacity: 1; transform: none; }
.jr__note-k {
  font-size: 11px; letter-spacing: .26em; color: rgba(247,242,231,.52);
  margin-bottom: 7px;
}
.jr__note-t {
  margin: 0 0 9px; font-size: 21px; line-height: 1.34; font-weight: 600;
  color: #f7f2e7; letter-spacing: .02em;
}
.jr__note-b {
  margin: 0; font-size: 15px; line-height: 1.78; color: rgba(247,242,231,.86);
  letter-spacing: .015em;
}
.jr__note-num {
  display: flex; align-items: baseline; gap: 6px; margin-top: 13px;
  padding-top: 11px; border-top: 1px solid rgba(247,242,231,.16);
}
.jr__note-num b {
  font-family: Georgia, serif; font-size: 40px; line-height: 1;
  color: var(--cinnabar, #9c4a3c); font-weight: 600;
}
.jr__note-num em {
  font-style: normal; font-size: 12px; letter-spacing: .16em;
  color: rgba(247,242,231,.62);
}

/* ---------- HUD ---------- */
/* 左上「纸寿千年」铜印块与顶部信息轨的品牌行完全重复 —— 撤掉，
   左上留白，画面让给 3D */
.jr__brand { display: none; }
.jr__seal {
  width: 34px; height: 34px; background: var(--seal, #9c4a3c); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border-radius: 3px;
}

/* 左下信息组：章卡（章号+章名）贴底，阶段轨悬浮其上 ——
   两者间距 16px，永不重叠；此前 chapter(bottom 34) 与 stage(bottom 74)
   的正文互相咬在一起 */
.jr__chapter {
  position: fixed; z-index: 4; left: 28px; bottom: 26px; pointer-events: none;
  max-width: 420px; padding: 14px 18px 15px;
}
.jr__no { font-family: Georgia, serif; font-size: 52px; line-height: 1; color: rgba(247,242,231,.36); }
.jr__t { font-size: 28px; letter-spacing: .1em; margin-top: 4px; }
.jr__k { display: none; }   /* 章名英文小字与 why 重复，撤 */
.jr__l { font-size: 15px; line-height: 1.85; color: rgba(247,242,231,.92); margin-top: 11px; }

/* 阶段轨抬到章卡上方，配合同一张底板语言 */
.jr__stage {
  position: fixed; z-index: 6; left: 28px; bottom: 164px; max-width: 440px;
  pointer-events: none; opacity: 0; transform: translateY(10px);
  padding: 14px 17px 15px;
  transition: opacity .45s ease, transform .45s ease;
}

.jr__prog {
  position: fixed; z-index: 4; right: 28px; bottom: 36px;
  width: 1px; height: 150px; background: rgba(247,242,231,.2);
}
.jr__prog i { display: block; width: 100%; height: 0; background: var(--seal, #9c4a3c); }

.jr__tip {
  position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 30px;
  font-size: 13px; letter-spacing: .24em; color: rgba(247,242,231,.70);
  animation: jr-breathe 5s ease-in-out infinite; pointer-events: none;
}
@keyframes jr-breathe { 0%, 100% { opacity: .55 } 50% { opacity: .90 } }

.jr__more {
  position: fixed; z-index: 4; right: 28px; top: 92px; pointer-events: auto;
}
.jr__more a {
  font-size: 12px; letter-spacing: .16em; color: rgba(247,242,231,.6);
  border-bottom: 1px solid rgba(247,242,231,.28); padding-bottom: 3px;
}
.jr__more a:hover { color: #f7f2e7; border-bottom-color: #f7f2e7; }

.jr__enter {
  position: fixed; z-index: 5; left: 50%; bottom: 120px; transform: translateX(-50%);
  display: none; padding: 12px 30px; font-family: inherit; font-size: 13.5px;
  letter-spacing: .12em; color: #f7f2e7; background: rgba(165,61,48,.94);
  border: 0; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.4);
  transition: background .25s ease, transform .18s ease;
}
.jr__enter:hover { background: #b8483a; }
.jr__enter:active { transform: translateX(-50%) translateY(2px); }

/* ---------- 阶段轨：这是哪里 · 在做什么 · 为什么 ----------
   定位与底板已并入上方「左下信息组」（bottom 148px）；
   这里只保留阶段轨自身的部件样式 */
.jr__stage.is-on { opacity: 1; transform: none; }
.jr__stage-h {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 10px; letter-spacing: .42em; color: rgba(247,242,231,.42);
}
.jr__stage-h b {
  font-family: Georgia, serif; font-size: 15px; letter-spacing: .06em;
  color: var(--cinnabar);
}
.jr__stage-ol {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; align-items: center; gap: 0;
}
.jr__stage-ol li {
  display: flex; align-items: center; gap: 7px;
  color: rgba(247,242,231,.70); transition: color .35s ease;
}
.jr__stage-ol li::after {
  content: ''; width: 22px; height: 1px; margin: 0 9px;
  background: rgba(247,242,231,.22);
}
.jr__stage-ol li:last-child::after { display: none; }
.jr__stage-ol li i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(247,242,231,.28); transition: all .35s ease;
}
.jr__stage-ol li span { font-size: 13px; letter-spacing: .10em; white-space: nowrap; }
.jr__stage-ol li.is-past { color: rgba(247,242,231,.75); }
.jr__stage-ol li.is-past i { background: rgba(247,242,231,.55); }
.jr__stage-ol li.is-on { color: var(--paper); }
.jr__stage-ol li.is-on i {
  background: var(--cinnabar); box-shadow: 0 0 0 4px rgba(192,57,43,.20);
  transform: scale(1.25);
}
.jr__stage-why {
  margin: 12px 0 0; font-size: 14px; line-height: 1.80; letter-spacing: .03em;
  color: rgba(247,242,231,.88); border-left: 2px solid rgba(192,57,43,.65);
  padding-left: 12px;
}

/* ---------- 入座捞纸 ---------- */
.jr__seat { position: fixed; inset: 0; z-index: 7; display: none; pointer-events: none; }
.jr__seat.is-on { display: block; }

/* 入座 HUD：宽度放宽一点，量表读得清；底板已由 HUD 底板系统给出 */
.jr__hud {
  position: fixed; left: 28px; top: 96px; width: 248px; display: none;
  pointer-events: none; padding: 13px 15px 14px;
}
.jr__hud-no {
  font-family: Georgia, serif; font-size: 21px; letter-spacing: .08em;
  color: var(--paper); text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.jr__steps { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.jr__step {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 10px; border-left: 2px solid rgba(247,242,231,.18);
  color: rgba(247,242,231,.38);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.jr__step b {
  width: 17px; height: 17px; flex: none; display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 500;
  border: 1px solid rgba(247,242,231,.30); border-radius: 50%;
}
.jr__step em { font-style: normal; font-size: 11.5px; letter-spacing: .18em; }
.jr__step.is-on { color: var(--paper); border-left-color: var(--cinnabar); background: rgba(20,23,25,.5); }
.jr__step.is-on b { border-color: var(--cinnabar); color: var(--cinnabar); }
.jr__step.is-done { color: rgba(247,242,231,.62); border-left-color: rgba(247,242,231,.5); }
.jr__step.is-done b { background: rgba(247,242,231,.72); color: #14181b; border-color: transparent; }

.jr__stip {
  margin-top: 11px; font-size: 12px; line-height: 1.8; letter-spacing: .04em;
  color: var(--cinnabar); min-height: 2.6em;
}

.jr__bars { display: flex; align-items: stretch; gap: 12px; margin-top: 6px; }
.jr__bar-v {
  position: relative; width: 16px; height: 108px; flex: none;
  background: rgba(20,23,25,.62); border: 1px solid rgba(247,242,231,.16);
  display: flex; align-items: flex-end;
}
/* 量表配色回到主题色系：未到位 = 宣纸灰（克制的待办感），
   到位 = 朱砂。原来的青绿渐变是全片唯一的"外来色"，撤掉 */
.jr__bar-v i {
  display: block; width: 100%; height: 108px; transform-origin: 50% 100%;
  transform: scaleY(0); background: linear-gradient(to top, rgba(244,239,227,.34), rgba(244,239,227,.62));
  transition: background .3s ease;
}
.jr__bar-v i.is-ok { background: linear-gradient(to top, #8a3a2c, var(--cinnabar)); }
.jr__bar-v u {
  position: absolute; left: -3px; right: -3px; bottom: 55%; height: 1px;
  background: rgba(247,242,231,.7);
}
.jr__bar-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.jr__bar-h {
  position: relative; height: 9px;
  background: rgba(20,23,25,.62); border: 1px solid rgba(247,242,231,.16);
}
.jr__bar-h i {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(to right, rgba(244,239,227,.34), rgba(244,239,227,.62));
  transition: background .3s ease;
}
.jr__bar-h i.is-ok { background: linear-gradient(to right, #8a3a2c, var(--cinnabar)); }
.jr__bar-h u {
  position: absolute; top: -3px; bottom: -3px; left: 62.5%; width: 1px;
  background: rgba(247,242,231,.7);
}
.jr__bar-h--d i { background: linear-gradient(to right, rgba(244,239,227,.26), rgba(244,239,227,.5)); }
.jr__bar-h--d i.is-ok { background: linear-gradient(to right, #8a6f22, var(--gold, #c9a227)); }
.jr__nums { display: flex; gap: 14px; margin-top: 9px; }
.jr__nums span { display: flex; flex-direction: column; gap: 2px; }
.jr__nums em {
  font-style: normal; font-size: 9.5px; letter-spacing: .2em;
  color: rgba(247,242,231,.42);
}
.jr__nums b {
  font-family: Georgia, serif; font-size: 14px; font-weight: 400;
  color: rgba(247,242,231,.88);
}
.jr__meta { display: flex; gap: 16px; margin-top: 12px; }
.jr__meta span {
  font-size: 10px; letter-spacing: .18em; color: rgba(247,242,231,.45);
}

.jr__hint {
  position: fixed; top: 118px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; letter-spacing: .18em; color: rgba(247,242,231,.82);
  padding: 9px 22px; display: none; white-space: nowrap;
}
/* 实时数值与 HUD 量表完全重复（深度/荡幅/停留三块量表就是它），
   双份信息只会抢视线 —— 撤掉，量表演给量表 */
.jr__live { display: none !important; }

.jr__result {
  position: fixed; right: 32px; top: 50%; transform: translateY(-50%); width: 266px;
  background: rgba(20,23,25,.9); border: 1px solid rgba(247,242,231,.14);
  padding: 18px; pointer-events: auto; display: none;
}
.jr__rtt { font-size: 15px; letter-spacing: .16em; margin-bottom: 10px; }
.jr__result canvas { width: 100%; background: #15181a; display: block; margin-bottom: 12px; }
/* 前后呼应：上一张 vs 这一张，差值写在中间 */
.jr__cmp {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 9px 10px; background: rgba(247,242,231,.05);
  border: 1px solid rgba(247,242,231,.10);
}
.jr__cmp-c { display: flex; flex-direction: column; gap: 2px; min-width: 46px; }
.jr__cmp-c em {
  font-style: normal; font-size: 9.5px; letter-spacing: .16em;
  color: rgba(247,242,231,.42);
}
.jr__cmp-c b { font-family: Georgia, serif; font-size: 19px; font-weight: 400; color: rgba(247,242,231,.72); }
.jr__cmp-c:last-child b { color: var(--paper); }
.jr__cmp-d {
  flex: 1; font-style: normal; font-size: 10.5px; line-height: 1.6;
  letter-spacing: .05em; text-align: center; color: rgba(247,242,231,.5);
}
/* 升/降两种结果的语义色也回到主题：升 = 朱砂系，降 = 墨绿系
   （bootstrap 红绿是外来色） */
.jr__cmp-d.is-up { color: #d4665a; }
.jr__cmp-d.is-down { color: #7fa38c; }
.jr__row {
  display: flex; justify-content: space-between; font-size: 12.5px;
  color: rgba(247,242,231,.72); margin: 4px 0;
}
.jr__grade { color: #e8b26a; font-size: 18px; font-family: Georgia, serif; }
.jr__note { font-size: 12px; line-height: 1.7; color: rgba(247,242,231,.58); margin-top: 8px; }
.jr__btns { display: flex; gap: 8px; margin-top: 14px; }
.jr__btns button {
  flex: 1; padding: 9px 0; font-family: inherit; font-size: 12px; letter-spacing: .1em;
  background: rgba(247,242,231,.08); color: #f7f2e7;
  border: 1px solid rgba(247,242,231,.22); cursor: pointer;
}
.jr__btns button:hover { background: rgba(247,242,231,.16); }
.jr__btns button.is-solid { background: rgba(165,61,48,.94); border-color: transparent; }
.jr__btns button.is-solid:hover { background: #b8483a; }

/* ---------- 降级提示 ---------- */
.jr-note-fallback {
  max-width: 720px; margin: 24px auto 8px; padding: 12px 16px;
  font-size: 13px; line-height: 1.8; color: #7d7361;
  background: #f3ede0; border-left: 3px solid #9c4a3c;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .jr__brand { left: 18px; top: 78px; }
  .jr__more { right: 18px; top: 78px; }
  .jr__chapter { left: 18px; bottom: 24px; max-width: 60vw; }
  .jr__no { font-size: 40px; }
  .jr__t { font-size: 20px; }
  .jr__result { right: 12px; left: 12px; width: auto; top: auto; bottom: 96px; transform: none; }
  .jr__hint { font-size: 11px; padding: 8px 14px; white-space: normal; max-width: 82vw; }
}
