/* 取景教练 · 样式 */
:root {
  --bg: #060911;
  --bg2: #0a1020;
  --card: rgba(18, 26, 43, .92);
  --card2: rgba(14, 21, 36, .72);
  --line: rgba(255, 255, 255, .085);
  --line2: rgba(255, 255, 255, .14);
  --txt: #eef3fb;
  --dim: #94a3ba;
  --dim2: #6b7a91;
  --amber: #ffd166;
  --amber-d: #2a2100;
  --cyan: #8ecbff;
  --green: #7ee2a8;
  --red: #ff9090;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(70, 130, 220, .20), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(255, 178, 88, .12), transparent 60%),
    linear-gradient(180deg, #080d18 0%, #05080f 62%, #04060b 100%);
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

/* ---------- 顶栏 ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 2px 10px;
  background: linear-gradient(180deg, rgba(6, 9, 17, .96) 55%, rgba(6, 9, 17, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 30px; height: 30px; color: var(--amber); flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-txt b { font-size: 16.5px; letter-spacing: .4px; }
.brand-txt small { font-size: 10.5px; color: var(--dim2); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  color: var(--dim); display: grid; place-items: center; padding: 0; cursor: pointer;
  transition: .18s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.94); background: rgba(255, 255, 255, .08); color: var(--txt); }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.card.soft { background: var(--card2); box-shadow: none; }
.card-h { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .3px; color: #dbe6f7; display: flex; align-items: center; gap: 8px; }
.card-h::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--amber); flex: none; }
.lbl { display: block; font-size: 12.5px; color: var(--dim); margin: 2px 0 8px; letter-spacing: .3px; }
.mini { font-size: 12px; color: var(--dim2); line-height: 1.6; margin: 8px 0 0; }
.mini a { color: var(--cyan); text-decoration: none; }
.scr-title { font-size: 21px; margin: 6px 0 4px; letter-spacing: .3px; }
.scr-sub { font-size: 13px; color: var(--dim); margin: 0 0 14px; line-height: 1.7; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line2); border-radius: 13px;
  background: rgba(255, 255, 255, .06); color: var(--txt);
  font: inherit; font-weight: 600; font-size: 14.5px;
  padding: 11px 16px; cursor: pointer; transition: .16s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.975); }
.btn.primary {
  background: linear-gradient(180deg, #ffe08a, #ffc94d);
  color: #231a00; border-color: rgba(255, 220, 130, .55);
  box-shadow: 0 8px 22px rgba(255, 201, 77, .22);
}
.btn.ghost { background: rgba(255, 255, 255, .045); color: #d5e1f2; }
.btn.tiny { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.btn.danger { color: var(--red); border-color: rgba(255, 120, 120, .3); background: rgba(255, 90, 90, .07); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.go {
  width: 100%; margin-top: 6px; padding: 16px;
  font-size: 16.5px; border-radius: 16px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(180deg, #ffe08a, #ffc94d);
  color: #231a00; border: 1px solid rgba(255, 225, 140, .6);
  box-shadow: 0 12px 30px rgba(255, 201, 77, .26);
}
.btn.go svg { width: 20px; height: 20px; }
.btn.go:active { transform: scale(.985); }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; color: var(--dim);
  font: inherit; font-size: 13.5px; padding: 10px 0 6px; cursor: pointer;
}
.back svg { width: 18px; height: 18px; }
.row-btns { display: flex; gap: 10px; margin: 12px 0; }
.row-btns .btn { flex: 1; }

/* ---------- 上传区 ---------- */
.shoot-card { padding: 10px; }
.drop {
  border: 1.5px dashed rgba(255, 255, 255, .16);
  border-radius: 15px; padding: 22px 16px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(142, 203, 255, .07), transparent 70%);
  text-align: center;
}
.drop-empty b { display: block; font-size: 16px; margin-top: 10px; }
.drop-empty p { color: var(--dim2); font-size: 12.5px; margin: 6px auto 16px; max-width: 300px; line-height: 1.7; }
.drop-ico { width: 50px; height: 50px; margin: 0 auto; color: rgba(255, 209, 102, .8); }
.drop-ico svg { width: 100%; height: 100%; }
.drop-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.drop-filled { display: flex; flex-direction: column; gap: 10px; }
.pv-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.pv-wrap img { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: #05070c; }
.pv-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(6, 10, 18, .72); color: #cfe0f7; border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}
.pv-tools { display: flex; gap: 8px; justify-content: center; }
.ref-wrap {
  position: relative; width: 96px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line2); background: #000;
}
.ref-wrap img { display: block; width: 100%; height: 96px; object-fit: cover; }
.ref-wrap span {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9.5px; text-align: center; padding: 2px 0;
  background: rgba(0, 0, 0, .62); color: #dbe7f7;
}
.ref-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}

/* ---------- 手机扫码卡（只在电脑上用 127.0.0.1 打开时出现） ---------- */
.connect {
  padding: 12px 14px;
  border-color: rgba(255, 209, 102, .3);
  background: linear-gradient(180deg, rgba(255, 209, 102, .12), rgba(255, 209, 102, .02));
}
.connect-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.connect-top b { font-size: 14px; }
.connect-body { display: flex; gap: 14px; align-items: flex-start; }
.qr {
  flex: none; width: 104px; height: 104px; background: #fff;
  border-radius: 12px; padding: 5px; display: grid; place-items: center;
}
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.connect-info { min-width: 0; flex: 1; }
.connect-info code {
  display: block; font-size: 12.5px; color: #ffe3a3;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; word-break: break-all; margin-bottom: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.connect-info p { margin: 8px 0 0; font-size: 11.5px; color: var(--dim); line-height: 1.65; }
.connect-info p b { color: #ffe3a3; }
.connect-info .connect-note { color: var(--dim2); }

/* ---------- 输入框 ---------- */
textarea, .inp, select {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3);
  color: var(--txt); font: inherit; font-size: 16px;
  padding: 11px 12px; outline: none; transition: .16s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 46px; line-height: 1.6; }
textarea::placeholder { color: var(--dim2); }
textarea:focus, .inp:focus, select:focus { border-color: rgba(255, 209, 102, .55); background: rgba(0, 0, 0, .42); }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3ba' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
  padding-right: 34px;
}
.inp { margin-bottom: 4px; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row .inp { margin-bottom: 0; }

/* ---------- 标签组 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chips:last-child { margin-bottom: 2px; }
/* 首页两组标签用横向滑动，避免把「生成方案」挤到屏幕外 */
.chips.scroll {
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 1px 2px 5px; margin-bottom: 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
}
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  color: #c4d2e6; border-radius: 999px; padding: 7px 13px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s;
  white-space: nowrap;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.chip:active { transform: scale(.96); }
.chip.on {
  background: rgba(255, 209, 102, .16); color: #ffe3a3;
  border-color: rgba(255, 209, 102, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .12);
}
.scene-chips .chip { font-size: 12px; padding: 6px 11px; }

/* ---------- 首页提示 ---------- */
.mode-hint { text-align: center; font-size: 11.8px; color: var(--dim2); margin: 10px 4px 0; line-height: 1.7; }
.mode-hint b { color: var(--cyan); font-weight: 600; }
.linkbtn {
  display: block; margin: 10px auto 0; padding: 6px 10px;
  background: none; border: 0; color: var(--dim2);
  font: inherit; font-size: 12.3px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.linkbtn:active { color: var(--cyan); }

/* ---------- 结果：诊断 ---------- */
.diag {
  position: relative; overflow: hidden;
  border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 16px; margin: 4px 0 12px;
  background:
    radial-gradient(500px 200px at 88% -20%, rgba(255, 190, 90, .16), transparent 70%),
    linear-gradient(160deg, rgba(26, 36, 58, .96), rgba(13, 19, 32, .96));
  box-shadow: var(--shadow);
}
.diag-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(142, 203, 255, .14); color: #b9dcff; border: 1px solid rgba(142, 203, 255, .28);
}
.badge {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 209, 102, .16); color: #ffe1a0; border: 1px solid rgba(255, 209, 102, .35);
}
.badge.off { background: rgba(255, 255, 255, .07); color: var(--dim); border-color: var(--line2); }
.diag h2 { font-size: 19.5px; margin: 0 0 6px; letter-spacing: .3px; line-height: 1.35; }
.diag .read { margin: 0 0 10px; font-size: 13.5px; color: #d3e0f2; line-height: 1.65; }
.light-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.lchip {
  font-size: 11.5px; padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); color: #bfcde1; border: 1px solid var(--line);
}
.lchip b { color: var(--amber); font-weight: 700; }
.issues { margin: 10px 0 0; padding: 0; list-style: none; }
.issues li {
  position: relative; padding-left: 18px; font-size: 12.8px; color: #c8d6e9;
  margin-bottom: 4px; line-height: 1.6;
}
.issues li::before { content: "!"; position: absolute; left: 2px; top: 0; color: #ff9c6e; font-weight: 800; font-size: 11px; }

/* ---------- 参数速查 ---------- */
.param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.param {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  padding: 11px 12px 10px; position: relative; overflow: hidden;
}
.param.key { border-color: rgba(255, 209, 102, .32); background: linear-gradient(180deg, rgba(255, 209, 102, .13), rgba(255, 209, 102, .03)); }
.param .k { font-size: 10.5px; color: var(--dim); letter-spacing: .4px; margin-bottom: 2px; }
.param .v { font-size: 21px; font-weight: 800; letter-spacing: -.2px; line-height: 1.15; }
.param .v small { font-size: 11.5px; font-weight: 600; color: var(--dim); margin-left: 2px; letter-spacing: 0; }
.param .sub { font-size: 10.5px; color: var(--dim2); margin-top: 3px; line-height: 1.4; }
.param.key .v { color: #ffe3a3; }

/* ---------- 分段切换 ---------- */
.seg {
  display: flex; gap: 3px; padding: 3px; margin: 14px 0 10px;
  background: rgba(255, 255, 255, .05); border-radius: 12px; border: 1px solid var(--line);
}
.seg button {
  flex: 1; border: 0; background: none; color: var(--dim);
  font: inherit; font-size: 12.8px; font-weight: 600; padding: 8px 4px;
  border-radius: 9px; cursor: pointer; transition: .16s;
}
.seg button.on { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* ---------- 图 ---------- */
.stage { position: relative; border-radius: 14px; overflow: hidden; background: #05070c; border: 1px solid var(--line); }
.stage img { display: block; width: 100%; height: auto; }
.stage canvas { position: absolute; inset: 0; width: 100%; }
.mapbox {
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(420px 260px at 50% 110%, rgba(60, 110, 180, .16), transparent 70%), rgba(6, 10, 18, .8);
  border: 1px solid var(--line); padding: 4px;
}
.mapbox svg.topdown { display: block; width: 100%; height: auto; }
.cap { font-size: 11.3px; color: var(--dim2); margin: 8px 2px 0; line-height: 1.6; }
.cap b { color: var(--amber); font-weight: 700; }

/* ---------- 步骤 ---------- */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; }
.steps li {
  counter-increment: st; position: relative;
  padding: 0 0 12px 34px; font-size: 13.8px; line-height: 1.65; color: #dce7f6;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: #2a2000;
  background: linear-gradient(180deg, #ffe08a, #ffc94d);
}
.steps li::after {
  content: ""; position: absolute; left: 11px; top: 27px; bottom: 2px;
  width: 1px; background: linear-gradient(180deg, rgba(255, 209, 102, .35), transparent);
}
.steps li:last-child::after { display: none; }

/* ---------- 键值表 ---------- */
.kv { display: flex; flex-direction: column; }
.kv .row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 13.2px; }
.kv .row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .row .k { flex: none; width: 74px; color: var(--dim); font-size: 12.4px; padding-top: 1px; }
.kv .row .v { flex: 1; color: #e4edfa; line-height: 1.6; }
.kv .row .v em { font-style: normal; color: var(--amber); font-weight: 600; }

/* ---------- 列表 ---------- */
.tips { margin: 0; padding: 0; list-style: none; }
.tips li {
  position: relative; padding-left: 16px; font-size: 13.2px;
  color: #d3dfef; line-height: 1.65; margin-bottom: 7px;
}
.tips li:last-child { margin-bottom: 0; }
.tips li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: .8; }

.warncard { border-color: rgba(255, 150, 90, .24); background: linear-gradient(180deg, rgba(255, 130, 70, .10), rgba(255, 130, 70, .03)); }
.warncard .card-h::before { background: #ff9c6e; }
.warncard .tips li::before { background: #ff9c6e; }

.alt { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; background: rgba(255, 255, 255, .03); }
.alt:last-child { margin-bottom: 0; }
.alt .alt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.alt .alt-h b { font-size: 13.5px; }
.alt .alt-h span { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(142, 203, 255, .14); color: #b9dcff; }
.alt p { margin: 0; font-size: 12.6px; color: var(--dim); line-height: 1.6; }

/* ---------- 底部操作 ---------- */
.actions { display: flex; gap: 10px; margin: 14px 0 6px; }
.actions .btn { flex: 1; }
.refine { display: flex; gap: 8px; margin-top: 10px; }
.refine input { flex: 1; }
.foot-note { text-align: center; font-size: 11px; color: var(--dim2); margin: 16px 0 4px; line-height: 1.7; }

/* ---------- 设置 ---------- */
.preset-hint { font-size: 11.8px; color: var(--dim2); margin: 6px 0 4px; line-height: 1.6; }
.cors-hint { font-size: 11.8px; font-weight: 600; margin: 0 0 14px; line-height: 1.6; }
.cors-hint.ok { color: #7ee2a8; }
.cors-hint.bad { color: #ff9090; }
.go2 { width: 100%; margin-top: 10px; padding: 14px; font-size: 15.5px; border-radius: 14px; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; cursor: pointer; }
.switch-row input { display: none; }
.switch-row .sw {
  flex: none; width: 40px; height: 23px; border-radius: 999px; margin-top: 1px;
  background: rgba(255, 255, 255, .12); position: relative; transition: .2s;
}
.switch-row .sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch-row input:checked + .sw { background: rgba(255, 209, 102, .85); }
.switch-row input:checked + .sw::after { transform: translateX(17px); }
.switch-row em { display: block; font-style: normal; font-size: 11.3px; color: var(--dim2); margin-top: 2px; line-height: 1.5; }
.test-out {
  font-size: 12.5px; line-height: 1.6; padding: 11px 13px; border-radius: 12px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: #cfe0f5;
  word-break: break-word; white-space: pre-wrap;
}
.test-out.ok { border-color: rgba(126, 226, 168, .4); background: rgba(126, 226, 168, .08); color: #b9f3d3; }
.test-out.bad { border-color: rgba(255, 120, 120, .35); background: rgba(255, 90, 90, .08); color: #ffc4c4; }

/* ---------- 历史 ---------- */
.hist-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hist {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  background: var(--card2); cursor: pointer;
}
.hist:active { background: rgba(255, 255, 255, .06); }
.hist img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: none; background: #000; }
.hist .h-txt { min-width: 0; flex: 1; }
.hist .h-txt b { display: block; font-size: 13.8px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist .h-txt small { font-size: 11.3px; color: var(--dim2); }
.empty { text-align: center; color: var(--dim2); font-size: 13px; padding: 40px 0; line-height: 1.8; }

/* ---------- 加载 ---------- */
.loading {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 11, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
}
.loading-box { text-align: center; max-width: 300px; width: 100%; }
.ring { width: 54px; height: 54px; margin: 0 auto 18px; position: relative; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid transparent; }
.ring::before { border-top-color: var(--amber); border-right-color: rgba(255, 209, 102, .35); animation: spin 1s linear infinite; }
.ring::after { inset: 9px; border-bottom-color: var(--cyan); border-left-color: rgba(142, 203, 255, .3); animation: spin 1.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 15.5px; font-weight: 700; margin-bottom: 14px; }
.loading-steps { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: inline-block; }
.loading-steps li {
  font-size: 12.8px; color: var(--dim2); padding: 4px 0 4px 22px; position: relative; transition: .25s;
}
.loading-steps li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .22);
}
.loading-steps li.on { color: #f0f6ff; }
.loading-steps li.on::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 10px rgba(255, 209, 102, .6); }
.loading-steps li.done { color: var(--dim); }
.loading-steps li.done::before { border-color: rgba(126, 226, 168, .7); background: rgba(126, 226, 168, .7); }

/* ---------- 现场速查卡 ---------- */
.quick {
  position: fixed; inset: 0; z-index: 110; background: #05080f;
  display: flex; flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.q-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.q-top b { font-size: 16px; }
.q-title { font-size: 12px; color: var(--dim); margin-top: 2px; }
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.q-cell {
  border: 1px solid rgba(255, 209, 102, .22); border-radius: 16px; padding: 11px 13px;
  background: linear-gradient(180deg, rgba(255, 209, 102, .10), rgba(255, 209, 102, .02));
}
.q-cell .k { font-size: 11px; color: var(--dim); }
.q-cell .v { font-size: 33px; font-weight: 800; line-height: 1.15; color: #ffe3a3; letter-spacing: -.6px; margin-top: 1px; }
.q-cell .v small { font-size: 13px; font-weight: 600; color: #d7e2f2; letter-spacing: 0; }
.q-line { font-size: 14px; color: #dbe6f7; line-height: 1.65; margin: 5px 0; }
.q-line b { color: var(--amber); }
.q-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13.4px; line-height: 1.8; color: #c9d6e6; }
.q-foot { margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--dim2); line-height: 1.6; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120; max-width: calc(100% - 40px);
  background: rgba(20, 28, 44, .97); color: #eaf2ff;
  border: 1px solid var(--line2); border-radius: 12px;
  padding: 10px 16px; font-size: 13px; text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  animation: toastIn .22s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 620px) {
  #app { max-width: 600px; padding-bottom: 40px; }
  .param .v { font-size: 23px; }
  .diag h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
