/* ═══════════════════════════════════════════════════════════
   机动车保险驾驶行为数智风控平台 · 大屏样式
   设计基准：1920 × 1080（JS 按视口等比缩放）
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Rajdhani';
  src: url('../assets/fonts/rajdhani-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../assets/fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --bg: #030b1c;
  --panel-hi: rgba(9, 38, 78, .72);
  --panel-lo: rgba(4, 18, 40, .62);
  --line: rgba(0, 190, 255, .24);
  --line-hi: rgba(0, 229, 255, .7);
  --cyan: #19d8ff;
  --cyan2: #3ff2e2;
  --blue: #2f7bff;
  --green: #25e6a5;
  --amber: #ffb43a;
  --red: #ff5257;
  --purple: #8f7bff;
  --gold: #ffd479;
  --text: #dceaff;
  --muted: #7ea3d4;
  --num-font: 'Rajdhani', 'Bahnschrift', 'Segoe UI', 'Arial Narrow', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  color: var(--text);
  position: relative;
}
body::before { /* 全局氛围光 */
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% 118%, rgba(0, 90, 190, .28), transparent 60%),
    radial-gradient(900px 420px at 50% -8%, rgba(0, 110, 220, .17), transparent 65%),
    radial-gradient(700px 500px at 100% 100%, rgba(0, 70, 150, .12), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 70, 150, .12), transparent 60%);
}
body::after { /* 网格 */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(60, 140, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 140, 220, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 55%, #000 30%, transparent 100%);
          mask-image: radial-gradient(1200px 800px at 50% 55%, #000 30%, transparent 100%);
}

/* ── 舞台缩放 ── */
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  display: grid;
  grid-template-columns: 424px 1fr 424px;
  grid-template-rows: 72px 1fr;
  column-gap: 14px;
  padding: 0 16px 14px;
  z-index: 1;
}

/* ═══════════ 头部 ═══════════ */
.header {
  grid-column: 1 / 4;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, rgba(6, 34, 74, .85), rgba(3, 16, 38, .35) 78%, transparent);
  border-bottom: 1px solid rgba(0, 190, 255, .28);
}
.header::before { /* 头部发光线 */
  content: ''; position: absolute; left: 4%; right: 4%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 216, 255, .9), rgba(63, 242, 226, .9), transparent);
  filter: blur(.4px);
}
.header-left { display: flex; align-items: center; gap: 12px; padding-left: 8px; }
.logo-box {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(25, 216, 255, .22), transparent 70%);
  border: 1px solid rgba(0, 229, 255, .35); border-radius: 10px;
  box-shadow: 0 0 14px rgba(25, 216, 255, .25) inset, 0 0 10px rgba(25, 216, 255, .18);
}
.logo-svg { width: 32px; height: 32px; }
.sys-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #eaf6ff; text-shadow: 0 0 12px rgba(25, 216, 255, .6); }
.sys-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }

.header-center { display: flex; align-items: center; gap: 18px; }
.title-wrap { text-align: center; position: relative; padding: 0 6px; }
.main-title {
  font-size: 30px; font-weight: 700; letter-spacing: 6px; white-space: nowrap;
  background: linear-gradient(180deg, #f2ffff 15%, #a8ecff 55%, #33baff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(30, 190, 255, .45));
}
.title-en { font-size: 10px; letter-spacing: 5px; color: rgba(126, 163, 212, .85); margin-top: 2px; font-family: var(--num-font); }
.title-deco {
  width: 60px; height: 10px; position: relative;  /* 210→120→60：header-right 增至三项（互切 chip+返回门户）后再次让位，防溢出视口（2026-11-18） */
}
.title-deco::before {
  content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 216, 255, .8));
}
.title-deco.right::before { background: linear-gradient(90deg, rgba(25, 216, 255, .8), transparent); }
.title-deco::after {
  content: ''; position: absolute; top: 0; width: 9px; height: 9px;
  background: var(--cyan2); transform: rotate(45deg);
  box-shadow: 0 0 10px var(--cyan2);
}
.title-deco.left::after { left: 2px; } .title-deco.right::after { right: 2px; }

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-right: 8px; }
.crumb {
  font-size: 13px; color: var(--muted); letter-spacing: 1px;
  border: 1px solid rgba(0, 190, 255, .3); border-radius: 4px;
  padding: 6px 12px; background: rgba(6, 30, 62, .5);
}
.crumb b { color: var(--cyan2); font-weight: 700; text-shadow: 0 0 8px rgba(63, 242, 226, .6); }
.datetime { text-align: right; font-family: var(--num-font); min-width: 168px; }
.clock { font-size: 27px; font-weight: 700; letter-spacing: 2px; color: #eaf6ff; text-shadow: 0 0 14px rgba(25, 216, 255, .55); line-height: 1; }
.date { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; }

/* ═══════════ 面板通用 ═══════════ */
.col { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; min-height: 0; z-index: 2; }
.panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line);
  position: relative;
  backdrop-filter: blur(2px);
}
.panel::before, .panel::after { /* 角标 */
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--line-hi); border-left: 2px solid var(--line-hi); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--line-hi); border-right: 2px solid var(--line-hi); }
.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 7px;
  border-bottom: 1px solid rgba(0, 190, 255, .14);
  background: linear-gradient(90deg, rgba(0, 120, 220, .16), transparent 60%);
}
.p-dot {
  width: 5px; height: 16px; background: linear-gradient(180deg, var(--cyan2), var(--cyan));
  box-shadow: 0 0 8px rgba(25, 216, 255, .8); border-radius: 1px;
}
.panel-head h3 { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #e6f4ff; }
.p-extra { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.panel-body { flex: 1; min-height: 0; position: relative; padding: 4px 8px 6px; }
.chart { position: absolute; inset: 4px 2px 2px; }

/* 分栏（右下双图） */
.split2 { display: flex; }
.split2 .chart { position: relative; flex: 1; inset: auto; height: 100%; }

/* 面板入场动画 */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-anim="1"] { animation: riseIn .6s .05s both; }
[data-anim="2"] { animation: riseIn .6s .15s both; }
[data-anim="3"] { animation: riseIn .6s .25s both; }
[data-anim="4"] { animation: riseIn .6s .35s both; }

/* ═══════════ KPI 卡片 ═══════════ */
.center { position: relative; min-height: 0; z-index: 1; margin-top: 12px; }
#map { position: absolute; inset: 0; }

.kpi-row {
  position: absolute; top: 6px; left: 2px; right: 2px; z-index: 620;
  display: flex; gap: 12px; pointer-events: none;
}
.kpi-card {
  pointer-events: auto; flex: 1.5; height: 108px;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;  /* gap/padding 收窄：防标签截断（2026-11-17） */
  background: linear-gradient(180deg, rgba(10, 42, 86, .82), rgba(4, 20, 44, .68));
  border: 1px solid var(--line); border-radius: 6px;
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25, 216, 255, .75), transparent);
}
.kpi-card.slim { flex: .72; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 8px 14px 6px; }
.kpi-ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(25, 216, 255, .16), transparent 75%);
  border: 1px solid rgba(0, 229, 255, .3); border-radius: 50%;
  box-shadow: 0 0 16px rgba(25, 216, 255, .22) inset;
}
.kpi-ico svg { width: 24px; height: 24px; }
.kpi-main { min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-num { font-family: var(--num-font); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: 1px; color: #f2fbff;
  text-shadow: 0 0 16px rgba(25, 216, 255, .55); font-variant-numeric: tabular-nums; }
.num-lg { font-size: 30px; }
.c-cyan { color: #52f0ff; } .c-green { color: var(--green); } .c-amber { color: var(--amber); }
.c-red { color: var(--red); } .c-purple { color: #b3a1ff; } .c-gold { color: var(--gold); }
.kpi-note { font-size: 11px; color: rgba(126, 163, 212, .75); letter-spacing: 1px; }
.kpi-subs { display: flex; gap: 6px; margin-left: auto; padding-left: 6px; border-left: 1px solid rgba(0, 190, 255, .16); }
.kpi-sub { flex: 0 0 auto; min-width: 0; }  /* flex:1→自然宽：防子标签互相叠压（2026-11-17） */
.kpi-sub-label { font-size: 11px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.kpi-sub-num { font-family: var(--num-font); font-size: 18px; font-weight: 700; color: #dff4ff; text-shadow: 0 0 10px rgba(25, 216, 255, .4); }
.kpi-sub-note { font-size: 9.5px; color: rgba(126, 163, 212, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub-note b { color: var(--cyan2); font-family: var(--num-font); font-size: 11.5px; }
.spark { position: absolute; right: 12px; bottom: 8px; width: 96px; height: 26px; opacity: .85; }
.kpi-card.slim .spark { top: 40px; bottom: auto; }  /* 避让底部小注，防文字被走势图盖住（2026-11-17） */

/* ═══════════ 地图控件 ═══════════ */
.leaflet-container { background: transparent; font-family: inherit; }
.map-toolbar {
  position: absolute; top: 126px; right: 2px; z-index: 810;
  display: flex; flex-direction: column; gap: 8px;
}
.tool-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10, 42, 86, .9), rgba(4, 20, 44, .8));
  border: 1px solid rgba(0, 190, 255, .4); border-radius: 6px;
  color: #8fe9ff; cursor: pointer; transition: all .2s;
}
.tool-btn:hover { color: #fff; border-color: var(--line-hi); box-shadow: 0 0 12px rgba(25, 216, 255, .4); }
.tool-btn svg { width: 17px; height: 17px; }

.map-layers {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 620; display: flex; align-items: center; gap: 12px;
}
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; letter-spacing: 1px; color: #bfe3ff;
  background: linear-gradient(180deg, rgba(10, 42, 86, .88), rgba(4, 20, 44, .8));
  border: 1px solid rgba(0, 190, 255, .38); border-radius: 20px;
  padding: 7px 16px; cursor: pointer; transition: all .2s; font-family: inherit;
  white-space: nowrap;
}
.chip-btn:hover { border-color: var(--line-hi); }
.chip-btn .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-btn.active { box-shadow: 0 0 12px rgba(25, 216, 255, .3), 0 0 12px rgba(25, 216, 255, .3) inset; }
.chip-btn:not(.active) { opacity: .55; }
.dot.c-cyan { background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.dot.c-red { background: var(--red); box-shadow: 0 0 7px var(--red); }
.legend-tip { font-size: 11px; color: rgba(126, 163, 212, .8); letter-spacing: 1px; white-space: nowrap; }
.dot.c-heat { background: #ff8c42; box-shadow: 0 0 7px #ff8c42; }

/* 风险热力图例色带（与 utils.heatColor 渐变一致） */
.heat-legend {
  position: absolute; left: 2px; top: 128px; z-index: 620;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 42, 86, .88), rgba(4, 20, 44, .8));
  border: 1px solid rgba(0, 190, 255, .38);
  transition: opacity .3s;
}
.heat-legend.off { opacity: .3; }
.hl-title { font-size: 12px; color: #bfe3ff; letter-spacing: 1px; }
.hl-bar {
  width: 120px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #1d6fd6 0%, #18c8e8 30%, #3ff2b4 50%, #ffd166 68%, #ff8c42 82%, #ff4d5e 100%);
  box-shadow: 0 0 10px rgba(255, 140, 66, .35);
}
.hl-lo, .hl-hi { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.map-credit {
  position: absolute; right: 8px; bottom: 8px; z-index: 620;
  font-size: 9.5px; color: rgba(126, 163, 212, .55); letter-spacing: .5px;
  pointer-events: none;
}

/* 地图提示浮窗 */
.map-tip {
  background: linear-gradient(180deg, rgba(8, 38, 78, .95), rgba(4, 20, 44, .95)) !important;
  border: 1px solid rgba(0, 229, 255, .5) !important; border-radius: 5px !important;
  box-shadow: 0 4px 18px rgba(0, 10, 30, .6), 0 0 12px rgba(25, 216, 255, .2) !important;
  color: var(--text) !important; padding: 8px 12px !important; font-size: 12px;
}
.map-tip .tip-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 1px; margin-bottom: 4px; }
.map-tip .tip-row { display: flex; justify-content: space-between; gap: 18px; line-height: 1.7; }
.map-tip .tip-row b { font-family: var(--num-font); color: var(--cyan2); font-size: 13px; }
.map-tip .tip-row.warn b { color: var(--amber); }
.map-tip::before { border-top-color: rgba(0, 229, 255, .5) !important; }

/* ═══════════ 地图覆盖层 ═══════════ */
.gm-geo { filter: drop-shadow(0 0 2px rgba(25, 216, 255, .55)); }
.gm-citygeo { filter: drop-shadow(0 0 3px rgba(80, 230, 255, .5)); }
.gm-sealine { fill: none !important; }

@keyframes flydash { to { stroke-dashoffset: -280; } }
.fly-line {
  fill: none !important;
  stroke-dasharray: 5 11;
  animation: flydash 2.8s linear infinite;
}
.fly-line-glow { fill: none !important; }

/* 车辆脉冲标记 */
.v-marker, .a-marker {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: var(--s, 44px); height: var(--s, 44px);
  pointer-events: auto;
}
.v-marker .core, .a-marker .core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(var(--s) * .2); height: calc(var(--s) * .2); border-radius: 50%;
  background: var(--mc, var(--cyan));
  box-shadow: 0 0 calc(var(--s) * .22) var(--mc, var(--cyan)), 0 0 calc(var(--s) * .34) rgba(255, 255, 255, .4) inset;
}
.v-marker .ring, .a-marker .ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  width: var(--s); height: var(--s);
  border: 1.5px solid var(--mc, var(--cyan));
  transform: translate(-50%, -50%) scale(.2);
  opacity: .95;
  animation: pulse 2.6s ease-out infinite;
}
.v-marker .ring.r2 { animation-delay: 1.3s; }
.a-marker .ring { animation-duration: 1.6s; }
.a-marker .ring.r2 { animation-delay: .8s; }
.a-marker .core { --mc: var(--red); }
.a-marker { --mc: rgba(255, 82, 87, .9); }
.v-marker.risk-hi { --mc: rgba(255, 130, 60, .95); }
.v-marker.risk-mid { --mc: rgba(255, 190, 70, .9); }
.v-marker .tag, .a-marker .tag {
  position: absolute; left: 55%; top: 6%;
  font-size: 11px; color: #cfeaff; letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 40, 90, .9);
  white-space: nowrap; font-family: inherit;
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(.18); opacity: .95; }
  70% { opacity: .25; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.zoomed-deep .v-marker .tag, .zoomed-deep .a-marker .tag { display: none; }

/* 省市名称标注 */
.prov-label, .city-label, .dist-label {
  transform: translate(-50%, -50%);
  white-space: nowrap; letter-spacing: 2px;
  font-size: 13px; font-weight: 700; color: #cfeeff;
  text-shadow: 0 0 8px rgba(0, 50, 110, .95), 0 0 3px rgba(25, 216, 255, .8);
  pointer-events: none !important;
}
.city-label { font-size: 12px; font-weight: 500; color: #bfe2ff; letter-spacing: 1px; }
.dist-label { font-size: 11.5px; font-weight: 500; color: #bfe2ff; letter-spacing: 1px; }
.hide-marker-tags .v-marker .tag { display: none; }
.hide-adminlabels .city-label, .hide-adminlabels .dist-label { display: none; }

/* ═══════════ UBI 保费面板 ═══════════ */
.ubi-body { display: flex; flex-direction: column; padding: 6px 14px 8px; }
.ubi-top { position: relative; text-align: center; padding: 2px 0 0; }
.ubi-arcs { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: 246px; height: 60px; opacity: .9; }
.ubi-arcs .arc { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.ubi-arcs .a1 { stroke: url(#ug1); stroke-dasharray: 90 260; animation: arcflow 3.2s linear infinite; }
.ubi-arcs .a2 { stroke: url(#ug1); stroke-dasharray: 70 260; animation: arcflow 2.7s .5s linear infinite; opacity: .8; }
.ubi-arcs .a3 { stroke: url(#ug1); stroke-dasharray: 50 260; animation: arcflow 2.2s .9s linear infinite; opacity: .6; }
@keyframes arcflow { to { stroke-dashoffset: -330; } }
.ubi-num { position: relative; font-family: var(--num-font); font-size: 15px; color: var(--gold); letter-spacing: 2px; z-index: 1; }
.ubi-num b { font-size: 33px; font-weight: 700; letter-spacing: 1px; margin-left: 6px;
  background: linear-gradient(180deg, #fff7e3, #ffd479 70%, #d8a24a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 200, 100, .35)); }
.ubi-sub { position: relative; font-size: 11px; color: var(--muted); letter-spacing: 1px; z-index: 1; }
.ubi-sub b { color: #ffc86b; font-family: var(--num-font); font-size: 12px; }
.ubi-items {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 8px;
}
.ubi-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid rgba(0, 190, 255, .2); border-radius: 5px; padding: 6px 2px 6px;
  background: linear-gradient(180deg, rgba(0, 90, 170, .22), rgba(0, 40, 90, .1));
  position: relative; overflow: hidden;
}
.ubi-item::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 242, 226, .6), transparent); }
.ubi-item svg { width: 20px; height: 20px; }
.ubi-item span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.ubi-item b { font-family: var(--num-font); font-size: 14.5px; font-weight: 700; color: #eaf6ff; }
.ubi-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; min-height: 0; }
.ubi-rate {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: rgba(6, 30, 62, .45); border-radius: 4px; overflow: hidden;
}
.ubi-rate b { font-family: var(--num-font); font-size: 17px; font-weight: 700; }
.ubi-rate span { font-size: 10px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* ═══════════ TOP5 列表 ═══════════ */
.top5-head {
  display: grid; grid-template-columns: 1fr 64px 76px; gap: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
  padding: 2px 4px 6px; border-bottom: 1px dashed rgba(0, 190, 255, .18);
}
.top5-list { position: absolute; inset: 30px 2px 4px; padding: 0 2px; overflow: hidden; }
.t5-row {
  display: grid; grid-template-columns: 1fr 64px 76px; gap: 8px; align-items: center;
  height: 19.6%; padding: 0 4px;
  will-change: transform;
}
.t5-rank {
  width: 20px; height: 20px; display: grid; place-items: center; flex: none;
  font-family: var(--num-font); font-size: 13px; font-weight: 700; color: #041428;
  background: linear-gradient(180deg, #3ff2e2, #19d8ff);
  border-radius: 4px; box-shadow: 0 0 8px rgba(25, 216, 255, .5);
}
.t5-row:nth-child(1) .t5-rank { background: linear-gradient(180deg, #ffe08a, #ffb43a); box-shadow: 0 0 8px rgba(255, 180, 58, .55); }
.t5-row:nth-child(2) .t5-rank { background: linear-gradient(180deg, #d9f3ff, #7fc8ff); }
.t5-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t5-line1 { display: flex; align-items: baseline; gap: 8px; }
.t5-plate { font-family: var(--num-font); font-size: 15.5px; font-weight: 700; color: #eaf6ff; letter-spacing: 1px; }
.t5-city { font-size: 11px; color: var(--muted); }
.t5-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.t5-bar i { display: block; height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, #19d8ff, #ff5257);
  box-shadow: 0 0 6px rgba(255, 90, 90, .5); transition: width .8s cubic-bezier(.22, 1, .36, 1); }
.t5-score { font-family: var(--num-font); font-size: 16px; font-weight: 700; color: var(--red); text-align: right;
  text-shadow: 0 0 8px rgba(255, 82, 87, .4); }
.t5-speed { font-family: var(--num-font); font-size: 14px; color: var(--amber); text-align: right; }

/* ═══════════ 预警播报 ═══════════ */
.feed { position: absolute; inset: 2px 2px 4px; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.feed-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center;
  padding: 4px 8px; border-radius: 4px; flex: none;
  background: linear-gradient(90deg, rgba(0, 90, 170, .18), rgba(0, 40, 90, .06));
  border-left: 2px solid var(--cyan);
  animation: feedIn .5s ease-out both;
}
.feed-item.lv-high { border-left-color: var(--red); background: linear-gradient(90deg, rgba(255, 82, 87, .16), rgba(255, 82, 87, .03)); }
.feed-item.lv-mid { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(255, 180, 58, .13), rgba(255, 180, 58, .03)); }
@keyframes feedIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.feed-time { font-family: var(--num-font); font-size: 12px; color: var(--muted); }
.feed-mid { min-width: 0; }
.feed-line1 { font-size: 12.5px; color: #e6f2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-line1 b { font-family: var(--num-font); letter-spacing: .5px; color: var(--cyan2); }
.feed-line2 { font-size: 10.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-tag { font-size: 10px; padding: 2px 7px; border-radius: 3px; letter-spacing: 1px; flex: none;
  color: var(--cyan); border: 1px solid rgba(25, 216, 255, .4); }
.lv-high .feed-tag { color: var(--red); border-color: rgba(255, 82, 87, .5); }
.lv-mid .feed-tag { color: var(--amber); border-color: rgba(255, 180, 58, .5); }
.live-tag i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  margin-right: 4px; animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ═══════════ 周趋势切换按钮 ═══════════ */
.seg-btns { margin-left: auto; display: flex; gap: 0; border: 1px solid rgba(0, 190, 255, .3); border-radius: 4px; overflow: hidden; }
.seg-btn {
  font-size: 11px; padding: 3px 10px; background: transparent; color: var(--muted);
  border: none; cursor: pointer; letter-spacing: 1px; font-family: inherit; transition: all .2s;
}
.seg-btn + .seg-btn { border-left: 1px solid rgba(0, 190, 255, .3); }
.seg-btn.active { background: linear-gradient(180deg, rgba(25, 216, 255, .3), rgba(25, 216, 255, .12)); color: #eaffff; }
.p-extra + .seg-btns { margin-left: 8px; }
.panel-head .p-extra { margin-left: auto; }
.panel-head .seg-btns { margin-left: auto; }

/* ═══════════ ECharts 提示框统一 ═══════════ */
.gm-chart-tip {
  background: rgba(6, 28, 58, .92) !important;
  border: 1px solid rgba(0, 190, 255, .4) !important;
  color: var(--text) !important; border-radius: 4px !important;
  box-shadow: 0 4px 14px rgba(0, 8, 24, .5) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(25, 216, 255, .35); border-radius: 2px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }

/* 轻提示 */
#toast {
  position: fixed; left: 50%; top: 14%; transform: translateX(-50%) translateY(-8px);
  padding: 10px 22px; border-radius: 6px; z-index: 2000;
  background: linear-gradient(180deg, rgba(10, 44, 90, .96), rgba(5, 24, 52, .96));
  border: 1px solid rgba(0, 229, 255, .55); color: #d9f4ff; font-size: 14px; letter-spacing: 1px;
  box-shadow: 0 6px 24px rgba(0, 10, 30, .6), 0 0 14px rgba(25, 216, 255, .25);
  opacity: 0; pointer-events: none; transition: all .35s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 小屏提示 */
@media (max-width: 900px) {
  body::before { content: '建议在 ≥1280 宽度的屏幕浏览本大屏'; position: fixed; inset: 0;
    display: grid; place-items: center; color: var(--cyan); font-size: 14px;
    background: var(--bg); opacity: 1; z-index: 99; }
}


/* ---- 车险风控平台融合追加（v0.12.10）：装载 veil / 返回门户 ---- */
.veil { position: fixed; inset: 0; background: rgba(2,12,28,.92); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 999; }
.veil-box { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #9fdcff; font-size: 15px; letter-spacing: 2px; }
.veil-ring { width: 56px; height: 56px; border-radius: 999px; border: 3px solid rgba(25,216,255,.15); border-top-color: #19d8ff; animation: veilSpin 1s linear infinite; }
@keyframes veilSpin { to { transform: rotate(360deg); } }
.back-portal { margin-left: 14px; padding: 5px 12px; border: 1px solid rgba(25,216,255,.4); border-radius: 6px; color: #9fdcff; font-size: 12px; transition: all .2s; }
.back-portal:hover { color: #eaf6ff; border-color: #19d8ff; background: rgba(25,216,255,.12); }

.sys-tag .sys-name { white-space: nowrap; }
.header-right { flex-wrap: nowrap; }
.header-right .datetime { flex: none; }
.crumb, .back-portal { white-space: nowrap; }
.map-credit { font-size: 10px; opacity: .8; white-space: nowrap; overflow: hidden; }


/* ---- v0.12.11：①率值卡重叠修复 ②地图全屏（左右列悬浮）③第二屏 Top 榜（页面可滚动） ---- */
.ubi-rate b { font-size: 16px; }
.ubi-rate span { white-space: normal; text-align: center; line-height: 1.25; font-size: 10px; padding: 0 2px; }
.ubi-rates { gap: 6px; }

html, body { overflow-y: auto !important; overflow-x: hidden; }
.stage { position: relative; top: 0; left: 50%; transform: translateX(-50%) scale(var(--stage-scale, 1)); transform-origin: top center; margin: 0; }
.center { position: absolute; left: 0; top: 0; right: 0; bottom: 0; margin: 0; z-index: 1; }
#map { position: absolute; inset: 0; background: #071630; }
.col { z-index: 5; }
.col .panel { background: linear-gradient(180deg, rgba(10,34,72,.90), rgba(4,16,38,.84)); }
.header { z-index: 8; }
.kpi-row { left: 448px; right: 448px; }

.stage-ext { position: relative; left: 50%; width: 1920px; transform: translateX(-50%) scale(var(--stage-scale, 1)); transform-origin: top center; padding: 4px 16px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stage-ext .panel { height: 480px; min-height: 0; }
.rank-list { flex: 1; min-height: 0; overflow: hidden; }
.rank-row2 { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 6px; border-bottom: 1px solid rgba(25,216,255,.10); }
.rank-row2 .r2-no { width: 30px; font: 700 18px var(--num-font, Rajdhani, Bahnschrift, sans-serif); color: var(--cyan); text-align: center; }
.rank-row2 .r2-main { flex: 1; min-width: 0; }
.rank-row2 .r2-name { font-size: 14px; color: #eaf6ff; display: flex; gap: 8px; align-items: baseline; }
.rank-row2 .r2-name small { color: var(--muted); font-size: 11px; }
.rank-row2 .r2-bar { height: 6px; background: rgba(120,170,240,.10); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.rank-row2 .r2-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(25,216,255,.35), #19d8ff); }
.rank-row2 .r2-vals { width: 190px; text-align: right; font-family: var(--num-font, Rajdhani, Bahnschrift, sans-serif); flex: none; }
.rank-row2 .r2-vals b { font-size: 17px; color: #eaf6ff; }
.rank-row2 .r2-vals small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---- v0.12.11 布局修正：stage 改块级，header/左右列/中央绝对定位（地图全屏底层） ---- */
.stage { display: block; height: 1080px; }
.header { position: absolute; top: 0; left: 16px; right: 16px; height: 72px; margin: 0; z-index: 8; }
.center { position: absolute; left: 0; top: 84px; right: 0; bottom: 14px; margin: 0; z-index: 1; }
.col.left { position: absolute; left: 16px; top: 84px; bottom: 14px; width: 424px; margin: 0; z-index: 5; }
.col.right { position: absolute; right: 16px; top: 84px; bottom: 14px; width: 424px; margin: 0; z-index: 5; }
.kpi-row { left: 452px; right: 452px; }

/* ---- v0.12.11b：①工具条移出右列遮挡区（中带右上） ②第二屏间隔收紧 ③宽度自适应下垂直滚动 ---- */
/* ---- v0.12.12：保司专属大屏（核心指标瓦片 + 右列面板配比） ---- */
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: 1; min-height: 0; }
.core-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(180deg, rgba(0, 90, 170, .22), rgba(0, 40, 90, .1));
  border: 1px solid rgba(0, 190, 255, .2); border-radius: 5px; overflow: hidden; }
.core-tile b { font-family: var(--num-font); font-size: 22px; font-weight: 700; }
.core-tile span { font-size: 10px; color: var(--muted); }
.col.right .panel[data-anim='1'] { flex: 0.9; }
.col.right .panel[data-anim='2'] { flex: 1.05; }
.col.right .panel[data-anim='3'] { flex: 1.0; }
.col.right .panel[data-anim='4'] { flex: 0.85; }

.map-toolbar { right: 456px; top: 212px; }
.center { bottom: 8px; }
.stage-ext { padding-top: 0; }

/* ---- v0.12.11c：SDR 面板挤压修复（右列高度再平衡+内部压缩） ---- */
.col.right .panel[data-anim="1"] { flex: 1.22; }
.col.right .panel[data-anim="4"] { flex: .88; }
.ubi-body { overflow: hidden; }
.ubi-arcs { top: 0; height: 38px; }
.ubi-num b { font-size: 26px; }
.ubi-items { margin: 5px 0 5px; }
.ubi-item { padding: 3px 2px; gap: 2px; }
.ubi-item svg { width: 19px; height: 19px; }
.ubi-item span { font-size: 10px; white-space: nowrap; }
.ubi-item b { font-size: 13.5px; }
.ubi-rate b { font-size: 15px; }
.ubi-rate span { font-size: 10px; }
