/* ==========================================================================
   《门内的同伴》 v1 · 阶段A 样式
   手机优先；桌面居中阅读栏。无外部字体、无外部依赖。
   ========================================================================== */

:root {
  --paper:      #F5F2EC;
  --paper-2:    #EFEBE2;
  --card:       #FFFFFF;
  --ink:        #17212B;
  --ink-2:      #3F4C57;
  --ink-3:      #5A6773;   /* 承担信息作用的次级文字，对 paper 约 4.8:1 */
  --line:       #E2DCD1;
  --line-2:     #EFEAE1;
  --accent:     #0F5E63;
  --accent-ink: #0A4649;
  --accent-soft:#E7F0EF;
  --warm:       #6B5546;
  --warm-soft:  #F3EDE6;
  --amber:      #8A5A18;
  --amber-soft: #FBF0DC;
  --shadow:     0 1px 2px rgba(23,33,43,.05), 0 8px 24px -12px rgba(23,33,43,.16);
  --r:          14px;
  --r-sm:       10px;
  --maxw:       700px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 720px) {
  body { font-size: 17.5px; }
}

p { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; text-decoration: none; font-size: 15px;
  transition: top .15s;
}
.skiplink:focus { top: 12px; }

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245,242,236,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar__id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__title {
  font-size: 15px; font-weight: 650; letter-spacing: .04em; color: var(--ink);
  white-space: nowrap;
}
.topbar__badge {
  font-size: 11.5px; line-height: 1.5; letter-spacing: .04em;
  color: var(--amber); background: var(--amber-soft);
  border: 1px solid #EBD9B8;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.topbar__progress { display: flex; align-items: center; gap: 8px; }
.topbar__bar {
  display: block; width: 64px; height: 4px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.topbar__bar i {
  display: block; height: 100%; width: 0%;
  background: var(--accent); border-radius: 999px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.topbar__step {
  font-size: 12px; color: var(--ink-3); letter-spacing: .05em;
  font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: right;
}

/* ------------------------------------------------------------------ 主容器 */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 20px 40px;
  min-height: 60vh;
}
main:focus { outline: none; }

.screen { animation: rise .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ 文字 */
.kicker {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .16em; text-transform: none;
  color: var(--accent); font-weight: 600;
  margin-bottom: 14px;
}
h1, h2, h3 {
  font-family: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  font-weight: 700; letter-spacing: .015em; line-height: 1.35;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: 1.95rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.06rem; font-family: inherit; font-weight: 650; letter-spacing: .02em; }
h1:focus, h2:focus { outline: none; }

.lede {
  font-size: 1.06rem; color: var(--ink-2); line-height: 1.8;
  margin-bottom: 1.1em;
}
.muted { color: var(--ink-3); font-size: 1rem; }

/* ------------------------------------------------------------------ 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}
.panel + .panel { margin-top: 14px; }

.panel--accent { background: var(--accent-soft); border-color: #CFE0DE; }
.panel--amber  { background: var(--amber-soft); border-color: #EBD9B8; }
.panel--warm   { background: var(--warm-soft); border-color: #E4D8CB; }

.panel__label {
  font-size: 12px; letter-spacing: .12em; font-weight: 650;
  color: var(--ink-3); margin-bottom: 8px;
}

/* ------------------------------------------------------------------ 列表 */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li {
  position: relative; padding-left: 1.45em; margin-bottom: .55em;
  font-size: 1rem; color: var(--ink-2);
}
.plain li:last-child { margin-bottom: 0; }
.plain li::before {
  content: ""; position: absolute; left: .18em; top: .72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); box-shadow: 0 0 0 3px var(--paper-2);
}
.panel--accent .plain li::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.panel .plain li { color: var(--ink); }

ol.numbered { margin: 0; padding-left: 1.3em; }
ol.numbered li { margin-bottom: .5em; font-size: .98rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%;
  font: inherit; font-size: 1rem; font-weight: 600;
  text-align: center;
  padding: 15px 18px;
  min-height: 54px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px -10px rgba(15,94,99,.85);
}
.btn--primary:hover:not(:disabled) { background: var(--accent-ink); }

.btn--ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--line);
}
.btn--ghost:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); }

.btn--wide { margin-top: 22px; }

.actions { margin-top: 22px; }
.actions .btn + .btn { margin-top: 10px; }

.btn-note {
  font-size: .84rem; color: var(--ink-3); text-align: center;
  margin-top: 10px; line-height: 1.6;
}

/* --------------------------------------------------------------- 选项列表 */
.options { display: grid; gap: 10px; margin-top: 18px; }

.opt {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: flex-start; gap: 13px;
  width: 100%;
  font: inherit; font-size: 1.03rem; line-height: 1.66; text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 16px;
  min-height: 62px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23,33,43,.04);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.opt:hover:not(:disabled) {
  border-color: #C3D3D1;
  background: #FDFDFC;
  box-shadow: 0 4px 16px -10px rgba(15,94,99,.5);
}
.opt:active:not(:disabled) { transform: scale(.995); }
.opt:disabled { cursor: default; }

.opt__key {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-2);
  font-size: .82rem; font-weight: 700;
  margin-top: .12em;
  transition: background .15s, color .15s;
}
.opt:hover:not(:disabled) .opt__key { background: var(--accent-soft); color: var(--accent-ink); }
.opt__text { flex: 1 1 auto; }

/* ------------------------------------------------------------------ 场景 */
.scenehead { margin-bottom: 16px; }
.scenehead__no {
  font-size: 12px; letter-spacing: .16em; color: var(--ink-3);
  font-weight: 650; margin-bottom: 6px;
}

.player {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #10171D;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;   /* 手机与桌面都用 16:9：与源片同比例，不做裁切 */
}
.player video {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  background: #10171D;
}
.media {
  margin: 0;
}
.media figcaption { margin: 0; }

/* 包裹层全屏：字幕条仍在，且压在画面底部 */
.media:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  margin: 0;
}
.media:fullscreen .player {
  border: 0;
  border-radius: 0;
  max-height: 100vh;
}
.media:fullscreen .cc {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  margin: 0;
  background: rgba(6,10,13,.82);
  border-left-width: 4px;
  font-size: clamp(20px, 2.6vw, 34px);
  min-height: 0;
}

/* 视频元素单独全屏时，原生 track 接管字幕；此时把自定义条隐藏，保证只有一套 */
.media.is-native-fs .cc { visibility: hidden !important; }

/* 原生 track 只在"视频元素单独全屏"时启用；样式提高可读性 */
video::cue {
  background: rgba(0,0,0,.78);
  color: #FFFFFF;
  font-size: 1.15em;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}

/* 字幕条：放在播放器下方而不是压画面，避免遮住手、门把和手机。
   始终占位（hidden 时用 visibility 隐藏），拖动进度时页面不会跳动。 */
.cc {
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 9px 13px;
  min-height: 3.1em;
  border-radius: var(--r-sm);
  background: #10171D;
  border-left: 3px solid #6FA3A8;
  color: #F2F6F8;
  font-size: clamp(15px, 4.1vw, 18px);
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: pre-line;
}
.cc[hidden] {
  display: flex;
  visibility: hidden;
}

.player__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 20px;
  color: #C9D4DA;
  background: #10171D;
}
/* 作者样式里的 display:flex 会盖掉 [hidden] 的默认隐藏，必须显式写回来（QA-06） */
.player__placeholder[hidden] { display: none !important; }
.player__placeholder img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  opacity: .92;
}
.player__tag {
  position: relative; z-index: 2;
  align-self: center;
  font-size: 12.5px; letter-spacing: .06em;
  background: rgba(10,16,20,.72);
  color: #E8D9BC;
  border: 1px solid rgba(232,217,188,.35);
  padding: 4px 10px; border-radius: 999px;
  margin: 0;
}
.player__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(8,12,16,.86), rgba(8,12,16,0));
  color: #EAF0F3; font-size: .96rem; line-height: 1.5;
}

.media-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .84rem; color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #EBD9B8;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.media-note[hidden] { display: none; }

.scene-body {
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
}
.scene-body p { margin-bottom: .8em; }

details.subs {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 0 14px;
}
details.subs > summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px;
}
details.subs > summary::-webkit-details-marker { display: none; }
details.subs > summary::after {
  content: "展开";
  font-weight: 500; font-size: .8rem; color: var(--ink-3);
}
details.subs[open] > summary::after { content: "收起"; }
details.subs .subs__body {
  border-top: 1px solid var(--line-2);
  padding: 12px 0 14px;
  font-size: .92rem; line-height: 1.8; color: var(--ink-2);
}

/* ------------------------------------------------------------------ 反馈 */
.fb-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 650; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip--ok      { color: var(--accent-ink); background: var(--accent-soft); border-color: #CFE0DE; }
.chip--risk    { color: var(--warm); background: var(--warm-soft); border-color: #E4D8CB; }
.chip--partial { color: var(--amber); background: var(--amber-soft); border-color: #EBD9B8; }

/* --------------------------------------------------- 作答页的"你的条件" */
.context {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 16px;
  margin: 16px 0 4px;
}
.context__label {
  font-size: 12px; letter-spacing: .1em; font-weight: 700;
  color: var(--accent-ink); margin-bottom: 8px;
}
.plain--tight li { font-size: 1rem; margin-bottom: .4em; }
.plain--tight li::before { top: .66em; }

/* ------------------------------------------------------- 反馈页情境说明 */
.fb-replay {
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-size: .92rem; line-height: 1.72;
  color: var(--ink-2);
}
.fb-replay b {
  display: block; font-size: 11.5px; letter-spacing: .1em;
  font-weight: 700; color: var(--ink-3); margin-bottom: 4px;
}

.yourchoice {
  font-size: 1rem; color: var(--ink-2);
  background: var(--paper-2);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 11px 14px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.yourchoice b { color: var(--ink); font-weight: 650; }

.fb-body p { font-size: 1rem; line-height: 1.85; }

.fb-missed {
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--warm-soft);
  border: 1px solid #E4D8CB;
  border-radius: var(--r-sm);
  font-size: .93rem; line-height: 1.72;
  color: var(--warm);
}
.fb-missed span {
  display: block; font-size: 11.5px; letter-spacing: .1em;
  font-weight: 700; margin-bottom: 4px; opacity: .8;
}

.fb-pending {
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--amber-soft);
  border: 1px solid #EBD9B8;
  border-radius: var(--r-sm);
  font-size: .88rem; line-height: 1.7; color: var(--amber);
}
.fb-pending b { display: block; margin-bottom: 4px; }

.srcrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.srcrow__label {
  font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3);
  font-weight: 650; margin-right: 2px;
}
.tag {
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.tag--p { color: var(--ink-3); }
.tag--r { color: var(--ink-3); background: transparent; border-style: dashed; }

/* ------------------------------------------------------------------ 复盘 */
.refl-summary {
  font-size: 1.04rem; line-height: 1.85;
  background: var(--accent-soft);
  border: 1px solid #CFE0DE;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 18px;
  color: var(--ink);
}

.refl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px 18px;
  box-shadow: var(--shadow);
}
.refl-card + .refl-card { margin-top: 12px; }

.refl-card__top {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.refl-card__no {
  font-size: 12px; letter-spacing: .12em; color: var(--ink-3);
  font-weight: 700;
}
.refl-card__dim {
  font-size: .92rem; font-weight: 650; color: var(--ink);
  margin-right: auto;
}
.refl-card__note {
  font-size: .86rem; line-height: 1.7; color: var(--ink-3);
  margin: 0 0 10px;
}
.refl-card__choice {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 13px;
  margin: 0 0 10px;
}
.refl-card__principle {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 650;
  color: var(--accent-ink);
  margin: 0;
}

details.refl-more {
  margin-top: 10px;
  border-top: 1px solid var(--line-2);
}
details.refl-more > summary {
  cursor: pointer;
  padding: 10px 0 4px;
  min-height: 44px;
  display: flex; align-items: center;
  font-size: .93rem; font-weight: 600; color: var(--ink-3);
  list-style: none;
}
details.refl-more > summary::-webkit-details-marker { display: none; }
details.refl-more > summary::after {
  content: "＋";
  margin-left: 6px;
  font-weight: 400;
}
details.refl-more[open] > summary::after { content: "－"; }
details.refl-more > summary:hover { color: var(--ink-2); }

/* 收尾页的折叠区块 */
details.sect {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
details.sect > summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .95rem; font-weight: 650; color: var(--ink);
  list-style: none;
}
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after {
  content: "展开";
  font-size: .8rem; font-weight: 500; color: var(--ink-3);
}
details.sect[open] > summary::after { content: "收起"; }
details.sect > .sect__body {
  border-top: 1px solid var(--line-2);
  padding: 12px 0 14px;
}

/* 收尾页顶部的"重新体验" */
.endtop {
  margin: 18px 0 20px;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.endtop .btn { min-height: 48px; padding: 12px 18px; font-size: .98rem; }

.refl-closing {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: .97rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.refl-closing p:first-child { color: var(--ink); }

.refl-line {
  font-size: 1rem; line-height: 1.75;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
}
.refl-line:first-of-type { border-top: none; padding-top: 0; }
.refl-line__k {
  font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3);
  font-weight: 650; display: block; margin-bottom: 3px;
}
.refl-line__v { color: var(--ink-2); }
.refl-line__v strong { color: var(--ink); font-weight: 650; }

/* -------------------------------------------------------------- 迁移题 */
.facts {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.facts li { color: var(--ink); }
.facts__note {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
  font-size: .97rem;
  line-height: 1.7;
  color: var(--warm);
}

/* ------------------------------------------------------------------ 收尾 */
.statlist { margin: 0; }
.statlist > div {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  font-size: .92rem; line-height: 1.7;
}
.statlist > div:first-child { border-top: none; padding-top: 0; }
.statlist dt {
  flex: 0 0 5.2em; color: var(--ink-3); font-size: .84rem;
  letter-spacing: .04em; padding-top: .15em;
}
.statlist dd { margin: 0; color: var(--ink-2); flex: 1 1 auto; }

.srclist { list-style: none; margin: 0; padding: 0; }
.srclist > li {
  padding: 13px 0;
  border-top: 1px solid var(--line-2);
  font-size: .9rem; line-height: 1.72; color: var(--ink-2);
}
.srclist > li:first-child { border-top: none; padding-top: 0; }
.srclist__top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.srclist__id {
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 5px;
}
.srclist__kind { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.srclist__full { color: var(--ink); font-size: .9rem; }
.srclist__url { word-break: break-all; font-size: .84rem; }
.srclist__cond { color: var(--ink-3); font-size: .85rem; margin-top: 4px; }

.pendinglist { list-style: none; margin: 0; padding: 0; }
.pendinglist li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .9rem; line-height: 1.68; color: var(--ink-2);
  padding: 8px 0; border-top: 1px solid #EFDFC2;
}
.pendinglist li:first-child { border-top: none; }
.pendinglist .pid {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--amber);
  padding-top: .18em; font-variant-numeric: tabular-nums;
}
.pendinglist .pstate {
  display: inline-block;
  font-size: 10.5px; line-height: 1.5; letter-spacing: .03em;
  color: var(--amber);
  background: #FFF9EE;
  border: 1px solid #EFDFC2;
  border-radius: 4px;
  padding: 0 5px;
  margin-right: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

.modelrec {
  font-size: .84rem; line-height: 1.75; color: var(--ink-3);
  border-top: 1px dashed var(--line);
  margin-top: 14px; padding-top: 12px;
}
.modelrec b { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------------ 页脚 */
.sitefoot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 20px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .78rem; line-height: 1.7; color: var(--ink-3);
}
.sitefoot p { margin-bottom: .5em; }

/* ------------------------------------------------------------ 打印兜底 */
@media print {
  .topbar, .actions, .options, .skiplink { display: none; }
  body { background: #fff; }
}
