/* ============================================================
   蜂票 HiveTix · 移动 APP 原型样式
   Token 与 web/src/index.css 对齐（docs/design/brand.md），缺失部分按原型规范补齐，见 prototype/tokens.md
   ============================================================ */

:root {
  --ht-brand-50: #FDEEF3;  --ht-brand-100: #FBDCE6; --ht-brand-200: #F6B9CC;
  --ht-brand-300: #F58BAB; --ht-brand-400: #FB7299; --ht-brand-500: #E05A80;
  --ht-brand-600: #C94A70; --ht-brand-700: #A93A5D; --ht-brand-900: #571E31;
  --ht-primary: var(--ht-brand-500);
  --ht-accent: #FF8A3D;

  --ok: #0D9668;    --ok-bg: #E6F7F0;    --ok-bd: #9FE3C8;
  --fail: #DC2626;  --fail-bg: #FDECEC;  --fail-bd: #F5B5B1;
  --err: #B42318;   --err-bg: #FBE9E7;   --err-bd: #EFA79F;
  --unk: #6E7891;   --unk-bg: #F0F1F6;   --unk-bd: #CDD2E0;
  --pend: #2563EB;  --pend-bg: #E9F0FE;  --pend-bd: #B3CBFB;
  --warn: #D97706;  --warn-bg: #FDF3E4;  --warn-bd: #F8D9A2;

  --pf-bili: #E05A80; --pf-node: #0EA5A5;

  --fg: #1A2030; --fg2: #3E4659; --fg3: #5B6478; --fg4: #9AA3B7;
  --on-brand: #fff;
  --bg: #F7F8FB; --card: #FFFFFF; --hover: #EEF0F5; --active: #E2E6EE;
  --bd-strong: #C7CDDC; --bd: #DDE1EA; --bd-light: #EDF0F6;
  --mask: rgba(11,16,32,.5);
  --nav-bg: rgba(255,255,255,.86);

  --sh-sm: 0 1px 2px rgba(22,27,42,.06);
  --sh-md: 0 4px 12px rgba(22,27,42,.08);
  --sh-lg: 0 12px 32px rgba(22,27,42,.14);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
          'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --code: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', Consolas, monospace;

  --r-sm: 6px; --r: 10px; --r-md: 14px; --r-lg: 18px; --r-full: 9999px;
}

html.dark {
  --ht-primary: var(--ht-brand-400);
  --ok: #34D399;   --ok-bg: rgba(52,211,153,.14);   --ok-bd: rgba(52,211,153,.4);
  --fail: #F87171; --fail-bg: rgba(248,113,113,.14);--fail-bd: rgba(248,113,113,.4);
  --err: #FF9C93;  --err-bg: rgba(180,35,24,.28);   --err-bd: rgba(255,156,147,.45);
  --unk: #A3ACC2;  --unk-bg: rgba(163,172,194,.14); --unk-bd: rgba(163,172,194,.4);
  --pend: #60A5FA; --pend-bg: rgba(96,165,250,.14); --pend-bd: rgba(96,165,250,.4);
  --warn: #FDB022; --warn-bg: rgba(253,176,34,.14); --warn-bd: rgba(253,176,34,.4);
  --pf-bili: #FB7299; --pf-node: #2CC3C3;

  --fg: #E6E9F0; --fg2: #C3CAD9; --fg3: #8B93A7; --fg4: #646E85;
  --bg: #0B0E14; --card: #131722; --hover: #1A1F2E; --active: #232A3B;
  --bd-strong: #3C4661; --bd: #232A3B; --bd-light: #1B2130;
  --mask: rgba(0,0,0,.65);
  --nav-bg: rgba(19,23,34,.88);
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 4px 12px rgba(0,0,0,.5);
  --sh-lg: 0 12px 32px rgba(0,0,0,.6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--fg);
  background: #E7E9F2; font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html.dark body { background: #0B0F1C; }
.num { font-variant-numeric: tabular-nums; }
/* 图标默认尺寸；更具体的选择器（.card-hd svg 等）可覆盖 */
svg.icon { width: 18px; height: 18px; flex: none; }
.code { font-family: var(--code); }

/* ---------------------------------------------------- 工作台外壳 */
.stage {
  min-height: 100%; padding: 22px 20px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.stage-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; max-width: 1240px;
}
.stage-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.stage-brand svg { width: 30px; height: 30px; border-radius: 8px; display: block; }
.stage-brand b { font-size: 15px; letter-spacing: .2px; }
.stage-brand span { font-size: 12px; color: var(--fg3); }
.seg { display: flex; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-full); padding: 3px; box-shadow: var(--sh-sm); }
.seg button {
  border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500;
  color: var(--fg3); padding: 6px 13px; border-radius: var(--r-full); cursor: pointer;
}
.seg button.on { background: var(--ht-primary); color: #fff; }

/* ---------------------------------------------------- 手机外框 */
.frames { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; width: 100%; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-label { font-size: 12px; color: var(--fg3); font-weight: 500; }
.phone {
  position: relative; width: 390px; height: 844px; flex: none;
  background: var(--bg); border-radius: 46px;
  border: 11px solid #12151F; box-shadow: 0 22px 60px rgba(11,16,32,.34), 0 0 0 1px rgba(0,0,0,.5);
  overflow: hidden;
}
html.dark .phone { border-color: #262B3A; }
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 27px; background: #12151F; border-radius: var(--r-full); z-index: 60;
}
html.dark .notch { background: #262B3A; }

/* 在真手机上打开这个原型时，等比缩掉外框宽度，避免横向溢出 */
@media (max-width: 460px) {
  body { overflow-x: hidden; }
  .stage { padding: 12px 8px 24px; }
  .frames { overflow: hidden; }
  .stage-brand span { display: none; }
  .phone { transform: scale(calc((100vw - 24px) / 390)); transform-origin: top center; }
  .phone-wrap { max-width: 100%; margin-bottom: calc((100vw - 24px) / 390 * 844 - 844px); }
}

/* iOS 状态栏 */
.statusbar {
  position: absolute; inset: 0 0 auto 0; height: 50px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px 0; font-size: 13px; font-weight: 600; color: var(--fg);
  pointer-events: none;
}
.statusbar .sb-r { display: flex; align-items: center; gap: 5px; }
.sb-bat { width: 23px; height: 12px; border: 1.4px solid currentColor; border-radius: 3px; position: relative; opacity: .9; }
.sb-bat::after { content: ''; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; right: 6px; background: currentColor; border-radius: 1px; }
.sb-bat::before { content: ''; position: absolute; right: -3.4px; top: 3.4px; bottom: 3.4px; width: 2px; background: currentColor; border-radius: 0 1px 1px 0; }

/* 屏幕视口 */
.viewport { position: absolute; inset: 0; overflow: hidden; }
.screen {
  position: absolute; inset: 0; display: none;
  flex-direction: column; background: var(--bg);
}
.screen.on { display: flex; }
.scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { width: 0; }
/* 竖向滚动容器是 flex column：子项一律不许被压缩，否则卡片会被挤扁 */
.scroll > * { flex: none; }
.scroll.has-appbar { padding-top: 0; }
.scroll.has-tabbar { padding-bottom: 88px; }
.scroll.flush { padding-left: 0; padding-right: 0; }

/* ---------------------------------------------------- 顶栏 */
.appbar {
  position: sticky; top: 0; z-index: 40; flex: none;
  padding: 50px 14px 9px; display: flex; align-items: center; gap: 9px;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--bd-light);
}
.appbar h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.appbar .sub { font-size: 11px; color: var(--fg3); font-weight: 400; }
.appbar .right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.iconbtn {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--fg2); border-radius: var(--r-sm); cursor: pointer;
}
.iconbtn:active { background: var(--hover); }
.iconbtn svg { width: 19px; height: 19px; }
.backbtn { display: flex; align-items: center; gap: 1px; border: 0; background: transparent; color: var(--ht-primary); font: inherit; font-size: 14px; cursor: pointer; padding: 0; margin-left: -4px; }
.backbtn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------- 底部 Tab */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; padding: 7px 4px 22px;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--bd-light);
}
.tabbar button {
  flex: 1; border: 0; background: transparent; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--fg3); font-size: 10px; font-weight: 500; padding: 2px 0;
}
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--ht-primary); }
.tab-fab {
  position: relative; top: -13px;
}
.tab-fab .fab {
  width: 46px; height: 46px; border-radius: var(--r-full); display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ht-brand-400), var(--ht-brand-600)); color: #fff;
  box-shadow: 0 6px 16px rgba(224,90,128,.42);
}
.tab-fab .fab svg { width: 24px; height: 24px; }

/* ---------------------------------------------------- 通用块 */
.card {
  background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; gap: 7px; padding: 11px 13px;
  border-bottom: 1px solid var(--bd-light); font-size: 13px; font-weight: 600;
}
.card-hd svg { width: 15px; height: 15px; color: var(--ht-primary); }
.card-hd .more { margin-left: auto; font-size: 11px; color: var(--fg3); font-weight: 400; display: flex; align-items: center; gap: 1px; }
.card-hd .more svg { width: 13px; height: 13px; color: var(--fg4); }
.card-bd { padding: 13px; }
.card-bd.tight { padding: 10px 13px; }

.sect-title { font-size: 12px; font-weight: 600; color: var(--fg3); letter-spacing: .3px; padding: 0 2px; margin-top: 2px; }

.row {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  border-bottom: 1px solid var(--bd-light); background: transparent;
  border-left: 0; border-right: 0; border-top: 0; width: 100%;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:active { background: var(--hover); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 11px; color: var(--fg3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.row .chev { width: 17px; height: 17px; color: var(--fg4); flex: none; }
.row-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--hover); color: var(--fg2); }
.row-ic svg { width: 16px; height: 16px; }

/* 状态点 / 标签 / 平台徽章 */
.dot { width: 7px; height: 7px; border-radius: var(--r-full); flex: none; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.fail { background: var(--fail); }
.dot.err { background: var(--err); } .dot.unk { background: var(--unk); }
.dot.pend { background: var(--pend); box-shadow: 0 0 0 3px var(--pend-bg); }
.dot.warn { background: var(--warn); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px;
  font-size: 11px; font-weight: 500; border-radius: var(--r-sm); border: 1px solid; white-space: nowrap;
}
.tag.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
.tag.fail { color: var(--fail); background: var(--fail-bg); border-color: var(--fail-bd); }
.tag.err { color: var(--err); background: var(--err-bg); border-color: var(--err-bd); }
.tag.unk { color: var(--unk); background: var(--unk-bg); border-color: var(--unk-bd); }
.tag.pend { color: var(--pend); background: var(--pend-bg); border-color: var(--pend-bd); }
.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }

.pf {
  display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: var(--r-sm); color: #fff; font-size: 11px; font-weight: 700;
}
.pf.bili { background: var(--pf-bili); } .pf.node { background: var(--pf-node); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  background: var(--ht-primary); color: #fff;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { filter: brightness(.94); }
.btn.lg { height: 46px; font-size: 15px; font-weight: 600; border-radius: var(--r-md); width: 100%; }
.btn.sm { height: 31px; font-size: 12.5px; padding: 0 11px; }
.btn.ghost { background: transparent; color: var(--fg2); border-color: var(--bd-strong); }
.btn.soft { background: var(--ht-brand-50); color: var(--ht-primary); border-color: transparent; }
html.dark .btn.soft { background: rgba(251,114,153,.16); }
.btn.danger { background: transparent; color: var(--fail); border-color: var(--fail-bd); }
.btn.block { width: 100%; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 1px; scrollbar-width: none; }
.chips::-webkit-scrollbar { height: 0; }
.chip {
  flex: none; height: 29px; padding: 0 11px; border-radius: var(--r-full);
  border: 1px solid var(--bd); background: var(--card); color: var(--fg2);
  font: inherit; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .65; }
.chip.on { background: var(--ht-primary); border-color: var(--ht-primary); color: #fff; }
.chip.on b { opacity: .8; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 500; color: var(--fg2); }
.field .hint { font-size: 11px; color: var(--fg3); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 14px;
  color: var(--fg); background: var(--card); border: 1px solid var(--bd-strong);
  border-radius: var(--r); outline: none;
}
.textarea { height: auto; padding: 10px 12px; resize: none; }
.input::placeholder, .textarea::placeholder { color: var(--fg4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ht-primary); box-shadow: 0 0 0 3px rgba(224,90,128,.18); }

.switch {
  width: 44px; height: 26px; flex: none; border-radius: var(--r-full); border: 0; cursor: pointer;
  background: var(--bd-strong); position: relative; transition: background .18s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: var(--r-full); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s;
}
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(18px); }

/* KPI / 概览 */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--sh-sm); }
.kpi .l { font-size: 11px; color: var(--fg3); font-weight: 500; }
.kpi .v { font-size: 21px; font-weight: 700; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 10.5px; color: var(--fg3); margin-top: 1px; }

/* 成败堆叠条 */
.stack { display: flex; height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--bd-light); }
.stack i { display: block; height: 100%; }
.stack-legend { display: flex; gap: 12px; font-size: 11px; color: var(--fg3); margin-top: 7px; flex-wrap: wrap; }
.stack-legend span { display: inline-flex; align-items: center; gap: 4px; }

/* 倒计时英雄卡 */
.hero {
  border-radius: var(--r-lg); padding: 14px 15px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E05A80 0%, #A93A5D 78%);
  box-shadow: 0 8px 22px rgba(169,58,93,.32);
}
.hero::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.hero .hd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .88; font-weight: 500; }
.hero .hd .live { width: 6px; height: 6px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 3px rgba(110,231,168,.28); }
.hero .title { font-size: 15.5px; font-weight: 600; margin: 7px 0 0; line-height: 1.35; }
.hero .cd { font-size: 40px; font-weight: 700; letter-spacing: 1px; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hero .meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; opacity: .86; margin-top: 5px; }
.hero .bar { height: 4px; border-radius: var(--r-full); background: rgba(255,255,255,.24); margin-top: 11px; overflow: hidden; }
.hero .bar i { display: block; height: 100%; background: #fff; border-radius: var(--r-full); }
.hero.sprint { background: linear-gradient(135deg, #FF8A3D 0%, #D96A14 78%); box-shadow: 0 8px 22px rgba(217,106,20,.36); }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button {
  border: 1px solid var(--bd); background: var(--card); border-radius: var(--r-md); cursor: pointer;
  padding: 11px 3px 9px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: inherit; font-size: 11px; color: var(--fg2); box-shadow: var(--sh-sm);
}
.quick button svg { width: 20px; height: 20px; color: var(--ht-primary); }

/* 属性表 */
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bd-light); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { flex: none; width: 82px; color: var(--fg3); font-size: 12px; padding-top: 1px; }
.kv dd, .kv .v { margin: 0; flex: 1; min-width: 0; text-align: right; word-break: break-all; font-weight: 500; }

/* 时间线 */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 11px; }
.tl .col { display: flex; flex-direction: column; align-items: center; flex: none; width: 14px; }
.tl .pt { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--fg4); }
.tl .ln { flex: 1; width: 2px; background: var(--bd); margin: 3px 0; min-height: 12px; }
.tl:last-child .ln { display: none; }
.tl .bd { flex: 1; padding-bottom: 13px; min-width: 0; }
.tl .t { font-size: 13px; font-weight: 500; }
.tl .m { font-size: 11px; color: var(--fg3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tl.ok .pt { background: var(--ok); } .tl.fail .pt { background: var(--fail); }
.tl.pend .pt { background: var(--pend); } .tl.warn .pt { background: var(--warn); }

/* 付款区块 */
.pay {
  border-radius: var(--r-md); border: 1px solid var(--ok-bd); background: var(--ok-bg); overflow: hidden;
}
.pay-hd { display: flex; align-items: center; gap: 7px; padding: 11px 13px 0; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.pay-hd svg { width: 16px; height: 16px; }
.pay-bd { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 11px; }
.pay-amt { display: flex; align-items: baseline; gap: 3px; }
.pay-amt .cur { font-size: 14px; font-weight: 600; }
.pay-amt .n { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pay-cd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: var(--r-sm); padding: 4px 8px; align-self: flex-start; }
.pay-cd svg { width: 13px; height: 13px; }
.pay-cd b { font-variant-numeric: tabular-nums; font-size: 13px; }

.qr { width: 148px; height: 148px; background: #fff; border-radius: var(--r); padding: 8px; box-shadow: var(--sh-sm); }
.qr canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-cap { font-size: 11px; color: var(--fg3); text-align: center; }

/* 失败原因条形 */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-item .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.bar-item .top .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-item .track { height: 6px; border-radius: var(--r-full); background: var(--bd-light); margin-top: 5px; overflow: hidden; }
.bar-item .track i { display: block; height: 100%; border-radius: var(--r-full); }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 0; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--bd-light); }
.steps .st { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg4); }
.steps .st .n { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--hover); color: var(--fg3); }
.steps .st.on { color: var(--fg); font-weight: 600; }
.steps .st.on .n { background: var(--ht-primary); color: #fff; }
.steps .st.done .n { background: var(--ok); color: #fff; }
.steps .st.done { color: var(--fg3); }
.steps .sp { flex: 1; height: 1.5px; background: var(--bd); margin: 0 6px; min-width: 8px; }

/* 粘底操作条 */
.sticky-cta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 45;
  padding: 10px 14px 24px; display: flex; gap: 9px; align-items: center;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--bd-light);
}
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn.ghost { flex: none; width: 84px; }

/* 空态 */
.empty { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 40px 20px; text-align: center; }
.empty svg { width: 42px; height: 42px; color: var(--fg4); }
.empty p { margin: 0; font-size: 13px; color: var(--fg3); }

/* 登录页 */
.login { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 46px; gap: 20px; }
.login .brand { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-bottom: 6px; }
.login .brand svg { width: 62px; height: 62px; border-radius: 17px; box-shadow: 0 10px 24px rgba(224,90,128,.32); }
.login .brand b { font-size: 23px; letter-spacing: 3px; }
.login .brand span { font-size: 12px; color: var(--fg3); letter-spacing: 1px; }
.login-bg { position: absolute; inset: 0; overflow: hidden; }
.login-bg i { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .5; }
.login-bg i:nth-child(1) { width: 250px; height: 250px; background: #FB7299; top: -60px; right: -70px; }
.login-bg i:nth-child(2) { width: 210px; height: 210px; background: #60A5FA; bottom: 80px; left: -80px; opacity: .32; }

/* 底部弹层 */
.sheet-mask { position: absolute; inset: 0; z-index: 70; background: var(--mask); display: none; }
.sheet-mask.on { display: block; }
.sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 71;
  background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 16px 26px; box-shadow: var(--sh-lg);
  transform: translateY(101%); transition: transform .26s cubic-bezier(.16,1,.3,1);
  max-height: 86%; overflow-y: auto; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { width: 0; }
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 34px; height: 4px; border-radius: var(--r-full); background: var(--bd-strong); margin: 4px auto 12px; }
.sheet h3 { margin: 0 0 3px; font-size: 16px; }
.sheet .sub { font-size: 12px; color: var(--fg3); margin-bottom: 13px; }

/* 微视图柱 */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.spark > i { flex: 1; border-radius: 1px; min-height: 2px; }
.spark > span > i { flex: none; min-height: 2px; }

.mut { color: var(--fg3); }
.small { font-size: 11px; }
.ok-t { color: var(--ok); } .fail-t { color: var(--fail); } .pend-t { color: var(--pend); }
.warn-t { color: var(--warn); } .sprint-t { color: var(--ht-accent); }
.bold { font-weight: 600; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col { display: flex; flex-direction: column; }
.gap6 { gap: 6px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.mla { margin-left: auto; }

/* 一览模式 */
.gallery .phone { transform: scale(.5); transform-origin: top center; margin-bottom: -422px; }
.gallery .frames { gap: 4px 12px; }
