/* 手机外壳 + 移动端骨架（配合 design-system.css）
   外壳/屏幕尺寸由 CSS 变量驱动，anno.js 预览工具条可切换机型预设 */

:root {
  --dev-w: 410px;   /* 外壳宽 */
  --dev-h: 884px;   /* 外壳高 */
  --scr-w: 390px;   /* 屏幕宽（页面设计基准宽） */
  --scr-h: 864px;   /* 屏幕高 */
}

/* 三栏布局：含手机壳的页面窗口不滚动，预览区自己滚动。
   直接写进基础规则（不等 JS 加 .has-device），避免「载入瞬间出现滚动条 → JS 再隐藏」造成内容横向跳动 */
body { overflow: hidden; }
.device-wrap { height: 100vh; min-height: 0; overflow-y: auto; display: flex; padding: 24px; gap: 32px; box-sizing: border-box; }
/* margin:auto 居中：外壳超高时自动转为顶部对齐，预览区内出现滚动条，不再截断 */
.device { width: var(--dev-w); height: var(--dev-h); border-radius: 52px; background: #101B1C; padding: 10px; box-shadow: 0 24px 64px rgba(18,43,43,.28); flex: none; margin: auto; }
.screen { width: var(--scr-w); height: var(--scr-h); border-radius: 42px; overflow: hidden; position: relative; background: var(--bg); display: flex; flex-direction: column; }
.notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 112px; height: 26px; border-radius: 13px; background: #101B1C; z-index: 60; }

/* iOS 机型底部安全区 Home 指示条（切到 iOS 机型时由 anno.js 加 .dev-ios 显示） */
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: #101B1C; z-index: 60; display: none; }
html.dev-ios .home-indicator { display: block; }

/* 状态栏 */
.statusbar { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; font: 600 14px/1 var(--font); color: var(--ink); position: relative; z-index: 20; }
.statusbar .sicons { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.statusbar.on-map { color: var(--ink); }

/* 导航栏 */
.navbar { height: 52px; flex: none; display: flex; align-items: center; padding: 0 12px; position: relative; z-index: 20; background: var(--card); }
.navbar.transparent { background: transparent; }
.navbar .nav-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.navbar .nav-title { position: absolute; left: 60px; right: 60px; text-align: center; font: var(--t-h2); }
.navbar .nav-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* 内容区 */
.page { flex: 1; overflow-y: auto; position: relative; padding: 0 var(--sp-safe); }
.page.no-pad { padding: 0; }
.page::-webkit-scrollbar { display: none; }

/* 底部 Tab */
.tabbar { flex: none; background: var(--card); border-top: 1px solid var(--line); display: flex; padding: 6px 8px 22px; position: relative; z-index: 20; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 6px; color: var(--ink-3); font: var(--t-cap); }
.tabbar a.on { color: var(--brand); }

/* 地图页 */
.map-page { position: absolute; inset: 0; background: url("img/map-light.png") /* TODO: 替换为项目地图/底图 */ 50% 50% / cover no-repeat; }
.map-float-top { position: absolute; top: 48px; left: var(--sp-safe); right: var(--sp-safe); z-index: 15; }
.bottom-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--sh-card); padding: 16px var(--sp-safe) 0; z-index: 18; }
.loc-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--info); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47,128,237,.18); transform: translate(-50%, -50%); }
.pin-center { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); color: var(--brand-bright); z-index: 10; }

/* 车型横向选择条 */
.veh-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; }
.veh-scroll::-webkit-scrollbar { display: none; }
.veh-card { flex: none; width: 108px; border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 10px; text-align: center; background: var(--card); }
.veh-card.on { border-color: var(--brand); background: var(--brand-light-2); }
.veh-card .vname { font: var(--t-body-s); font-weight: 700; margin-top: 4px; }
.veh-card .vprice { font: var(--t-cap); color: var(--ink-2); margin-top: 2px; }

/* OTP 输入 */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-cell { width: 48px; height: 56px; border: 1.5px solid var(--line); border-radius: var(--r-input); display: flex; align-items: center; justify-content: center; font: var(--t-h1); background: var(--card); }
.otp-cell.on { border-color: var(--brand); }

/* 步骤条（审核/进度） */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 12px; }
.step .rail { display: flex; flex-direction: column; align-items: center; }
.step .s-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: var(--t-cap); background: var(--bg); color: var(--ink-3); flex: none; border: 1px solid var(--line); }
.step.done .s-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.cur .s-dot { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.step .s-line { width: 2px; flex: 1; min-height: 22px; background: var(--line); }
.step.done .s-line { background: var(--brand); }
.step .s-body { padding-bottom: 22px; }
.step .s-title { font: var(--t-body); font-weight: 600; }
.step .s-sub { font: var(--t-body-s); color: var(--ink-3); margin-top: 2px; }

/* 评分星 */
.stars { display: flex; gap: 6px; color: var(--ink-4); }
.stars .on { color: #FFB400; }

/* ============================================================
   注释面板（静态样式）：作用于页面**既有**的 <aside class="anno"> 标记，
   必须随首帧生效——不能等 anno.js（外链脚本）注入，否则脚本落地前会先把
   <aside> 渲染成无样式的文档流块、落地后整块「砸进」画面（首帧竞争抖动）。
   anno.js 只负责建「注」按钮与 iframe/embed 时隐藏。
   ============================================================ */
.anno { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; background: var(--card); box-shadow: -8px 0 32px rgba(18,43,43,.18); z-index: 999; padding: 24px; overflow: auto; font-family: -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; }
.anno.off { display: none; }
.anno h4 { font: 700 17px/24px -apple-system,"PingFang SC",sans-serif; color: var(--ink); margin: 0 0 4px; }
.anno .sec { margin-top: 16px; }
.anno .sec-t { font: 600 12px/16px -apple-system,"PingFang SC",sans-serif; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.anno .sec-b { font: 400 13px/20px -apple-system,"PingFang SC",sans-serif; color: var(--ink-2); }
.anno .sec-b li { margin: 4px 0 4px 16px; }
.anno .fr-tag { display: inline-block; background: var(--brand-light); color: var(--brand); border-radius: 6px; padding: 2px 8px; font: 600 11px/16px -apple-system,sans-serif; margin: 2px 4px 2px 0; }
.anno .oq-tag { display: inline-block; background: var(--warning-bg); color: var(--warning); border-radius: 6px; padding: 2px 8px; font: 600 11px/16px -apple-system,sans-serif; margin: 2px 4px 2px 0; }
.anno .p1 { display: inline-block; background: var(--success-bg); color: var(--success); border-radius: 6px; padding: 2px 8px; font: 600 11px/16px -apple-system,sans-serif; margin: 2px 4px 2px 0; }
.anno .p2 { display: inline-block; background: var(--purple-bg); color: var(--purple); border-radius: 6px; padding: 2px 8px; font: 600 11px/16px -apple-system,sans-serif; margin: 2px 4px 2px 0; }
.anno .note-static { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line); font: 400 12px/18px -apple-system,"PingFang SC",sans-serif; color: var(--ink-3); }

/* 注入式浮层的滚动条一律隐藏（滚动条铁律）：注释面板 + 预览区 */
.anno, .device-wrap { scrollbar-width: none; }
.anno::-webkit-scrollbar, .device-wrap::-webkit-scrollbar { display: none; }

/* 注释面板浮动按钮与页面共存：按钮样式由 anno.js 注入（JS 自建元素） */

/* 底部操作条（共用件）：底部固定按钮区的标准形态——自带左右安全距离（--sp-safe）与
   底部安全区 22px（对齐 .tabbar 档，避开机型 Home 指示条）。页面只写 class，不再各自定义。 */
.act-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px var(--sp-safe) 22px; background: var(--card); border-top: 1px solid var(--line); }
