/* 公路之王 — 界面样式
 * 舞台固定 420×910（9:16 竖屏），由 main.js 用 transform:scale 适配窗口。
 * 所有尺寸都用绝对 px，不用 rem/vh，这样缩放后比例和截图一致。
 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden; background: #05070a;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #fff; user-select: none; -webkit-user-select: none; touch-action: none;
}
#fit { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage {
  position: relative; width: 420px; height: 910px; flex: none;
  background: #0b0d12; overflow: hidden; transform-origin: center center;
  box-shadow: 0 0 60px rgba(0,0,0,.7);
}
#view { position: absolute; inset: 0; width: 420px; height: 910px; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud button, #hud .pedal, #hud .wheel, #hud .stalk, #hud .phone, #hud .of-slide,
#hud .iconbtn, #hud .gears, #hud .note { pointer-events: auto; }

/* ---------------- 顶栏 ---------------- */
.topbar { position: absolute; left: 10px; top: 6px; right: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tb-left { display: flex; align-items: center; gap: 6px; }
.tb-clock { display: inline-flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tb-clock .tb-ic { font-size: 14px; filter: saturate(1.4); }
.peak {
  background: linear-gradient(180deg,#ff6a2a,#e8420f); color: #fff; font-size: 12px; font-weight: 800;
  padding: 2px 7px; border-radius: 9px; box-shadow: 0 1px 4px rgba(232,66,15,.5);
}
.peak.off { background: rgba(255,255,255,.16); box-shadow: none; color: #dfe4ee; }
.tb-net { width: 100%; font-size: 14px; font-weight: 700; color: #ffd9a0; text-shadow: 0 1px 3px rgba(0,0,0,.85); margin-top: 1px; }
.tb-net.neg { color: #ffb0b0; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tldots { display: flex; gap: 5px; background: rgba(10,12,16,.55); padding: 5px 7px; border-radius: 12px; }
.tldots .d { width: 11px; height: 11px; border-radius: 50%; background: #2a2e36; display: block; transition: box-shadow .2s, background .2s; }
.tldots .r.on { background: #ff4534; box-shadow: 0 0 9px #ff4534; }
.tldots .y.on { background: #f0b429; box-shadow: 0 0 9px #f0b429; }
.tldots .g.on { background: #37d95e; box-shadow: 0 0 10px #37d95e; }
.tag-ent { background: rgba(18,20,26,.6); border: 1px solid rgba(255,255,255,.14); font-size: 11px; padding: 3px 7px; border-radius: 9px; color: #cfd6e4; }

.iconbtn {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(14,16,21,.55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(2px);
}
.iconbtn:active { transform: scale(.92); }
#btnMenu { left: 10px; top: 52px; }
.ib-person { right: 56px; top: 52px; }
.ib-share { right: 10px; top: 52px; }

/* ---------------- 后视镜 + 挂饰 ---------------- */
.mirror-mount { position: absolute; left: 190px; top: 34px; width: 40px; height: 26px; }
.mirror-mount .stem { position: absolute; left: 16px; top: 0; width: 8px; height: 26px; background: #101216; border-radius: 3px; }
.mirror {
  position: absolute; left: 104px; top: 54px; width: 212px; height: 60px;
  border-radius: 24px; overflow: hidden; border: 6px solid #14161b;
  background: #0a0c10; box-shadow: 0 4px 14px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.mirror canvas { width: 200px; height: 48px; display: block; }
.tassel { position: absolute; left: 202px; top: 112px; width: 24px; text-align: center; transform-origin: 12px 0; animation: sway 5.2s ease-in-out infinite; }
.tassel .cord { display: block; width: 2px; height: 26px; margin: 0 auto; background: #b03028; }
.tassel span {
  display: block; background: linear-gradient(180deg,#d8362c,#a8231c); color: #ffd873; font-size: 12px;
  font-weight: 800; line-height: 1.15; padding: 4px 0 6px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
@keyframes sway { 0%,100% { transform: rotate(-3.2deg); } 50% { transform: rotate(3.2deg); } }

/* ---------------- 称号 / 连击 ---------------- */
.rankbox { position: absolute; left: 10px; top: 128px; width: 172px; background: rgba(12,14,19,.5); border-radius: 10px; padding: 7px 9px 9px; }
.rank-row { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 800; }
.rank-row .crown { color: #f5c453; font-size: 15px; }
.rank-row em { margin-left: auto; font-style: normal; font-size: 13px; color: #f0d9a8; }
.rank-bar { margin-top: 6px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg,#f5c453,#ffdf8e); border-radius: 2px; transition: width .4s; }
.combo {
  position: absolute; left: 10px; top: 186px; background: linear-gradient(180deg,#f7d894,#e3b45f);
  color: #3a2a10; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.combo b { font-size: 17px; margin: 0 3px; }
.combo span { font-size: 12px; opacity: .8; }

/* ---------------- 速度 / 限速 ---------------- */
.speedo { position: absolute; right: 52px; top: 126px; text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.speedo b { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: .9; font-variant-numeric: tabular-nums; }
.speedo span { font-size: 13px; opacity: .65; margin-left: 2px; }
.limit {
  position: absolute; right: 8px; top: 128px; width: 40px; height: 40px; border-radius: 50%;
  background: #f6f7f9; color: #14161b; border: 5px solid #d92b2b; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.limit.warn { animation: limitpulse .7s ease-in-out infinite; }
@keyframes limitpulse { 0%,100% { box-shadow: 0 2px 8px rgba(0,0,0,.5); } 50% { box-shadow: 0 0 0 5px rgba(217,43,43,.45); } }

/* ---------------- 便利贴 ---------------- */
.note {
  position: absolute; left: 146px; top: 520px; width: 62px; padding: 7px 5px 9px;
  background: linear-gradient(180deg,#f7e97f,#eed44f); color: #4a3b10; font-size: 10px; font-weight: 700;
  line-height: 1.35; text-align: center; transform: rotate(-3deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.45); border-radius: 1px;
}
.note .n2 { font-size: 9px; }
.note .heart { color: #e0577a; font-style: normal; margin-left: 1px; }

/* ---------------- 导航提示 ---------------- */
.navtip {
  position: absolute; left: 12px; top: 236px; display: flex; align-items: center; gap: 8px;
  background: rgba(16,26,40,.82); border: 1px solid rgba(90,180,255,.35); border-radius: 12px; padding: 7px 12px 7px 8px;
  max-width: 250px;
}
.nav-arrow { width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; color: #6fd0ff; font-weight: 700; }
.nav-txt b { display: block; font-size: 14px; font-weight: 700; }
.nav-txt span { display: block; font-size: 11px; color: #9fb3c8; margin-top: 1px; }

/* ---------------- 手机 ---------------- */
.phone { position: absolute; right: 8px; top: 424px; width: 138px; transition: filter .3s; }
.phone.ringing .ph-frame { box-shadow: 0 0 0 3px #ff7a1a, 0 0 22px rgba(255,122,26,.75), 0 10px 26px rgba(0,0,0,.6); }
.ph-frame {
  background: #fff; color: #1a1d24; border-radius: 22px; border: 3px solid #101216;
  box-shadow: 0 10px 26px rgba(0,0,0,.55); overflow: hidden; transition: background .3s, color .3s;
}
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 5px 9px 2px; font-size: 9px; font-weight: 700; }
.ph-status .notch { width: 9px; height: 9px; border-radius: 50%; background: #101216; position: absolute; left: 50%; transform: translateX(-50%); }
.ph-status .ph-r { display: flex; align-items: center; gap: 3px; }
.ph-status .sig { display: inline-block; width: 11px; height: 7px; background:
  linear-gradient(to top, currentColor 0 3px, transparent 3px) no-repeat 0 4px/2px 3px,
  linear-gradient(to top, currentColor 0 5px, transparent 5px) no-repeat 3px 2px/2px 5px,
  linear-gradient(to top, currentColor 0 7px, transparent 7px) no-repeat 6px 0/2px 7px; }
.ph-status .batt { display: inline-block; width: 14px; height: 7px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.ph-status .batt::after { content: ''; position: absolute; inset: 1px 4px 1px 1px; background: currentColor; border-radius: 1px; }
.ph-body { padding: 3px 9px 8px; position: relative; }
.ph-head { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.brand { color: #ff7a1a; font-size: 12px; font-weight: 900; letter-spacing: -.2px; }
.role { background: #22252c; color: #fff; font-size: 8px; padding: 1px 4px; border-radius: 4px; font-weight: 700; }
.ph-bar { display: block; width: 46px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.28); margin: 3px auto 5px; }

/* 听单中 */
.radar { position: relative; width: 46px; height: 46px; margin: 8px auto 4px; }
.radar .core { position: absolute; inset: 12px; border-radius: 50%; background: #ff7a1a; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,122,26,.35); animation: pulse 1.9s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.ph-listen { text-align: center; font-size: 14px; font-weight: 800; }
.ph-filter { text-align: center; font-size: 9px; color: #8b929e; margin: 2px 0 8px; }
.ph-stats { display: flex; border-top: 1px solid rgba(0,0,0,.08); padding-top: 6px; }
.ph-stats > div { flex: 1; text-align: center; }
.ph-stats b { display: block; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ph-stats span { display: block; font-size: 8px; color: #8b929e; margin-top: 1px; }
.ph-bag { margin-top: 7px; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.ph-bag i { width: 26px; height: 26px; border-radius: 8px; background: #ff7a1a; display: grid; place-items: center; font-size: 13px; font-style: normal; }
.ph-bag span { font-size: 8px; color: #6b7280; }

/* 推单 */
.of-chips { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; }
.chip { font-size: 9px; padding: 2px 6px; border-radius: 9px; background: rgba(0,0,0,.07); color: #4b5563; font-weight: 700; }
.chip.on { background: #ff7a1a; color: #fff; }
.chip.add { opacity: .5; }
.of-timer { position: relative; margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; }
.of-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.of-timer circle { fill: none; stroke-width: 2.6; }
.of-timer .bg { stroke: rgba(255,122,26,.2); }
.of-timer .fg { stroke: #ff7a1a; stroke-linecap: round; stroke-dasharray: 94.2; stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear; }
.of-timer b { font-size: 12px; font-weight: 800; color: #ff7a1a; }
.of-dist { font-size: 10px; color: #6b7280; }
.of-dist b { font-size: 19px; color: #1a1d24; font-weight: 800; margin: 0 2px; }
.of-route { margin: 6px 0; }
.rp { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; }
.rp .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.rp .dot.g { background: #22c55e; } .rp .dot.o { background: #ff7a1a; }
.rp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-fare { font-size: 10px; color: #6b7280; margin-top: 6px; }
.of-fare b { font-size: 21px; color: #ff7a1a; font-weight: 900; margin-left: 2px; }
.of-ps { font-size: 9px; color: #9aa1ad; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-ignore { position: absolute; right: 0; bottom: 40px; background: none; border: 0; font-size: 10px; color: #9aa1ad; cursor: pointer; }
.of-slide {
  position: relative; margin-top: 22px; height: 30px; border-radius: 15px; background: linear-gradient(90deg,#ff9540,#ff6a1a);
  display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 800;
  overflow: hidden; cursor: grab;
}
.of-slide .arrows { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.9); color: #ff6a1a; display: grid; place-items: center; font-size: 12px; }
.of-slide .knob { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; background: linear-gradient(90deg, rgba(255,255,255,.28), transparent); transform: translateX(var(--sx, 0px)); }
.of-slide.done { background: #22c55e; }

/* 行程中 */
.run-top { display: flex; align-items: center; margin-bottom: 7px; }
.run-tail { margin-left: auto; font-size: 10px; color: #6b7280; font-weight: 700; }
.run-dest { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.run-meta { font-size: 10px; color: #6b7280; margin-top: 5px; }
.run-meta b { font-size: 16px; color: #1a1d24; font-weight: 800; }
.run-fare { font-size: 10px; color: #6b7280; margin-top: 4px; }
.run-fare b { color: #ff7a1a; font-size: 14px; font-weight: 800; }
.run-btns { display: flex; gap: 6px; margin-top: 9px; }
.rb { flex: 1; border: 0; border-radius: 13px; font-size: 11px; font-weight: 800; padding: 7px 0; cursor: pointer; }
.rb.ghost { background: rgba(0,0,0,.06); color: #6b7280; }
.rb.solid { background: #ff7a1a; color: #fff; }
.rb:active { transform: scale(.96); }

/* 手机状态切换 */
.ph-idle, .ph-offer, .ph-run { display: none; }
.phone[data-state="idle"] .ph-idle { display: block; }
.phone[data-state="offer"] .ph-offer { display: block; }
.phone[data-state="run"] .ph-run { display: block; }
.phone[data-state="idle"] .ph-frame, .phone[data-state="offer"] .ph-frame { min-height: 250px; }

/* 暗色手机主题（夜里，对应截图 3/4） */
.phone[data-theme="dark"] .ph-frame { background: #14161c; color: #eef1f6; }
.phone[data-theme="dark"] .ph-bar { background: rgba(255,255,255,.3); }
.phone[data-theme="dark"] .chip { background: rgba(255,255,255,.1); color: #aeb6c4; }
.phone[data-theme="dark"] .chip.on { background: #ff7a1a; color: #fff; }
.phone[data-theme="dark"] .of-dist, .phone[data-theme="dark"] .of-fare,
.phone[data-theme="dark"] .run-meta, .phone[data-theme="dark"] .run-fare,
.phone[data-theme="dark"] .ph-stats span, .phone[data-theme="dark"] .ph-filter,
.phone[data-theme="dark"] .of-ps, .phone[data-theme="dark"] .of-ignore,
.phone[data-theme="dark"] .run-tail, .phone[data-theme="dark"] .ph-bag span { color: #8b93a3; }
.phone[data-theme="dark"] .of-dist b, .phone[data-theme="dark"] .run-meta b { color: #eef1f6; }
.phone[data-theme="dark"] .ph-stats { border-top-color: rgba(255,255,255,.1); }
.phone[data-theme="dark"] .rb.ghost { background: rgba(255,255,255,.1); color: #aeb6c4; }

/* ---------------- 仪表台 ---------------- */
.dash { position: absolute; left: 0; right: 0; bottom: 0; height: 306px; pointer-events: none; }
.dash-top {
  position: absolute; left: -12%; right: -12%; top: 0; height: 240px;
  background: linear-gradient(180deg, #191c22 0%, #12141a 45%, #0c0e12 100%);
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
  box-shadow: 0 -6px 26px rgba(0,0,0,.55);
}
.wheel { position: absolute; left: 8px; bottom: 14px; width: 196px; height: 196px; }
.wheel .rim { position: absolute; inset: 0; border-radius: 50%; border: 15px solid #23262e; box-shadow: inset 0 0 0 2px #33373f, 0 6px 18px rgba(0,0,0,.6); }
.wheel .spoke { position: absolute; background: #23262e; border-radius: 5px; }
.wheel .spoke.h { left: 12px; right: 12px; top: 88px; height: 18px; }
.wheel .spoke.v { top: 100px; bottom: 12px; left: 88px; width: 18px; }
.wheel .mark { position: absolute; left: 90px; top: 16px; width: 14px; height: 22px; background: #ff8a2a; border-radius: 3px; }
.wheel .horn {
  position: absolute; left: 62px; top: 62px; width: 70px; height: 70px; border-radius: 50%;
  background: #1c1f26; color: #9aa1ad; font-size: 14px; font-weight: 600; display: grid; place-items: center;
  cursor: pointer; border: 2px solid #2b2f38;
}
.wheel .horn:active { background: #2b2f38; color: #fff; }
.wheel .rim, .wheel .spoke, .wheel .mark { transform-origin: 50% 50%; }

.stalk { position: absolute; width: 96px; height: 46px; }
.stalk .rod { position: absolute; left: 4px; right: 4px; top: 18px; height: 12px; border-radius: 6px; background: linear-gradient(180deg,#2c3038,#171a20); }
.stalk .tip { position: absolute; top: 17px; font-size: 8px; color: #cfd6e4; background: #0e1014; padding: 2px 4px; border-radius: 3px; }
.s-left { left: 4px; top: 62px; } .s-left .tip { right: 6px; }
.s-right { left: 176px; top: 62px; } .s-right .tip { left: 6px; }
.stalk .st-lab { position: absolute; font-size: 12px; color: #7d848f; text-shadow: 0 1px 2px #000; transition: color .15s; }
.stalk .st-lab.up { left: 2px; top: -14px; }
.stalk .st-lab.dn { left: 2px; top: 34px; }
.stalk .st-lab.on { color: #4ade80; }

.gearbox { position: absolute; right: 10px; bottom: 12px; width: 196px; }
.gears { display: flex; gap: 6px; margin-bottom: 8px; }
.gears .g {
  flex: 1; height: 34px; border: 0; border-radius: 8px; background: #1b1e25; color: #8b929e;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.gears .g.on { background: #eef1f6; color: #14161b; }
.pedal {
  position: absolute; bottom: 0; width: 92px; height: 118px; border-radius: 12px;
  background: linear-gradient(180deg,#1a1d24,#101218); border: 1px solid #262a33;
  display: grid; place-items: end center; padding-bottom: 9px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #e6eaf2; overflow: hidden;
}
.pedal i { position: absolute; left: 8px; right: 8px; top: 10px; bottom: 34px; border-radius: 5px;
  background: repeating-linear-gradient(180deg, #22262e 0 5px, #171a21 5px 10px); }
#pedBrake { left: 0; } #pedGas { right: 0; }
.pedal.press { background: linear-gradient(180deg,#2f3542,#1c2028); box-shadow: inset 0 0 0 2px #ff8a2a; }
.pedal.press i { transform: translateY(5px); }

/* ---------------- 消息 ---------------- */
.toasts { position: absolute; left: 12px; bottom: 320px; width: 230px; display: flex; flex-direction: column; gap: 5px; }
.toast {
  background: rgba(10,12,16,.78); border-left: 3px solid #ff7a1a; border-radius: 6px; padding: 5px 9px;
  font-size: 12px; animation: toastin .25s ease-out; backdrop-filter: blur(3px);
}
.toast.out { opacity: 0; transform: translateY(-6px); transition: .4s; }
@keyframes toastin { from { opacity: 0; transform: translateX(-14px); } }
.perf { position: absolute; left: 10px; bottom: 4px; font-size: 10px; color: #6fd0ff; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------------- 全屏页 ---------------- */
.screen { position: absolute; inset: 0; z-index: 20; overflow: hidden; }
.sc-bg { position: absolute; inset: 0; background: linear-gradient(180deg,#2a2333 0%,#171a24 40%,#0c0e13 100%); }
.sc-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 8%, rgba(255,150,90,.22), transparent 60%); }
.sc-inner { position: absolute; inset: 0; padding: 40px 18px 18px; display: flex; flex-direction: column; }
#scSelect h1 { margin: 0; font-size: 40px; letter-spacing: 3px; text-shadow: 0 3px 0 #b8860b, 0 6px 18px rgba(0,0,0,.6);
  background: linear-gradient(180deg,#fff3cf,#f0c060); -webkit-background-clip: text; background-clip: text; color: transparent; }
#scSelect .sub { margin: 3px 0 16px; font-size: 13px; color: #b9c0cd; letter-spacing: 1px; }
.vgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.vcard {
  background: rgba(255,255,255,.06); border: 2px solid transparent; border-radius: 14px; padding: 10px 6px 9px;
  text-align: center; cursor: pointer; transition: .16s;
}
.vcard:hover { background: rgba(255,255,255,.11); }
.vcard.sel { border-color: #ff8a2a; background: rgba(255,138,42,.16); }
.vcard .emo { font-size: 30px; line-height: 1.1; }
.vcard .nm { font-size: 13px; font-weight: 800; margin-top: 3px; }
.vcard .tg { font-size: 9px; color: #9aa3b2; }
.vdetail { margin-top: 14px; background: rgba(0,0,0,.32); border-radius: 12px; padding: 11px 12px; min-height: 116px; }
.vdetail .bl { font-size: 12px; color: #c3cad6; line-height: 1.55; }
.vdetail .specs { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px 10px; margin-top: 9px; font-size: 11px; }
.vdetail .specs div { display: flex; gap: 5px; color: #8b93a3; }
.vdetail .specs b { color: #fff; margin-left: auto; font-variant-numeric: tabular-nums; }
.cta {
  margin-top: auto; height: 54px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg,#f7d894,#dfae57); color: #3a2a10; box-shadow: 0 5px 0 #a97f34, 0 8px 20px rgba(0,0,0,.5);
  letter-spacing: 2px;
}
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #a97f34; }
.ghostbtn { margin-top: 9px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: transparent; color: #cfd6e4; font-size: 14px; cursor: pointer; }

/* 首页 */
.sc-inner.home { padding: 16px 14px 14px; }
.hm-top { display: flex; align-items: center; gap: 8px; }
.hm-top .back { width: 30px; height: 30px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.hm-title h2 { margin: 0; font-size: 27px; letter-spacing: 2px; background: linear-gradient(180deg,#fff3cf,#f0c060);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-title span { font-size: 10px; color: #a7afbd; letter-spacing: 1px; }
.hm-badge { margin-left: auto; background: linear-gradient(180deg,#f7d894,#dfae57); color: #3a2a10; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 9px; transform: rotate(4deg); }
.hm-cards { display: flex; gap: 9px; margin-top: 14px; }
.hmc { flex: 1; border-radius: 13px; padding: 10px 11px; background: rgba(255,255,255,.07); }
.hmc.goal { background: rgba(120,60,40,.35); }
.hmc-h { font-size: 11px; color: #b6bdca; }
.hmc-h em { font-style: normal; opacity: .7; }
.hmc-big { font-size: 27px; font-weight: 800; color: #ffd98a; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.hmc-big span { font-size: 14px; color: #cbb894; font-weight: 600; }
.hmc-s { font-size: 11px; color: #c3cad6; }
.hm-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px 6px; margin-top: 18px; }
.hmi { text-align: center; cursor: pointer; position: relative; }
.hmi .ico { width: 54px; height: 54px; margin: 0 auto; border-radius: 15px; display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.hmi .lb { font-size: 11px; color: #dfe4ee; margin-top: 4px; }
.hmi .bdg { position: absolute; right: 4px; top: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: #e8420f; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #14161b; }
.hm-sheet { margin-top: auto; background: rgba(8,10,14,.72); border-radius: 16px; padding: 12px; }
.hm-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #aeb6c4; margin-bottom: 10px; }
.hm-note span:last-child { flex: 1; }
.hm-sheet .cta { margin-top: 0; height: 48px; font-size: 17px; }
.dangerbtn { margin-top: 8px; width: 100%; height: 44px; border: 0; border-radius: 13px; background: rgba(255,255,255,.05); color: #ff8a8a; font-size: 15px; font-weight: 800; cursor: pointer; }

/* 弹层 */
.modal { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.62); display: grid; place-items: center; }
.md-card { width: 340px; max-height: 660px; background: #16191f; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.md-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; font-weight: 800; }
.md-head button { margin-left: auto; border: 0; background: none; color: #8b93a3; font-size: 16px; cursor: pointer; }
.md-body { padding: 12px 14px; overflow: auto; font-size: 13px; color: #cfd6e4; }
.md-body .wish { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.md-body .wish span { flex: 1; }
.md-body .wish b { color: #ffd98a; font-variant-numeric: tabular-nums; }
.md-body .wish button { border: 0; border-radius: 9px; padding: 6px 11px; font-size: 12px; font-weight: 700; cursor: pointer; background: #ff7a1a; color: #fff; }
.md-body .wish button[disabled] { background: rgba(255,255,255,.08); color: #6b7280; }
.md-body .wish.done span { color: #6b7280; text-decoration: line-through; }
.md-body .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.md-body .row b { font-variant-numeric: tabular-nums; }
.md-body h4 { margin: 12px 0 6px; font-size: 12px; color: #8b93a3; font-weight: 700; }
.md-body .btn { width: 100%; margin-top: 10px; border: 0; border-radius: 11px; height: 40px; font-size: 14px; font-weight: 800; cursor: pointer; background: #ff7a1a; color: #fff; }
.md-body .btn.g { background: rgba(255,255,255,.08); color: #cfd6e4; }
.md-body .k { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 4px 0; }
.md-body .k code { background: rgba(255,255,255,.09); padding: 2px 7px; border-radius: 5px; font-size: 11px; min-width: 62px; text-align: center; }
.good { color: #6ee7a0; } .bad { color: #ff8a8a; }
