/* =========================================================
   手机查车V8 · 移动端界面样式系统
   主色：#2C80E1（PANTONE 2727C / C76 M47 Y0 K0）
   字体：阿里巴巴普惠体 Alibaba PuHuiTi 3.0
   ========================================================= */

/* ---------- 字体 ---------- */
@import url('../fonts/fonts.css');

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌主色（PANTONE 2727C） */
  --brand: #2C80E1;
  --brand-700: #1B62B8;
  --brand-600: #2172CE;
  --brand-500: #2C80E1;
  --brand-400: #4F97EA;
  --brand-300: #7FB4F1;
  --brand-200: #B3D4F8;
  --brand-100: #DCEBFC;
  --brand-50:  #EFF6FE;
  --brand-a12: rgba(44, 128, 225, .12);
  --brand-a08: rgba(44, 128, 225, .08);
  --brand-grad: #2C80E1;

  /* 语义色 */
  --ok: #17B26A;
  --ok-bg: #E9F8F0;
  --warn: #F79009;
  --warn-bg: #FEF5E7;
  --danger: #E5484D;
  --danger-bg: #FDECEC;
  --gray: #98A2B3;
  --purple: #7A5AF8;
  --purple-bg: #F1EDFE;

  /* 文字 */
  --t1: #0F172A;
  --t2: #475467;
  --t3: #8A94A6;
  --t4: #B0B8C6;
  --t-inv: #FFFFFF;

  /* 背景与线条 */
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --line: #EDEFF4;
  --line-2: #F4F6FA;

  /* 圆角与阴影（政企正式风格：小圆角、轻阴影、描边） */
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --r-xl: 10px;
  --sh-card: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-pop: 0 4px 16px rgba(16, 24, 40, .12);
  --sh-brand: none;

  /* 尺寸 */
  --status-h: 44px;
  --nav-h: 44px;
  --tab-h: 58px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Alibaba PuHuiTi 3.0', 'AlibabaPuHuiTi-3-55-Regular', 'Alibaba PuHuiTi',
               'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--t1);
  background: #E9EDF3;
  background-image: radial-gradient(1200px 600px at 50% -10%, #F6F8FC 0%, #E6EAF1 60%, #DDE2EA 100%);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 40px;
  letter-spacing: .1px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, li { list-style: none; }

/* ---------- 手机外壳 ---------- */
.stage { display: flex; align-items: flex-start; gap: 28px; }
.device {
  position: relative;
  width: 390px; height: 844px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #2C2C33 0%, #14141A 40%, #23232B 100%);
  border-radius: 54px;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(16, 24, 40, .32), 0 2px 8px rgba(16, 24, 40, .16),
              inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: top center;
}
/* 侧边按键 */
.device::before, .device::after {
  content: ''; position: absolute; left: -3px; width: 3px; border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #3A3A44, #1C1C22);
}
.device::before { top: 188px; height: 34px; }
.device::after  { top: 236px; height: 62px; }
.device .btn-power {
  position: absolute; right: -3px; top: 216px; width: 3px; height: 92px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #3A3A44, #1C1C22);
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 43px;
  overflow: hidden;
  display: flex; flex-direction: column;
  isolation: isolate;
}

/* ---------- 状态栏 ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--status-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px; z-index: 50; pointer-events: none;
  font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .2px;
}
.statusbar.dark { color: var(--t1); }
.statusbar .sb-left { display: flex; align-items: center; gap: 6px; }
.statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
.statusbar svg { display: block; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: relative; z-index: 40;
  flex: 0 0 auto;
  padding-top: var(--status-h);
  min-height: calc(var(--status-h) + var(--nav-h));
  background: var(--brand-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.navbar.plain { background: #fff; color: var(--t1); box-shadow: 0 1px 0 var(--line); }
.navbar .nav-inner {
  height: var(--nav-h); width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; position: relative;
}
.navbar .nav-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 17px; font-weight: 600; color: #fff;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.navbar.plain .nav-title { color: var(--t1); }
.navbar .nav-side { position: relative; z-index: 2; display: flex; align-items: center; gap: 2px; min-width: 60px; }
.navbar .nav-side.right { justify-content: flex-end; }
.nav-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #fff; border-radius: 10px; cursor: pointer;
}
.navbar.plain .nav-btn { color: var(--t1); }
.nav-btn:active { background: rgba(255, 255, 255, .16); }
.nav-text-btn { border: 0; background: transparent; color: #fff; font-size: 14px; padding: 6px 8px; cursor: pointer; }
.navbar.plain .nav-text-btn { color: var(--brand); }
/* 平台名 + 下拉 */
.plat-picker {
  display: inline-flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 600; color: #fff;
  background: transparent; border: 0; cursor: pointer; max-width: 240px;
}
.plat-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 页面容器 ---------- */
.page {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; position: relative; z-index: 10;
}
.page::-webkit-scrollbar { width: 0; height: 0; }
.page-inner { padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.page.no-pad .page-inner { padding: 0 0 18px; gap: 0; }
.page-bottom-space { height: 8px; }

/* ---------- 底部 Tab 栏 ---------- */
.tabbar {
  flex: 0 0 auto; position: relative; z-index: 45;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: stretch;
  padding-bottom: 16px; height: calc(var(--tab-h) + 12px);
  box-shadow: 0 -2px 12px rgba(16, 24, 40, .04);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--t3); font-size: 10px; font-weight: 500; cursor: pointer;
  position: relative; padding-top: 8px;
}
.tabbar .tab svg { width: 24px; height: 24px; }
.tabbar .tab.active { color: var(--brand); font-weight: 600; }
.tabbar .tab.active .tab-ico { position: relative; }
.tabbar .tab.active .tab-ico::after {
  content: ''; position: absolute; inset: -8px -10px; border-radius: 14px;
  background: var(--brand-a08); z-index: -1;
}
.tabbar .tab .dot {
  position: absolute; top: 6px; right: 50%; margin-right: -18px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 15px; text-align: center;
  border: 1.5px solid #fff; font-weight: 600;
}
.home-indicator {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(15, 23, 42, .22); z-index: 60;
}

/* ---------- 通用卡片 ---------- */
.card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.card-pad { padding: 14px; }
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--t1); padding: 2px 2px 0;
}
.sec-title .more { font-size: 12px; font-weight: 400; color: var(--t3); display: flex; align-items: center; gap: 2px; }
.sec-bar { width: 3px; height: 14px; border-radius: 2px; background: var(--brand); margin-right: 7px; }

/* ---------- 搜索框 ---------- */
.searchbar { padding: 10px 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 38px;
  background: var(--bg); border-radius: 19px; padding: 0 12px; color: var(--t3);
}
.search-box input {
  flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--t1);
}
.search-box input::placeholder { color: var(--t4); }
.search-box .tag-active {
  font-size: 12px; color: var(--brand); background: var(--brand-a12);
  padding: 3px 8px; border-radius: 10px; white-space: nowrap;
}

/* ---------- 分段控件 ---------- */
.segment {
  display: flex; background: #F1F4F9; border-radius: 10px; padding: 3px; gap: 2px;
}
.segment button {
  flex: 1; height: 32px; border: 0; background: transparent; border-radius: 8px;
  font-size: 13px; color: var(--t2); cursor: pointer; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.segment button.active {
  background: #fff; color: var(--brand); font-weight: 600; box-shadow: none; border-bottom: none;
}

/* ---------- 筛选 chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.chips::-webkit-scrollbar { height: 0; }
.chip {
  flex: 0 0 auto; height: 30px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fff; color: var(--t2); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip.active { background: var(--brand); color: #fff; font-weight: 500; border-color: var(--brand); }

/* ---------- 列表行 ---------- */
.list { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; position: relative;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:active { background: #FAFBFD; }
.row-ico {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-a08); color: var(--brand); flex: 0 0 auto;
}
.row-ico.ok { background: var(--ok-bg); color: var(--ok); }
.row-ico.warn { background: var(--warn-bg); color: var(--warn); }
.row-ico.danger { background: var(--danger-bg); color: var(--danger); }
.row-ico.purple { background: var(--purple-bg); color: var(--purple); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 500; color: var(--t1); display: flex; align-items: center; gap: 6px; }
.row-sub { font-size: 12px; color: var(--t3); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-val { font-size: 13px; color: var(--t2); }
.row-arrow { color: var(--t4); flex: 0 0 auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 标签 / 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px;
  border-radius: 6px; font-size: 11px; font-weight: 500; background: var(--brand-a12); color: var(--brand);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: #B45309; }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.gray { background: #F1F4F9; color: var(--t2); }
.badge.solid { background: var(--brand); color: #fff; }
.plate {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 3px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.plate.gray { background: #98A2B3; }

/* ---------- 按钮 ---------- */
.btn {
  height: 44px; border: 0; border-radius: var(--r); background: var(--brand);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
}
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn.ghost { background: #fff; color: var(--brand); box-shadow: none; border: 1px solid var(--brand); }
.btn.subtle { background: var(--brand-a08); color: var(--brand); box-shadow: none; }
.btn.gray { background: #F1F4F9; color: var(--t2); box-shadow: none; }
.btn.danger { background: var(--danger); }
.btn.sm { height: 34px; font-size: 13px; border-radius: var(--r); padding: 0 14px; width: auto; box-shadow: none; }
.btn.xs { height: 28px; font-size: 12px; border-radius: var(--r-sm); padding: 0 10px; width: auto; box-shadow: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; background: #F6F8FC; border-radius: var(--r); border: 1px solid transparent; }
.field:focus-within { border-color: var(--brand-300); background: #fff; box-shadow: 0 0 0 3px var(--brand-a08); }
.field input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--t1); }
.field input::placeholder { color: var(--t4); }
.field .ico { color: var(--brand); display: flex; }
.field .eye { color: var(--t4); background: transparent; border: 0; cursor: pointer; display: flex; }
.label-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--t2); padding: 2px 2px 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); cursor: pointer; }
.cbox {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #C7CFDA; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto;
}
.cbox.on { background: var(--brand); border-color: var(--brand); }
.cbox svg { width: 12px; height: 12px; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: #DFE3EA; position: relative; cursor: pointer; transition: .2s; flex: 0 0 auto; border: 0; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.switch.on { background: var(--brand); }
.switch.on::after { left: 20px; }

/* ---------- 数据概览 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: #fff; border-radius: var(--r-lg); padding: 13px 14px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.stat .num { font-size: 22px; font-weight: 700; color: var(--t1); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .num.brand { color: var(--brand); }
.stat .num.ok { color: var(--ok); }
.stat .num.warn { color: var(--warn); }
.stat .num.danger { color: var(--danger); }
.stat .lb { font-size: 12px; color: var(--t3); margin-top: 4px; }
.stat .ico { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-a08); color: var(--brand); }

/* ---------- 九宫格模块（正式系统风：细描边单色图标） ---------- */
.grid-menu { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 6px 4px 10px; display: grid; grid-template-columns: repeat(4, 1fr); }
.grid-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 2px 8px; cursor: pointer; }
.grid-item:active { background: #FAFBFD; border-radius: var(--r); }
.grid-ico {
  width: 44px; height: 44px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  background: var(--brand-a08); color: var(--brand); position: relative;
}
.grid-item .gl { font-size: 12px; color: var(--t2); font-weight: 500; text-align: center; }
.grid-ico .tip {
  position: absolute; top: -3px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff;
}

/* ---------- 地图 ---------- */
.map-wrap { position: relative; flex: 1 1 auto; min-height: 0; background: #EFF1EC; overflow: hidden; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-fab {
  position: absolute; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 9;
  pointer-events: none;
}
.map-fab button {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; color: var(--t2);
  box-shadow: var(--sh-pop); display: flex; align-items: center; justify-content: center; cursor: pointer;
  pointer-events: auto;
}
.map-fab.left { right: auto; left: 12px; }
.map-fab button.on { color: var(--brand); }
.map-pin { position: absolute; z-index: 5; transform: translate(-50%, -100%); }
.map-pin .pin-body {
  background: var(--brand); color: #fff; border-radius: 10px; padding: 5px 9px; font-size: 11px;
  box-shadow: 0 4px 12px rgba(44, 128, 225, .38); white-space: nowrap; position: relative; font-weight: 500;
}
.map-pin .pin-body::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--brand); border-radius: 2px;
}
.map-pin.still .pin-body { background: #fff; color: var(--t2); box-shadow: var(--sh-pop); }
.map-pin.still .pin-body::after { background: #fff; }
.map-pin .car { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); }
.map-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 6; background: rgba(255, 255, 255, .94);
  border-radius: 10px; padding: 8px 10px; box-shadow: var(--sh-pop); font-size: 11px; color: var(--t2);
  display: flex; flex-direction: column; gap: 5px; backdrop-filter: blur(6px);
}
.map-legend .lg { display: flex; align-items: center; gap: 6px; }
.map-legend .dotc { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- 车辆信息卡（地图浮层） ---------- */
.veh-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 8;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-pop); padding: 14px;
}
.veh-card .veh-close { position: relative; z-index: 3; pointer-events: auto; }
.veh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.veh-head .vh-l { display: flex; align-items: center; gap: 8px; }
.veh-close { border: 0; background: #F1F4F9; color: var(--t3); width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.veh-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin-top: 12px; }
.veh-kv .kv { display: flex; flex-direction: column; gap: 2px; }
.veh-kv .k { font-size: 11px; color: var(--t3); }
.veh-kv .v { font-size: 13px; color: var(--t1); font-weight: 500; }
.veh-acts { display: flex; justify-content: space-between; margin-top: 14px; gap: 4px; }
.veh-act { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; cursor: pointer; border: 0; background: transparent; }
.veh-act .ai { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-brand); }
.veh-act span { font-size: 11px; color: var(--t2); }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #D5DAE3; }
.dots i.on { width: 14px; border-radius: 3px; background: var(--brand); }

/* ---------- 视频 ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #0F172A; }
.vcell { position: relative; aspect-ratio: 4 / 3; background: #101828; border-radius: 10px; overflow: hidden; }
.vcell.active { outline: 2px solid var(--brand); outline-offset: -2px; }
.vcell .vbg { position: absolute; inset: 0; background: linear-gradient(160deg, #2B3A52 0%, #1B2637 55%, #131B27 100%); }
.vcell .vbg::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}
.vcell .vscene { position: absolute; inset: 0; opacity: .9; }
.vcell .vtop { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.vcell .vch { background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 5px; backdrop-filter: blur(2px); }
.vcell .vrate { color: #7DD3A8; font-size: 10px; background: rgba(0, 0, 0, .45); padding: 2px 6px; border-radius: 5px; }
.vcell .vosd { position: absolute; left: 7px; bottom: 6px; right: 7px; color: #E8EDF5; font-size: 10px; z-index: 3; line-height: 1.5; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.vcell .vplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 4; }
.vcell .vplay button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); cursor: pointer; }
.vbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.vbar button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #F1F4F9; color: var(--t2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vbar button.primary { background: var(--brand-grad); color: #fff; box-shadow: var(--sh-brand); }
.vbar button.danger { background: var(--danger-bg); color: var(--danger); }
.addrbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; font-size: 12px; color: var(--t2); box-shadow: 0 1px 0 var(--line); }
.addrbar .ad { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t1); font-weight: 500; }

/* ---------- 抓拍 / 图片 ---------- */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot {
  background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-card); cursor: pointer;
}
.shot .ph {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, #DDE6F2 0%, #C6D3E4 60%, #B4C2D6 100%);
  position: relative; display: flex; align-items: flex-end;
}
.shot .ph .stamp { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 10px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.shot .ph .chn { position: absolute; right: 6px; top: 6px; background: rgba(15, 23, 42, .55); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.shot .cap { padding: 8px 10px; font-size: 12px; color: var(--t2); display: flex; align-items: center; justify-content: space-between; }

/* ---------- 报警卡 ---------- */
.alarm-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; }
.alarm-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.alarm-head .ty { font-size: 14px; font-weight: 600; color: var(--t1); flex: 1; }
.alarm-body { padding: 0 14px 12px; }
.alarm-desc { font-size: 13px; color: var(--t2); line-height: 1.65; background: #F7F9FC; border-radius: var(--r); padding: 10px 12px; }
.alarm-desc em { font-style: normal; color: var(--brand); font-weight: 500; }
.alarm-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.alarm-thumbs .th { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(150deg, #D9E3F0, #B9C7DB); position: relative; overflow: hidden; }
.alarm-thumbs .th .idx { position: absolute; right: 4px; bottom: 3px; font-size: 9px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.alarm-foot { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.alarm-foot .btn { flex: 1; }

/* ---------- 时间轴 ---------- */
.timeline { padding: 4px 0 4px; }
.tl-item { position: relative; padding: 0 0 16px 22px; }
.tl-item::before { content: ''; position: absolute; left: 5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-a12); }
.tl-item::after { content: ''; position: absolute; left: 9px; top: 16px; bottom: -2px; width: 1px; background: var(--line); }
.tl-item:last-child::after { display: none; }
.tl-item.gray::before { background: var(--t4); box-shadow: 0 0 0 3px #F1F4F9; }
.tl-t { font-size: 13px; font-weight: 500; color: var(--t1); }
.tl-s { font-size: 12px; color: var(--t3); margin-top: 3px; }

/* ---------- 报表 ---------- */
.chart-box { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 14px; }
.bars { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; height: 140px; padding-top: 20px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bars .bar {
  width: 100%; border-radius: 2px 2px 0 0; background: var(--brand);
  position: relative; min-height: 6px;
}
.bars .bar.gray { background: #C3CAD6; }
.bars .bar .bval { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--t2); white-space: nowrap; }
.bars .bl { font-size: 11px; color: var(--t3); }
.legend-row { display: flex; gap: 14px; padding: 12px 2px 0; font-size: 11px; color: var(--t2); }
.legend-row .lg { display: flex; align-items: center; gap: 5px; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; }
.donut { display: flex; align-items: center; gap: 16px; }
.donut .dl { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.donut .dl .dli { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t2); }
.donut .dl .dli b { margin-left: auto; color: var(--t1); font-weight: 600; font-variant-numeric: tabular-nums; }
.donut .dl .sw { width: 9px; height: 9px; border-radius: 3px; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { font-weight: 500; color: var(--t3); text-align: left; padding: 9px 8px; background: #F7F9FC; }
.tbl td { padding: 11px 8px; border-top: 1px solid var(--line-2); color: var(--t1); }
.tbl tr:first-child td { border-top: 0; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- 弹层 ---------- */
.mask {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80;
  display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 0 22px;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  max-height: 76%; overflow-y: auto;
}
.mask.show .sheet { transform: translateY(0); }
.sheet .sh-handle { width: 36px; height: 4px; border-radius: 2px; background: #DDE2EA; margin: 4px auto 12px; }
.sheet .sh-title { font-size: 16px; font-weight: 600; text-align: center; padding: 0 16px 12px; }
.toast {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(15, 23, 42, .88); color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 12px;
  z-index: 99; opacity: 0; pointer-events: none; transition: .2s; max-width: 76%; text-align: center;
  backdrop-filter: blur(4px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- 登录页 ---------- */
.login-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(170deg, #EAF3FE 0%, #F4F8FD 42%, #FFFFFF 100%);
  overflow: hidden;
}
.login-bg .glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 128, 225, .18) 0%, rgba(44, 128, 225, 0) 68%);
  top: -140px; left: -90px;
}
.login-bg .glow.b { top: auto; bottom: -160px; left: auto; right: -120px; background: radial-gradient(circle, rgba(44, 128, 225, .14) 0%, rgba(44, 128, 225, 0) 68%); }
.login-bg .lines { position: absolute; inset: 0; opacity: .5; }
.login-wrap { position: relative; z-index: 2; padding: 0 24px; display: flex; flex-direction: column; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 6px; }
.login-head .lg { width: 64px; height: 64px; }
.login-head .nm { font-size: 19px; font-weight: 700; color: var(--t1); letter-spacing: .5px; }
.login-head .sub { font-size: 12px; color: var(--t3); }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 12px 36px rgba(16, 24, 40, .10); padding: 4px 18px 20px; margin-top: 8px; }
.tabs-line { display: flex; gap: 26px; justify-content: center; border-bottom: 1px solid var(--line-2); }
.tabs-line button {
  position: relative; border: 0; background: transparent; padding: 14px 2px 12px; font-size: 15px;
  color: var(--t3); cursor: pointer;
}
.tabs-line button.active { color: var(--brand); font-weight: 600; }
.tabs-line button.active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 26px; height: 3px; border-radius: 2px; background: var(--brand);
}
.verify-bar {
  height: 42px; border-radius: var(--r); background: #F6F8FC; display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 13px; color: var(--t3); position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.verify-bar.ok { background: var(--ok-bg); border-color: #BFE8D3; color: var(--ok); }
.verify-bar .slider {
  position: absolute; left: 0; top: 0; bottom: 0; width: 52px; background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .12); display: flex; align-items: center; justify-content: center;
  color: var(--brand); border-radius: var(--r) 0 0 var(--r);
}
.link-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.link-row .lk { color: var(--brand); background: transparent; border: 0; cursor: pointer; font-size: 13px; }
.agree { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--t3); padding: 14px 0 4px; }
.agree a { color: var(--brand); }

/* ---------- 我的 ---------- */
.profile {
  background: var(--brand-grad); color: #fff; padding: 0 16px 26px; position: relative; overflow: hidden;
}
.profile::after {
  content: ''; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.profile .pf-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 26px; background: rgba(255, 255, 255, .20); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; border: 1.5px solid rgba(255, 255, 255, .5); }
.profile .pf-n { font-size: 17px; font-weight: 600; }
.profile .pf-s { font-size: 12px; opacity: .85; margin-top: 3px; }
.profile .pf-stats { display: flex; margin-top: 18px; position: relative; z-index: 2; }
.profile .pf-stats div { flex: 1; text-align: center; }
.profile .pf-stats b { font-size: 18px; font-weight: 700; display: block; }
.profile .pf-stats span { font-size: 11px; opacity: .85; }

/* ---------- 空状态 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; color: var(--t3); font-size: 13px; }
.empty .ei { width: 62px; height: 62px; border-radius: 31px; background: #F1F4F9; display: flex; align-items: center; justify-content: center; color: var(--t4); }

/* ---------- 提示条 ---------- */
.tipbar { display: flex; align-items: center; gap: 8px; background: var(--brand-a08); color: var(--brand); font-size: 12px; padding: 9px 12px; border-radius: var(--r); }
.tipbar.warn { background: var(--warn-bg); color: #B45309; }
.tipbar.danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- 杂项 ---------- */
.divider { height: 1px; background: var(--line-2); }
.flex { display: flex; align-items: center; }
.gap6 { gap: 6px; }
.gap8 { gap: 8px; }
.gap10 { gap: 10px; }
.spacer { flex: 1; }
.txt12 { font-size: 12px; }
.txt13 { font-size: 13px; }
.txt15 { font-size: 15px; }
.c-t2 { color: var(--t2); }
.c-t3 { color: var(--t3); }
.c-brand { color: var(--brand); }
.c-ok { color: var(--ok); }
.c-danger { color: var(--danger); }
.c-warn { color: var(--warn); }
.fw6 { font-weight: 600; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- 总览页（index） ---------- */
.ov-body { background: #F6F8FC; min-height: 100vh; padding: 40px 32px 60px; }
.ov-head { max-width: 1080px; margin: 0 auto 30px; }
.ov-head .ov-logo { width: 54px; height: 54px; margin-bottom: 14px; }
.ov-head h1 { font-size: 26px; font-weight: 700; color: var(--t1); letter-spacing: .5px; }
.ov-head p { font-size: 13px; color: var(--t2); margin-top: 8px; line-height: 1.7; }
.ov-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ov-meta .m { font-size: 12px; color: var(--brand); background: var(--brand-a08); padding: 5px 11px; border-radius: 8px; }
.ov-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.ov-card {
  background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--sh-card);
  border: 1px solid var(--line); transition: .18s; display: block;
}
.ov-card:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); border-color: var(--brand-200); }
.ov-card .oc-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--brand-a08); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ov-card h3 { font-size: 15px; font-weight: 600; color: var(--t1); }
.ov-card .oc-d { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.6; min-height: 38px; }
.ov-card .oc-go { font-size: 12px; color: var(--brand); margin-top: 12px; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.ov-note { max-width: 1080px; margin: 30px auto 0; font-size: 12px; color: var(--t3); line-height: 1.8; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; }

/* =========================================================
   页面级组件（首页 / 地图 / 轨迹 / 详情 等）
   ========================================================= */

/* ---------- 顶部蓝色区域（导航 + 概览一体） ---------- */
.toparea {
  position: relative; z-index: 40; flex: 0 0 auto;
  padding-top: var(--status-h);
  background: var(--brand); color: #fff;
}
.toparea .nav-inner {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  position: relative; z-index: 3;
}
.toparea .nav-side { display: flex; align-items: center; gap: 2px; min-width: 60px; position: relative; z-index: 2; }
.toparea .nav-side.right { justify-content: flex-end; }
.toparea .nav-btn { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.toparea .nav-btn:active { background: rgba(255, 255, 255, .18); }
.toparea .nav-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 17px; font-weight: 600; color: #fff; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 4px; }
.toparea .nav-side.title-side { flex: 1; justify-content: center; }

/* 首页概览 */
.hero { position: relative; z-index: 3; padding: 6px 16px 30px; }
.hero .h-greet { font-size: 12px; opacity: .88; }
.hero .h-name { font-size: 16px; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.hero-stats { display: flex; margin-top: 16px; }
.hero-stats .hs { flex: 1; text-align: center; position: relative; }
.hero-stats .hs + .hs::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .26);
}
.hero-stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; opacity: .88; margin-top: 2px; display: block; }
.home-body {
  position: relative; z-index: 20; margin-top: -18px; background: var(--bg);
  border-radius: 20px 20px 0 0; padding: 14px 12px 16px;
  display: flex; flex-direction: column; gap: 12px; min-height: 320px;
}

/* 首页（对齐线上 V8：白色顶栏 + 宫格 + 概况 + 趋势） */
.navbar.light { background: #fff; box-shadow: 0 1px 0 var(--line); }
.navbar.light .nav-title { color: var(--t1); }
.navbar.light .nav-btn { color: var(--t2); }
.home-flow {
  flex: 1 1 auto; overflow-y: auto; background: var(--bg);
  padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 12px;
}
.home-flow::-webkit-scrollbar { width: 0; }
.home-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(16, 24, 40, .05); padding: 14px; }

/* 整体概况 2×3 */
.ov-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 16px; padding: 2px 0; position: relative; }
.ov-grid3::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: #F0F2F6; }
.ov-grid3 .cell { text-align: center; }
.ov-grid3 .cell b { display: block; font-size: 21px; font-weight: 700; color: var(--t1); font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: .2px; }
.ov-grid3 .cell span { display: block; margin-top: 3px; font-size: 11px; color: #7A8699; }

/* 宫格多色线性图标（专业正式：扁平浅色底 + 线性图标，无渐变） */
.grid-ico.gi-red { background: #FDECEC; color: #E5484D; }
.grid-ico.gi-green { background: #E9F8F0; color: #17B26A; }
.grid-ico.gi-cyan { background: #E7F6FB; color: #0E9BC0; }
.grid-ico.gi-orange { background: #FEF5E7; color: #F79009; }
.grid-ico.gi-purple { background: #F1EDFE; color: #7A5AF8; }
.grid-ico.gi-teal { background: #E6F6F3; color: #0E9F8C; }
.grid-ico.gi-gray { background: #F1F3F7; color: #5A6573; }

/* ---------- 报告 / 画像类页面（专业正式风格） ---------- */
.rp-hero { padding: 14px 16px 16px; color: #fff; }
.rp-hero .rp-title { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rp-hero .rp-sub { font-size: 12px; opacity: .88; margin-top: 4px; }
.rp-hero .rp-kpis { display: flex; margin-top: 14px; }
.rp-hero .rp-kpis > div { flex: 1; text-align: center; position: relative; }
.rp-hero .rp-kpis > div + div::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .25); }
.rp-hero .rp-kpis b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-hero .rp-kpis span { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.score-ring { display: flex; align-items: center; gap: 14px; }
.score-ring .sr-num { font-size: 30px; font-weight: 700; line-height: 1; }
.score-ring .sr-num small { font-size: 13px; font-weight: 400; color: var(--t3); }
.score-ring .sr-meta { flex: 1; font-size: 12px; color: var(--t2); line-height: 1.7; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-list .bl-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bar-list .bl-name { flex: 0 0 92px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-list .bl-track { flex: 1; height: 8px; border-radius: 4px; background: #F0F2F6; overflow: hidden; }
.bar-list .bl-fill { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.bar-list .bl-fill.d { background: var(--danger); }
.bar-list .bl-fill.w { background: var(--warn); }
.bar-list .bl-fill.o { background: var(--ok); }
.bar-list .bl-val { flex: 0 0 44px; text-align: right; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tg { font-size: 12px; padding: 6px 12px; border-radius: 8px; background: #F5F7FA; color: var(--t2); border: 1px solid var(--line); }
.tag-list .tg.hot { background: var(--danger-bg); color: var(--danger); border-color: #F7C8CA; }
.tag-list .tg.mid { background: var(--warn-bg); color: var(--warn); border-color: #F3D9A8; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--t2); }
.legend-row .lg { display: inline-flex; align-items: center; gap: 5px; }
.legend-row .lg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 22px; }

/* 排行名次徽标 */
.rk-badge {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 8px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: #F1F3F7; color: var(--t3);
}
.rk-badge.r1 { background: #FFE9C7; color: #D97706; }
.rk-badge.r2 { background: #E8EDF5; color: #64748B; }
.rk-badge.r3 { background: #FDEFD8; color: #B45309; }
.row .row-val { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .row-val.c-brand { color: var(--brand); }

/* 首页趋势图 */
.hchart { width: 100%; height: auto; display: block; }

/* 首页搜索 */
.home-search {
  display: flex; align-items: center; gap: 8px; height: 40px; background: #fff; border-radius: 20px;
  padding: 0 14px; box-shadow: var(--sh-card); color: var(--t3);
}
.home-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--t1); }
.home-search .s-btn { border: 0; background: var(--brand); color: #fff; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 12px; cursor: pointer; }

/* ---------- 地图页 ---------- */
.map-page { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.map-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.map-tools .seg-mini { display: flex; background: #F1F4F9; border-radius: 8px; padding: 2px; }
.map-tools .seg-mini button { border: 0; background: transparent; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; color: var(--t2); cursor: pointer; }
.map-tools .seg-mini button.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .10); }
.map-count { font-size: 12px; color: var(--t2); }
.map-count b { color: var(--brand); font-weight: 600; }
.veh-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; background: #fff;
  border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(16, 24, 40, .12); padding: 6px 0 10px;
  transform: translateY(101%); transition: transform .24s cubic-bezier(.32, .72, 0, 1);
}
.veh-panel.show { transform: translateY(0); }
.veh-panel .vp-handle { width: 36px; height: 4px; border-radius: 2px; background: #DDE2EA; margin: 4px auto 8px; }
.veh-panel .vp-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 8px; font-size: 13px; color: var(--t3); }
.veh-panel .vp-head b { color: var(--t1); font-size: 14px; }
.veh-panel .vp-scroll { max-height: 250px; overflow-y: auto; }
.veh-panel .vp-scroll::-webkit-scrollbar { width: 0; }
.vp-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.vp-row:active { background: #FAFBFD; }
.vp-row .st { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); flex: 0 0 auto; }
.vp-row .st.on { background: var(--ok); }
.vp-row .st.run { background: var(--brand); }
.vp-row .st.warn { background: var(--warn); }
.vp-row .nm { font-size: 14px; color: var(--t1); font-weight: 500; }
.vp-row .ds { font-size: 11px; color: var(--t3); margin-top: 2px; }

/* ---------- 轨迹回放控制条 ---------- */
.track-ctl { background: #fff; box-shadow: 0 -2px 14px rgba(16, 24, 40, .08); padding: 12px 14px 14px; flex: 0 0 auto; }
.track-prog { display: flex; align-items: center; gap: 10px; }
.track-prog .time { font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-bar { flex: 1; height: 4px; border-radius: 2px; background: #E6EAF1; position: relative; cursor: pointer; }
.track-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--brand); border-radius: 2px; }
.track-bar .knob { position: absolute; left: 38%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(44, 128, 225, .4); }
.track-btns { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.track-btns .grp { display: flex; align-items: center; gap: 10px; }
.track-btns button.ico { width: 38px; height: 38px; border-radius: 19px; border: 0; background: #F1F4F9; color: var(--t2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.track-btns button.ico.main { width: 46px; height: 46px; border-radius: 23px; background: var(--brand); color: #fff; }
.track-btns .spd { height: 30px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--brand-200); background: var(--brand-a08); color: var(--brand); font-size: 12px; font-weight: 600; cursor: pointer; }
.track-info { display: flex; gap: 14px; padding: 10px 14px; background: #fff; box-shadow: 0 1px 0 var(--line); font-size: 12px; color: var(--t2); }
.track-info .ti b { color: var(--t1); font-weight: 600; font-variant-numeric: tabular-nums; }
.track-expand { display: flex; align-items: center; justify-content: center; padding: 6px 0 2px; background: #fff; color: var(--t3); font-size: 11px; }

/* ---------- 车辆详情 ---------- */
.kv-list { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 4px 14px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--t3); }
.kv-row .v { color: var(--t1); font-weight: 500; text-align: right; max-width: 62%; }
.detail-hero {
  background: var(--brand-grad); color: #fff; padding: 2px 16px 22px; position: relative;
}
.detail-hero .dh-t { display: flex; align-items: center; gap: 10px; }
.detail-hero .dh-t .plate-w { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); }
.detail-hero .dh-sub { font-size: 12px; opacity: .88; margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-hero .dh-stats { display: flex; margin-top: 16px; }
.detail-hero .dh-stats div { flex: 1; }
.detail-hero .dh-stats b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-hero .dh-stats span { font-size: 11px; opacity: .85; display: block; margin-top: 2px; }
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 14px 4px; }
.act-grid .ag { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 4px 0; }
.act-grid .ag .ai { width: 40px; height: 40px; border-radius: 13px; background: var(--brand-a08); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.act-grid .ag span { font-size: 11px; color: var(--t2); }

/* ---------- 回放 / 抓拍 文件条目 ---------- */
.file-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.file-row:last-child { border-bottom: 0; }
.file-row .thumb {
  width: 62px; height: 46px; border-radius: 8px; flex: 0 0 auto; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #D8E3F1, #B6C5D9);
}
.file-row .thumb .pi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9); }
.file-row .fm { flex: 1; min-width: 0; }
.file-row .ft { font-size: 13px; font-weight: 500; color: var(--t1); }
.file-row .fs { font-size: 11px; color: var(--t3); margin-top: 4px; display: flex; gap: 8px; }
.file-row .fd { color: var(--brand); flex: 0 0 auto; display: flex; align-items: center; }

/* ---------- 筛选条 ---------- */
.filter-bar { display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 12px; box-shadow: 0 1px 0 var(--line); }
.filter-bar .fb-t { font-size: 13px; color: var(--t2); }
.filter-bar .fb-s { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brand); border: 0; background: transparent; cursor: pointer; }

/* ---------- 设置行 ---------- */
.set-row { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); background: #fff; }
.set-row:last-child { border-bottom: 0; }
.set-row .sr-i { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-a08); color: var(--brand); }
.set-row .sr-t { flex: 1; font-size: 14px; }
.set-row .sr-v { font-size: 12px; color: var(--t3); }
.set-row.danger .sr-i { background: var(--danger-bg); color: var(--danger); }
.set-row.danger .sr-t { color: var(--danger); }

/* ---------- 悬浮主按钮 ---------- */
.fab {
  position: absolute; right: 14px; bottom: 22px; z-index: 30; width: 52px; height: 52px; border-radius: 26px;
  border: 0; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(44, 128, 225, .42); cursor: pointer;
}

/* ---------- 通用行内信息 ---------- */
.info-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; background: #F1F4F9; color: var(--t2); font-size: 12px; }
.pill.on { background: var(--brand-a12); color: var(--brand); }
.pt-status { padding-top: var(--status-h); }

/* =========================================================
   登录 · 安全验证滑块
   ========================================================= */
.verify-bar {
  position: relative; height: 40px; border-radius: 20px;
  background: #EEF1F6; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease; user-select: none; -webkit-user-select: none;
}
.verify-bar .vb-text { font-size: 13px; color: var(--t3); letter-spacing: .3px; transition: color .2s; }
.verify-bar .vb-knob {
  position: absolute; left: 2px; top: 2px; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .18); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  transition: left .3s cubic-bezier(.32, .72, 0, 1), color .2s;
}
.verify-bar.ok { background: var(--brand-a12); cursor: default; }
.verify-bar.ok .vb-text { color: var(--ok); font-weight: 600; }
.verify-bar.ok .vb-knob { left: calc(100% - 38px); color: var(--ok); }

/* =========================================================
   视频回放 · 播放器
   ========================================================= */
.pb-player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg);
  overflow: hidden; background:
    radial-gradient(120% 90% at 50% 20%, #3A4A63 0%, #1E2733 55%, #141A22 100%);
  box-shadow: var(--sh-card); margin-top: 4px;
}
.pb-player::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 96%, rgba(255,255,255,.05) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.pb-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(0,0,0,.42); color: #fff; font-size: 12px;
}
.pb-time {
  position: absolute; top: 10px; right: 12px; z-index: 3; color: #fff; font-size: 12px;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.pb-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--brand);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.pb-bigplay:active { transform: translate(-50%,-50%) scale(.94); }
.pb-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
}
.pb-ctlbtn { width: 38px; height: 38px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.pb-ctlbtn:active { background: rgba(255,255,255,.16); }
.pb-speed {
  height: 30px; padding: 0 12px; border: 0; border-radius: 15px; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pb-timeline { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pb-timeline .pb-ctime, .pb-timeline .pb-ttime { font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-track { flex: 1; height: 5px; border-radius: 3px; background: #E6EAF1; position: relative; cursor: pointer; }
.pb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--brand); border-radius: 3px; }
.pb-knob { position: absolute; left: 35%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(44,128,225,.4); }
