/* 手机外壳 + 移动端骨架（配合 design-system.css）
   外壳/屏幕尺寸由 CSS 变量驱动，anno.js 预览工具条可切换机型预设 */

:root {
  --dev-w: 410px;   /* 外壳宽 */
  --dev-h: 884px;   /* 外壳高 */
  --scr-w: 390px;   /* 屏幕宽（页面设计基准宽） */
  --scr-h: 864px;   /* 屏幕高 */
}

/* 三栏布局：含手机壳的页面（anno.js 给 html 加 .has-device）窗口不滚动，预览区自己滚动 */
html.has-device body { overflow: hidden; }
html.has-device .device-wrap { height: 100vh; min-height: 0; overflow-y: auto; }

.device-wrap { min-height: 100vh; 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; }

/* 注释面板浮动按钮区域与页面共存：见 anno.js 注入样式 */
