/* ---------- 基础 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #e7ebef;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(6, 31, 50, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
/* 图标默认跟随字号；无尺寸的内联 SVG 会被当成 300×150 的替换元素，撑破 flex 行 */
svg { width: 1em; height: 1em; flex: 0 0 auto; }
a { color: var(--accent-ink); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink); color: #fff; }

/* ---------- 机身 ---------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(6, 31, 50, 0.07), 0 30px 90px rgba(6, 31, 50, 0.12);
}
@media (max-width: 460px) { .app { box-shadow: none; } }
.screen {
  flex: 1;
  padding: 18px var(--pad) calc(104px + env(safe-area-inset-bottom));
  animation: fade 220ms ease both;
}
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 排版 ---------- */
.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow--muted { color: var(--muted); }
.h1 { font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 8px; }
.h2 { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.p { margin: 0 0 10px; color: var(--slate); }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.rule { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.rule--strong { background: var(--ink); opacity: 0.85; }
.source {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 22px;
  line-height: 1.55;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.topbar__sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.iconbtn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--wash);
  flex: 0 0 auto;
  transition: background 160ms;
}
.iconbtn:hover { background: var(--wash-2); }
.iconbtn svg { width: 18px; height: 18px; }
.topbar__grow { flex: 1; min-width: 0; }
.topbar__spacer { flex: 1; }

/* ---------- 品牌头 ---------- */
.brand { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0 2px; }
.brand__zh { font-size: 30px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; }
.brand__en { font-size: 10px; letter-spacing: 0.34em; color: var(--muted); padding-bottom: 4px; }
.brand__slogan { font-size: 12.5px; color: var(--slate); margin: 8px 0 0; letter-spacing: 0.03em; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 16px;
}
.card--wash { background: var(--wash); border-color: transparent; }
.card--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--ink .p, .card--ink .small { color: rgba(255, 255, 255, 0.72); }
.card--ink .eyebrow { color: var(--accent); }
.card + .card, .card + .section, .section + .card { margin-top: 12px; }
.section { margin-top: 22px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section__head .eyebrow { flex: 0 0 auto; }
.linkmore { font-size: 12px; color: var(--muted); }
.linkmore:hover { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  background: var(--ink); color: #fff;
  transition: transform 120ms ease, background 160ms ease, opacity 160ms;
}
.btn:active { transform: scale(0.985); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--wash); }
.btn--accent { background: var(--accent-ink); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--xs { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 999px; }
.btn:disabled { opacity: 0.42; }
.btn__sub { font-size: 12px; font-weight: 500; opacity: 0.7; }

/* ---------- 徽标 / 药丸 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--wash); color: var(--slate);
  white-space: nowrap;
}
.pill--live { background: var(--ok-wash); color: var(--ok); }
.pill--warn { background: var(--warn-wash); color: var(--warn); }
.pill--seal { background: var(--seal-wash); color: var(--seal); }
.pill--accent { background: var(--accent-wash); color: var(--accent-ink); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot--pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.28; } }

/* ---------- 在场状态条 ---------- */
.presence {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-1);
  background: var(--ok-wash);
  color: var(--ok);
  font-size: 12.5px;
  border: 1px solid rgba(15, 122, 90, 0.14);
}
.presence--warn { background: var(--warn-wash); color: var(--warn); border-color: rgba(180, 98, 42, 0.16); }
.presence--dead { background: var(--wash); color: var(--muted); border-color: var(--line); }
.presence__grow { flex: 1; min-width: 0; }
.presence > svg { width: 16px; height: 16px; color: currentColor; }
.presence__timer { font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.track { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.track__bar { height: 100%; background: var(--ink); border-radius: 99px; transition: width 400ms linear; }
.track__bar--ok { background: var(--ok); }
.track__bar--accent { background: var(--accent); }

/* ---------- 列表 ---------- */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.row:last-child { border-bottom: 0; }
.row__grow { flex: 1; min-width: 0; }
.row__title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.row__chev { color: rgba(124, 138, 153, 0.55); }
.row--tap:hover { background: var(--wash); }
.row--tap { border-radius: 8px; padding-left: 6px; padding-right: 6px; margin: 0 -6px; }

/* ---------- 菜品 ---------- */
.menu { display: flex; flex-direction: column; }
.dish { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: 0; }
.dish__body { flex: 1; min-width: 0; }
.dish__name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dish__tag { font-size: 10px; font-weight: 700; color: var(--seal); background: var(--seal-wash); padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em; }
.dish__price { font-size: 12.5px; color: var(--slate); margin-top: 2px; font-variant-numeric: tabular-nums; }
.dish__price b { color: var(--ink); font-size: 15px; font-weight: 700; }
.dish__price--end { margin: 0 0 0 auto; text-align: right; white-space: nowrap; }
.dish__price--end span { color: var(--muted); font-size: 11px; }
.addbtn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1; font-weight: 400;
  transition: transform 120ms;
}
.addbtn:active { transform: scale(0.9); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 15px; }
.qty button:hover { background: var(--wash); }
.qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 底部结算条 ---------- */
.checkoutbar {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.checkoutbar__sum { flex: 1; min-width: 0; }
.checkoutbar__sum b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.checkoutbar__sum span { font-size: 11px; color: var(--muted); display: block; line-height: 1.3; }

/* ---------- 标签栏 ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 160ms;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--ink); }
.tab.is-active svg { stroke-width: 2; }
.tab.is-active::after {
  content: ""; position: absolute; display: none;
}

/* ---------- 扫码台 ---------- */
.qr {
  width: 188px; height: 188px;
  margin: 2px auto;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.qr i { display: block; }
.qr i.on { background: var(--ink); }
.qr__cap { text-align: center; font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 8px; }
.scanframe {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 20px 18px 26px;
  background: var(--wash);
}
.scanframe::before, .scanframe::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--ink);
}
.scanframe::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-2); }
.scanframe::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-2); }

/* ---------- 订单 / 时间轴 ---------- */
.orderhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bignum { font-size: 54px; font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.bignum--sm { font-size: 34px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.tl { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-bottom: 16px; position: relative; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  width: 9px; height: 9px; margin-top: 5px; border-radius: 50%;
  background: var(--line-strong); position: relative; z-index: 1;
  justify-self: center;
}
.tl::before {
  content: ""; position: absolute; left: 8.5px; top: 14px; bottom: 0;
  width: 1px; background: var(--line);
}
.tl:last-child::before { display: none; }
.tl.is-done .tl__dot { background: var(--ink); }
.tl.is-current .tl__dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.tl.is-cancelled .tl__dot { background: var(--seal); }
.tl.is-cancelled .tl__title { color: var(--seal); }
.tl__title { font-size: 13.5px; font-weight: 600; }
.tl.is-pending .tl__title { color: var(--muted); font-weight: 500; }
.tl__meta { font-size: 11.5px; color: var(--muted); }

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 12px;
  border: 2px solid var(--seal);
  color: var(--seal);
  border-radius: 4px;
  transform: rotate(-6deg);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  line-height: 1.3;
  opacity: 0.9;
}
.seal small { font-size: 8.5px; letter-spacing: 0.1em; font-weight: 600; opacity: 0.8; }

/* ---------- 评分 ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; }
.stars--lg svg { width: 26px; height: 26px; }
.starbtn { color: var(--line-strong); transition: color 120ms, transform 120ms; padding: 2px; }
.starbtn.on { color: #e8a33d; }
.starbtn svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.ratebar { display: flex; align-items: center; gap: 4px; }
.ratebar__hint { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* ---------- 输入 ---------- */
.field { display: block; margin: 12px 0; }
.field__label { font-size: 11.5px; font-weight: 700; color: var(--slate); letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.input, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 11px 13px;
  font-size: 14.5px;
  background: #fff;
  transition: border-color 160ms, box-shadow 160ms;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(8, 166, 246, 0.14); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; color: var(--slate);
  background: #fff; transition: all 140ms;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 聊天 ---------- */
.chat {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 0 8px;
}
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; }
.msg__who { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; display: flex; gap: 6px; align-items: center; }
.msg__who b { color: var(--slate); font-weight: 600; }
.msg__body {
  background: var(--wash);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  word-break: break-word;
}
.msg--self { align-self: flex-end; align-items: flex-end; }
.msg--self .msg__body { background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg--self .msg__who { justify-content: flex-end; }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom));
  max-width: 440px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 14px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 30;
}
.composer .input { padding: 10px 14px; border-radius: 999px; }
.composer__send { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.composer__send svg { width: 18px; height: 18px; }
.composer__send:disabled { background: var(--line-strong); }

/* ---------- 地图 ---------- */
.map {
  position: relative;
  height: 208px;
  border-radius: var(--r-2);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(6,31,50,0.035) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(6,31,50,0.035) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--wash);
}
.mapline { position: absolute; background: #fff; opacity: 0.9; }
.mappin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mappin__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 2px 6px rgba(6,31,50,0.28);
}
.mappin.is-live .mappin__dot { background: var(--accent); }
.mappin__label {
  font-size: 9.5px; background: #fff; padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--line); white-space: nowrap; color: var(--slate);
}
.maplegend { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.maplegend span { display: inline-flex; align-items: center; gap: 5px; }
.row__chev svg { width: 16px; height: 16px; }

/* ---------- 进度 ---------- */
.gate { border-top: 1px solid var(--line); padding: 14px 0; }
.gate:first-of-type { border-top: 0; }
.gate__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gate__title { font-size: 14px; font-weight: 700; }
.gate__rows { display: flex; flex-direction: column; gap: 11px; }
.gaterow__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 5px; }
.gaterow__name { color: var(--slate); }
.gaterow__val { font-variant-numeric: tabular-nums; font-weight: 700; }
.gaterow__val.is-pass { color: var(--ok); }
.gaterow__val.is-fail { color: var(--seal); }
.gate__sub {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0 2px;
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.gate__sub:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- 统计块 ---------- */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.stat { background: #fff; padding: 14px 14px 12px; }
.stat--wide { grid-column: 1 / -1; }
.stat__k { font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.stat__v { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat__v small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.stat__n { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.stat--ink { background: var(--ink); }
.stat--ink .stat__k, .stat--ink .stat__n { color: rgba(255,255,255,0.62); }
.stat--ink .stat__v { color: #fff; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty__mark {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center; color: var(--line-strong);
}
.empty__mark svg { width: 20px; height: 20px; }
.empty__t { font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.empty__d { font-size: 12px; }

/* ---------- 提示 / Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  z-index: 90;
  max-width: 340px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(6, 31, 50, 0.95);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 分段控件 ---------- */
.seg { display: flex; background: var(--wash); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(6,31,50,0.12); }

/* ---------- 其他 ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.kv__k { color: var(--muted); }
.kv__v { font-variant-numeric: tabular-nums; text-align: right; }
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-1);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 12.5px;
  line-height: 1.55;
}
.banner--seal { background: var(--seal-wash); color: var(--seal); }
.banner--warn { background: var(--warn-wash); color: var(--warn); }
.banner b { font-weight: 700; }
.hr-dot { color: var(--line-strong); margin: 0 2px; }
.wrap-actions { display: flex; gap: 10px; }
.wrap-actions > * { flex: 1; }
.stack > * + * { margin-top: 10px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.tc { text-align: center; }
.nowrap { white-space: nowrap; }
.tiny { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }



/* ---------- 深色卡片上的按钮 ---------- */
.btn--onink { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn--onink:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- 开关 ---------- */
.switch {
  width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong);
  position: relative; flex: 0 0 auto; transition: background 160ms;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(6, 31, 50, 0.25);
  transition: transform 160ms;
}
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(18px); }

/* ---------- 标签栏角标 ---------- */
.tabbadge {
  position: absolute; top: 5px; right: 50%; margin-right: -18px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--seal); color: #fff;
  font-size: 9.5px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center;
}
.tab { position: relative; }

/* ---------- 启动占位 ---------- */
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 6px; }
.boot__mark { font-size: 28px; font-weight: 700; letter-spacing: 0.12em; }
.boot__sub { font-size: 10px; letter-spacing: 0.34em; color: var(--muted); }
