*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #0d0f14; overscroll-behavior: none; }
/* 启动时接上容器的白色（index.html 先挂 booting，boot.js 读存档阶段摘掉），启动失败说明也用浅色 */
html.booting, html.booting body { background: #f4f5f7; }
html.booting #fatal { background: #f4f5f7; }
html.booting .fatal-card { color: #2a3038; }
html.booting .fatal-card pre { color: #59616c; background: #e6e8ec; }
/* 禁止双击缩放；列表仍可滚动，驾驶控件下面各自用 none。 */
html, body, #app, button, a, input, textarea, select, label { touch-action: manipulation; }
.screen, .hs-body, .logm-b, .summary-report, .summary-actions, #os-body, .npv-c { touch-action: manipulation; overscroll-behavior: contain; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  color: #f2f2f2;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.hidden { display: none !important; }

#app { position: fixed; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; background: #0d0f14; overscroll-behavior: none; }
/* 横竖屏：整个 #app 转 90°（宽高由 JS 按视口对调）；安全区是按物理边算的，转了以后 CSS 里的不再适用，
   改由 JS 从 #saprobe（在 #app 外面，量的是物理四边）读出来、换算到转过的四边再排版 */
.rot #app { right: auto; bottom: auto; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
/* 大屏整体放大（main.js 的 UIK）：#app 按缩小后的尺寸排版，从左上角放大；安全区照常生效 */
.uik #app { right: auto; bottom: auto; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
.rot #app { --safe-area-inset-top: 0px; --safe-area-inset-bottom: 0px; --safe-area-inset-left: 0px; --safe-area-inset-right: 0px; }
/* 老内核（Chromium 90 以前的旧合成器）转了 90° 以后，判不出后面的兄弟元素压在 WebGL 画布上：它们被画进 #app 自己那一层、
   让画布盖住，屏幕上只剩 3D 街景（和本来就有自己图层的方向盘）。2026-09 vivo Y76s 玩家「只有公路在往前走」，本机 Chromium 83 / 87 复现。
   转屏时 #app 的每个直接子元素都给自己的合成层，叠放顺序就对了；不转屏时老内核本来就对，不加 */
.rot #app > * { will-change: transform; }
#saprobe {
  position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
}
/* 横屏：手机不管方向盘在哪边都在右边（2026-09），暂停 / 横竖屏 / 时间那一排一直在左上角（正常顺序，left 由 main.js 的 layout 给）；
   红绿灯角标由 main.js 的 placeSig 放在右上角「接单设置」按钮左边；提示列一直在左边、靠左对齐 */
#app #toast { align-items: flex-start; }
#app.land .screen .wrap { max-width: 560px; }
.rot-btn svg { display: block; }
canvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
#cabin { pointer-events: none; }
#flash { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease-out; z-index: 5; }
#flash.on { opacity: .85; transition: none; }
#flash.escape { background: #172021; transition: none; animation: escapeFade .45s ease-out both; }
@keyframes escapeFade { from { opacity: .9; } to { opacity: 0; } }
/* 场景切换淡入淡出（main.js 的 sceneVeil）：.out 暗下去并挡住点击，去掉后亮回来；盖在各页面和弹层之上，启动页之下 */
#veil { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #0b0c0e; opacity: 0; visibility: hidden; pointer-events: none; z-index: 60;
  -webkit-transition: opacity .23s ease-in-out, visibility 0s linear .23s; transition: opacity .23s ease-in-out, visibility 0s linear .23s; }
#veil.out { opacity: 1; visibility: visible; pointer-events: auto; -webkit-transition: opacity .18s ease-in-out; transition: opacity .18s ease-in-out; }
#veil[data-kind="tow"] { -webkit-transition: opacity .45s ease-in-out, visibility 0s linear .45s; transition: opacity .45s ease-in-out, visibility 0s linear .45s; }
#veil.out[data-kind="tow"] { -webkit-transition: opacity .35s ease-in-out; transition: opacity .35s ease-in-out; }

/* ---------- 驾驶界面 ---------- */
#drive { position: absolute; left: 0; top: 0; right: 0; bottom: 0; touch-action: none; z-index: 2; }
#turn-label { position: absolute; width: 52px; height: 20px; border: 1px solid rgba(232, 243, 255, .6); border-radius: 5px; background: rgba(22, 69, 117, .6); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; white-space: nowrap; pointer-events: none; }

.drive-status-hud {
  position: absolute; left: 10px; top: 0;
  padding-top: 8px;
  /* 按钮列左移 12px；横竖屏按钮右间距补回这 12px，保持时间文字的位置。 */
  padding-left: 46px;
  /* 安全区单独走 margin：老内核不认 env() 时这条整体失效回 0，不连累上面的基础值 */
  margin-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  display: flex; align-items: center;
  /* 能点的按钮画在只显示的王者条、连击徽章（z-index 0）上面 */
  z-index: 1;
}
/* 开车时只让按钮压在状态条上面；时间、存款文字层级更低，被状态条和连击标签压住（2026-10-27 用户） */
#hud { z-index: auto; }
#hud .hud-btn { z-index: 1; }
#hud .rot-btn { position: relative; }
.drive-status-hud .hud-settings-btn {
  position: absolute; left: 46px; top: 48px; margin-right: 0;
}
.drive-status-hud .rot-btn { margin-right: 20px; align-self: flex-start; }
/* 窄屏时间那一排放不下右上角状态条：文字靠近按钮（DriveControls.setHud） */
.drive-status-hud.tight .rot-btn { margin-right: 8px; }
/* 角标（王者联运、高峰 ×1.5 等）也收小，320 宽货运「王者联运」那一排才让得开右上角状态条（2026-10-27 用户：可以直接缩小一点） */
.drive-status-hud.tight #hud-clock em { font-size: 10px; padding: 0 3px; margin-left: 3px; }
.hud-btn {
  width: 36px; height: 36px; border-radius: 18px; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; margin-right: 8px; flex-shrink: 0;
}
.hud-btn i { display: block; width: 4px; height: 13px; background: #fff; border-radius: 2px; margin: 0 2px; }
.hud-txt { text-shadow: 0 1px 3px rgba(0,0,0,.8); line-height: 1.25; }
.drive-status-hud .hud-txt { min-width: 0; }
#hud-clock { font-size: 15px; font-weight: 700; }
.drive-status-hud em { font-style: normal; font-size: 11px; background: #ff5a1f; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }   /* 天气角标放不下时挪到「今日净」那一行（main.js 的 hudSet） */
#hud-money { font-size: 12px; color: #ffd9a6; }

/* 仪表内的路口灯色与倒计时；需要制动时闪烁提醒。位置见「速度表」一段的指示灯排 */
#sig { position: absolute; top: -9px; width: 31px; height: 14px; display: flex; align-items: center; gap: 3px; pointer-events: none; opacity: .85; }
#sig .sig-lamps { display: flex; flex-direction: column; gap: 1px; padding: 2px; border-radius: 3px; background: rgba(15,20,23,.55); }
#sig i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.18); }
#sig.r i:nth-child(1) { background: #ff6a5a; } #sig.y i:nth-child(2) { background: #ffd23f; } #sig.g i:nth-child(3) { background: #4ff08f; }
#sig b { flex-shrink: 0; white-space: nowrap; font-size: 12px; line-height: 14px; font-weight: 800; min-width: 2ch; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
#sig.r { color: #ff6a5a; } #sig.y { color: #ffd23f; } #sig.g { color: #4ff08f; }
#sig.warn { -webkit-animation: sigwarn .45s ease-in-out infinite alternate; animation: sigwarn .45s ease-in-out infinite alternate; }
@-webkit-keyframes sigwarn { from { opacity: .5; } to { opacity: 1; } }
@keyframes sigwarn { from { opacity: .5; } to { opacity: 1; } }

/* 乘客说话：提示列最上面的聊天气泡，名字单独一行 */
#say, .conversation-bubble {
  -webkit-box-ordinal-group: 0; order: -1; margin-bottom: 5px; max-width: 100%;
  background: rgba(18,20,26,.86); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px 4px 14px 14px; padding: 6px 10px 7px; font-size: 13px; line-height: 1.4; text-align: left;
  pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
#say b, .conversation-bubble b { display: block; color: #ffb36b; font-weight: 600; font-size: 11px; margin-bottom: 1px; }
#say.say-sickness, .conversation-bubble.say-sickness { background: #5a294f; color: #fff2f7; border-color: #bd7aa8; }
#say.say-sickness b, .conversation-bubble.say-sickness b { color: #ffd6eb; }
#say.say-small, .conversation-bubble.say-small {
  max-width: calc(var(--chat-max-width, 200px) * .7); margin-bottom: 3.5px;
  padding: 4.2px 7px 4.9px; font-size: 9.1px; border-width: .7px;
  border-radius: 9.8px 2.8px 9.8px 9.8px; box-shadow: 0 1.4px 5.6px rgba(0,0,0,.35);
  overflow-wrap: anywhere;
}
#say.say-small b, .conversation-bubble.say-small b { font-size: 7.7px; margin-bottom: .7px; }

/* 限速区块（2026-10-27 用户：对齐、缩小、靠边）：两行网格，速度数字 + 限速牌一行，油电一行。
   .al-r / .al-l（main.js 按横竖屏、方向盘左右给）决定贴哪边：限速牌贴边，数字朝屏幕里面长，位数变化时贴边那侧不动；
   不亮的转向灯、大灯、辅助提示都悬浮在数字上方或外侧，不占位置 */
/* 速度表（2026-10-27 用户：HUD 寸土寸金，越紧凑越好）：一列三行——速度数字 + 右侧叠放的限速牌 / km/h（两者合起来和数字等高）、速度加成、油电。
   贴右（al-r）时各行右边对齐，贴左（al-l）镜像 */
#speedo { position: absolute; left: 14px; top: 60%; display: grid; grid-template-columns: auto; justify-content: end; justify-items: end; pointer-events: none; z-index: 0; }
#speedo.al-l { justify-content: start; justify-items: start; }
.spd-row { display: flex; align-items: center; }
#speedo.al-r .spd-row { justify-content: flex-end; }
#speedo.al-l .spd-row { flex-direction: row-reverse; justify-content: flex-end; }
.spd-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 25px; margin-left: 3px; }
#speedo.al-l .spd-side { margin-left: 0; margin-right: 3px; }
#speedo.al-l #gear { margin-right: 0; margin-left: 4px; }
.spd-num { font-size: 34px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #9ef0ff; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.spd-unit { font-size: 8px; line-height: 1; color: #a3baba; opacity: .8; text-shadow: 0 1px 2px rgba(0,0,0,.65); }
.spd-num.rev { color: #ffd166; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.spd-num.over { color: #ff6a5a; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.spd-num.warn { color: #ffd23f; text-shadow: 0 1px 3px rgba(0,0,0,.55); }   /* 超过限速、还在宽容里：黄色提醒 */
#gear { display: none; font-size: 12px; font-weight: 800; color: #1a1300; background: #ffd166; border-radius: 4px; padding: 1px 4px; margin-right: 4px; align-self: center; }
/* 贴左时数字紧跟限速牌、往右长（不留 3 位数的空位） */
/* 后视镜下的平安符：整串绕顶端挂点摆 */
#charm { position: absolute; width: 24px; pointer-events: none; transform-origin: 12px 0; z-index: 2; }
#charm i { position: absolute; left: 11px; top: 0; width: 1.5px; bottom: 32px; background: #b81c1c; }
/* 变道盲区提醒：后视镜玻璃内侧两边的小灯。黄 = 相邻车道有车靠近，红闪 = 朝那侧打灯；只做显示，不拦触摸 */
#bsm { position: absolute; pointer-events: none; z-index: 1; }
#bsm i { position: absolute; top: 30%; height: 40%; width: var(--bsm-w, 5px); box-sizing: border-box; border-radius: 4px; border: 1px solid rgba(0,0,0,.55); opacity: 0; }
#bsm-l { left: 2px; }
#bsm-r { right: 2px; }
#bsm i.y { opacity: 1; background: #ffc21a; box-shadow: 0 0 5px 1px rgba(255,194,26,.75), 0 1px 2px rgba(0,0,0,.5); }
#bsm i.r { opacity: 1; background: #ff3b30; box-shadow: 0 0 6px 1px rgba(255,59,48,.8), 0 1px 2px rgba(0,0,0,.5); -webkit-animation: bsmr .33s steps(1) infinite; animation: bsmr .33s steps(1) infinite; }
@-webkit-keyframes bsmr { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes bsmr { 0% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { #bsm i.r { -webkit-animation: none; animation: none; } }
/* 启动失败说明（boot.js）和临时提示 */
/* 货运疲劳在清晰与轻微模糊之间呼吸；减少动态效果时保留固定的轻微模糊。 */
#scene.fatigue-blur { filter: blur(0); animation: fatigueBlur 7s ease-in-out infinite; }
#scene { transition: filter .8s ease-out; }
#scene.nap-dim { filter: brightness(.38); }
@keyframes fatigueBlur { 0%, 15%, 85%, 100% { filter: blur(0); } 50% { filter: blur(1.1px); } }
@media (prefers-reduced-motion: reduce) { #scene.fatigue-blur { animation: none; filter: blur(0.6px); } }
@media (prefers-reduced-motion: reduce) { #scene { transition: none; } }
/* 启动进度条：index.html 里先放好，boot.js 随脚本执行推进，main.js 读完存档进首页后淡出。
   读完存档前挡住点击（底下首页还是默认数据），淡出时就放行。 */
#boot-splash { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 98; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f4f5f7; color: #1d2530; transition: opacity .25s ease-out, background-color .6s ease-in-out, color .6s ease-in-out; }
#boot-splash.done { opacity: 0; pointer-events: none; }
#boot-splash .bs-title { font-size: 28px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(255,90,31,.35); margin-bottom: 28px; transition: text-shadow .6s ease-in-out; }
#boot-splash .bs-bar { width: 220px; max-width: 64vw; height: 6px; border-radius: 3px; background: rgba(29,37,48,.1); overflow: hidden; transition: background-color .6s ease-in-out; }
#boot-splash .bs-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: #f0b400; transition: width .2s ease-out, background-color .6s ease-in-out; }
#boot-splash .bs-text { margin-top: 12px; font-size: 13px; color: rgba(29,37,48,.55); transition: color .6s ease-in-out; }
/* 读存档阶段（boot.js 加 dusk）慢慢暗成首页的深色，收起时没有黑白硬切 */
#boot-splash.dusk { background: #0d0f14; color: #fff; }
#boot-splash.dusk .bs-title { text-shadow: 0 3px 0 #ff5a1f, 0 6px 16px rgba(0,0,0,.6); }
#boot-splash.dusk .bs-bar { background: rgba(255,255,255,.12); }
#boot-splash.dusk .bs-bar i { background: #ffcf3d; }
#boot-splash.dusk .bs-text { color: rgba(255,255,255,.62); }
/* 云存档读得慢时进度条下的「先开始游戏」（boot.js RK.bootAction） */
#boot-splash .bs-action { margin-top: 20px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(29,37,48,.2); border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 13px; }
#boot-splash.dusk .bs-action { border-color: rgba(255,255,255,.28); }
#boot-splash .bs-action:disabled { opacity: .5; }
#fatal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 99; background: #111318; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fatal-card { max-width: 420px; color: #e6e8ec; font-size: 14px; line-height: 1.6; }
.fatal-card h2 { font-size: 20px; margin: 0 0 10px; color: #ff6a1a; }
.fatal-reload { display: block; min-width: 160px; min-height: 44px; margin: 16px 0 0; padding: 0 20px; border: 0; border-radius: 22px; background: #ff6a1a; color: #fff; font-size: 16px; font-weight: 700; }
.fatal-card pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; color: #8a909a; background: #1b1e25; border-radius: 8px; padding: 10px; margin-top: 14px; }
#notice { display: none; position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 98; background: rgba(0,0,0,.72); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 10px; }
/* 原 24px 的牌按 17/24 等比缩小（边 3→2、字 11→7.8）；不许被压扁，和 8px 的 km/h 合起来正好 25px 高 */
.limit { opacity: .85; width: 17px; height: 17px; flex-shrink: 0; border-radius: 50%; border: 2px solid #d42a2a; background: #fafafa; color: #111; font-size: 7.8px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- 手机：顺路出行 · 车主端（白天浅色，夜里自动深色） ---------- */
#phone {
  position: absolute; right: 8px; bottom: 170px; width: 220px; overflow: hidden;
  background: #f3f4f6; border: 5px solid #0c0d10; border-radius: 20px;
  font-size: 11.5px; line-height: 1.35; color: #1f2329;
  box-shadow: 0 0 0 1px #33363d, 0 8px 22px rgba(0,0,0,.55);
  touch-action: none; z-index: 4;
}
/* 缩放内容自身裁圆角，避免 iOS 转屏时状态栏越过外壳的 overflow 裁切；外壳阴影仍留在外层。 */
#ph-ui { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transform-origin: 0 0;
  -webkit-clip-path: inset(0 round calc(var(--ph-screen-radius, 12px) * var(--ph-ui-inverse-scale, 1)));
  clip-path: inset(0 round calc(var(--ph-screen-radius, 12px) * var(--ph-ui-inverse-scale, 1))); }
#phone.ring { box-shadow: 0 0 0 2px #ff7a1a, 0 0 18px rgba(255,122,26,.55), 0 8px 22px rgba(0,0,0,.55); }
.ps { display: flex; justify-content: space-between; align-items: center; height: 17px; padding: 0 9px; background: #fff; font-size: 9.5px; font-weight: 700; flex-shrink: 0; }
.ps-l { display: flex; align-items: center; }
.ps-rec { color: #e5392f; font-weight: 600; font-size: 9px; display: flex; align-items: center; margin-left: 6px; }
.ps-rec i { width: 6px; height: 6px; border-radius: 3px; background: #e5392f; margin-right: 3px; }
.ps-rec em { font-style: normal; }
.ps-sys { display: flex; align-items: flex-end; height: 9px; }
.ps-sys i { width: 2px; background: currentColor; margin-right: 1px; }
.ps-sys i:nth-child(1) { height: 3px; } .ps-sys i:nth-child(2) { height: 5px; } .ps-sys i:nth-child(3) { height: 7px; } .ps-sys i:nth-child(4) { height: 9px; }
.ps-sys em { font-style: normal; font-size: 8px; margin: 0 3px 0 2px; line-height: 9px; }
.ps-sys b { width: 15px; height: 8px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.ps-sys b::after { content: ''; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 70%; background: currentColor; }

/* 导航条 */
#ph-top { flex: 0 0 auto; }
.pn { display: flex; align-items: center; background: #0f7f4b; color: #fff; padding: 6px 8px; flex-shrink: 0; }
.pn.to { background: #1f5fd1; }
.pn-ar { font-size: 24px; line-height: 1; width: 26px; text-align: center; margin-right: 6px; flex-shrink: 0; }
.pn-tx { flex: 1; min-width: 0; }
.pn-tx b { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.pn-tx b small { font-size: 11px; font-weight: 600; margin-left: 1px; }
.pn-tx span { display: block; font-size: 10px; opacity: .9; }
.plc { font-size: 9.5px; background: rgba(0,0,0,.25); border-radius: 9px; padding: 1px 6px 1px 4px; white-space: nowrap; display: flex; align-items: center; margin-left: 4px; font-variant-numeric: tabular-nums; }
.plc i { width: 7px; height: 7px; border-radius: 4px; margin-right: 3px; }
.plc.g i { background: #34e07a; } .plc.y i { background: #ffcc00; } .plc.r i { background: #ff3b30; }

/* 小地图 */
.pm { height: 86px; flex-shrink: 0; position: relative; }
.pm svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.pm-bg { fill: #e6eae4; }
.pm-blk { fill: none; stroke: #d5d9d0; stroke-width: 16; stroke-linejoin: round; stroke-dasharray: 22 3; }
#phone.dark .pm-blk { stroke: #232934; }
.pm-edge { fill: none; stroke: #c6cbd1; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.pm-road { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pm-xr { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
/* 真地图的街道（旅程调试试开）：城里的街、城边回环、城际高速、省道 */
.pm-ste { fill: none; stroke: #c6cbd1; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.pm-st { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pm-st.corridor { stroke: #ffe08a; stroke-width: 7; }
.pm-st.prov { stroke: #fbe7ae; }
.pm-st.ramp { stroke: #ffe08a; stroke-width: 4; }
#phone.dark .pm-ste { stroke: #2a303a; }
#phone.dark .pm-st { stroke: #3b4351; }
#phone.dark .pm-st.corridor { stroke: #8a7a3e; }
#phone.dark .pm-st.prov { stroke: #6c6446; }
#phone.dark .pm-st.ramp { stroke: #8a7a3e; }
/* 双向路：路面往左加宽（对向两条道），自己这边左沿一道黄线；双向横街也画宽、中间一道黄线 */
.pm-owe { fill: none; stroke: #c6cbd1; stroke-width: 14; stroke-linejoin: round; }
.pm-ow { fill: none; stroke: #fff; stroke-width: 12; stroke-linejoin: round; }
.pm-xr.ow { stroke-width: 8; }
.pm-owy, .pm-xy { fill: none; stroke: #f0b429; stroke-width: 1.1; stroke-linejoin: round; }
.pm-owy.gold { stroke: #a8740f; }
.pm-route { fill: none; stroke: #1bb35a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
/* 真地图旅程的全程地图：一格是几十上百米，路网画细，城名压一圈底色；右上角切「附近 / 全程」 */
.pm-all .pm-ste { stroke-width: 2.2; }
.pm-all .pm-st { stroke-width: 1.2; }
.pm-all .pm-st.corridor { stroke-width: 2; }
.pm-all .pm-st.prov { stroke-width: 1.6; }
.pm-all .pm-st.ramp { stroke-width: 1.2; }
.pm-all .pm-route { stroke-width: 2.6; }
.pm-label { font-size: 12px; font-weight: 800; fill: #374151; stroke: #eef0f2; stroke-width: 3px; paint-order: stroke; }
#phone.dark .pm-label { fill: #e5e7eb; stroke: #1c2027; }
.pm-mode { position: absolute; top: 4px; right: 4px; min-width: 40px; height: 24px; padding: 0 8px; font-size: 11px; font-weight: 800; color: #1f2937; background: rgba(255, 255, 255, .92); border: 1px solid #d1d5db; border-radius: 999px; }
.pm-mode::after { content: ''; position: absolute; inset: -10px -4px; }   /* 触控区撑大，图上看着还是小按钮 */
#phone.dark .pm-mode { color: #e5e7eb; background: rgba(28, 32, 39, .92); border-color: #4b5058; }
/* 手机地图三档（附近 / 城区 / 全程）、点开大地图、网约车去接人时接到以后要送的那截（虚线），接单卡缩略路线图（2026-11-08，docs/handoff/nav-map/DECISIONS.md） */
.pm-city .pm-ste { stroke-width: 4.2; }
.pm-city .pm-st { stroke-width: 2.8; }
.pm-city .pm-st.corridor { stroke-width: 3.6; }
.pm-city .pm-route { stroke-width: 3; }
.pm-city .pm-route-casing { stroke-width: 5.4; }
.pm-mode { z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
.pm .pm-mode-i { position: static; flex: none; width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pm-open { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.pm-job { fill: none; stroke: #ff7a1a; stroke-width: 2.4; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.pm-all .pm-job { stroke-width: 1.8; stroke-dasharray: 3.5 3; }
/* 缩略图和那行字一样高（跟着行高走，不把行撑高）：按钮拉满行高，里面的图绝对定位铺满 */
.po-dist-map { display: flex; align-items: stretch; }
.po-dist-map > span { flex: none; align-self: center; white-space: nowrap; }
.po-dist-map .po-map-chip { align-self: center; }
.po-map { position: relative; flex: 1 1 auto; min-width: 0; max-width: 96px; height: auto; margin: 0 0 0 auto; padding: 0; border: 1px solid #e1e4e8; border-radius: 6px; background: #ede8df; cursor: zoom-in; }
.po-dist-map .po-map, .po-dist-map .po-map-chip { margin-left: 6px; }
.po-map::after { content: ''; position: absolute; left: -4px; right: -4px; top: -8px; bottom: -8px; }   /* 点得到的地方比看着大 */
.po-map svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; border-radius: 5px; overflow: hidden; }
.po-map-st { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.po-map-pick { fill: none; stroke: #2d7ff9; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.po-map-trip { fill: none; stroke: #ff7a1a; stroke-width: 10; stroke-dasharray: 18 12; stroke-linecap: round; stroke-linejoin: round; }
.po-map-from { fill: #1bb35a; stroke: #fff; stroke-width: 5; }
.po-map-dest { fill: #ff7a1a; stroke: #fff; stroke-width: 5; }
.po-map-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 0 6px; border: 1px solid #c9d8f6; border-radius: 999px; background: #eef4ff; color: #2563c9; font-size: 9.5px; font-weight: 700; line-height: 15px; vertical-align: 1px; }
.po-map-chip::after { content: ''; position: absolute; left: -6px; right: -6px; top: -10px; bottom: -10px; }   /* 点得到的地方比看着大 */
.po-map-chip svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
#phone.dark .po-map-chip { border-color: #2c4370; background: #1b2a45; color: #8fb4ff; }
#phone.dark .po-map { border-color: #2c313a; background: #262a33; }
#phone.dark .po-map-st { stroke: #3b4351; }
/* 大地图（MapSheet.vue）：外框同路书（ModalFrame），地图区占满剩下的高度；地图配色同手机地图 */
.map-sheet .logm-c { width: 100%; max-width: 560px; height: calc(100% - 24px); max-height: 760px; display: flex; flex-direction: column; }
.map-sheet .logm-h { flex-shrink: 0; }
.map-sheet .logm-h button { width: var(--tap, 44px); height: var(--tap, 44px); font-size: 18px; }
.map-sheet .logm-b { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; }
.ms-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; color: var(--tx2); font-size: var(--fs-sm, 12px); }
.ms-info .ms-dest { width: 100%; color: var(--tx); font-size: var(--fs-md, 14px); font-weight: 700; }
.ms-info b { color: var(--ac2); font-size: var(--fs-num, 20px); font-weight: 800; }
.ms-info small { width: 100%; color: var(--tx2); font-size: var(--fs-cap, 11px); }
.ms-map { position: relative; flex: 1; min-height: 160px; border-radius: var(--r-md, 12px); overflow: hidden; background: #e6eae4; touch-action: none; cursor: grab; }
.ms-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* 大地图一个单位一像素：线宽照像素写 */
.ms-near .pm-ste { stroke-width: 9; }
.ms-near .pm-st { stroke-width: 6.5; }
.ms-near .pm-st.corridor { stroke-width: 8; }
.ms-near .pm-st.ramp { stroke-width: 5; }
.ms-svg.pm-all .pm-ste { stroke-width: 4; }
.ms-svg.pm-all .pm-st { stroke-width: 2.4; }
.ms-svg.pm-all .pm-st.corridor { stroke-width: 3.6; }
.ms-svg.pm-all .pm-st.prov { stroke-width: 3; }
.ms-svg.pm-all .pm-st.ramp { stroke-width: 2.2; }
.ms-svg .pm-route { stroke-width: 5; }
.ms-svg .pm-route-casing { stroke-width: 8.5; }
.ms-svg .pm-job { stroke-width: 3.6; stroke-dasharray: 8 6; }
.ms-name { fill: #4b5563; stroke: #f3f4f6; stroke-width: 3px; paint-order: stroke; font-size: 11px; font-weight: 700; }
.ms-svg .pm-label { font-size: 17px; stroke-width: 4px; }
.ms-ctl { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.ms-btn { display: flex; align-items: center; justify-content: center; width: var(--tap, 44px); height: var(--tap, 44px); padding: 0; border: 1px solid #d1d5db; border-radius: var(--r-btn, 10px); background: rgba(255, 255, 255, .96); color: #1f2937; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.ms-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ms-btn:disabled { opacity: .4; }
.ms-btn.on { border-color: #2d7ff9; color: #2d7ff9; }
.ms-bar { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; padding: 3px 6px 4px; border-radius: var(--r-sm, 8px); background: rgba(255, 255, 255, .85); color: #374151; font-size: 10px; font-weight: 700; pointer-events: none; }
.ms-bar i { display: block; height: 4px; border: 2px solid #374151; border-top: 0; }
.ms-hint { flex-shrink: 0; margin: 6px 0 0; color: var(--tx2); font-size: var(--fs-cap, 11px); text-align: center; }
/* 竖屏：说明在上、地图、提示在下（.ms-side 拆开排）；横屏矮屏（MapSheet.vue 量出来加 wide）：说明一列在左，地图占右边整高 */
.ms-side { display: contents; }
.ms-info { order: 0; } .ms-map { order: 1; } .ms-hint { order: 2; }
.map-sheet.wide .logm-c { max-width: 860px; height: calc(100% - 16px); max-height: none; }
.map-sheet.wide .logm-b { flex-direction: row; gap: 12px; }
.map-sheet.wide .ms-side { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 168px; min-width: 0; }
.map-sheet.wide .ms-hint { text-align: left; }
#phone[data-stage="trip"] .pm-route { stroke: #2d7ff9; }
.pm-lt { stroke: #fff; stroke-width: 1.2; }
.pm-lt.g { fill: #22c55e; } .pm-lt.y { fill: #f5b800; } .pm-lt.r { fill: #ef4444; }
.pm-pin path { fill: #1bb35a; stroke: #fff; stroke-width: 1; }
.pm-pin.dest path { fill: #ff7a1a; }
.pm-pin text { fill: #fff; font-size: 7px; font-weight: 800; }
.pm-car { fill: #2d7ff9; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.pm-halo { fill: rgba(45,127,249,.2); }
/* 车标（2026-10-31 导航改版，和路书一致）：淡蓝光晕 + 白底圆点 + 朝车头的蓝箭头；导航路线垫一道白边 */
.pm-disc { fill: #fff; stroke: rgba(31, 24, 14, .2); stroke-width: .8; }
.pm-car { stroke: none; }
.pm-route-casing { fill: none; stroke: #fff; stroke-width: 6.4; stroke-linecap: round; stroke-linejoin: round; }
.pm-all .pm-route-casing { stroke-width: 4.6; }
#phone.dark .pm-route-casing { stroke: #10131a; }
#phone.dark .pm-disc { fill: #e8eaee; stroke: none; }
/* 真地图（在路上、货运）照地图数据画底色（realmap.js 的 M.areas）：陆地浅暖灰，城区米色（街道之间就是街块），水面浅蓝带岸线；路线蓝色，终点红色图钉 */
.pm-real .pm-bg { fill: #f2efe9; }
.pm-city { fill: #e8e1d3; stroke: #e8e1d3; stroke-width: 8; stroke-linejoin: round; }
.pm-all .pm-city { stroke-width: 2.4; }
.pm-sea, .pm-lake { fill: #cde2f0; stroke: #aecde3; stroke-width: .9; stroke-linejoin: round; }
.pm-river { fill: none; stroke: #cde2f0; stroke-linecap: round; stroke-linejoin: round; }
.pm-real .pm-ste { stroke: #d8d0c0; }
.pm-real .pm-route { stroke: #2d7ff9; }
.pm-real .pm-pin.free path { fill: #e11d48; }
#phone.dark .pm-real .pm-bg { fill: #1c2028; }
#phone.dark .pm-city { fill: #262a33; stroke: #262a33; }
#phone.dark .pm-sea, #phone.dark .pm-lake { fill: #19324a; stroke: #234561; }
#phone.dark .pm-river { stroke: #19324a; }
#phone.dark .pm-real .pm-ste { stroke: #2c313b; }
#phone.dark .pm-real .pm-route { stroke: #5b9bff; }

/* 卡片 */
#ph-card { padding: 7px 9px 6px; background: #fff; overflow: hidden; }
.ptag { font-style: normal; display: inline-block; font-size: 9.5px; background: #fff1e6; color: #e8620f; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.pbar { height: 4px; background: #eceef1; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: #ff7a1a; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 4px; vertical-align: 0; }
.dot.g { background: #1bb35a; } .dot.o { background: #ff7a1a; }

.po-head { display: flex; align-items: center; margin-bottom: 3px; }
.po-kind, .po-prod, .po-surge, .po-money span, .po-money b, .pp-rate span { white-space: nowrap; }
.po-kind { background: #ff6a1a; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 5px; margin-right: 5px; }
.po-prod { font-weight: 700; font-size: 12px; }
.po-surge { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-style: normal; font-size: 9.5px; color: #e5392f; background: #ffeceb; border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.po-ring { margin-left: auto; flex-shrink: 0; position: relative; width: 30px; height: 30px; }   /* 倒计时圈不让挤：左边的角标自己缩、省略 */
.po-ring svg { width: 30px; height: 30px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.po-ring circle { fill: none; stroke: #eceef1; stroke-width: 3; }
.po-ring circle.p { stroke: #ff6a1a; stroke-linecap: round; }
.po-ring b { position: absolute; left: 0; top: 0; width: 30px; line-height: 30px; text-align: center; font-size: 11px; font-weight: 800; }
.po-dist { font-size: 12px; color: #5a616b; }
.po-dist b { font-size: 22px; color: #1f2329; font-weight: 800; margin: 0 1px; }
.po-route { margin: 3px 0 2px; position: relative; }
.po-route::before { content: ''; position: absolute; left: 3px; top: 10px; bottom: 9px; border-left: 1px dashed #c3c7cd; }
.po-route div { font-size: 12px; font-weight: 700; padding: 1px 0 1px 13px; text-indent: -13px; }
.po-route i { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.po-from i { background: #1bb35a; } .po-to i { background: #ff7a1a; }
.po-meta { font-size: 10px; color: #8a9099; }
.po-money { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: 2px; }
.po-money span { font-size: 10.5px; color: #5a616b; margin-right: 4px; }
.po-money b { font-size: 19px; color: #ff6a1a; font-weight: 800; }
.po-money small { font-size: 9.5px; color: #9aa0aa; margin-left: 6px; }
.po-pax { font-size: 10px; line-height: 1.35; color: #6b727c; margin-top: 1px; white-space: normal; overflow: visible; }
.po-skip { display: block; margin: 3px 0 0 auto; font-size: 10.5px; color: #8a9099; padding: 2px 4px; }
.po-acts { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: auto; }
.po-acts .po-skip { margin: 0; white-space: nowrap; }
/* 来单时次要操作紧跟内容，滑块上方单独留空，长内容滚到底也不会贴上按钮。 */
#phone[data-stage="offer"] .po-acts { margin-top: 6px; }
#phone[data-stage="offer"] #ph-slide { margin-top: 20px; }

.pc-head { display: flex; justify-content: space-between; align-items: center; }
.pc-brand { font-weight: 800; color: #ff6a1a; font-size: 12.5px; }
.pc-brand em { font-style: normal; font-size: 9.5px; color: #fff; background: #1f2329; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.pc-score { font-size: 10px; color: #6b727c; }
/* 车主等级：小勋章 + 「金牌Ⅱ」，不要底色（颜色在勋章上）；勋章比字大一圈，字小也认得出是哪种金属。听单设置那一块整块能点 */
.pc-brand em.pc-lv { background: none; color: #1f2329; font-weight: 800; padding: 0; margin-left: 5px; }
.pc-lv .md { width: 1.4em; height: 1.4em; vertical-align: -.35em; margin-right: .15em; }
#phone.dark .pc-brand em.pc-lv { background: none; color: #e8eaee; }
.pc-listen[data-act] { cursor: pointer; }
.pc-mode { font-style: normal; font-size: 10px; font-weight: 700; color: #ff6a1a; border: 1px solid rgba(255,106,26,.45); border-radius: 8px; padding: 0 6px; margin: 0; white-space: nowrap; }
.pc-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 6px; margin-top: 4px; max-width: 100%; }
.pc-listen .pc-set i { margin: 0; }
.pp-grow { font-size: 9px; color: #8a9099; margin: 1px 0 2px; }
#phone.narrow .pp-grow { display: none; }
.pc-score b { color: #1f2329; }
.pc-listen { display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; position: relative; }
.pc-listen b { font-size: 17px; font-weight: 800; margin-top: 4px; }
.pc-listen span { font-size: 10px; color: #8a9099; text-align: center; }
/* 「高速单 1/2」「大单 1/1」两段各自不折行：窄手机一行放不下就上下两行 */
.pc-listen span i { font-style: normal; white-space: nowrap; display: inline-block; margin: 0 3px; }
.pc-listen.off b { color: #9aa0aa; }
.pc-listen span.pc-note { margin-top: 2px; color: #c2510a; font-size: 11px; font-weight: 700; }
#phone.dark .pc-listen span.pc-note { color: #ff9a5c; }
/* 在路上的卡片（2026-10-31 导航改版，照样张做成底部面板）：顶上一道小横条，路名 + 片区；没导航时一排带图标的小标签（这趟、到过、天气），
   导航中到达时间最醒目、下面剩余里程和时长、路线经过的城和路按段换行；城际路上前方的服务区、收费站、到城排成时间线；最下面一排按钮 */
#phone[data-stage="roam"] #ph-card { margin-top: -10px; padding: 4px 8px 8px; border-radius: 12px 12px 0 0; box-shadow: 0 -3px 10px rgba(0, 0, 0, .08); }
#phone[data-stage="roam"] #ph-card::before { content: ''; display: block; flex: 0 0 auto; width: 22px; height: 3px; margin: 0 auto 4px; border-radius: 2px; background: #d1d5db; }
#phone.dark[data-stage="roam"] #ph-card::before { background: #3d424a; }
.pc-roam { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; padding: 0; min-width: 0; }
.pc-roam > b { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pc-roam > span { flex: 1 1 0; min-width: 0; font-size: 8.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#phone.dark .pc-roam > span { color: #9aa0aa; }
.pc-tags { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.pc-tags span { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; background: #f3f4f6; font-size: 8px; font-weight: 700; line-height: 1.6; color: #4b5563; white-space: nowrap; }
.pc-tags .pc-ic { width: 9px; height: 9px; stroke-width: 1.8; }
#phone.dark .pc-tags span { background: #2a2d33; color: #c9cdd4; }
.pc-nav { flex: 1 0 100%; min-width: 0; }
.pc-eta { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.pc-eta b { font-size: 15px; font-weight: 900; line-height: 1.15; color: #0f9d58; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-eta span { min-width: 0; font-size: 9px; font-weight: 700; color: #0f9d58; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-nav small { display: block; font-size: 8.5px; font-weight: 700; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 4px; font-size: 8px; font-weight: 700; line-height: 1.5; color: #4b5563; }
.pc-chain-step { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; max-width: 100%; }
.pc-chain i { flex: 0 0 8px; height: 2px; border-radius: 1px; background: #bfd0ff; }
.pc-chain-name { min-width: 0; overflow-wrap: anywhere; }
.pc-chain-step:first-child .pc-chain-name::before, .pc-chain-name.end::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 3px 1px 0; border-radius: 50%; background: #1f5eff; vertical-align: middle; }
.pc-chain-name.end::after { margin: 0 0 1px 3px; background: #e11d48; }
#phone.dark .pc-eta b, #phone.dark .pc-eta span { color: #34d27b; }
#phone.dark .pc-nav small, #phone.dark .pc-chain { color: #c9cdd4; }
#phone.dark .pc-chain i { background: #33507f; }
/* 城际路上前面还有什么：竖着一条时间线，圆点颜色分服务区、收费站、到城，名字在左、距离在右 */
.pc-ahead { flex: 1 0 100%; list-style: none; margin: 5px 0 0; padding: 0 0 0 2px; border-left: 2px solid #e5e7eb; display: flex; flex-direction: column; gap: 3px; }
.pc-ahead li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-left: 8px; font-size: 8.5px; font-weight: 700; color: #374151; }
.pc-ahead i { position: absolute; left: -5px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #9ca3af; box-shadow: 0 0 0 1.5px #fff; }
.pc-ahead li.sa i { background: #16a34a; }
.pc-ahead li.toll i { background: #f59e0b; }
.pc-ahead li.city i { background: #e11d48; }
.pc-ahead span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ahead b { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; color: #111827; }
#phone.dark .pc-ahead { border-color: #3d424a; }
#phone.dark .pc-ahead li { color: #c9cdd4; }
#phone.dark .pc-ahead b { color: #f3f4f6; }
#phone.dark .pc-ahead i { box-shadow: 0 0 0 1.5px #1c1f26; }
.pc-roam .pc-roam-energy { flex: 1 0 100%; margin-top: 4px; }
/* 按钮一排：同高同圆角，宽度按内容分（320 竖屏卡片只有 114 宽也放得下），去哪儿橙色主按钮、路书暖纸色、结束浅灰，都带小图标（路书点开是整张大图） */
.pc-roam-acts { flex: 1 0 100%; display: flex; gap: 5px; margin-top: 6px; }
#phone .pc-roam-acts button, #phone.dark .pc-roam-acts button { flex: 1 1 auto; width: auto; min-width: 0; height: 26px; margin: 0; padding: 0 4px; display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid transparent; border-radius: 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pc-ic { flex: 0 0 auto; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#phone .pc-roam-acts .pc-book-go { color: #8a4b26; background: #fbf1e3; border-color: #ecd6b8; }
#phone .pc-roam-acts .pc-nav-end { color: #374151; background: #f3f4f6; border-color: #e5e7eb; }
#phone.dark .pc-roam-acts .pc-book-go { color: #f3c99b; background: #3a2c20; border-color: #5c4532; }
#phone.dark .pc-roam-acts .pc-nav-end { color: #e5e7eb; background: #2a2d33; border-color: #3d424a; }
/* 停在观景地标、服务区（2026-11-03）：路名下面一面小旗和「停在 X」（暖色粗字，不另套底），一行这趟多远，下面「在这里结束」橙色主按钮、「接着开」浅灰 */
.pc-end { flex: 1 0 100%; display: flex; flex-direction: column; gap: 1px; margin-top: 5px; min-width: 0; }
.pc-end b { display: flex; align-items: center; gap: 3px; min-width: 0; font-size: 11.5px; font-weight: 900; color: #b4471a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-end b .pc-ic { width: 11px; height: 11px; stroke: currentColor; }
.pc-end small { padding-left: 14px; font-size: 8.5px; font-weight: 700; line-height: 1.3; color: #6b7280; }   /* 320 宽放不下一行时换行，不截成省略号 */
#phone.dark .pc-end b { color: #f3c99b; }
#phone.dark .pc-end small { color: #9aa0aa; }
#phone .pc-end-acts .pc-nav-go { flex: 1.6 1 auto; height: 26px; font-size: 10px; }
/* 出发推荐的地标：「去 X」占大半，名字长了截断，旁边小小的「路书」 */
#phone .pc-roam-acts .pc-suggest { flex: 1 1 0; min-width: 0; }
#phone .pc-roam-acts .pc-suggest span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#phone .pc-roam-acts .pc-suggest + .pc-book-go { flex: 0 0 auto; }
#phone .pc-end-acts .pc-end-skip { flex: 1 1 auto; color: #374151; background: #f3f4f6; border-color: #e5e7eb; }
#phone.dark .pc-end-acts .pc-end-skip { color: #e5e7eb; background: #2a2d33; border-color: #3d424a; }
/* 真地图的手机地图左下角：当前限速牌（红圈白底，同仪表上的数），压在面板上沿上面一点 */
.pm-lim { position: absolute; left: 5px; bottom: 14px; z-index: 1; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 2.5px solid #e11d48; border-radius: 50%; background: #fff; font-size: 8.5px; font-weight: 900; color: #111; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); box-sizing: border-box; }
.pm-lim.wide { font-size: 7.5px; letter-spacing: -.03em; }
/* 路书大图（RoadbookView.vue 里的 RoadbookMap.vue）：整张水彩底图，一个路书单位约一个半像素；没底图时照旧画整张路网。
   走过的路是手账上的足迹：这趟（.now 是垫在下面的浅色描边，.rb-trail 是朱红短划），以前（.before）是一串小圆点 */
.rb-map polyline { fill: none; stroke: #c9c3b0; stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; }
.rb-map polyline.corridor { stroke: #d9b169; stroke-width: 1; }
.rb-map polyline.prov { stroke: #cdb27c; stroke-width: .8; }
.rb-map polyline.now { stroke: #fff8e8; stroke-width: 2.4; opacity: .9; }
.rb-map .rb-trail { fill: none; stroke: #c2410c; stroke-width: 1.2; stroke-dasharray: 2.6 2; stroke-linecap: round; }
.rb-map polyline.before { stroke: #7a3b1a; stroke-width: 1.3; stroke-dasharray: .1 2.2; stroke-linecap: round; opacity: .85; }
.rb-map text { font-size: 8.5px; font-weight: 700; fill: #3b3225; stroke: rgba(255, 250, 238, .92); stroke-width: 2.2px; stroke-linejoin: round; paint-order: stroke; letter-spacing: .04em; }
.rb-map text.now { fill: #b4441c; font-weight: 800; }
.rb-map text.before { fill: #8a5a3c; }
.rb-map text.dest { fill: #1d5fd6; font-weight: 800; }
/* 导航路线（开着导航时，去目的地）：和手机地图同一种蓝线白边，压在足迹上面、车标下面；终点一面小红旗插在城区里（画在城名下面，不挡字），目的地那座城的名字改蓝 */
.rb-map .rb-route-casing { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.rb-map .rb-route { fill: none; stroke: #2d7ff9; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rb-flag-pole { fill: none; stroke: #3b3225; stroke-width: 1.3; stroke-linecap: round; }
.rb-flag-cloth { fill: #e11d48; stroke: #fff; stroke-width: .8; stroke-linejoin: round; }
.rb-flag-foot { fill: #fff; stroke: #3b3225; stroke-width: .6; }
/* 车标：淡蓝光晕 + 白底圆点 + 朝车头的蓝箭头 */
.rb-me { transform: scale(.5); }
.rb-me-halo { fill: rgba(45, 127, 249, .2); }
.rb-me-disc { fill: #fff; stroke: rgba(31, 24, 14, .18); stroke-width: 1; }
.rb-me-arrow { fill: #2d7ff9; }
/* 弹层：图约三四百像素见方，上面图例、下面足迹 */
.roadbook-big .logm-c { width: auto; max-width: none; max-height: 100%; align-items: center; }
.roadbook-big .logm-h { align-self: stretch; }
.roadbook-big .logm-h button { width: var(--tap, 44px); height: var(--tap, 44px); font-size: 18px; }
.roadbook-big .logm-b { display: flex; flex-direction: column; align-items: center; overflow: visible; margin: 0; padding: 0; }
.roadbook-big .rb-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--tx2, #9aa0aa); }
.rb-legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.rb-legend i { display: inline-block; width: 18px; height: 0; margin-right: 6px; border-top: 2px dashed #e0662a; }
.rb-legend i.before { border-top: 2.5px dotted #c08a62; }
.rb-legend i.route { border-top: 3px solid #2d7ff9; border-radius: 2px; }
.rb-legend svg.me { width: 14px; height: 14px; margin-right: 6px; overflow: visible; }
.rb-legend svg.me circle { fill: #fff; }
.rb-legend svg.me path { fill: #2d7ff9; }
/* 能去的地方（去哪儿并进路书）：城是看不见的点击圈，地标是白底小圆点；选中的套一圈蓝色虚线 */
.rb-place { cursor: pointer; }
.rb-place .rb-hit { fill: transparent; }
.rb-place .rb-spot { fill: #fff; stroke: #3b3225; stroke-width: .9; }
.rb-place.sel .rb-spot, .rb-place.dest .rb-spot { fill: #2d7ff9; stroke: #fff; }
.rb-place .rb-ring { fill: rgba(45, 127, 249, .14); stroke: #2d7ff9; stroke-width: 1.2; stroke-dasharray: 2.4 1.6; }
.rb-map text { cursor: pointer; }
/* 下面那张卡：选中的地方 / 正在导航 / 想去哪儿；高度固定，切换时大图不跳 */
.roadbook-big .rb-panel { width: 100%; max-width: 340px; height: 116px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.roadbook-big .rb-panel p { margin: 0; }
.roadbook-big .rb-pl-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-size: 13px; line-height: 1.35; color: var(--tx2, #9aa0aa); }
.rb-pl-t b { font-size: 16px; font-weight: 800; color: var(--tx, #fff); }
.rb-pl-t em, .rb-row-t em { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 4px; color: var(--chip-tx, #e7cb92); background: var(--chip, rgba(255, 255, 255, .08)); }
.rb-row-t em.on { color: #fff; background: #2d7ff9; }
.rb-pl-t i, .rb-row-t i { font-style: normal; margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tx2, #9aa0aa); }
.rb-pl-t small { font-size: 11px; }
.roadbook-big .rb-pl-s { font-size: 12.5px; line-height: 1.45; color: var(--tx2, #b8bdc8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-pl-a { display: flex; gap: 8px; margin-top: auto !important; }
.rb-pl-a .btn { flex: 1 1 0; min-height: 40px; margin: 0; padding: 0 10px; font-size: 14px; }
.rb-link { margin-left: 6px; padding: 0; border: 0; background: none; color: #ff8f8f; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
/* 去哪儿列表：和大图一样大，替换大图；城市在前、景点在后，每行名字、去没去过、多远多久，下面一句简介 */
.rb-list { display: flex; flex-direction: column; border-radius: 10px; background: var(--s1, rgba(26, 30, 38, .96)); border: 1px solid var(--line, #ffffff18); overflow: hidden; }
.rb-list-h { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 10px; border-bottom: 1px solid var(--line, #ffffff18); }
.rb-list-h b { font-size: 15px; }
.rb-list-h button { min-height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line, #ffffff24); background: transparent; color: var(--tx2, #b8bdc8); font-size: 12px; font-weight: 700; }
.rb-list-b { flex: 1 1 auto; overflow-y: auto; padding: 4px 8px 8px; -webkit-overflow-scrolling: touch; }
.roadbook-big .rb-list-g { margin: 5px 2px 3px; font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .08em; color: var(--tx3, #7d869c); }
.rb-row { display: flex; flex-direction: column; gap: 1px; width: 100%; margin: 0 0 5px; padding: 6px 9px; border-radius: 10px; border: 1px solid var(--line, #ffffff18); background: var(--s2, rgba(255, 255, 255, .05)); color: var(--tx, #fff); text-align: left; }
.rb-row.dest { border-color: #2d7ff9; }
.rb-row:disabled { opacity: .5; }
.rb-row-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
/* 列表窄时整块换行，城名、标签、多远多久不在字中间断开 */
.rb-row-t b, .rb-row-t em, .rb-row-t small, .rb-row-t i { white-space: nowrap; }
.rb-row-t b { font-size: 14px; font-weight: 800; }
.rb-row-t small { font-size: 11px; color: var(--tx2, #9aa0aa); }
.rb-row-s { font-size: 11.5px; line-height: 1.4; color: var(--tx2, #b8bdc8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 足迹三项排一行小标签（选目的地的卡片在下面，竖屏给大图多留高度） */
.roadbook-big .rb-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: var(--tx2, #9aa0aa); }
.rb-stats span { padding: 2px 7px; border-radius: 999px; background: var(--s2, rgba(255, 255, 255, .06)); white-space: nowrap; }
.rb-stats b { font-size: 12px; font-weight: 800; color: var(--tx, #fff); font-variant-numeric: tabular-nums; }
/* 320 宽：这趟、开了多久、总行程三块挤成一行，大图和去哪儿列表少让出一行 */
@media (max-width: 360px) { .roadbook-big .rb-stats { gap: 3px; } .rb-stats span { padding: 2px 5px; } }
.rb-big { display: block; flex: 0 0 auto; border-radius: 12px; background: #efe6cc; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .28); }
/* 横屏：标题、图例、足迹放左边一栏，图在右边占满高（RoadbookView.vue 量了哪样图大才加 .wide） */
.roadbook-big.wide .logm-c { display: grid; grid-template-columns: 240px auto; grid-template-rows: auto auto auto 1fr; column-gap: 16px; align-items: start; }
.roadbook-big.wide .logm-h { grid-column: 1; grid-row: 1; margin: 0; }
.roadbook-big.wide .logm-b { display: contents; }
.roadbook-big.wide .rb-legend { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 4px 12px; width: 240px; margin: 4px 0 0; }
.roadbook-big.wide .rb-stats { grid-column: 1; grid-row: 3; justify-content: flex-start; width: 240px; margin: 8px 0 0; }
.roadbook-big.wide .rb-panel { grid-column: 1; grid-row: 4; align-self: end; width: 240px; height: 128px; }
.roadbook-big.wide .rb-big, .roadbook-big.wide .rb-list { grid-column: 2; grid-row: 1 / 5; }
/* 养家的路书（地点图鉴，TaxiBookMap.vue）：这座城的真街道，自己的地盘描金；这一页的地点去过的实心橙点、没去过的空心圈，别页的地点浅色小点 */
.tb-map .tb-st { fill: none; stroke: #b6ab90; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.tb-map .tb-st.loop, .tb-map .tb-st.spur { stroke: #c4b48c; stroke-dasharray: 2.2 1.6; }
.tb-map .tb-st.turf { stroke: #e0a526; stroke-width: 1.8; stroke-dasharray: none; }
.tb-pl { fill: #fffaf0; stroke: #8a7a5c; stroke-width: .8; }
.tb-pl.got { fill: #e0662a; stroke: #fff; stroke-width: .9; }
.tb-pl.other { fill: #b6ab90; stroke: none; }
/* 分页：落霞五页、外城三页，一页一个小按钮写到过几处；这一页橙底，点满的那页数字换成金色 */
.roadbook-big .tb-pages { gap: 4px 10px; }
.tb-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tb-group b { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--tx3, #7d869c); margin-right: 2px; }
.tb-page { min-height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line, #ffffff24); background: transparent; color: var(--tx2, #b8bdc8); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tb-page i { font-style: normal; margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .8; }
.tb-page.done i { color: #e7cb92; opacity: 1; }
.tb-page.on { color: #fff; background: #e0662a; border-color: transparent; }
.tb-page.on i { color: #fff; }
.roadbook-big .tb-panel .rb-pl-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tb-all { font-size: 12px; color: var(--tx3, #7d869c); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-all b { color: var(--tx, #fff); }
.tb-reward { font-size: 12px; color: var(--tx2, #b8bdc8); }
.tb-reward.on { color: #e7cb92; }
/* 这一页的地点：去过的写名字（橙底），没去过的写「？？？」；放不下就在面板里滚 */
/* 图鉴横排时左栏（分页、统计、名单）比地图高：名单那块只占剩下的高度，名单自己滚动，不撑出弹层（320 宽横屏） */
.taxi-book.wide .logm-c { grid-template-rows: auto auto auto minmax(0, 1fr); height: var(--tb-h, auto); }
.taxi-book.wide .rb-big { align-self: center; }
.taxi-book.wide .rb-panel { align-self: stretch; height: 0; min-height: 100%; }   /* 不参与算行高（行高照地图），再撑满剩下那一行 */
.roadbook-big .tb-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.tb-list span { font-size: 12px; line-height: 1.5; padding: 1px 7px; border-radius: 6px; background: var(--s2, rgba(255, 255, 255, .05)); color: var(--tx3, #7d869c); }
.tb-list span.got { color: var(--tx, #fff); background: rgba(224, 102, 42, .24); }
/* 选导航目的地：七座城和四处地标，两列按钮，放不下就在卡片里滚 */
.pc-go { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px; }
.pc-halt, .pc-halt.on, #phone.dark .pc-halt, #phone.dark .pc-halt.on, .phone-primary-action, #phone.dark .phone-primary-action { display: block; width: 100%; height: 30px; margin: 0; font-size: 13px; font-weight: 800; color: #fff; background: #ff6a1a; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; }
.radar { width: 26px; height: 26px; border-radius: 13px; background: #ff6a1a; position: relative; }
.radar::before, .radar::after { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 13px; border: 2px solid #ff6a1a; -webkit-animation: radar 1.8s ease-out infinite; animation: radar 1.8s ease-out infinite; }
.radar::after { -webkit-animation-delay: .9s; animation-delay: .9s; }
@-webkit-keyframes radar { from { -webkit-transform: scale(1); opacity: .8; } to { -webkit-transform: scale(2.4); opacity: 0; } }
@keyframes radar { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.pc-stats { display: flex; background: #f6f7f9; border-radius: 8px; padding: 5px 0; margin-top: 2px; }
.pc-stats div { flex: 1; text-align: center; }
.pc-stats b { display: block; font-size: 13.5px; font-weight: 800; }
.pc-stats span { font-size: 9px; color: #8a9099; }
.pc-tasks { margin-top: 5px; }
.pc-th { font-size: 10px; font-weight: 700; color: #e8620f; margin-bottom: 1px; }
.pc-task { display: flex; align-items: center; font-size: 10px; color: #4a515b; padding: 1px 0; }
.pc-task span { flex: 1; min-width: 0; }
.pc-task b, .pc-task em { flex-shrink: 0; white-space: nowrap; }
.pc-task b { font-weight: 600; margin: 0 4px; color: #8a9099; }
.pc-task em { font-style: normal; color: #ff6a1a; font-weight: 700; }
.pc-task.done span, .pc-task.done b { color: #1bb35a; }
.pc-chal { font-size: 10px; color: #e5392f; margin-top: 3px; }
.pc-big { font-size: 15px; font-weight: 800; margin: 3px 0 1px; }
.pc-big.ok { color: #1bb35a; }

.pk { display: flex; align-items: center; }
.pk-who { flex: 1; min-width: 0; }
.pk-who b { display: block; font-size: 14px; font-weight: 800; }
.pk-who span { display: block; font-size: 10px; color: #6b727c; }
.pk-who .ptag, .pk-id .ptag { margin: 0 3px 0 0; }
.pk-id { font-size: 10px; color: #6b727c; margin-top: 1px; }
.pk-btns { display: flex; }
.pk-btns button { width: 30px; height: 30px; border-radius: 15px; background: #eef0f3; color: #1f2329; margin-left: 5px; display: flex; align-items: center; justify-content: center; }
.pk-btns svg { width: 15px; height: 15px; }
.pk-btns button.used { opacity: .45; }
.pk-sub { font-size: 10.5px; color: #6b727c; margin-top: 2px; }
.pk-sub b { color: #1f2329; font-size: 13px; letter-spacing: 1px; }
.pk-warn { font-size: 11px; color: #e8620f; font-weight: 700; margin-top: 2px; }
.pk-cancel { display: block; margin: 3px 0 0 auto; font-size: 10px; color: #9aa0aa; padding: 2px 4px; }

.pt { display: flex; align-items: flex-end; }
.pt-meter { flex: 1; }
.pt-meter span { display: inline-block; font-size: 9.5px; color: #fff; background: #1bb35a; border-radius: 4px; padding: 0 5px; margin-bottom: 1px; }
.pt-meter b { display: block; font-size: 23px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-meta { font-size: 10px; color: #6b727c; text-align: right; line-height: 1.3; }
.pt-mood { display: flex; align-items: center; margin-top: 3px; }
.pt-mood span { font-size: 10px; color: #6b727c; margin-right: 6px; white-space: nowrap; }

.pb-h { font-size: 12.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.pb-h span { font-size: 9.5px; font-weight: 500; color: #8a9099; }
.pb-r { display: flex; justify-content: space-between; font-size: 10.5px; color: #4a515b; padding: 1px 0; }
.pb-r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-sum { border-top: 1px dashed #d6d9de; margin-top: 2px; padding-top: 3px; font-size: 12px; color: #1f2329; font-weight: 700; }
.pb-cut { color: #9aa0aa; }
.pb-net { font-size: 13px; color: #ff6a1a; font-weight: 800; }

.pp { line-height: 1.45; }
.pp-ok { color: #1bb35a; font-weight: 800; font-size: 12.5px; margin-bottom: 3px; }
.pp-ok span { display: inline-block; }
.pp-lab { font-size: 10px; color: #8a9099; margin-top: 4px; }
.pp-net { font-size: 26px; font-weight: 900; color: #ff6a1a; line-height: 1.1; }
.pp-net span { display: inline-block; }
/* 最窄手机给四位数长途收入留足宽度；币种与数字可分行，金额数字保持整块。 */
#phone.tiny .pp-net { font-size: 20px; }
.pp-chips { display: flex; flex-wrap: wrap; row-gap: 2px; --rk-existing-row-margin: 3px; margin: 5px 0 3px; }
.pp-chips span { font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1px 5px; margin: 0 4px 3px 0; background: #f0f1f3; color: #4a515b; }
.pp-chips span.b { background: #e6f8ee; color: #16844a; }
.pp-net.negative { color: #ba493d; }
.pp-chips span.negative { background: #fff0e6; color: #a94d1d; }
#phone.dark .pp-chips span { background: #262a32; color: #b7bcc5; }
#phone.dark .pp-chips span.b { background: #163a26; color: #5fe39a; }
#phone.dark .pp-net.negative { color: #f39b91; }
#phone.dark .pp-chips span.negative { background: #3c2a1a; color: #f3be91; }
.pp-cmt { font-size: 10px; color: #4a515b; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-st { color: #f5b800; margin-right: 3px; letter-spacing: 1px; }
.pp-rate { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; padding: 3px 0; font-size: 10px; color: #6b727c; }
.pp-rate span { margin-right: 6px; white-space: nowrap; }
.pp-rate div { display: flex; flex-wrap: wrap; max-width: 100%; white-space: nowrap; }
.pp-rate button { flex: 0 0 auto; font-size: 20px; color: #d6d9de; padding: 3px 1px; line-height: 1.5; }
.pp-rated { font-size: 10.5px; color: #1bb35a; margin-top: 4px; }

/* 滑动确认 */
.psl { position: relative; flex-shrink: 0; height: 40px; margin: 0 8px 8px; border-radius: 20px; background: -webkit-linear-gradient(left, #ff9a4a, #ff6a1a); background: linear-gradient(90deg, #ff9a4a, #ff6a1a); box-shadow: 0 2px 6px rgba(255,106,26,.35); }
.psl span { position: absolute; left: 0; right: 0; top: 0; line-height: 40px; text-align: center; color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: 1px; padding-left: 26px; }
.psl b { position: absolute; left: 3px; top: 3px; width: 34px; height: 34px; border-radius: 17px; background: #fff; color: #ff6a1a; font-size: 20px; line-height: 32px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.psl.done { background: #1bb35a; box-shadow: none; }
.psl.done b { color: #1bb35a; }

/* 横屏：手机是一部竖着的完整手机——圆角、挖孔摄像头、底部横条；地图吃掉多出来的高度。字只比竖屏略大 */
/* 手机是一部固定大小的竖屏手机（高宽比 18:9，和真手机一样），横竖屏都一样：
   圆角、挖孔摄像头、底部横条；内容按阶段排进去，地图吃掉多出来的高度，手机本身不跟着内容变大变小 */
.ps { position: relative; }
.ps::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: #0c0d10; box-shadow: inset 0 0 0 2px #23262c; }
.ps-rec em { display: none; }
#ph-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; position: relative; }
/* 卡片里的每一块按内容高、不许被压矮（竖排 flex 默认会压：单行省略号那几行压成半行、叠在一起），放不下就让卡片滑 */
#ph-card > * { flex-shrink: 0; }
/* 接驾、送驾：卡片按内容高，地图吃掉剩下的；放不下时地图先缩到最矮（flex-shrink 大得多），还放不下卡片再缩、能上下滑（main.js 的 phFit） */
/* SVG 脱离 flex 高度计算，避免旧 WebView 用百分比高度反撑地图并盖住导航和卡片。 */
.pm { flex: 1 1000 86px; height: auto; min-height: 44px; overflow: hidden; }
/* 在路上（旅程）和附近补能：地图至少留三成高度，不被卡片压成一条（2026-11-05 用户：地图太窄）；卡片放不下就滑 */
#phone[data-stage="roam"] .pm { flex: 1 0 30%; }
#phone[data-stage="pickup"] #ph-card, #phone[data-stage="trip"] #ph-card, #phone[data-stage="roam"] #ph-card { flex: 0 1 auto; }
/* 上车、到达、下车、收款这几页竖直居中：用上下 auto 外边距（justify-content: center 放不下时顶上那截会被裁掉、滑也滑不到） */
#phone[data-stage="ready"] #ph-card > :first-child, #phone[data-stage="arrive"] #ph-card > :first-child, #phone[data-stage="board"] #ph-card > :first-child,
#phone[data-stage="alight"] #ph-card > :first-child, #phone[data-stage="paid"] #ph-card > :first-child { margin-top: auto; }
#phone[data-stage="ready"] #ph-card > :last-child, #phone[data-stage="arrive"] #ph-card > :last-child, #phone[data-stage="board"] #ph-card > :last-child,
#phone[data-stage="alight"] #ph-card > :last-child, #phone[data-stage="paid"] #ph-card > :last-child { margin-bottom: auto; }
/* 卡片放不下能滑时：还有内容的那一头渐隐，右边一根细滚动条（位置、长短 main.js 的 phFit 算） */
#ph-card.more-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), rgba(0,0,0,.15)); mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), rgba(0,0,0,.15)); }
#ph-card.more-t { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 16px), rgba(0,0,0,.15)); mask-image: linear-gradient(to top, #000 calc(100% - 16px), rgba(0,0,0,.15)); }
#ph-card.more-t.more-b { -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.15), #000 16px, #000 calc(100% - 16px), rgba(0,0,0,.15)); mask-image: linear-gradient(to bottom, rgba(0,0,0,.15), #000 16px, #000 calc(100% - 16px), rgba(0,0,0,.15)); }
.psb { display: none; position: absolute; right: 2px; width: 3px; border-radius: 2px; background: rgba(0,0,0,.28); pointer-events: none; z-index: 2; }
#phone.dark .psb { background: rgba(255,255,255,.32); }
.ph-home { display: block; flex-shrink: 0; width: 34%; height: 4px; border-radius: 2px; background: #1f2329; opacity: .3; margin: 1px auto 4px; }
#phone.dark .ph-home { background: #e8eaee; }
.pc-listen { flex: 1 1 auto; justify-content: center; }

/* 夜间模式 */
#phone.dark { background: #121419; color: #e8eaee; border-color: #050506; }
#phone.dark .ps { background: #121419; color: #e8eaee; }
#phone.dark #ph-card { background: #1c1f26; }
#phone.dark .pm-bg { fill: #1b2029; }
#phone.dark .pm-edge, #phone.dark .pm-owe { stroke: #2a303a; }
#phone.dark .pm-road, #phone.dark .pm-xr, #phone.dark .pm-ow { stroke: #3b4351; }
#phone.dark .pm-owy, #phone.dark .pm-xy { stroke: #a8862e; }
#phone.dark .pm-lt { stroke: #1b2029; }
#phone.dark .pn { background: #0b5c37; } #phone.dark .pn.to { background: #173f8c; }
#phone.dark .po-dist b, #phone.dark .pk-sub b, #phone.dark .pc-score b, #phone.dark .pb-sum { color: #f1f2f5; }
#phone.dark .po-dist, #phone.dark .po-money span, #phone.dark .pb-r, #phone.dark .pc-task, #phone.dark .pp-cmt { color: #b7bcc5; }
#phone.dark .pc-stats { background: #262a32; }
#phone.dark .pbar, #phone.dark .po-ring circle { stroke: #2c313a; }
#phone.dark .pbar { background: #2c313a; }
#phone.dark .po-ring circle.p { stroke: #ff6a1a; }
#phone.dark .pk-btns button { background: #2a2e36; color: #e8eaee; }
#phone.dark .pc-brand em { background: #e8eaee; color: #121419; }
#phone.dark .ptag { background: #3b2a1c; color: #ffb36b; }
#phone.dark .pp-rate button { color: #474d57; }
#phone.dark .ph-home { background: #fff; }
#phone.dark .pb-net { color: #ff8a3d; }
#phone.dark .pb-cut { color: #7d838d; }
.dots::after { content: ''; -webkit-animation: dots 1.2s steps(4) infinite; animation: dots 1.2s steps(4) infinite; }
@-webkit-keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

#wheel { position: absolute; left: 0; top: 0; width: 220px; height: 220px; will-change: transform; }
#wheel svg { display: block; }

.pedal {
  position: absolute; bottom: 12px;
  margin-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  border-radius: 12px; border: 2px solid #454850;
  background: #2b2e34;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.35) 3px, transparent 3px, transparent 11px);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font-size: 13px; font-weight: 700; color: #c5c8ce; z-index: 3;
  -webkit-transition: -webkit-transform .06s; transition: transform .06s;
}
.pedal span { background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 6px; }
#brake { left: 10px; width: 22vw; max-width: 96px; height: 27vw; max-height: 118px; }
#gas { right: 10px; width: 19vw; max-width: 84px; height: 36vw; max-height: 156px; }
.pedal.on { -webkit-transform: scale(.93) translateY(3px); transform: scale(.93) translateY(3px); }
#brake.on { border-color: #ff4d4d; }
#gas.on { border-color: #ff9a3d; }

/* 所有提示（乘客说话 + 系统提示）都在方向盘上方一列，靠右：乘客说话在最上面，提示依次往下排 */
/* 提示整体只加一点点透明度（2026-10-27 用户要求） */
#toast { position: absolute; right: 10px; bottom: 140px; max-width: 200px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; z-index: 20; opacity: .95; }
.tst {
  background: rgba(18,20,26,.9); border-radius: 10px; padding: 5px 10px 6px; font-size: 12.5px; font-weight: 600; line-height: 1.35;
  margin-bottom: 5px; max-width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.1);
  -webkit-animation: tin .25s ease-out; animation: tin .25s ease-out;
}
.tst.out { opacity: 0; -webkit-transition: opacity .4s; transition: opacity .4s; }
@-webkit-keyframes tin { from { opacity: 0; -webkit-transform: translateY(8px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 全屏面板 ---------- */
.screen {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 10;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: 20px 16px 28px;
}
.wrap {
  max-width: 440px; margin: 0 auto;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
.title { text-align: center; margin: 14px 0 16px; }
.title h1 { font-size: 34px; font-weight: 900; letter-spacing: 2px; }
.title p { font-size: 13px; margin-top: 6px; }
/* 「养家版」小金签：挂在名字右上角，不挤歪名字的居中 */
.title h1 { display: inline-block; position: relative; }
.title h1 .ed { position: absolute; left: 100%; top: -4px; margin-left: 2px; white-space: nowrap; font-style: normal;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; line-height: 1; padding: 4px 7px; border-radius: 8px; text-shadow: none; transform: rotate(-8deg); }
/* 共用提示块 .notice：默认只给边、底、内边距；放在 .card / .store-bad 之前，同一元素上那些旧类（更靠后）仍然优先。
   变体只改三个变量；.paper 是货运纸色的提示，自带尺寸。字号 / 行高由使用处决定。 */
.notice { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--notice-bd, var(--line)); border-radius: var(--r-md); background: var(--notice-bg, transparent); color: var(--notice-fg, inherit); }
.notice.warn { --notice-bd: var(--warn); --notice-bg: var(--warn-soft); --notice-fg: var(--warn); }
.notice.bad { --notice-bd: var(--bad); --notice-bg: var(--bad-soft); --notice-fg: var(--bad); }
.notice.ok { --notice-bd: var(--ok); --notice-bg: var(--ok-soft); --notice-fg: var(--ok); }
.notice.info { --notice-bd: var(--s1b); --notice-bg: var(--panel); --notice-fg: var(--tx); }
.notice.paper { --notice-bd: #e0bd72; --notice-bg: #fff0d4; --notice-fg: #574622; margin: 12px 0; padding: 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
/* 共用进度条 .meter（菜单页；手机内与 HUD 的另有一套）：外层 <div class="meter"><i style="width:60%"></i></div>。
   变量：--meter-h 高、--meter-r 圆角、--meter-ir 填充条圆角（默认同外层）、--meter-bg 槽、--meter-fill 填充。 */
.meter { display: block; overflow: hidden; height: var(--meter-h, 6px); border-radius: var(--meter-r, 4px); background: var(--meter-bg, var(--s2)); }
.meter > i { display: block; height: 100%; border-radius: var(--meter-ir, var(--meter-r, 4px)); background: var(--meter-fill, var(--ac)); }
/* 共用标签 .chip：变量 --chip-fs 字号 / --chip-pad 内边距 / --chip-r 圆角 / --chip-bg / --chip-fg（默认读全局 --chip / --chip-tx）。
   下面这串选择器是菜单页现有的标签，各自只设变量；新标签直接写 class="chip"（可加 gold / ok / warn / lock / paper）。
   放在前面：同一元素上更靠后的规则（含变体）仍然优先。 */
.chip, .tchip, .car-info em, .es-tag, .hm-dk em, .lv-row b small, .log-h span em, .freight-batch b, .freight-highlights span, .freight-new-badges span, .freight-waybill header > span {
  font-style: normal; font-size: var(--chip-fs, 11px); padding: var(--chip-pad, 1px 6px); border-radius: var(--chip-r, var(--r-xs));
  background: var(--chip-bg, var(--chip)); color: var(--chip-fg, var(--chip-tx)); }
.chip.gold { --chip-bg: var(--ac); --chip-fg: var(--ac-tx); }
.chip.ok { --chip-bg: var(--ok-soft); --chip-fg: var(--ok); }
.chip.warn { --chip-bg: var(--warn-soft); --chip-fg: var(--warn); }
.chip.lock { --chip-bg: var(--s2); --chip-fg: var(--tx3); }
.chip.paper { --chip-bg: #dbe5d9; --chip-fg: #355337; }
.card { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
/* 分节标题 .sec-title（.card h2 同款）：--sec-fs 字号、--sec-mb 下边距；右侧辅助信息写成 <small>。 */
.sec-title, .card h2, .bus-depot-section-title { font-size: var(--sec-fs, 15px); margin-bottom: var(--sec-mb, 8px); }
.stats { display: flex; flex-wrap: wrap; }
.stats div { width: 50%; padding: 4px 0; }
.stats span { display: block; font-size: 11px; }
.stats b { font-size: 18px; }
.btn {
  display: block; width: 100%; height: 48px; border-radius: 12px;
  font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.btn small { font-size: 12px; font-weight: 500; opacity: .85; margin-left: 4px; }
.btn:active { opacity: .8; }
.row2 { display: flex; }
.row2 .btn { flex: 1; }
.row2 .btn + .btn { margin-left: 10px; }
.car { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.car:first-of-type { border-top: 0; }
.car-info { flex: 1; min-width: 0; padding-right: 8px; }
.car-info b { font-size: 14px; }
.car-info em { --chip-fs: 10px; --chip-pad: 0 4px; margin-left: 4px; }
.car-info p { font-size: 11px; margin-top: 2px; }
/* 小按钮：视觉保持 32–34px，::after 把触控区上下撑到 --tap（44px）；新写小按钮用 .btn.sm */
.btn.sm, .car button, .vehicle-assist-row > button, .set-r button, .foot button, .who button { position: relative; }
.btn.sm::after, .car button::after, .vehicle-assist-row > button::after, .set-r button::after, .foot button::after, .who button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: var(--tap); min-height: 100%; transform: translateY(-50%); }
.btn.sm { width: auto; display: inline-block; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; margin-bottom: 0; }
.car button, .vehicle-assist-row > button { flex-shrink: 0; min-width: 76px; height: 34px; border-radius: 9px; font-size: 13px; font-weight: 700; padding: 0 8px; }
.car button.using { background: transparent; }
.car button[disabled], .car button[aria-disabled="true"], .vehicle-assist-row > button[disabled], .vehicle-assist-row > button[aria-disabled="true"] { opacity: .45; }
.help { font-size: 12.5px; line-height: 1.6; padding-left: 18px; }
.help li { margin-bottom: 4px; }
.foot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--tx2); margin-top: 4px; }
.foot button { border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.store-bad { border: 0; border-radius: 10px; padding: 8px 10px; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.chal { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.chal b { font-size: 16px; }
.chal p { font-size: 12px; margin-top: 4px; opacity: .95; }
.task { font-size: 12.5px; padding: 3px 0; display: flex; justify-content: space-between; }

/* 收车小票 */
.receipt { border-radius: 6px; padding: 16px 16px 12px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.receipt h2 { text-align: center; font-size: 17px; }
.receipt .sub { text-align: center; font-size: 12px; margin: 2px 0 10px; }
.receipt .ln { --kv-fs: 13.5px; --kv-pad: 3px 0; --kv-bd: 0; --kv-fg: currentcolor; --kv-ai: stretch; }
.receipt .ln span:last-child { font-variant-numeric: tabular-nums; }
.receipt .neg { color: #c0392b; } .receipt .pos { color: #1f9d55; } .receipt .gold { color: var(--pac); }
.receipt .cut { border-top: 1px dashed #bbb; margin: 8px 0; }
.receipt .net { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 800; }
.receipt .net b { font-size: 26px; }
.receipt .quip { text-align: center; font-size: 13px; margin-top: 8px; }
.receipt .res { text-align: center; font-weight: 800; font-size: 15px; margin-top: 8px; }
/* 横屏收工页：总结和按钮左右排，总结自己滚，操作始终看得到。 */
#app.land #summary { overflow: hidden; padding: 16px 24px; }
#app.land .screen .summary-layout { max-width: 1040px; height: 100%; display: flex; gap: 24px; }
#app.land .summary-layout .summary-report { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 0 8px 8px 0; }
#app.land .summary-layout .receipt { margin-bottom: 0; }
.summary-layout .receipt .ln { gap: 12px; align-items: flex-start; }
.summary-layout .receipt .ln span { min-width: 0; overflow-wrap: break-word; }
.summary-layout .receipt .ln span:first-child { flex-shrink: 0; max-width: 65%; }
.summary-layout .receipt .ln span:last-child { text-align: right; }
#app.land .summary-layout .summary-actions { flex: 0 0 30%; min-width: 160px; max-width: 280px; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px; }
#app.land .summary-layout .summary-actions > :first-child { margin-top: auto; }
#app.land .summary-layout .summary-actions > :last-child { margin-bottom: auto; }
#app.land .summary-layout .summary-actions .btn { flex-shrink: 0; }
.note { font-size: 12px; text-align: center; margin-bottom: 10px; line-height: 1.5; }

.tut .title h1 { font-size: 26px; }
.tut ol { padding-left: 18px; font-size: 14px; line-height: 1.6; }
.tut li { margin-bottom: 8px; }
.tut .note { margin: 8px 0 0; }
/* 「出车」按钮贴在底部：内容比屏幕高时不用先拖到底才点得到 */
.tut .btn.primary { position: -webkit-sticky; position: sticky; bottom: 0; }
/* 横屏：排两栏，一屏放下 */
#app.land #tut { padding-top: 8px; padding-bottom: 8px; }
#app.land .screen .wrap.tut { max-width: 780px; }
#app.land .tut .title { margin: 0 0 6px; }
#app.land .tut .title h1 { font-size: 22px; }
#app.land .tut .card { padding: 10px 14px 8px; margin-bottom: 8px; }
#app.land .tut ol { -webkit-columns: 2; columns: 2; -webkit-column-gap: 26px; column-gap: 26px; font-size: 12.5px; line-height: 1.5; }
#app.land .tut li { margin-bottom: 6px; -webkit-column-break-inside: avoid; break-inside: avoid; }
#app.land .tut .note { font-size: 11px; margin: 2px 0 0; }

/* ---------- 连击、金币、挂件 ---------- */
/* 连击是状态条（#king）右上角外侧的一个小斜标签，只写「连击12」：绝对定位，不显示时不占状态条宽度，可以压住状态条一角（2026-10-27 用户确认） */
#combo { position: absolute; right: -8px; top: -10px; display: flex; align-items: baseline; padding: 0 4px 1px; border-radius: 4px; white-space: nowrap;
  font-size: 10px; font-weight: 800; line-height: 1.25; box-shadow: 0 1px 3px rgba(0,0,0,.4); background: linear-gradient(90deg, #b58a3c, #d8b36a); color: var(--ac-tx);
  -webkit-transform: rotate(6deg); transform: rotate(6deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; }
#combo b { font-weight: 800; margin-right: 1px; }
#combo span { font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; }
#king.on #combo { background: #7a4d00; color: #ffe89a; }
#combo.pop { -webkit-animation: cpop .35s ease-out; animation: cpop .35s ease-out; }
@-webkit-keyframes cpop { 0% { -webkit-transform: rotate(6deg) scale(1.35); } 100% { -webkit-transform: rotate(6deg) scale(1); } }
@keyframes cpop { 0% { transform: rotate(6deg) scale(1.35); } 100% { transform: rotate(6deg) scale(1); } }
.coin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 6; pointer-events: none;
  background: url(coin.svg) 0 0 / 100% 100% no-repeat;
  -webkit-transition: -webkit-transform .75s cubic-bezier(.5,-0.3,.7,1), opacity .75s; transition: transform .75s cubic-bezier(.5,-0.3,.7,1), opacity .75s; }
#charm .chs { position: absolute; left: -5px; bottom: 2px; width: 34px; height: 51px; }
#charm .chs > svg { width: 100%; height: 100%; display: block; }
#charm.ch-ping i, #charm.ch-knot i, #charm.ch-cat i { background: #b81c1c; bottom: 44px; }
#charm.ch-bear i, #charm.ch-aroma i, #charm.ch-duck i { background: #3a3d44; bottom: 44px; }
#charm.ch-duck i { bottom: 39px; }
#charm.ch-rainbell i, #charm.ch-snowball i, #charm.ch-clover i, #charm.ch-chime i { background: #3a3d44; bottom: 44px; }

/* ---------- 手机：跟车单、聊天题、小费明细 ---------- */
.po-chase { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-style: normal; font-size: 9.5px; color: #fff; background: #e5392f; border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.pn.chase { background: #c62d2d; }
#phone.dark .pn.chase { background: #8e1f1f; }
.pm-pin.chase path { fill: #e5392f; }
.pch { margin-top: 3px; }
.pch > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.pch b { font-size: 11px; color: #c62d2d; white-space: nowrap; }
.pch span { white-space: nowrap; }
.pch span { font-size: 10px; color: #6b717b; }
.pbar.chase i { background: #22c55e; } .pbar.chase.mid i { background: #f5b800; } .pbar.chase.low i { background: #ef4444; }
.pq { margin: 4px 0 2px; background: #fff7ec; border: 1px solid #ffd9b0; border-radius: 8px; padding: 5px 6px 4px; }
.pq-q { font-size: 11px; font-weight: 700; color: #7a3d00; margin-bottom: 4px; }
.pq-a button { display: block; width: 100%; text-align: left; font-size: 11px; line-height: 1.3; padding: 5px 6px; margin-top: 3px; border-radius: 6px; background: #fff; color: #1f2329; border: 1px solid #f0d2b0; }
.pq-a button em { font-style: normal; display: inline-block; width: 14px; height: 14px; line-height: 14px; border-radius: 7px; background: #ff7a1a; color: #fff; font-size: 9px; text-align: center; margin-right: 5px; vertical-align: 1px; }
.pq-t { height: 3px; background: #f3e1cc; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.pq-t i { display: block; height: 100%; background: #ff7a1a; }
#phone.dark .pq { background: #2a2118; border-color: #5a3d1c; }
#phone.dark .pq-q { color: #ffc98f; }
#phone.dark .pq-a button { background: #1c1f26; color: #e8eaee; border-color: #4a3620; }
#phone.dark .pq-t { background: #3a2c1c; }

/* ---------- 结算称号、称号墙、挂件商店 ---------- */
.ttl { text-align: center; margin: 2px 0 12px; padding: 10px 8px 9px; border-radius: 8px; background: var(--ink); color: var(--gold); }
.ttl span { display: block; font-size: 11px; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.ttl span em { font-style: normal; font-size: 10px; background: var(--xhs); color: #fff; border-radius: 4px; padding: 0 4px; margin-left: 6px; letter-spacing: 0; }
.ttl b { display: block; font-size: 24px; font-weight: 900; letter-spacing: 3px; margin: 2px 0; color: var(--gold); text-shadow: none; }
.ttl p { font-size: 11px; color: rgba(255,255,255,.75); }
.twall { display: flex; flex-wrap: wrap; }
.tchip { --chip-pad: 3px 8px; --chip-r: 11px; margin: 0 5px 5px 0; }
.tchip em { font-style: normal; font-size: 9px; margin-left: 3px; }
.sec-title > small, .card h2 small { font-size: 11px; font-weight: 400; margin-left: 4px; }
.chm-ic { flex-shrink: 0; width: 30px; height: 44px; margin-right: 10px; }
.chm-ic > svg { width: 100%; height: 100%; display: block; }

/* 送客卡片上两个奖励的状态 */
.pt-bn { display: flex; flex-wrap: wrap; margin-top: 3px; }
.pt-bn span { font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 0 5px; margin: 0 4px 2px 0; white-space: nowrap; }
.pt-bn .on { background: #e6f8ee; color: #16844a; }
.pt-bn .off { background: #f0f1f3; color: #9aa0aa; text-decoration: line-through; }
.pt-bn .penalty { background: #fff0e6; color: #a94d1d; white-space: normal; max-width: 100%; box-sizing: border-box; }
#phone.dark .pt-bn .on { background: #163a26; color: #5fe39a; }
#phone.dark .pt-bn .off { background: #262a32; color: #6b717b; }
#phone.dark .pt-bn .penalty { background: #3c2a1a; color: #f3be91; }
.pb-bn { color: #16844a; }

/* 手机不大（横竖屏都是一部小手机），字都小一号；钱的数字保持大，一眼能看清 */
#phone { font-size: 10px; border-width: 4px; border-radius: 16px; }
.ps { height: 15px; font-size: 8.5px; padding: 0 7px; }
.pn { padding: 4px 6px; }
.pn-ar { font-size: 19px; width: 20px; margin-right: 4px; }
.pn-tx b { font-size: 14px; }
.pn-tx span, .po-meta, .po-pax, .pc-task, .pc-th,
.pk-sub, .pt-meta, .pt-mood span, .pb-r, .pp-cmt { font-size: 9px; }
.po-dist { font-size: 10px; } .po-dist b { font-size: 16px; }
.po-route div { font-size: 10.5px; }
.po-money b { font-size: 20px; }
.pc-listen { padding: 4px 0 3px; } .pc-listen b { font-size: 13px; }
.pc-halt { height: 28px; font-size: 12px; }
.pc-stats b { font-size: 12px; }
.pk-who b { font-size: 12px; } .pc-big { font-size: 12.5px; }
.pt-meter b { font-size: 22px; }
.pb-h { font-size: 11px; } .pb-net { font-size: 13px; }
.psl { height: 34px; border-radius: 17px; margin: 0 6px 6px; }
.psl span { line-height: 34px; font-size: 12px; padding-left: 24px; }
/* 右盘位的小屏滑块最窄约 73px：六字以内的主操作分两行，仍留在原来的滑块里。 */
.psl span { height: 100%; display: flex; align-items: center; justify-content: center; line-height: 14px; padding-left: 32px; padding-right: 2px; }
.psl b { width: 28px; height: 28px; line-height: 26px; font-size: 17px; }
.pq-q, .pq-a button { font-size: 10px; }

/* 手机桌面上的购物 App 图标 + 弹层 */
.pc-apps { display: flex; margin-top: 5px; }
.app-ic { display: flex; flex-direction: column; align-items: center; width: 44px; }
.app-ic i { width: 32px; height: 32px; border-radius: 9px; background: -webkit-linear-gradient(top left, #ff8a00, #ff4a00); background: linear-gradient(135deg, #ff8a00, #ff4a00); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(255,80,0,.35); }
.app-ic i svg { width: 22px; height: 22px; }
.app-ic span { font-size: 9px; color: #4a515b; margin-top: 2px; }
#phone.dark .app-ic span { color: #b7bcc5; }
.shop-top { display: flex; align-items: center; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.shop-top i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 10px; }
.shop-top i svg { width: 26px; height: 26px; }
.shop-top div { flex: 1; }
.shop-top b { display: block; font-size: 18px; }
.shop-top span { font-size: 11px; }
.shop-top button { font-size: 13px; border-radius: 14px; padding: 5px 12px; }
.shop-cash { font-size: 13px; margin: 0 2px 10px; }
.shop-cash b { font-size: 20px; margin-left: 4px; }
.shop-cash small { font-size: 11px; margin-left: 8px; }
.pc-brand, .pc-score { white-space: nowrap; }
.pc-brand { font-size: 11px; }
.pc-score { font-size: 9px; }
.pk-who span { min-width: 0; }

 /* 第一次进游戏：选横屏 / 竖屏（整屏，背景里是 3D 街景） */
#pick { display: flex; }
.pick { width: 100%; margin: auto; display: flex; flex-direction: column; align-items: center; }
.pick .title { margin: 0 0 22px; }
.pick-q { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.pick-row { display: flex; justify-content: center; width: 100%; max-width: 380px; }
.pick-opt { position: relative; flex: 1; margin: 0 6px; padding: 12px 8px 14px; border-radius: 18px; border: 2px solid #2d3139;
  display: flex; flex-direction: column; align-items: center; -webkit-transition: border-color .15s, background .15s; transition: border-color .15s, background .15s; }
.pick-opt svg { width: 104px; height: 104px; }
.pick-opt b { font-size: 18px; margin-top: 2px; }
.pick-opt span { font-size: 12px; margin-top: 3px; }
.pick-opt em { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 11px; font-style: normal; font-size: 13px; line-height: 22px; font-weight: 900; opacity: 0; }
.pick-opt.on em { opacity: 1; }
.pick-go { width: 100%; max-width: 380px; margin-top: 20px; }
.pick-qs { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pick-grp { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
.pick-grp + .pick-grp { margin-top: 16px; }
/* 两个问题都问（第一次进游戏）：卡片小一号；横屏左右并排 */
.pick.two .pick-opt { padding: 8px 6px 10px; }
.pick.two .pick-opt svg { width: 78px; height: 78px; }
.pick.two .pick-opt b { font-size: 16px; }
#app.land .pick.two .title { margin: 0 0 10px; }
#app.land .pick.two .pick-qs { flex-direction: row; justify-content: center; align-items: flex-start; }
#app.land .pick.two .pick-grp + .pick-grp { margin: 0 0 0 18px; }
#app.land .pick.two .pick-go { margin-top: 12px; }
#app.land .pick.two .note { margin: 6px 0 0; }
.pick .note { margin-top: 12px; }
/* 窄手机（横屏时约 130 像素宽）：账单只留合计 / 抽成 / 奖励 / 本单收入，待机页不列冲单任务（暂停页能看），计费页不列公里分钟 */
#phone.narrow .pb-r:not(.pb-sum):not(.pb-cut):not(.pb-net):not(.pb-bn):not(.pb-toll), #phone.narrow .pb-h span, #phone.narrow .pc-tasks, #phone.narrow .pt-meta, #phone.narrow .pc-score { display: none; }
#phone.narrow .po-meta, #phone.narrow .po-money small { display: none; }

/* 导航条：前方路口的转向指引；车道不对时变橙色提醒 */
.pn.turn { background: #1f5fd1; }
.pn.turn.wrong { background: #e8620f; }
#phone.dark .pn.turn { background: #173f8c; } #phone.dark .pn.turn.wrong { background: #a8470b; }

/* ---------- 公路之王：王者进度条、王者模式金边、起步较量横幅、速度线 ---------- */
.sfx { pointer-events: none; opacity: 0; }
/* 养家王者、公交王者鸣笛、货运状态共用这一种一行紧凑条：图标 + 短标题 + 数值，宽度跟着内容走，下面一条细进度线，养家连击是右上角的斜标签；
   三个职业同一个透明度，整体由 main.js 按 KING_S 缩小（2026-10-27 用户要求更紧凑、更统一） */
#king { position: absolute; left: 10px; top: 110px; max-width: 136px; display: flex; flex-wrap: nowrap; align-items: center; padding: 3px 7px 9px 6px; border-radius: 8px;
  background: rgba(0,0,0,.42); color: #d8c48c; pointer-events: none; z-index: 0; opacity: .92; }
#king > i, #king > em, #king > span { flex-shrink: 0; }
#king > i { display: flex; margin-right: 2px; }
#king > i svg { width: 13px; height: 13px; }
#king > em { font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap; }
#king > span { margin-left: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#king .kb { position: absolute; left: 6px; right: 7px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
#king .kb b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9a520, #ffe27a); -webkit-transition: width .25s; transition: width .25s; }
#king.on { color: #1a1200; background: linear-gradient(90deg, #ffcf3d, #ffe89a); box-shadow: 0 0 10px rgba(255,200,60,.7); }
#king.on .kb { background: rgba(0,0,0,.2); }
#king.on .kb b { background: #7a4d00; }
#kingfx { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; opacity: 0; box-shadow: inset 0 0 0 4px rgba(255,205,60,.9), inset 0 0 60px rgba(255,190,40,.55); -webkit-transition: opacity .4s; transition: opacity .4s; }
#kingfx.on { opacity: 1; -webkit-animation: kingp 1s ease-in-out infinite alternate; animation: kingp 1s ease-in-out infinite alternate; }
#app.king-fx-off #kingfx { opacity: 0; transition: none; -webkit-transition: none; }
#app.king-fx-off #spd-k, #app.king-fx-off #spd-k .sk-tr i { animation: none; -webkit-animation: none; }
@-webkit-keyframes kingp { from { opacity: .65; } to { opacity: 1; } }
@keyframes kingp { from { opacity: .65; } to { opacity: 1; } }
#race { position: absolute; left: 50%; top: 200px; -webkit-transform: translateX(-50%); transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 0;
  background: rgba(20,40,8,.85); border: 2px solid #7ee02a; color: #eaffd4; border-radius: 16px; padding: 4px 12px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
#race b { color: #7ee02a; margin-right: 6px; }
#race.lose { border-color: #ff6a5a; background: rgba(60,10,8,.85); }
#race.lose b { color: #ff8a7a; }
.pm-road.gold, .pm-ow.gold { stroke: #f2c14e !important; }
.pm-st.turf { stroke: #f2c14e !important; }
/* 逛逛里的排面 */
.sty-h { font-size: 12px; font-weight: 700; margin: 8px 0 2px; }
.car.sty { padding: 6px 0; }
.sty-glow { flex-shrink: 0; width: 34px; height: 8px; border-radius: 4px; margin-right: 10px; box-shadow: 0 0 8px currentColor; }
.sty-horn { flex-shrink: 0; width: 34px; margin-right: 10px; text-align: center; font-size: 18px; }
#sig.king b { color: #ffd66b; font-size: 10px; }

/* 王者达成：钱涌出来 */
#money { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 7; }
/* 王者喷钱：金币 / 钞票画在这张画布上（main.js 的 updateMoney），只在有粒子时分配 */
#moneycv { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 7; }
#kingban { position: absolute; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; z-index: 8; }
#kingban b { display: block; font-size: 52px; font-weight: 900; letter-spacing: 6px; color: #ffd84a; text-shadow: 0 3px 0 #8a5200, 0 0 24px rgba(255,190,40,.9), 0 0 2px #fff; }
#kingban span { display: inline-block; margin-top: 6px; font-size: 18px; font-weight: 800; border-radius: 16px; padding: 3px 14px; box-shadow: 0 2px 10px rgba(226,36,27,.6); }
#kingban.show { -webkit-animation: kban 2.2s ease-out forwards; animation: kban 2.2s ease-out forwards; }
@-webkit-keyframes kban { 0% { opacity: 0; -webkit-transform: scale(2.2); } 12% { opacity: 1; -webkit-transform: scale(.92); } 20% { -webkit-transform: scale(1.05); } 28% { -webkit-transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; -webkit-transform: scale(1) translateY(-30px); } }
@keyframes kban { 0% { opacity: 0; transform: scale(2.2); } 12% { opacity: 1; transform: scale(.92); } 20% { transform: scale(1.05); } 28% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1) translateY(-30px); } }
#app.land #kingban { top: 22%; }
/* 进城字幕（在路上）：开进一座城时屏幕中上方显示「某某市」（后视镜、挂件和竖屏的车速表下面，它们按像素排在顶上，这里也按像素），
   电影片头那种 —— 淡入约 0.7 秒、停约 1.7 秒、淡出约 0.8 秒（2026-11-01 用户嫌慢，3.8 秒缩到 3.2 秒），城市名同时从略小慢慢放大到原大。只动 opacity 和 transform（交给合成层，不重新排版、不重绘），
   平时 display: none，不占开销。减少动态效果时只淡入淡出 */
#citytitle { position: absolute; left: 0; right: 0; top: 196px; text-align: center; pointer-events: none; z-index: 8; color: #fff; opacity: 0; }
#citytitle b { display: block; font-size: 46px; font-weight: 400; line-height: 1.1; letter-spacing: .42em; text-indent: .42em; text-shadow: 0 2px 22px rgba(0,0,0,.65), 0 0 3px rgba(0,0,0,.55); }
/* 淡入和淡出分开（2026-11-02 用户：只有淡入、没有淡出）：原来一段 3.2 秒的动画自己淡完、3.3 秒再加 .hidden（display: none 不能做动画，一加就没），
   手机上动画起步晚一点，淡出没播完就被 .hidden 切掉。现在 .show 淡入后停住，到点加 .out 播淡出，淡出播完（animationend）才加 .hidden（mount-driving-ui.js） */
#citytitle.show { will-change: opacity; -webkit-animation: ctitle 0.7s ease-out forwards; animation: ctitle 0.7s ease-out forwards; }
#citytitle.show.out { -webkit-animation: ctitleout 0.8s ease-in forwards; animation: ctitleout 0.8s ease-in forwards; }
#citytitle.show b { will-change: transform; -webkit-animation: ctitleb 3.2s cubic-bezier(.2,.6,.2,1) forwards; animation: ctitleb 3.2s cubic-bezier(.2,.6,.2,1) forwards; }
@-webkit-keyframes ctitle { 0% { opacity: 0 } 100% { opacity: 1 } }
@keyframes ctitle { 0% { opacity: 0 } 100% { opacity: 1 } }
@-webkit-keyframes ctitleout { 0% { opacity: 1 } 100% { opacity: 0 } }
@keyframes ctitleout { 0% { opacity: 1 } 100% { opacity: 0 } }
@-webkit-keyframes ctitleb { 0% { -webkit-transform: scale(.92); transform: scale(.92) } 100% { -webkit-transform: scale(1); transform: scale(1) } }
@keyframes ctitleb { 0% { -webkit-transform: scale(.92); transform: scale(.92) } 100% { -webkit-transform: scale(1); transform: scale(1) } }
@media (prefers-reduced-motion: reduce) { #citytitle.show b { -webkit-animation: none; animation: none; } }
#app.land #citytitle { top: 134px; }
#app.land #citytitle b { font-size: 40px; }
/* 小屏竖屏字小一点（2026-11-01 用户）：窄屏 36px；矮屏（320×568 这类）手机卡片顶到 190px 上下，字再小、挪到挂件下面和手机之间 */
@media (max-width: 380px) { #app:not(.land) #citytitle b { font-size: 36px; } }
@media (max-height: 600px) { #app:not(.land) #citytitle { top: 148px; } #app:not(.land) #citytitle b { font-size: 28px; } }
/* 横屏的选择页排紧一点，一屏放得下 */
#app.land .pick .title { margin: 0 0 6px; }
#app.land .pick .title h1 { font-size: 26px; }
#app.land .pick-q { font-size: 14px; margin-bottom: 8px; }
#app.land .pick-opt { padding: 4px 8px 8px; }
#app.land .pick-opt svg { width: 76px; height: 76px; }
#app.land .pick-go { margin-top: 10px; }
#app.land .pick .note { margin-top: 6px; }
/* 窄手机：导航条不放红绿灯小标签（右上角有），送客卡片上的标签不换行 */
#phone.narrow .pn .plc { display: none; }
#phone.narrow .pk-btns button { width: 24px; height: 24px; margin-left: 3px; }
#phone.narrow .pk-btns svg { width: 12px; height: 12px; }
.pt-bn span { font-size: 9px; padding: 0 4px; }
/* 导航和乘客操作说明保留全文；卡片放不下时沿用手机内的上下滑动。 */
.pn-tx b { white-space: normal; }
.pn-distance { display: inline-block; margin-right: 3px; font-style: normal; white-space: nowrap; }
#phone.narrow .pn { padding: 5px 6px; }
#phone.narrow .pn-ar { font-size: 16px; width: 14px; margin-right: 4px; }
#phone.narrow .pn-tx b { font-size: 12px; line-height: 1.25; font-weight: 700; }
#phone.narrow .pn-tx b small { font-size: 9px; }
#phone.narrow .pn-tx > span { font-size: 9px; line-height: 1.35; }

/* 转向灯拨杆（方向盘正上方）：左右两个箭头，中间一根拨杆往亮的那边歪；亮着时箭头绿色一闪一闪 */
/* 转向灯拨杆：方向柱罩子（#stk-col，下半截藏在方向盘后面）里往左伸出来的一根杆（#stk-arm，绕根部转）；
   #blinker 是手指能按的那一块。位置、长短 main.js 的 layout 算，摆角 tickBlink 算 */
#blinker { position: absolute; left: 0; top: 0; z-index: 1; touch-action: none; }
#wheel { z-index: 2; }
#stk-arm { position: absolute; left: 0; height: 20px; pointer-events: none; }
#stk-arm svg { display: block; }
#stk-col { position: absolute; right: 0; top: 18px; width: 30px; pointer-events: none; border-radius: 10px 10px 0 0;
  background: #1d1f23; background-image: linear-gradient(90deg, #121417, #30333a 42%, #1a1c20 80%, #121417);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 -1px 4px rgba(0,0,0,.4); }
.stk-u, .stk-d { position: absolute; left: 2px; font-size: 10px; line-height: 1; font-style: normal; font-weight: 700; color: rgba(255,255,255,.32); pointer-events: none; }
.stk-u { top: 0; } .stk-d { bottom: 0; }
/* 仪表上的转向指示灯：绿箭头，不闪的时候看不见 */
.ind { position: absolute; top: -12px; display: block; width: 13px; height: 13px; margin: 0; opacity: 0; }
.ind svg { display: block; width: 100%; height: 100%; fill: #1f5a33; }
/* 指示灯排（2026-10-28）：转向灯、路口灯、大灯悬浮在数字上方（L.spB 为它们多留了 12px），相对整块速度表的贴边一侧定位，
   不随时速位数左右移动、互不重叠。贴右时从右往左：右转 0、大灯 15、路口灯 33（宽 31，容得下「绿波」）、左转 66；贴左镜像 */
#ind-l { left: auto; right: 66px; top: -9px; } #ind-r { right: 0; top: -9px; }
#speedo.al-l #ind-l { right: auto; left: 0; } #speedo.al-l #ind-r { right: auto; left: 66px; }
#sig { right: 33px; } #speedo.al-l #sig { right: auto; left: 33px; }
#ind-r svg { -webkit-transform: scaleX(-1); transform: scaleX(-1); }
#speedo.bl-l #ind-l, #speedo.bl-r #ind-r { opacity: .8; }
#speedo.bl-l.bl-on #ind-l svg, #speedo.bl-r.bl-on #ind-r svg { fill: #3cff6e; }
#speedo.bl-l.bl-on #ind-l, #speedo.bl-r.bl-on #ind-r { text-shadow: none; -webkit-filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)); filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)); }
/* 速度加成短条（2026-10-27 用户选 A）：速度数字下面一根短条 +「+6%」，贴右时对齐 km/h 右边、贴左时对齐数字左边；
   长度按现在的加成占王者模式 +25% 的比例；王者模式 / 公交王者喇叭期间整条发光。没有加成、倒车时留位不显示，下面的油电行不跳 */
/* 往上收进速度数字行框下面的空白，行间只留约 2px */
#spd-k { display: flex; align-items: center; gap: 3px; height: 10px; margin-top: -3px; pointer-events: none; }
#spd-k.idle, #speedo.rev #spd-k { visibility: hidden; }   /* 倒车有自己的最高车速，不加成 */
.sk-tr { position: relative; width: 26px; height: 4px; border-radius: 2px; background: rgba(255,214,107,.22); overflow: hidden; }
.sk-tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, #ffd66b, #ffb43a); -webkit-transition: width .3s ease-out; transition: width .3s ease-out; }
#spd-k em { font-size: 10px; line-height: 1; font-style: normal; font-weight: 800; color: #ffd66b; font-variant-numeric: tabular-nums; text-shadow: 0 0 4px rgba(0,0,0,.6); white-space: nowrap; }
#spd-k.up .sk-tr i { -webkit-animation: kspd .7s ease-out; animation: kspd .7s ease-out; }
#spd-k.on .sk-tr i { box-shadow: 0 0 6px rgba(255,215,103,.9); }
#spd-k.on em { color: #ffe27a; text-shadow: 0 0 6px rgba(255,200,80,.8), 0 1px 2px rgba(0,0,0,.6); }
#spd-k.on { -webkit-animation: kingp .5s ease-in-out infinite alternate; animation: kingp .5s ease-in-out infinite alternate; }
@-webkit-keyframes kspd { from { background: #fff; box-shadow: 0 0 8px 2px rgba(255,230,140,1); -webkit-transform: scaleY(1.8); transform: scaleY(1.8); } to { -webkit-transform: none; transform: none; } }
@keyframes kspd { from { background: #fff; box-shadow: 0 0 8px 2px rgba(255,230,140,1); -webkit-transform: scaleY(1.8); transform: scaleY(1.8); } to { -webkit-transform: none; transform: none; } }

/* 手机的拖动钮 / 缩放钮（上下排在手机朝屏幕中间那一侧的外面，位置在 main.js 的 placePhone） */
#ph-grip { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 11px; z-index: 5; touch-action: none;
  background: rgba(20,22,28,.78); border: 1px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
#ph-grip svg { width: 12px; height: 12px; }
/* 看着小，手指能点的范围还是 36 像素左右 */
#ph-grip::before { content: ''; position: absolute; left: -8px; top: -8px; right: -8px; bottom: -8px; border-radius: 50%; }
#ph-grip.on, #ph-size.on { background: #ff6a1a; border-color: #fff; }
#phone { -webkit-transform-origin: 0 0; transform-origin: 0 0; }
/* 缩放钮的图标斜向跟着朝屏幕中间那一侧转 */
#ph-size { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 11px; z-index: 5; touch-action: none;
  background: rgba(20,22,28,.78); border: 1px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
#ph-size::before { content: ''; position: absolute; left: -8px; top: -8px; right: -8px; bottom: -8px; border-radius: 50%; }
#ph-size.r svg { -webkit-transform: scaleX(-1); transform: scaleX(-1); }
/* 开车时藏着（不挡路面）、停下来才出来：main.js 帧循环按车速加 .show，正拖着的不藏 */
#ph-grip, #ph-size { opacity: 0; pointer-events: none; -webkit-transition: opacity .3s; transition: opacity .3s; }
#ph-grip.show, #ph-size.show { opacity: 1; pointer-events: auto; }
#app.os-phone-off #phone, #app.os-phone-off #ph-grip, #app.os-phone-off #ph-size { display: none; }

/* 调整方向盘（编辑模式，main.js 的 wheelEdit / placeWEdit）：方向盘一体外面一圈虚线框，盘心的拖动钮、轮圈斜上方的缩放钮样子照手机的那两个（大一号），
   「恢复默认」「完成」那一条；这时别的按钮不接手指，时间那一排、提示列、手机的两个钮藏起来。开车时这些都没有 */
#wh-box, #wh-grip, #wh-size, #wedit { display: none; }
#app.wedit #wh-box { display: block; }
#app.wedit #wh-grip, #app.wedit #wh-size { display: flex; }
#app.wedit #wedit { display: block; }
#app.wedit #hud, #app.wedit #toast, #app.wedit #ph-grip, #app.wedit #ph-size, #app.wedit #btn-orders, #app.wedit #btn-phone, #app.wedit #btn-ticket, #app.wedit #race { display: none; }
#app.wedit #phone, #app.wedit #brake, #app.wedit #gas, #app.wedit #gearbox { pointer-events: none; }

/* 普通浏览器里预览笔记；小工具里直接打开发布页 */
.ntip { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 30; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ntip-c { width: 100%; max-width: 340px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px 16px 8px; }
.ntip-c > b { display: block; font-size: 17px; margin-bottom: 8px; }
.ntip-c p { font-size: 14px; line-height: 1.6; }


/* ---------- 设置卡片（车库、开车时的设置菜单） ---------- */
.set-r { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.set h2 + .set-r { border-top: 0; }
.set-r span { flex: 1; min-width: 0; font-size: 14px; }
.set-r span small { display: block; font-size: 11px; margin-top: 2px; line-height: 1.4; }
.set-r button { flex-shrink: 0; margin-left: 10px; min-width: 76px; height: 32px; padding: 0 10px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.set-r.info em { font-style: normal; font-size: 12px; }
.save-row > span { flex: none; margin-right: 10px; }
.save-detail { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.save-detail em { text-align: right; overflow-wrap: break-word; }
.set-r .save-help-btn { min-width: 0; height: 30px; padding: 0 7px; font-size: 11px; white-space: nowrap; }
.save-help .logm-c { max-height: calc(100% - 24px); }
.save-help .logm-h { flex-shrink: 0; margin-bottom: 8px; }
.save-help .logm-h button { width: var(--tap); height: var(--tap); flex-shrink: 0; }
.save-help-actions { flex-shrink: 0; }
.save-help .save-help-actions > * + * { margin-top: 12px; }
.save-help .save-help-actions .btn { width: 100%; min-height: var(--tap); }
.save-help .save-help-actions [role="alert"] { margin: 0 0 12px; }
.save-help .logm-b > .save-help-state, .save-help .save-recovery-option > .save-help-state { margin-top: 12px; }
.save-help .logm-b > .note { margin-top: 8px; color: var(--tx2); font-size: 12px; }
.save-help ol { margin: 8px 0 0 20px; padding: 0; }
.save-help li { margin-bottom: 10px; }
.save-help .save-help-state { font-size: 12px; color: var(--ac2, #ffb36b); }
.save-recovery-entry { display: block; padding: 8px 0; margin-bottom: 8px; color: var(--ac2, #ffb36b); font-size: 12px; text-decoration: underline; }
/* 首页存档提示：先按新进度进入后的确认中、找到另一份进度。按钮用 .btn.sm，不沿用上面那条下划线链接的样式。 */
.save-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 12px; line-height: 1.5; }
.save-notice p { flex: 1 1 160px; margin: 0; }
.save-notice .save-recovery-entry { text-decoration: none; }
.save-recovery h3, .save-earlier h3 { margin: 14px 0 8px; font-size: 14px; color: var(--tx, #fff); }
.save-recovery dl, .save-earlier dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 12px; }
.save-recovery dt, .save-earlier dt { color: var(--tx2, #9aa0aa); }
.save-recovery dd, .save-earlier dd { margin: 0; text-align: right; overflow-wrap: break-word; }
.save-recovery-option { margin-top: 14px; padding-top: 2px; border-top: 1px solid var(--line); }
.save-recovery-option .btn:disabled, .save-recovery-option .btn[aria-disabled="true"] { opacity: .45; }
.save-recovery button.btn, .save-earlier button.btn { width: 100%; margin-top: 12px; }
.store-bad button { margin-left: 6px; color: inherit; text-decoration: underline; }

/* ---------- 游戏更新弹窗（首页「更新」App 点开；套用 .ntip 的遮罩） ---------- */
.logm-c { display: flex; flex-direction: column; max-height: 82%; padding-bottom: 12px; }
.logm-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.logm-h b { font-size: 17px; color: var(--tx, #fff); }
.logm-h button { width: 30px; height: 30px; border-radius: 15px; color: var(--tx2, #9aa0aa); font-size: 14px; }
.logm-b { overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px 12px; padding: 0 4px; min-height: 0; flex: 1; }
.logm .log-v { margin-top: 10px; }
.logm .log-v b { font-size: 15px; color: var(--ac2, #ffb36b); }
.logm .log-v span { font-size: 10.5px; color: var(--ac-tx, #fff); background: var(--ac, #ff6a1a); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.log-g { font-size: 11.5px; color: var(--tx2, #9aa0aa); letter-spacing: .08em; margin: 8px 0 2px; }
.logm ul { margin: 2px 0 0 18px; }
.logm li { font-size: 13px; line-height: 1.55; color: var(--tx, #e6e8ec); margin-bottom: 3px; }
/* 新功能介绍（changelog.js 的 intro）：标题、240px 宽的横幅配图（图自带浅色底和圆角）、一句说明 */
.log-intro { margin: 8px 0 4px; }
.log-intro h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--tx, #e6e8ec); }
.log-intro img { display: block; width: 240px; max-width: 100%; height: auto; margin: 0 auto; }
.log-intro p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--tx, #e6e8ec); }
.logm .btn { margin-bottom: 0; flex-shrink: 0; }

/* ---------- 更新日志（首页） ---------- */
.log-h { display: flex; align-items: baseline; width: 100%; text-align: left; }
.log-h b { font-size: 15px; }
.log-h span { font-size: 11px; margin-left: 6px; }
.log-h span em { --chip-fs: 10px; --chip-pad: 0 4px; --chip-bg: var(--ac); --chip-fg: var(--ac-tx); margin-left: 4px; vertical-align: 1px; }
.log-h i { margin-left: auto; font-style: normal; font-size: 11.5px; }
.log-one { font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-v { display: flex; align-items: baseline; margin-top: 8px; }
.log-v b { font-size: 13px; }
.log-v span { font-size: 11px; margin-left: 6px; }
.log ul { margin: 3px 0 0 16px; }
.log li { font-size: 12px; line-height: 1.5; }

/* ---------- 我的家（family.js）：车库卡片、回家看看、日结交家用、家人群通知、仪表台上的纪念 ---------- */
.btn.daily { height: auto; min-height: 48px; padding: 7px 10px; line-height: 1.3; }
.btn.daily small { display: block; margin: 2px 0 0; font-size: 11px; }
.pbar.home { height: 6px; border-radius: 3px; }
.hc-note { font-size: 11px; margin-top: 5px; line-height: 1.5; }
.fam-msg { display: flex; align-items: flex-start; margin-top: 8px; }
.fam-msg p { flex: 1; min-width: 0; border-radius: 4px 10px 10px 10px; padding: 5px 9px; font-size: 12px; line-height: 1.45; }
.fam-msg p b { display: block; font-size: 10.5px; font-weight: 600; }
.fam-msg.sm p { font-size: 11.5px; }
.pnt-av { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; margin-right: 7px; background: #5b6472; color: #fff; font-style: normal; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pnt-av.sp { background: #e0578a; } .pnt-av.duo { background: #ffb400; } .pnt-av.dad { background: #3b7dd8; } .pnt-av.mom { background: #3aa76d; } .pnt-av.cat { background: #2a2c33; color: #ffd21a; }

.who { display: flex; align-items: center; justify-content: flex-end; font-size: 12px; margin: -2px 2px 10px; }
.who button { margin-left: 6px; padding: 4px 12px; border-radius: 12px; font-size: 12px; }
.who button.on { font-weight: 700; }
.bill { display: flex; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; }
.bill:first-of-type { border-top: 0; }
.bill span { width: 44%; min-width: 0; }
.bill .pbar { flex: 1; margin: 0 8px; }
.bill b { flex-shrink: 0; min-width: 78px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.car.wish.got .car-info b { color: var(--ok); }
.keeps { display: flex; justify-content: space-around; align-items: flex-end; }
.kc { width: 31%; text-align: center; font-size: 11px; }
.kc svg { display: block; width: 70%; height: 54px; margin: 0 auto 4px; }
.kq { display: flex; align-items: center; justify-content: center; width: 70%; height: 54px; margin: 0 auto 4px; border-radius: 8px; border: 1px dashed #4a4f58; color: #5d636d; font-style: normal; font-size: 20px; }

/* 熟客 */
.reg { display: flex; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); }
.reg:first-child { border-top: 0; }
.reg > div { flex: 1; min-width: 0; }
.reg b { display: block; font-size: 13px; }
.reg span { display: block; font-size: 11px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdots { margin-left: 6px; font-style: normal; }
.rdots i { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: #3a3e46; margin-right: 3px; vertical-align: 1px; }
.rdots i.on { background: #ffb23d; }
.po-regl { margin-top: 3px; font-size: 9.5px; line-height: 1.35; color: #7b3bd8; font-weight: 600; overflow: hidden; max-height: 2.7em; }
#phone.dark .po-regl { color: #c9a4ff; }
.po-reg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 9.5px; color: #fff; background: #8b3bff; border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.po-reg.x { background: #e5392f; }
/* VIP 单（白金车主起）：深底米色字，前面一枚小白金勋章（和车主勋章一套颜色） */
.po-reg.vip { background: #2a2622; color: #f6e7c8; font-weight: 700; letter-spacing: .02em; }
.po-reg.vip .md { width: 1.3em; height: 1.3em; vertical-align: -.3em; margin-right: .15em; }
#phone.narrow .po-reg.vip span { display: none; }   /* 窄手机只留白金勋章，不然右边的倒计时圈被挤出手机 */
#phone.narrow .po-reg.vip .md { margin-right: 0; }
#phone.tiny .po-kind { display: none; }   /* 横屏手机头一行只有八十多像素：实时 + 快车 + 倒计时圈就放满了 */
.po-regl.vip { color: #8a5a12; }
#phone.dark .po-reg.vip { background: #3a352d; }
#phone.dark .po-regl.vip { color: #e8c98a; }

/* 日结页的交家用 */
.receipt .fam-sum { margin-top: 10px; border-top: 1px dashed #bbb; padding-top: 8px; }
.receipt .fam-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.receipt .fam-h b { font-size: 14px; }
.receipt .fam-h span { font-size: 11.5px; }
.receipt .ln em.ok { font-style: normal; font-size: 10.5px; color: #fff; background: #1f9d55; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.receipt .fam-done { text-align: center; font-size: 13.5px; font-weight: 800; color: #1f9d55; margin-top: 6px; }
.receipt .fam-week { text-align: center; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.receipt .fam-left { text-align: center; font-size: 12px; margin-top: 6px; }
.receipt .res.daily { font-size: 13.5px; }

/* 开车时手机顶上的家人群通知 */
.pnt { position: absolute; left: 4px; right: 4px; top: 19px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; padding: 5px 5px 6px 6px; border-radius: 10px;
  background: rgba(255,255,255,.97); box-shadow: 0 4px 12px rgba(0,0,0,.35); -webkit-animation: pnt-in .28s ease-out; animation: pnt-in .28s ease-out; }
.pnt.hidden { display: none; }
.pnt .pnt-av { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; margin-right: 5px; }
.pnt-who { flex: 1; min-width: 0; font-size: 10.5px; color: #1f2329; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnt-who em { font-style: normal; font-size: 8.5px; font-weight: 500; margin-left: 4px; }
.pnt-tx { display: block; width: 100%; margin-top: 4px; font-size: 10px; line-height: 1.35; color: #1f2329; }
.pnt button { flex-shrink: 0; margin-left: 4px; background: #22c55e; color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 8px; padding: 4px 6px; }
#phone.dark .pnt { background: rgba(38,41,48,.97); }
#phone.dark .pnt-tx, #phone.dark .pnt-who { color: #e8eaee; }
@-webkit-keyframes pnt-in { from { -webkit-transform: translateY(-120%); opacity: 0; } to { -webkit-transform: none; opacity: 1; } }
@keyframes pnt-in { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }

/* 仪表台上的纪念（位置在 main.js 的 layoutKeeps 里按仪表台曲线算） */
#keeps { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.kp { position: absolute; display: block; -webkit-filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.kp svg { display: block; width: 100%; height: 100%; }

/* ======================================================================================
   配色：曜石金（2026-09 定稿；当时和夜航蓝、暖灯、瓷白三套一起用真实截图比过）
   近黑的暖石墨底，香槟金是全游戏唯一的主色（主按钮、钱、王者），其余靠明暗分层；
   平台红只留给「分享 / 评论区」这类平台动作，接单手机保持浅色手机 App 的样子。
   颜色都在这组变量里，上面各处原来写死的颜色由下面这些规则统一覆盖（按对比度检查过，小字 ≥ 4.5:1）。
   ====================================================================================== */
:root {
  --ov: rgba(9,9,11,.80);            /* 全屏面板压在 3D 街景上的底 */
  --s1: rgba(21,21,24,.95);          /* 卡片 */
  --s1b: rgba(216,179,106,.16);      /* 卡片描边、分隔线 */
  --s2: #26252a;                     /* 次级按钮、进度条底 */
  --tx: #f4efe4; --tx2: #aca596; --tx3: #8a8478;   /* 正文 / 次级 / 最弱（未解锁） */
  --ac: #d8b36a; --ac-tx: #1b1509; --ac-sh: #8c6c30; --ac2: #e7cb92;   /* 香槟金：主按钮底、上面的字、按钮阴影、强调字 */
  --gold: #ecc978; --ok: #86cfa0; --bad: #ec7466; --xhs: #ff2442;
  --chip: #2c2618; --chip-tx: #e7cb92;
  --paper: #f5f0e6; --ink: #1c1a16; --ink2: #5c564b; --pac: #8f6419;  /* 日结小票 */
  --toast: rgba(20,20,23,.94); --toast-ok: rgba(40,104,72,.95); --toast-bad: rgba(142,38,32,.95);
  /* 全局令牌（两套主题取值相同，只在这里改）：描边线、触控底线、圆角档位、字号档位。第 1 阶段只定义，各页逐步改用 */
  --line: #ffffff18;
  --tap: 44px;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-btn: 10px; --r-lg: 16px; --r-sheet: 22px; --r-pill: 999px;
  --fs-cap: 11px; --fs-sm: 12px; --fs-body: 13px; --fs-md: 14px; --fs-title: 16px; --fs-h: 18px; --fs-num: 20px; --fs-num-lg: 26px;
  /* 状态色与面板：成功 / 警告 / 危险各带一档半透明填充；面板底；选中项的淡强调底 */
  --panel: #131316;
  --rank-hero: linear-gradient(180deg, #221d14, #17161a); --rank-glow: rgba(236,201,120,.26); --rank-me: rgba(216,179,106,.14); --rank-me-bd: rgba(216,179,106,.5);
  --rank-entry: rgba(21,21,24,var(--hm-card-a)); --rank-entry-tint: rgba(236,201,120,.12); --rank-entry-bd: rgba(216,179,106,.18);
  --accent-wash: rgba(216,179,106,.14);
  --ok-soft: rgba(134,207,160,.32);
  --warn: #f0b33c; --warn-soft: rgba(240,179,60,.14);
  --bad-soft: rgba(236,116,102,.16);
  /* 首页压在街景上的卡片共用同一不透明度 */
  --hm-card-a: .92;
}
.screen, #pick { background: var(--ov); }
.title h1 { color: var(--tx); text-shadow: 0 3px 0 #9c7a3c, 0 6px 16px rgba(0,0,0,.35); }
.title h1 .ed { background: var(--ac); color: var(--ac-tx); box-shadow: none; }
.title p { color: var(--tx2); }
.card { background: var(--s1); border-color: var(--s1b); }
.sec-title, .card h2, .log-h, .reg b, .set-r span, .bill span, .car-info b, .stats b, .shop-cash b, .tut ol, .ntip-c > b, .pick-opt b { color: var(--tx); }
.sec-title > small, .card h2 small, .stats span, .car-info p, .note, .hc-note, .reg span, .set-r span small, .set-r.info em, .log-h span, .log-v span, .kc, .who,
.shop-cash, .shop-cash small, .task, .pick-opt span, .pick-q { color: var(--tx2); }
.help { color: var(--tx2); } .help b, .tut b, .sty-h, .sty-horn { color: var(--ac2); }
.log li, .log-one, .fam-msg p, .bill b, .ntip-c p { color: var(--tx); }
.fam-msg p { background: rgba(244,239,228,.06); }
.btn { background: var(--s2); color: var(--tx); }
.btn.primary { background: var(--ac); color: var(--ac-tx); box-shadow: 0 4px 0 var(--btn-sh, var(--ac-sh)); }
.btn.primary small { color: var(--ac-tx); opacity: .8; }
.tut .btn.primary { box-shadow: 0 4px 0 var(--ac-sh), 0 -10px 14px 4px rgba(9,9,11,.9); }
.btn.red { background: var(--s2); color: var(--bad); }
.btn.xhs { background: var(--xhs); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.btn.daily { background: linear-gradient(90deg, #2a2519, #3b3222); color: #f1d9a4; box-shadow: inset 0 0 0 1.5px rgba(216,179,106,.55), 0 4px 0 rgba(0,0,0,.3); }
.log-v b, .log-h i, .fam-msg p b { color: var(--ac2); }
.tchip em { color: var(--tx2); }
.tchip.lock { --chip-bg: var(--s2); --chip-fg: var(--tx3); } .reg.lock .pnt-av { background: var(--s2); color: var(--tx3); } .reg.lock b { color: var(--tx3); }
.car, .set-r, .bill, .reg { border-color: var(--s1b); }
.car button, .car .vehicle-assist-row > button, .vehicle-assist-row > button, .set-r button, .foot button, .who button { background: var(--s2); color: var(--ac2); }
.car button.buy, .vehicle-assist-row > button.buy, .who button.on { background: var(--ac); color: var(--ac-tx); }
.car button.using, .vehicle-assist-row > button.using, .bill.ok b, .task.done { color: var(--ok); }
.pbar.home { background: var(--s2); } .pbar.home i { background: var(--ac); }
.chal { background: var(--s1); box-shadow: inset 0 0 0 1.5px var(--ac); color: var(--tx); } .chal b { color: var(--ac2); }
.shop-top, .home-top { background: var(--chip); box-shadow: inset 0 0 0 1px var(--s1b); }
.shop-top b { color: var(--tx); } .shop-top span { color: var(--tx2); } .shop-top button { background: var(--s2); color: var(--tx); } .shop-top i { background: var(--ac); }
.store-bad { color: #f6b1a6; background: rgba(142,38,32,.45); }
.pick-opt { background: var(--s1); border-color: var(--s2); color: var(--tx3); }
.pick-opt.on { border-color: var(--ac); background: rgba(44,38,24,.96); color: var(--ac2); }
.pick-opt.on span { color: var(--ac2); } .pick-opt em { background: var(--ac); color: var(--ac-tx); }
.ntip-c { background: var(--panel); border-color: var(--s1b); }
.receipt { background: var(--paper); color: var(--ink); }
.receipt .sub, .receipt .quip, .receipt .fam-h span, .receipt .fam-left, .receipt .fam-week.short { color: var(--ink2); }
.receipt .net b, .receipt .res, .receipt .res.daily, .receipt .fam-week, .receipt .fam-msg p b { color: var(--pac); }
.receipt .fam-msg p { background: #ebe4d6; color: var(--ink); }
.receipt .ttl, .freight-receipt .ttl { background: var(--ink); }
.receipt .ttl b, .freight-receipt .ttl b { color: var(--gold); text-shadow: none; }
.receipt .ttl span, .receipt .ttl p, .freight-receipt .ttl span, .freight-receipt .ttl p { color: rgba(255,255,255,.75); }
.tst { background: var(--toast); } .tst.good { background: var(--toast-ok); } .tst.bad { background: var(--toast-bad); }
#say b, .conversation-bubble b { color: var(--ac2); }
#king.fill { color: var(--gold); }
.spd-num { color: var(--tx); text-shadow: 0 0 8px rgba(216,179,106,.45); }
#kingban span { background: linear-gradient(90deg, #b58a3c, #d8b36a); color: var(--ac-tx); }
/* 手机通知里的「家人群」小字原来只有 3.2:1 */
.pnt-who em { color: #6b7280; }

/* ======================================================================================
   首页：司机的手机主屏（2026-09）。钱包 / 本周家用小组件、今日挑战、8 个 App、底下「顺路出行」出车；
   App 点开从下面（横屏从右边）滑出一页。玩家嫌曜石金「太素」：App 图标、早晚班按钮、小组件各带自己的颜色，
   金色还是只给钱、今日挑战和王者。图标上的字 / 线条对底色都过 3:1，按钮上的字过 4.5:1
   ====================================================================================== */
/* 首页不铺整屏遮罩（审核会误判成弹层盖住页面）；直接压在街景上的日期、副标题和 App 名各自承托。打开 App 时沿用原遮罩。 */
#garage { padding: 0; background: transparent; }
#garage.sheet-open { overflow: hidden; background: rgba(8,8,12,.5); }
/* 旋转首页由 main.js 映射触摸坐标滚动，避免横向物理手势被当成原生纵向滚动。 */
.rot #garage:not(.sheet-open) { touch-action: none; }
.hm { position: relative; min-height: 100%; box-sizing: border-box; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; padding: 12px 16px 14px;
  padding-top: calc(12px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); padding-bottom: calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
.hm-top { position: absolute; right: 16px; top: 12px; top: calc(12px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); font-size: 12px; color: #d7d1c4; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ov); }
.title.hm-brand { margin: 24px 0 14px; }
.title.hm-brand h1 { font-size: 30px; }
.title.hm-brand p { display: table; margin: 6px auto 0; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ov); font-size: 12px; color: #cfc8b9; }
.hm-wg { display: flex; margin-bottom: 12px; }
.wg { display: flex; flex-direction: column; box-sizing: border-box; border-radius: 18px; padding: 12px 14px; text-align: left; color: var(--tx); }
.hm-wg .wg { flex: 1; min-width: 0; min-height: 128px; }
.hm-wg .wg + .wg { margin-left: 10px; }
.wg > span { font-size: 12px; color: var(--tx2); }
.wg > b { font-size: 20px; line-height: 1.2; margin-top: 4px; }
.wg > b small { font-size: 13px; font-weight: 500; color: var(--tx2); }
.wg > p { margin-top: auto; font-size: 12px; line-height: 1.45; color: #d7d1c4; }
.wg.wallet { background: rgba(40,33,19,var(--hm-card-a)); border: 1px solid rgba(216,179,106,.2); }
.wg.wallet > b { font-size: 26px; color: var(--gold); }
.wg.fam { background: rgba(52,29,22,var(--hm-card-a)); border: 1px solid rgba(255,255,255,.08); }
.wg-bar { --meter-r: 3px; --meter-bg: rgba(255,255,255,.12); --meter-fill: #f07a52; margin: 8px 0; }
.wg.daily { width: 100%; flex-direction: row; align-items: center; min-height: 62px; padding: 10px 14px; margin-bottom: 16px; background: rgba(21,21,24,var(--hm-card-a)); border: 1.5px solid var(--ac); }
.wg.daily .hm-ic { width: 38px; height: 38px; border-radius: 11px; margin-right: 12px; flex-shrink: 0; }
.wg.daily span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wg.daily b { font-size: 15px; color: var(--gold); }
.wg.daily small { font-size: 12px; color: var(--tx2); margin-top: 1px; }
.wg.daily small em { font-style: normal; }
#app.land .wg.daily small em.dl-x { display: none; }
.wg-go { width: 16px; height: 16px; color: var(--ac); flex-shrink: 0; }
.wg-go svg { width: 100%; height: 100%; display: block; }
.hm-r { flex: 1; display: flex; flex-direction: column; }
.hm-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-row-gap: 14px; grid-column-gap: 6px; margin-bottom: 16px; }
.hm-app { display: flex; flex-direction: column; align-items: center; background: none; color: var(--tx); font-size: 12px; padding: 0; }
.hm-app span, .hm-app small { text-shadow: 0 0 2px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.55); }
.hm-app span { margin-top: 6px; }
.hm-app:active .hm-ic { -webkit-transform: scale(.94); transform: scale(.94); }
/* App 图标（2026-09 第三版）：底板 = 左上 45° 一片淡高光 + 各 App 的 --i1 → --i2 斜渐变（相邻色相，比如橙→红、薄荷→青蓝）；
   内阴影画上沿 1px 亮边、一圈细边、下沿 1px 暗边（照 Material 产品图标的 tinted / shaded edge），外面一层投影。
   主图形是 main.js 里 hic() 出的彩色 SVG（光也从左上来），铺满底板 */
.hm-ic { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-style: normal;
  background: radial-gradient(120% 75% at 22% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 62%), linear-gradient(160deg, var(--i1, #a3adbd), var(--i2, #4d586b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.35); }
.hm-app .hm-ic { width: 58px; height: 58px; border-radius: 17px; }
.hm-ic svg { width: 100%; height: 100%; display: block; }
.a-home { --i1: #ffa55e; --i2: #e3473a; }
.a-trip { --i1: #ffa45c; --i2: #8a43c9; }   /* 在路上：暖橙到紫的落日（设计 4.1） */
.a-regs { --i1: #4fd3b4; --i2: #11788a; }
.a-playlist { --i1: #ea85a6; --i2: #8b3765; }
.a-garage { --i1: #6ab8ff; --i2: #2f58d0; }
.a-turf { --i1: #8ad65c; --i2: #1f8a4a; }
.a-titles { --i1: #c08dff; --i2: #5c44d4; }
.a-level { --i1: #ff9a82; --i2: #d8344e; }
.a-share { --i1: #ff7f9a; --i2: #e0243e; }
.a-log { --i1: #ffd65c; --i2: #f0891c; }
.a-settings { --i1: #a3adbd; --i2: #4d586b; }
.a-dgear { --i1: #6fd6c4; --i2: #1f7f86; }
.a-daily { --i1: #f8dfa2; --i2: #c28d38; }
.hm-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; box-sizing: border-box; padding: 0 5px; border-radius: 10px;
  background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; border: 1.5px solid #0c0c0e; }
/* 没有数字的提醒（如云存档待选择）：只挂一个小红点。 */
.hm-badge.hm-dot { min-width: 0; width: 13px; height: 13px; padding: 0; top: -3px; right: -3px; }
.red-dot { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: #ff3b30; vertical-align: 2px; }
.hm-dock { margin-top: auto; background: rgba(18,18,22,var(--hm-card-a)); border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: 10px 12px 12px; }
.hm-dk { display: flex; align-items: center; padding: 0 4px 8px; font-size: 12px; color: var(--tx2); }
.hm-dk b { font-size: 13px; color: var(--tx); margin-right: 6px; }
.hm-dk em { --chip-pad: 0 5px; --chip-bg: var(--ac2); --chip-fg: var(--ac-tx); }
.hm-dk span { margin-left: auto; }
.hm-dock .btn { margin-bottom: 0; height: 58px; border-radius: 17px; }
.hm-dock > .btn + .btn { margin-top: 8px; }
.btn.primary.early { --btn-sh: #9a6a1c; background: #f0b64e; color: #1b1509; }
.btn.primary.early small { color: #1b1509; }   /* 不跟 --ac-tx：多彩配色的 --ac-tx 是白色，压在黄底上看不清 */
.btn.primary.late { --btn-sh: #232c6a; background: #3d4ba6; color: #f4efe4; }
.btn.primary.late small { color: #f4efe4; }
.btn.early i, .btn.late i { display: inline-block; width: 24px; height: 24px; vertical-align: -6px; margin-right: 5px; }
.btn.early i svg, .btn.late i svg { width: 100%; height: 100%; display: block; }
/* App 页 */
.hm-sheet { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 5; background: rgba(0,0,0,.45); }
/* 系统安全区不包含容器右上角的原生图标：标题和「完成」一起排在原生导航那一行下面。 */
.hs-panel { position: absolute; left: 0; right: 0; bottom: 0; top: 72px; top: calc(72px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--panel); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.5);
  -webkit-animation: hs-up .22s ease-out; animation: hs-up .22s ease-out; }
.hs-head { flex-shrink: 0; display: flex; align-items: center; padding: 16px 16px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.hs-head .hm-ic { width: 36px; height: 36px; border-radius: 11px; margin-right: 12px; flex-shrink: 0; }
.hs-head span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-head b { font-size: 18px; }
.hs-head small { font-size: 12px; color: var(--tx2); margin-top: 1px; }
.hs-done { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--s1b); color: var(--gold); font-size: 14px; font-weight: 700; }
.hs-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 14px 16px 6px; }
/* 歌单：歌名逐行编辑，输入框允许选择文字，手机输入时不缩放页面 */
.playlist-note { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--tx2); }
.playlist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.playlist-row label { flex-shrink: 0; width: 20px; text-align: center; font-size: 13px; color: var(--tx2); }
.playlist-row input { flex: 1; min-width: 0; width: 0; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--s1b); border-radius: 12px;
  background: var(--s2); color: var(--tx); font: inherit; font-size: 16px; -webkit-user-select: text; user-select: text; }
.playlist-row input::placeholder { color: var(--tx2); }
.playlist-row input:focus { outline: 2px solid var(--ac2); outline-offset: 1px; }
.playlist-row button { flex-shrink: 0; width: 40px; height: 44px; border-radius: 12px; background: var(--s2); color: var(--tx2); font-size: 22px; }
.playlist .btn { margin: 4px 0 0; }
.hs-bar { flex-shrink: 0; height: 28px; height: calc(28px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); background: none; display: flex; justify-content: center; padding-top: 10px; }
.hs-bar i { display: block; width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); }
@-webkit-keyframes hs-up { from { opacity: 0; -webkit-transform: translateY(40px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes hs-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes hs-in { from { opacity: 0; -webkit-transform: translateX(40px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes hs-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hs-panel { -webkit-animation: none; animation: none; } }
/* 横屏：左边品牌和小组件，右边 App 和出车；左下角空着给容器的返回键（竖屏物理左上角转过来落在那） */
#app.land .hm { max-width: none; flex-direction: row; align-items: stretch; padding: 14px 24px 14px 28px; }
#app.land .hm-l { width: 40%; max-width: 330px; margin-right: 26px; }
#app.land .hm-r { padding-top: 28px; }
#app.land .title.hm-brand { margin: 0 0 10px; text-align: left; }
#app.land .title.hm-brand h1 { font-size: 24px; }
#app.land .title.hm-brand p { display: none; }
#app.land .hm-wg .wg { min-height: 112px; }
#app.land .wg.daily { margin-bottom: 0; }
#app.land .hm-apps { grid-row-gap: 10px; margin-bottom: 12px; }
#app.land .hm-app .hm-ic { width: 52px; height: 52px; border-radius: 15px; }
#app.land .hm-dock { padding: 8px 10px 10px; }
#app.land .hm-dock .btn { height: 52px; }
#app.land .hs-panel { left: auto; right: 0; width: 480px; max-width: 62%; margin: 0; border-radius: 20px 0 0 20px; -webkit-animation-name: hs-in; animation-name: hs-in; }
/* 游戏自己旋转成横屏时，原生图标留在物理顶部、落在 App 左侧；右侧弹层已经避开，不再留一条顶部空白。 */
.rot #app.land .hs-panel { top: 0; }
/* Physical top controls sit on the App's right edge when portrait UI is rotated counterclockwise. */
.rot #app.mini-tool:not(.land) .hs-panel { right: calc(96px + var(--bus-safe-inset-right, 0px)); }
/* 高速单：导航条用高速公路牌的绿、区间测速的平均车速小标签；小地图上高速不画街区，路画成黄的；账单上的高速费单列 */
.pn.hw { background: #0b6b3c; }
.pn.hw.wrong { background: #e8620f; }
#phone.dark .pn.hw { background: #084d2b; } #phone.dark .pn.hw.wrong { background: #a8470b; }
/* 导航条（2026-10-31 导航改版，照样张 scratchpad/map-site/roadbook/nav-mock，各职业共用，底色照旧按职业和状态分）：圆角浮在地图上方、带一点投影，
   左边转向箭头放在圆角方块里；第一行大字距离，第二行「动作 · 路名」；真地图导航（在路上、货运）底下再挂一条浅蓝的「然后 …」 */
#ph-top:not(:empty) { padding: 0 4px; }
#ph-top .pn, #phone.narrow #ph-top .pn { gap: 6px; border-radius: 10px; padding: 5px 6px 5px 5px; box-shadow: 0 2px 6px rgba(31, 94, 255, .3); }
#ph-top .pn-ar { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; margin-right: 0; border-radius: 7px; background: rgba(255, 255, 255, .18); font-size: 18px; }
#ph-top .pn-tx b { display: inline; font-size: 9.5px; font-weight: 700; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
#ph-top .pn-distance { display: block; margin: 0; font-size: 16px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
#ph-top .pn-distance small { font-size: 9px; font-weight: 700; margin-left: 1px; }
#ph-top .pn-tx > span { display: inline; font-size: 9.5px; font-weight: 700; line-height: 1.3; opacity: .95; }
#ph-top .pn-tx > span:not(:empty)::before { content: ' · '; }
#ph-top .pn.turn:not(.wrong) .pn-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 真地图导航：第二行放不下截断（警告照样折行） */
.pn-then { display: flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 7px; background: #e8efff; color: #1f3f99; font-size: 8.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-then b { font-size: 10px; line-height: 1; }
#phone.dark .pn-then { background: #1f2a44; color: #bcd0ff; }
.plc.sec i { background: #7fdcff; } .plc.sec.over i { background: #ff3b30; }
#ph-map.hw .pm-blk { display: none; }
#ph-map.hw .pm-road, #ph-map.hw .pm-ow { stroke: #ffe08a; }
#phone.dark #ph-map.hw .pm-road, #phone.dark #ph-map.hw .pm-ow { stroke: #8a7a3e; }
#ph-map.hw .pm-owy { display: none; }
.pb-toll { color: #6b7280; }
.pp-toll { font-size: 9.5px; color: #6b7280; margin-top: -2px; }
#phone.dark .pp-toll { color: #9aa0aa; }
.limit.wide { font-size: 6.7px; letter-spacing: -0.2px; }
/* 在路上放开跑：圆牌换成绿色「放开跑」小牌（同高速绿牌的颜色） */
.limit.open { width: auto; padding: 0 3px; border-radius: 4px; border: 1.5px solid #fff; background: #1d7a4c; color: #fff; font-size: 7.2px; letter-spacing: 0; white-space: nowrap; }

/* ---------- 挡杆（D / R）：竖屏横着放在刹车上面，横屏竖着放在踏板朝屏幕中间那一侧；位置、大小 main.js 的 layout 算 ---------- */
#gearbox {
  position: absolute; bottom: 12px; z-index: 3; box-sizing: border-box; touch-action: none;
  margin-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  display: flex; padding: 3px; border-radius: 11px; border: 2px solid #454850; background: #1c1e23;
}
#gearbox.v { flex-direction: column; }
#gearbox b { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 16px; font-weight: 800; color: #5d626b; }
#gearbox.v b + b { margin-top: 3px; }
#gearbox:not(.v) b + b { margin-left: 3px; }
#gearbox.g-D b[data-g="D"] { background: #e3e6ea; color: #15171b; }
#gearbox.g-R b[data-g="R"] { background: #ffd166; color: #1a1300; }
#gearbox.g-R { border-color: #ffd166; }
/* 开着的时候点了另一个挡：那一格闪着，停稳就挂上 */
#gearbox.want-R b[data-g="R"], #gearbox.want-D b[data-g="D"] { -webkit-animation: gwant .6s steps(2) infinite; animation: gwant .6s steps(2) infinite; }
@-webkit-keyframes gwant { 0% { box-shadow: inset 0 0 0 2px #ffd166; color: #ffd166; } 100% { box-shadow: none; } }
@keyframes gwant { 0% { box-shadow: inset 0 0 0 2px #ffd166; color: #ffd166; } 100% { box-shadow: none; } }
#gearbox.lock { opacity: .45; }

/* 我的家：第一次打开的欢迎页（《重生之我是公路之王》APP，选家庭背景）、最下面的「我要重生」 */
.born { text-align: center; padding: 6px 2px 0; }
.born .bn-hi { margin: 4px 0 2px; font-size: 13px; opacity: .7; }
.born h2 { margin: 0; font-size: 21px; line-height: 1.3; color: var(--ac, #d8b36a); }
.born .bn-sub { margin: 6px 0 12px; font-size: 14px; }
.born .who { justify-content: center; margin: 0 0 12px; }
.bn-list { display: grid; grid-template-columns: 1fr; grid-row-gap: 9px; margin-bottom: 14px; }
.bn-list button { text-align: left; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1); color: inherit; }
.bn-list button b { display: block; font-size: 16px; }
.bn-list button span { display: block; margin-top: 3px; font-size: 12.5px; opacity: .72; line-height: 1.45; }
.bn-list button.on { border-color: var(--ac, #d8b36a); background: var(--s1b); }
.bn-pet { display: block; text-align: left; margin: -4px 0 14px; padding: 10px 13px; border-radius: 14px; background: var(--accent-wash); border: 1.5px solid var(--ac); }
.bn-pet span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bn-pet input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(0,0,0,.28); color: inherit; font: inherit; font-size: 16px; }
.bn-pet input:focus-visible { outline: none; }
.bn-pet small { display: block; margin-top: 5px; font-size: 12px; opacity: .78; }
.born .btn[disabled], .born .btn[aria-disabled="true"] { opacity: .45; }
#app.land .bn-list { grid-template-columns: 1fr 1fr; grid-column-gap: 9px; }
.btn.reborn { margin-top: 14px; }

/* ======================================================================================
   配色：多彩（设置里「配色」切换，main.js 给 <html> 加 .t-color；默认还是上面的曜石金）。
   深蓝底、橙色主调（原来 v2.1 那套的底子），首页小组件一块一个颜色；金色照样只给钱和王者。
   做法：重定义上面那组变量，外加 --t-* 这组（曜石金里写死金色的几处：标题描边、今日挑战、连击、速度表、首页小组件……），
   下面的规则只读变量——换一套多彩方案只要换这一组值
   ====================================================================================== */
html.t-color {
  --ov: rgba(10,12,22,.78);
  --s1: rgba(26,30,46,.94);
  --s1b: rgba(130,150,255,.16);
  --s2: #2c3248;
  --tx: #ffffff; --tx2: #b4bcd2; --tx3: #7d869c;
  --ac: #f5620f; --ac-tx: #ffffff; --ac-sh: #a8400a; --ac2: #ffb36b;   /* 橙底白字 3.16:1（WCAG 正文 4.5、大字 3）：2026-11-01 用户比较过深色字、米色字、加深橙色后定保留原橙白字，全主题统一；检查对橙底上的字按 3:1 */
  --gold: #ffd166; --ok: #5fe0a0; --bad: #ff7070; --xhs: #ff2442;
  --chip: #2b2544; --chip-tx: #ffb36b;
  --pac: #d9480f;
  --toast: rgba(22,26,42,.94); --toast-ok: rgba(22,132,74,.94); --toast-bad: rgba(180,32,40,.94);
  /* 全局令牌（两套主题取值相同，只在这里改）：描边线、触控底线、圆角档位、字号档位。第 1 阶段只定义，各页逐步改用 */
  --line: #ffffff18;
  --tap: 44px;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-btn: 10px; --r-lg: 16px; --r-sheet: 22px; --r-pill: 999px;
  --fs-cap: 11px; --fs-sm: 12px; --fs-body: 13px; --fs-md: 14px; --fs-title: 16px; --fs-h: 18px; --fs-num: 20px; --fs-num-lg: 26px;
  --panel: #151a2a;
  --rank-hero: linear-gradient(180deg, #2a1a4e, #1a1f36); --rank-glow: rgba(255,79,139,.3); --rank-me: rgba(245,98,15,.16); --rank-me-bd: rgba(245,98,15,.55);
  --rank-entry: rgba(42,26,78,var(--hm-card-a)); --rank-entry-tint: rgba(155,123,255,.22); --rank-entry-bd: rgba(155,123,255,.32);
  --accent-wash: rgba(245,98,15,.16);
  --ok-soft: rgba(95,224,160,.32);
  --warn: #ffc247; --warn-soft: rgba(255,194,71,.16);
  --bad-soft: rgba(255,112,112,.16);
  --hm-card-a: .92;
  --t-title-sh: #ff5a1f; --t-ed: #ffd166; --t-ed-tx: #3a2400;
  --t-daily1: #6a3df0; --t-daily2: #ff4f8b; --t-chal1: #ff2442; --t-chal2: #ff7a1a;
  --t-combo1: rgba(255,106,26,.92); --t-combo2: rgba(255,60,60,.85); --t-king1: #e2241b; --t-king2: #ff5a3c;
  --t-spd: #9ef0ff; --t-spd-sh: rgba(80,210,255,.6); --t-soft: #d3d9ea;
  --t-wallet: rgba(14,62,60,var(--hm-card-a)); --t-wallet-b: rgba(80,220,190,.3);
  --t-fam: rgba(78,24,62,var(--hm-card-a)); --t-fam-b: rgba(255,120,180,.25); --t-bar: #ff7aa8;
  --t-dwg: rgba(42,26,78,var(--hm-card-a)); --t-dwg-b: #9b7bff; --t-go: #b9a2ff;
  --t-dock: rgba(18,22,38,var(--hm-card-a)); --t-dock-b: rgba(130,150,255,.14); --t-panel: #151a2a;
  --t-pick: rgba(60,34,18,.96); --t-acbg: rgba(245,98,15,.16);
}
html.t-color .title h1 { text-shadow: 0 3px 0 var(--t-title-sh), 0 6px 16px rgba(0,0,0,.5); }
html.t-color .title h1 .ed { background: var(--t-ed); color: var(--t-ed-tx); }
html.t-color .btn.daily { background: linear-gradient(90deg, var(--t-daily1), var(--t-daily2)); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
html.t-color .pick-opt.on { background: var(--t-pick); }
html.t-color .chal { background: linear-gradient(90deg, var(--t-chal1), var(--t-chal2)); box-shadow: none; color: #fff; } html.t-color .chal b { color: #fff; }
html.t-color #combo { background: linear-gradient(90deg, var(--t-combo1), var(--t-combo2)); color: #fff; }
html.t-color .spd-num { color: var(--t-spd); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
html.t-color .spd-num.rev { color: #ffd166; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
html.t-color .spd-num.warn { color: #ffd23f; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
html.t-color .spd-num.over { color: #ff6a5a; text-shadow: 0 1px 3px rgba(0,0,0,.55); }   /* 多彩配色原来把超速的红色也盖掉了 */
html.t-color #kingban span { background: linear-gradient(90deg, var(--t-king1), var(--t-king2)); color: #fff; }
html.t-color .hm-top, html.t-color .wg > p, html.t-color .title.hm-brand p { color: var(--t-soft); }
html.t-color .wg.wallet { background: var(--t-wallet); border-color: var(--t-wallet-b); }
html.t-color .wg.fam { background: var(--t-fam); border-color: var(--t-fam-b); }
html.t-color .wg-bar { --meter-fill: var(--t-bar); }
html.t-color .wg.daily { background: var(--t-dwg); border-color: var(--t-dwg-b); }
html.t-color .wg-go { color: var(--t-go); }
html.t-color .hm-dock { background: var(--t-dock); border-color: var(--t-dock-b); }
html.t-color .hm-dk em { --chip-fg: #1a1208; }
html.t-color .hs-done { background: var(--t-acbg); color: var(--ac2); }
html.t-color .bn-list button.on { background: var(--t-acbg); }

/* 称号墙：真实驾驶模式专属称号的小标 */
.tchip .t-real { display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 4px; font-size: 10px; font-style: normal; line-height: 15px; vertical-align: 1px; background: #3d4ba6; color: #e8ebff; }
.tchip.lock .t-real { background: #2a3050; color: #a9b1d6; }
button.tchip { font-family: inherit; border: 0; cursor: pointer; }
button.tchip:active { -webkit-transform: scale(.95); transform: scale(.95); }
.t-tip { color: var(--ac2); font-weight: 700; }

/* 雨刮拨杆：方向柱右边往右伸（#wstk-arm 绕根部转，根部压在转向灯那边的方向柱罩子下面） */
#wstalk { position: absolute; left: 0; top: 0; z-index: 1; touch-action: none; }
#wstalk .stk-u, #wstalk .stk-d { left: auto; right: 2px; }
#wstk-arm { position: absolute; left: 0; height: 20px; pointer-events: none; }
#wstk-arm svg { display: block; }
/* 挡风玻璃上的水和雨刮（glass.js）：3D 画面上、车舱下 */
#glass { pointer-events: none; }
/* 远光钮（2026-09-28）：左拨杆头上面一个小钮（近光自动开，没有钮）。远光开着是仪表上那种蓝，被对向车自动切成近光时变淡、虚线；
   点一下闪的那一下亮一下（.fl）；按住到点开 / 关远光时闪一下（.latch）。位置 main.js 的 layoutWheel 算（拨杆头上面，跟着拨杆缩放后的位置），
   按下 / 抬起走 hiDown / hiUp */
#lamps { position: absolute; left: 0; top: 0; z-index: 2; display: flex; touch-action: none; }
#lamps .lb { position: relative; width: 42px; height: 34px; margin-right: 4px; padding: 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,22,28,.74); color: #7e848e; font-family: inherit; font-size: 9px; font-weight: 700; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
#lamps .lb svg { display: block; width: 21px; height: 15px; margin-bottom: 2px; }
#lamps .lb.on { color: #5c9dff; border-color: rgba(92,157,255,.65); }
#lamps .lb.on.dip { border-color: rgba(92,157,255,.55); border-style: dashed; opacity: .55; }
#lamps .lb.fl { color: #cfe0ff; border-color: #8fb8ff; background: rgba(60,110,200,.55); }
#lamps .lb.latch { -webkit-animation: hilatch .35s ease-out; animation: hilatch .35s ease-out; }
@-webkit-keyframes hilatch { from { box-shadow: 0 0 0 3px #8fb8ff, 0 0 14px rgba(92,157,255,.9); -webkit-transform: scale(1.12); } to { -webkit-transform: none; } }
@keyframes hilatch { from { box-shadow: 0 0 0 3px #8fb8ff, 0 0 14px rgba(92,157,255,.9); transform: scale(1.12); } to { transform: none; } }
#lamps .lb:active { -webkit-transform: scale(.94); transform: scale(.94); }
/* 仪表上的大灯指示灯：近光绿、远光蓝，关着看不见。浮在速度数字上面（不占速度表的宽度，横屏排版按原来的宽度算） */
#ind-hl { position: absolute; right: 15px; top: -8px; width: 16px; height: 12px; margin: 0; }
#speedo.al-l #ind-hl { right: auto; left: 15px; }
#ind-hl svg { fill: none; }
#ind-hl svg path:first-child { stroke: none; }
#ind-hl svg .lo, #ind-hl svg .hi { stroke-width: 1.6; stroke-linecap: round; display: none; }
#speedo.hl1 #ind-hl, #speedo.hl2 #ind-hl { opacity: .8; }
#speedo.hl1 #ind-hl svg path:first-child { fill: #3cff6e; } #speedo.hl1 #ind-hl .lo { display: inline; stroke: #3cff6e; }
#speedo.hl2 #ind-hl svg path:first-child { fill: #5c9dff; } #speedo.hl2 #ind-hl .hi { display: inline; stroke: #5c9dff; }
#hud em.rain { background: #3a78c9; }
#hud em.rain.storm { background: #5a3fb4; }
/* 接单手机空闲页的天气一行：预报灰蓝、在下雨是蓝底；暴雨预警橙底、在下暴雨紫底 */
/* 天气那一行：窄手机一行放不下（要紧的暴雨几点来在后半句），最多折成两行 */
.pc-wx { font-size: 10px; line-height: 14px; padding: 4px 6px; text-align: center; color: #4d6e96; margin: 0; border-radius: 8px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 32px; }
.pc-wx.on { color: #fff; background: #3a78c9; }
.pc-wx.warn { color: #fff; background: #e07b1f; font-weight: 700; }
.pc-wx.on.storm { background: #5a3fb4; font-weight: 700; }
#phone.dark .pc-wx { color: #9dbde6; } #phone.dark .pc-wx.on, #phone.dark .pc-wx.warn { color: #fff; }
/* 接单设置钮（2026-10-27 用户：悬浮球偏大、看不出是什么）：手机拖动 / 缩放钮下面同样大小的一颗，举手打车图标（Codex 生成后描成矢量）；
   显示与隐藏跟上面两颗一致（开车时藏、停下来出来，.show）。右上角状态点绿色听单中、灰色已停单（.off）。
   位置在 main.js 的 placePhone；从这里停单收起手机时上面两颗跟着手机藏起来，这颗留在原处，点它恢复接单 */
#btn-orders { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(20,22,28,.78); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 1px 4px rgba(0,0,0,.4); color: #fff; touch-action: none; opacity: 0; pointer-events: none; -webkit-transition: opacity .3s; transition: opacity .3s; }
#btn-orders.show { opacity: 1; pointer-events: auto; }
#btn-orders svg { display: block; width: 14px; height: 14px; }
/* 看着小，手指能点的范围还是 38 像素左右 */
#btn-orders::before { content: ''; position: absolute; left: -8px; top: -8px; right: -8px; bottom: -8px; border-radius: 50%; }
#btn-orders:active { background: #ff6a1a; border-color: #fff; }
#btn-orders:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
/* 展开时沿用手机调整钮；收起时显示与外卖共用的手机图标。 */
#btn-phone { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; -webkit-transition: opacity .3s; transition: opacity .3s; }
#btn-phone:not(.is-collapsed) { z-index: 5; width: 22px; height: 22px; border-radius: 11px; padding: 0; background: rgba(20,22,28,.78); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 1px 4px rgba(0,0,0,.4); color: #fff; touch-action: none; }
#btn-phone[hidden] { display: none; }
#btn-phone:not(.is-collapsed) svg { display: block; width: 13px; height: 13px; }
#btn-phone:not(.is-collapsed)::before { content: ''; position: absolute; left: -8px; top: -8px; right: -8px; bottom: -8px; border-radius: 16px; }
#btn-phone.show, #app.trip-phone-off #btn-phone { opacity: 1; pointer-events: auto; }
#btn-phone:not(.is-collapsed):active { background: #ff6a1a; border-color: #fff; }
/* 在路上的票据钮（DriveControls.vue）：一直露着，写这张票还能开多久；快到点琥珀色，到点了红底写「停车」 */
#btn-ticket { position: absolute; left: 0; top: 0; z-index: 5; height: 22px; display: flex; align-items: center; gap: 3px; padding: 0 6px 0 5px; border-radius: 11px;
  background: rgba(20,22,28,.82); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 1px 4px rgba(0,0,0,.4); color: #fff; touch-action: none;
  font-size: 10px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
#btn-ticket[hidden] { display: none; }
#btn-ticket svg { display: block; flex-shrink: 0; width: 12px; height: 12px; color: #ffb36b; }
#btn-ticket::before { content: ''; position: absolute; left: -8px; top: -8px; right: -8px; bottom: -8px; border-radius: 16px; }
#btn-ticket:active { background: #ff6a1a; border-color: #fff; }
#btn-ticket:active svg { color: #fff; }
#btn-ticket:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
#btn-ticket.soon { color: #ffd27a; border-color: rgba(255,194,71,.75); }
#btn-ticket.soon svg { color: #ffd27a; }
#btn-ticket.over { background: #c8402f; border-color: #ffd0c8; }
#btn-ticket.over svg { color: #fff; }
#btn-ticket.open { border-color: #ffb36b; }
#btn-ticket.pop { animation: tk-pop .36s cubic-bezier(.16, 1, .3, 1); }
#btn-ticket.over:not(:active) { animation: tk-alert 1.6s ease-in-out infinite; }
@keyframes tk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes tk-alert { 50% { box-shadow: 0 0 0 4px rgba(200,64,47,.35), 0 1px 4px rgba(0,0,0,.4); } }
@media (prefers-reduced-motion: reduce) { #btn-ticket.pop, #btn-ticket.over:not(:active) { animation: none; } }
#app.trip-phone-off #phone, #app.trip-phone-off #ph-grip, #app.trip-phone-off #ph-size { display: none; }
/* 接单设置弹层 */
#osheet { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 40; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 18px; touch-action: manipulation; pointer-events: auto; }
.os-panel { width: 100%; max-width: 320px; max-height: 86%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; }
.os-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-shrink: 0; }
.os-h b { font-size: 16px; color: var(--tx); }
.os-h button { width: 28px; height: 28px; border-radius: 14px; color: var(--tx2); font-size: 14px; background: var(--s2); }
#os-body { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.os-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.os-actions button { width: 100%; height: 36px; flex-shrink: 0; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--tx); background: var(--s2); }
.os-actions .os-end { color: var(--bad); background: var(--bad-soft); }
.os-status { font-size: 13px; font-weight: 800; color: var(--tx); margin-bottom: 8px; }
.os-status em { font-style: normal; font-weight: 500; color: var(--tx2); margin-left: 6px; }
.os-stop { display: block; width: 100%; height: 36px; border-radius: 10px; font-size: 14px; font-weight: 800; margin-bottom: 12px;
  color: var(--tx); background: transparent; border: 1px solid var(--s1b); }
.os-stop.go { color: var(--ac-tx); background: var(--ac); border-color: transparent; }
.os-stop:disabled, .os-stop[aria-disabled="true"] { opacity: .45; }
.os-lab { font-size: 11px; font-weight: 700; color: var(--tx2); margin: 2px 0 6px; }
.os-modes { display: flex; gap: 6px; margin-bottom: 8px; }
.os-modes button { flex: 1; min-width: 0; height: 32px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--tx); background: var(--s2); border: 1px solid transparent; }
.os-modes button.on { color: var(--ac2); background: var(--accent-wash); border-color: var(--ac); }
.os-modes button.lock { opacity: .4; }
.os-meta { font-size: 12px; color: var(--tx2); line-height: 1.45; margin-bottom: 2px; }
.os-meta b { color: var(--tx); font-weight: 700; }
.os-note { font-size: 12px; color: var(--tx2); margin: 0 0 8px; }
.os-tasks { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.os-task { display: flex; align-items: center; font-size: 12px; color: var(--tx); padding: 3px 0; gap: 6px; }
.os-task span { flex: 1; min-width: 0; }
.os-task b { font-weight: 600; color: var(--tx2); font-variant-numeric: tabular-nums; }
.os-task em { font-style: normal; color: var(--gold); font-weight: 700; white-space: nowrap; }
.os-task.done span, .os-task.done b { color: var(--ok); }
.os-chal { font-size: 12px; color: var(--bad); margin-top: 8px; }

/* 首页存款卡片右上角的分享钮（存款不为 0 才有）：发「跑车账本」笔记 */
.wg.wallet { position: relative; }
.wg-share { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 15px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--gold); }
.wg-share:active { -webkit-transform: scale(.92); transform: scale(.92); }
.wg-share::before { content: ''; position: absolute; left: -7px; top: -7px; right: -7px; bottom: -7px; }

/* 我的家：关闭钮做明显（金色实心 + ✕），标题栏往下翻的时候钉在顶上 */
#home .home-top { position: -webkit-sticky; position: sticky; top: 0; top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); z-index: 3; box-shadow: inset 0 0 0 1px var(--s1b), 0 6px 14px rgba(0,0,0,.35); }
.shop-top button.home-x { display: flex; align-items: center; min-height: 38px; padding: 0 16px 0 12px; border-radius: 19px; font-size: 15px; font-weight: 800;
  background: var(--ac); color: var(--ac-tx); box-shadow: 0 3px 0 var(--ac-sh); }
.home-x svg { margin-right: 5px; }
.home-x:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: 0 1px 0 var(--ac-sh); }

/* 存款明细（首页存款卡片点开）：一行一项，收入绿、支出红，奖励的来源缩进一格 */
.a-ledger { --i1: #9be07a; --i2: #2f8f4e; }
.wg.wallet { cursor: pointer; }
.wg-more { font-style: normal; font-size: 11px; margin-left: 4px; opacity: .75; }
/* 键值行 .kv-row（.ld-r 是它的旧名，ReceiptRow 的 .ln 读同一组变量）：左标签右数值。
   变量 --kv-fs / --kv-pad / --kv-bd / --kv-fg / --kv-ai；.sub 缩进小字、.tot 合计；b.pos / b.neg 给数值上色。 */
.kv-row, .ld-r, .receipt .ln { display: flex; justify-content: space-between; align-items: var(--kv-ai, baseline); padding: var(--kv-pad, 7px 0); border-bottom: var(--kv-bd, 1px solid var(--s1b)); font-size: var(--kv-fs, 14px); color: var(--kv-fg, var(--tx)); }
.kv-row b, .ld-r b { font-variant-numeric: tabular-nums; font-weight: 700; }
.kv-row b.pos, .ld-r b.pos { color: var(--ok); } .kv-row b.neg, .ld-r b.neg { color: var(--bad); }
.kv-row.sub, .ld-r.sub { padding: 4px 0 4px 14px; font-size: 12.5px; color: var(--tx2); border-bottom: 0; }
.kv-row.sub b, .ld-r.sub b { font-weight: 500; }
.kv-row.tot, .ld-r.tot { border-bottom: 0; padding-top: 9px; font-weight: 800; }
.kv-row.tot b, .ld-r.tot b { font-size: 17px; color: var(--gold); }
.kv-row.tot b.neg, .ld-r.tot b.neg { color: var(--bad); }
/* 我的家的标题栏钉在顶上时，上面那 20 像素（面板的内边距）别露出底下滚过去的内容 */
#home .home-top { top: -20px; top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 20px); }

/* 设置里的方向盘：上面小手机示意图、下面字的两张卡片（复用第一次进游戏时的 .pick-opt） */
.set-w { padding: 10px 0 12px; border-bottom: 1px solid var(--s1b); }
.set-w > span { display: block; font-size: 14px; color: var(--tx); margin-bottom: 8px; }
.set-w .pick-row { max-width: none; }
.set-w .pick-opt { padding: 6px 6px 9px; border-radius: 14px; }
.set-w .pick-opt svg { width: 70px; height: 70px; }
.set-w .pick-opt b { font-size: 14px; }
.set-w .pick-opt span { font-size: 11px; }
.set-w .pick-opt em { right: 7px; top: 7px; width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
#app.land .set-w .pick-opt svg { width: 62px; height: 62px; }

/* 设置里的「小窍门」：不编号，一条一个圆点 */
.help.tips { list-style: none; padding-left: 0; }
.help.tips li { position: relative; padding-left: 14px; margin-bottom: 7px; line-height: 1.55; }
.help.tips li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ac); }

/* 设置最下面的危险操作：重置游戏 */
.btn.danger { margin-top: 6px; }
/* 危险操作统一描边样式（重置游戏、重新开始一家人）；按钮仍带各自的位置类 */
.btn.danger, .btn.reborn { background: transparent; border: 1.5px solid var(--bad); color: var(--bad); box-shadow: none; }
.btn.danger + .note { margin-top: -2px; }

/* 我的家：分享给家人（第一次有惊喜：爸转 ¥888）。醒目但不跳：跟主题的主色走（暗金金色、多彩橙色），深底描边 + 左边礼盒 */
.btn.fam-share { display: flex; align-items: center; text-align: left; height: auto; min-height: 60px; padding: 10px 14px 10px 12px; margin: 0 0 12px;
  background: var(--chip); border: 1.5px solid var(--ac); box-shadow: 0 3px 0 rgba(0,0,0,.25); color: var(--tx); }
.fs-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; margin-right: 12px; display: flex; align-items: center; justify-content: center; font-style: normal;
  background: var(--ac); color: var(--ac-tx); }
.btn.fam-share span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btn.fam-share b { font-size: 15px; font-weight: 800; }
.btn.fam-share small { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--ac2); opacity: 1; }
.btn.fam-share em { flex-shrink: 0; font-style: normal; font-size: 22px; line-height: 1; color: var(--ac2); margin-left: 8px; }

.btn.fam-share.quiet { min-height: 46px; border-color: var(--s1b); background: transparent; box-shadow: none; }
.btn.fam-share.quiet .fs-ic { display: none; }
.btn.fam-share.quiet b { font-size: 13px; font-weight: 600; }
.btn.fam-share.quiet small, .btn.fam-share.quiet em { color: var(--tx2); font-weight: 400; }

/* 不在宿主里点分享：发笔记预览（海报、标题、正文） */
.npv-c { max-height: 92%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.npv-c > p { font-size: 12.5px; color: var(--tx2); margin-bottom: 10px; }
.npv-c img { display: block; width: 100%; border-radius: 10px; margin-bottom: 10px; }
.npv-t { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.npv-x { font-size: 12.5px; line-height: 1.6; color: var(--tx2); margin-bottom: 12px; word-break: break-all; }
#app.land .npv-c { max-width: 560px; }
#app.land .npv-c img { width: 46%; float: left; margin: 0 12px 8px 0; }
#app.land .npv-c .btn { clear: both; }
.btn.fam-share .nw { font-style: normal; white-space: nowrap; }

/* ---------- 车主等级页（首页「等级」App） ---------- */
.lv-top { display: flex; align-items: center; }
.lv-top > .md-b { margin-right: 12px; }
.lv-top > div { min-width: 0; }
.lv-top b { display: block; font-size: 17px; color: var(--tx); }
.lv-top span { display: block; font-size: 12px; color: var(--tx2); margin-top: 2px; }
.lv-bar { margin: 10px 0 6px; }
.lv-mul { margin-top: 6px; font-size: 13px; color: var(--tx); }
.lv-mul small { display: block; font-size: 11px; color: var(--tx2); margin-top: 2px; }
.lv-now { margin-top: 8px; font-size: 12.5px; color: var(--ac2); }
.lv-row { display: flex; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.lv-row:first-of-type { border-top: 0; padding-top: 2px; }
.lv-row > .md-b { margin-right: 10px; }
.lv-row > div { flex: 1; min-width: 0; }
.lv-row b { display: block; font-size: 14px; color: var(--tx); }
.lv-row b small { --chip-fs: 10.5px; --chip-pad: 0 5px; --chip-bg: var(--ac); --chip-fg: var(--ac-tx); font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.lv-row span { display: block; font-size: 11.5px; color: var(--tx2); }
.lv-row em { flex: none; font-style: normal; font-size: 11px; color: var(--tx3); margin-left: 8px; white-space: nowrap; }
.lv-row.lock b, .lv-row.lock span { color: var(--tx3); }
.lv-row.lock > .md-b { opacity: .45; }
/* 收车结算：升了大段，大勋章在左、字在右 */
.receipt .res.lvup { display: flex; align-items: center; justify-content: center; text-align: left; font-size: 13.5px; }
.receipt .res.lvup .md-b { margin-right: 10px; }
.receipt .res.lvup small { display: block; font-size: 12px; font-weight: 700; color: #6b5a44; margin-top: 2px; }

/* ---------- 车主勋章（medal.js 的 RK.medal / RK.medalTx） ---------- */
/* 配文字的小勋章：1.25em 见方，跟着字号走；竖着和汉字的字面中心对齐（汉字中心在基线上约 0.36em，勋章中心也放那儿，不靠 vertical-align: middle —— 那是按 x 高度算的，偏低） */
.md { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.27em; margin-right: .2em; }
.md-b { display: block; flex: none; }
.mdx { white-space: nowrap; }
