/* ==========================================================================
   患者端 · 小程序组件库（v7）
   --------------------------------------------------------------------------
   一个 430 单列的小程序该有的东西：壳、卡、票、步进、气泡、选项、输入条、抽屉。
   原则：
   - 一屏只讲一件事，主任务永远在拇指能到的位置；
   - 卡片有厚度但不画框，靠明度差 + 一处投影分层；
   - 琥珀只用来指路（当前步骤、号序、待办），不做装饰；
   - 所有可点的东西最小 44×44，手指按得准。
   ========================================================================== */

/* ---------- 0. 壳 ---------- */
.phone {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 1px rgba(40, 33, 20, 0.04);
}
.phone--flush {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 顶栏：贴在顶部，滚动时只留一条线 */
.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  background: rgba(243, 238, 227, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
.appbar.is-stuck {
  border-bottom-color: var(--line);
}
.appbar__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -10px rgba(11, 36, 29, 0.8);
}
.appbar__ttl {
  min-width: 0;
}
.appbar__ttl b {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-16);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.appbar__ttl span {
  display: block;
  font-size: var(--fs-11);
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.appbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 返回 / 圆形图标键 */
.iconbtn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    background var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}
.iconbtn:active {
  transform: scale(0.96);
  background: var(--paper-2);
}
.iconbtn--plain {
  background: transparent;
  box-shadow: none;
}

/* 就诊人切换 */
.who {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-12);
  color: var(--ink-2);
}
.who b {
  font-weight: 600;
}
.who svg {
  color: var(--faint);
}

/* 页面主体 */
.body {
  padding: 4px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.body > * {
  min-width: 0;
}

/* ---------- 1. 标题区 ---------- */
.pagehd {
  padding: 6px 16px 2px;
}
.pagehd .kick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--fs-11);
  letter-spacing: 0.18em;
  color: var(--faint);
  text-transform: uppercase;
}
.pagehd .kick i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber-2);
}
.pagehd h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.pagehd p {
  margin-top: 8px;
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 2. 卡 ---------- */
.card {
  background: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  padding: 16px;
}
.card--tight {
  padding: 14px;
}
.card--deep {
  background: linear-gradient(160deg, var(--deep-2), var(--deep) 62%);
  color: #f1ece0;
  box-shadow: var(--shadow-2);
}
.card--sand {
  background: var(--paper-2);
  box-shadow: none;
}
.card--flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card__hd {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card__hd h2 {
  font-family: var(--serif);
  font-size: var(--fs-15);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card__hd .more {
  margin-left: auto;
  font-size: var(--fs-12);
  color: var(--faint);
}

/* 章节小标题：编号 + 中文，像病历的分栏 */
.sec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 2px 0;
}
.sec span {
  font-family: var(--mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  color: var(--amber);
}
.sec h3 {
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.sec em {
  margin-left: auto;
  font-style: normal;
  font-size: var(--fs-11);
  color: var(--faint);
}

/* ---------- 3. 号序票根（首页的主视觉） ---------- */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  background: linear-gradient(155deg, #14372c, #0b241d 58%, #0a201a);
  border-radius: var(--r-l);
  color: #f1ece0;
  box-shadow:
    0 2px 6px rgba(11, 36, 29, 0.18),
    0 26px 44px -30px rgba(11, 36, 29, 0.9);
  overflow: hidden;
}
.ticket::after {
  content: '';
  position: absolute;
  right: -30%;
  top: -60%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 138, 60, 0.22), transparent 70%);
  pointer-events: none;
}
.ticket__main {
  position: relative;
  padding: 18px 18px 16px;
  min-width: 0;
}
.ticket__time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-28);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fdf8ec;
}
.ticket__time em {
  font-style: normal;
  font-size: var(--fs-11);
  color: rgba(241, 236, 224, 0.55);
  letter-spacing: 0;
}
.ticket__dept {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-15);
  font-weight: 600;
}
.ticket__meta {
  margin-top: 6px;
  font-size: var(--fs-12);
  color: rgba(241, 236, 224, 0.6);
  line-height: 1.55;
}
.ticket__meta i {
  font-style: normal;
  color: rgba(241, 236, 224, 0.28);
  margin: 0 5px;
}
.ticket__wait {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  background: rgba(159, 208, 191, 0.16);
  color: #cfe6dc;
  font-size: var(--fs-11);
  letter-spacing: 0.02em;
}
.ticket__wait::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fd0bf;
}
.ticket__stub {
  position: relative;
  display: grid;
  place-items: center;
  border-left: 1px dashed rgba(241, 236, 224, 0.22);
}
.ticket__stub::before,
.ticket__stub::after {
  content: '';
  position: absolute;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--canvas);
}
.ticket__stub::before {
  top: -5px;
}
.ticket__stub::after {
  bottom: -5px;
}
.ticket__no {
  font-family: var(--mono);
  font-size: var(--fs-18);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f2c98f;
}
.ticket__no + span {
  display: block;
  margin-top: 3px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(241, 236, 224, 0.42);
}

/* 四步进度：一条线 + 四个点 */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px 2px 0;
}
.steps li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-11);
  color: var(--faint);
}
.steps li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.steps li:first-child::before {
  display: none;
}
.steps li i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-3);
}
.steps li.done {
  color: var(--ink-2);
}
.steps li.done::before {
  background: var(--brand-200);
}
.steps li.done i {
  background: var(--primary);
  box-shadow: none;
}
.steps li.on {
  color: var(--amber);
  font-weight: 600;
}
.steps li.on::before {
  background: var(--brand-200);
}
.steps li.on i {
  background: var(--amber-2);
  box-shadow: 0 0 0 4px rgba(201, 138, 60, 0.18);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--r-m);
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-15);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    var(--shadow-pine);
  transition:
    transform var(--dur-1) var(--ease),
    background var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.995);
  background: var(--brand-700);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}
.btn svg {
  opacity: 0.9;
  transition: transform var(--dur-2) var(--ease);
}
.btn:active svg {
  transform: translateX(2px);
}
.btn[disabled],
.btn.is-off {
  background: var(--paper-3);
  color: var(--faint);
  box-shadow: none;
  pointer-events: none;
}
.btn--amber {
  background: var(--amber-2);
  color: #2a1a06;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    var(--shadow-amber);
}
.btn--ghost {
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:active {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn--sm {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  font-size: var(--fs-13);
  border-radius: var(--r-s);
}
.btn--text {
  width: auto;
  min-height: 36px;
  padding: 0 6px;
  background: none;
  box-shadow: none;
  color: var(--primary);
  font-weight: 500;
}
.btn--text:active {
  transform: none;
  background: none;
}

/* ---------- 5. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: var(--fs-11);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag--pine {
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-200);
}
.tag--amber {
  background: var(--amber-50);
  color: #8a5a1c;
  box-shadow: inset 0 0 0 1px #ecd3a9;
}
.tag--clay {
  background: var(--clay-50);
  color: var(--clay);
  box-shadow: inset 0 0 0 1px #e6c8bd;
}
.tag--mist {
  background: var(--mist-50);
  color: var(--mist);
  box-shadow: inset 0 0 0 1px #cddce5;
}
.tag--plain {
  background: var(--paper-2);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 6. 行与列表 ---------- */
.list {
  background: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.list--flat {
  box-shadow: none;
  border: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--dur-1) var(--ease);
  text-align: left;
  width: 100%;
}
.row:last-child {
  border-bottom: 0;
}
.row:active {
  background: var(--paper-2);
}
.row__ic {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
}
.row__ic--pine {
  background: var(--brand-50);
  color: var(--brand-700);
}
.row__ic--amber {
  background: var(--amber-50);
  color: var(--amber);
}
.row__ic--clay {
  background: var(--clay-50);
  color: var(--clay);
}
.row__main {
  min-width: 0;
  flex: 1;
}
.row__main b {
  display: block;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.row__main span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-12);
  color: var(--muted);
}
.row__end {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  color: var(--faint);
}
.row__end .chev {
  color: var(--line-3);
}

/* ---------- 7. 进度 ---------- */
.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--paper-3);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  transition: width var(--dur-4) var(--ease);
}
.bar--pine i {
  background: linear-gradient(90deg, var(--brand-400), var(--primary));
}

/* 环形进度：答题进度的主角 */
.ring {
  --p: 0;
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--amber-2) calc(var(--p) * 1%), var(--paper-3) 0);
  display: grid;
  place-items: center;
}
.ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--paper);
}
.ring b {
  position: relative;
  font-family: var(--mono);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink);
}
.ring b em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
}

/* ---------- 8. 对话气泡 ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 16px 12px;
}
.msg {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg__who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-11);
  color: var(--faint);
  letter-spacing: 0.04em;
}
.msg__who i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  background: var(--brand-50);
  color: var(--brand-700);
}
.msg__bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: var(--fs-14);
  line-height: 1.72;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  border-top-left-radius: 6px;
}
.msg__bubble b {
  font-weight: 600;
}
.msg__bubble .hl {
  color: var(--amber);
  font-weight: 600;
}
.msg--me {
  align-self: flex-end;
  align-items: flex-end;
}
.msg--me .msg__bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  border-top-right-radius: 6px;
  box-shadow: var(--shadow-pine);
}
.msg--sys {
  align-self: center;
  max-width: 100%;
}
.msg--sys .msg__bubble {
  background: var(--amber-50);
  color: #8a5a1c;
  box-shadow: inset 0 0 0 1px #eed9b6;
  border-radius: var(--r-s);
  font-size: var(--fs-12);
  text-align: left;
}

/* 选项：竖排大按钮，拇指一按就到 */
.quick {
  display: grid;
  gap: 8px;
  padding: 4px 16px 12px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-14);
  color: var(--ink);
  text-align: left;
  transition:
    box-shadow var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}
.opt:active {
  transform: scale(0.99);
  background: var(--paper-2);
}
.opt.on {
  box-shadow: inset 0 0 0 1.5px var(--primary);
  background: var(--brand-50);
}
.opt .k {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--paper-2);
  color: var(--muted);
}
.opt.on .k {
  background: var(--primary);
  color: #fff;
}
.opt .sub {
  margin-left: auto;
  font-size: var(--fs-11);
  color: var(--faint);
}

/* 输入条：贴在底部，和 tabbar 二选一 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 238, 227, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dock input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: var(--fs-14);
  outline: none;
  transition:
    border-color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.dock input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 110, 94, 0.1);
}
.dock .send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-pine);
}
.dock .send[disabled] {
  background: var(--paper-3);
  color: var(--faint);
  box-shadow: none;
}
.dock .mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 9. 底栏 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 253, 247, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  font-size: var(--fs-11);
  color: var(--faint);
  letter-spacing: 0.02em;
}
.tabbar a svg {
  width: 22px;
  height: 22px;
}
.tabbar a.on {
  color: var(--primary);
  font-weight: 600;
}
.tabbar a.on::before {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--amber-2);
}

/* ---------- 10. 抽屉 / 遮罩 / 轻提示 ---------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(17, 28, 24, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.mask.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  max-width: 430px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -40px rgba(17, 28, 24, 0.6);
  transform: translateY(102%);
  transition: transform var(--dur-3) var(--ease);
}
.sheet.on {
  transform: translateY(0);
}
.sheet__handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-3);
  margin: 6px auto 12px;
}
.sheet__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sheet__hd h2 {
  font-family: var(--serif);
  font-size: var(--fs-18);
  font-weight: 600;
}
.sheet__hd .x {
  margin-left: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 60;
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: rgba(11, 36, 29, 0.94);
  color: #f1ece0;
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 16px 34px -20px rgba(11, 36, 29, 0.9);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 11. 报告 / 时间轴 ---------- */
.report {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report section {
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.report section:first-child {
  border-top: 0;
  padding-top: 4px;
}
.report h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-12);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.report h4 i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-200);
}
.report p {
  margin-top: 8px;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--ink);
}
.report p:empty::after {
  content: '（未填写）';
  color: var(--faint);
  font-size: var(--fs-12);
}
.report .ai {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-11);
  color: var(--faint);
}

.tl {
  padding-left: 6px;
}
.tl li {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 1px solid var(--line);
}
.tl li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.tl li::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--brand-400);
}
.tl li.on::before {
  background: var(--amber-2);
  box-shadow: 0 0 0 3px rgba(201, 138, 60, 0.16);
}
.tl b {
  display: block;
  font-size: var(--fs-12);
  color: var(--ink-2);
  font-weight: 600;
}
.tl span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-12);
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 12. 杂项 ---------- */
.kv {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line-2);
}
.kv:first-child {
  border-top: 0;
}
.kv dt {
  font-size: var(--fs-12);
  color: var(--faint);
}
.kv dd {
  margin: 0;
  font-size: var(--fs-13);
  color: var(--ink-2);
}

.empty {
  text-align: center;
  padding: 34px 16px;
  color: var(--muted);
}
.empty b {
  display: block;
  font-size: var(--fs-14);
  color: var(--ink-2);
  font-weight: 500;
}
.empty span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-12);
  color: var(--faint);
}

.hint {
  font-size: var(--fs-11);
  color: var(--faint);
  line-height: 1.7;
  text-align: center;
}

.hero-strip {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.hero-strip img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    to top,
    rgba(11, 36, 29, 0.92) 10%,
    rgba(11, 36, 29, 0.4) 62%,
    transparent
  );
  color: #f6f1e6;
  font-size: var(--fs-11);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-strip figcaption b {
  font-weight: 600;
}
.hero-strip figcaption .m {
  margin-left: auto;
  color: rgba(241, 236, 224, 0.6);
  font-family: var(--mono);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  padding: 14px;
  border-radius: var(--r-m);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-22);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-11);
  color: var(--faint);
}
.stat em {
  font-style: normal;
  font-size: var(--fs-11);
  color: var(--faint);
}

/* 大号档位切换（字号、范围） */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.seg button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  color: var(--muted);
  transition:
    background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.seg button.on {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(40, 33, 20, 0.08);
}

/* 红旗提示：只在这种情况下用陶土 */
.flag {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--clay-50);
  box-shadow: inset 0 0 0 1px #e8c9bf;
  color: #7d3423;
  font-size: var(--fs-12);
  line-height: 1.7;
}
.flag b {
  font-weight: 600;
}
.flag svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .opt,
  .row,
  .tabbar a {
    transition: none;
  }
}
