/* ============================================================
   路南区领导驾驶舱 · 深色大屏样式（无第三方库、无 CDN）
   动效默认强制开启，不随系统「减少动态效果」设置关闭；
   页面隐藏时由 board.js 给 body 加 anim-paused 统一暂停。
   ============================================================ */

:root {
  --bg-deep: #050d1f;
  --bg-panel: rgba(13, 31, 63, .72);
  --bg-panel-2: rgba(10, 26, 54, .86);
  --line-glow: rgba(64, 158, 255, .38);
  --line-soft: rgba(80, 140, 220, .18);

  --cyan: #59d6ff;
  --cyan-soft: #7fe3ff;
  --blue: #3d8bff;
  --gold: #f0c453;
  --green: #3ddc97;
  --orange: #ffab4a;
  --red: #ff5f56;
  --purple: #9d7bff;

  --ink-hi: #eaf4ff;
  --ink-mid: #a8c2e4;
  --ink-low: #6d87ad;

  --font-num: "DIN Alternate", "Bahnschrift", "Consolas", "Microsoft YaHei", monospace;

  --top-h: 72px;
  --theme-h: 46px;
  --foot-h: 30px;

  --ease-out: cubic-bezier(.22, .9, .32, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .44, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--ink-hi);
  min-height: 100vh;
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
}
body.anim-paused *, body.anim-paused *::before, body.anim-paused *::after {
  animation-play-state: paused !important;
}
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 背景氛围 ---------- */
.board {
  position: relative;
  width: 100%;
  min-width: 1240px;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(42, 108, 220, .28), transparent 70%),
    radial-gradient(700px 380px at 88% 110%, rgba(28, 92, 180, .2), transparent 70%),
    radial-gradient(600px 340px at 6% 108%, rgba(89, 214, 255, .1), transparent 70%),
    var(--bg-deep);
  overflow: hidden;
}
.board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(70, 140, 230, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 140, 230, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 78%);
}
.board > * { position: relative; z-index: 1; }

/* ---------- 顶部 ---------- */
.bd-top {
  height: var(--top-h); flex: none;
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(14, 38, 78, .9), rgba(8, 22, 48, .55));
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.bd-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
  opacity: .55; animation: topGlow 4s ease-in-out infinite;
}
@keyframes topGlow { 0%, 100% { opacity: .3; } 50% { opacity: .75; } }

.bd-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.bd-emblem {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 4px 16px rgba(212, 160, 23, .35);
}
.bd-title {
  font-size: 24px; letter-spacing: 2px; font-weight: 700;
  background: linear-gradient(180deg, #ffffff 20%, #9fd8ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 18px rgba(89, 214, 255, .25);
  white-space: nowrap;
}
.bd-subtitle { font-size: 12px; color: var(--ink-low); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-badge {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold); border: 1px solid rgba(240, 196, 83, .55);
  background: rgba(240, 196, 83, .1);
  border-radius: 4px; padding: 3px 10px;
  animation: demoBlink 2.6s ease-in-out infinite;
}
@keyframes demoBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 196, 83, 0); } 50% { box-shadow: 0 0 14px 0 rgba(240, 196, 83, .35); } }

.bd-top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.bd-clock { text-align: right; line-height: 1.25; margin-right: 4px; }
.bd-clock-time {
  display: block; font-family: var(--font-num); font-size: 22px; font-weight: 700;
  color: var(--cyan); letter-spacing: 2px; text-shadow: 0 0 14px rgba(89, 214, 255, .5);
  font-variant-numeric: tabular-nums;
}
.bd-clock-date { font-size: 12px; color: var(--ink-mid); }

.bd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-glow); border-radius: 6px;
  background: rgba(38, 92, 170, .22); color: var(--cyan-soft);
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  transition: all .2s var(--ease-out); white-space: nowrap;
}
.bd-btn:hover { background: rgba(64, 140, 235, .4); color: #fff; box-shadow: 0 0 16px rgba(89, 214, 255, .35); transform: translateY(-1px); }
.bd-btn:active { transform: translateY(0) scale(.97); }
.bd-btn-sm { padding: 5px 10px; font-size: 12px; }
.bd-btn-warn {
  border-color: rgba(240, 196, 83, .6); color: var(--gold);
  background: linear-gradient(180deg, rgba(240, 196, 83, .22), rgba(240, 196, 83, .08));
  font-weight: 700;
}
.bd-btn-warn:hover { box-shadow: 0 0 18px rgba(240, 196, 83, .45); color: #ffe9ad; background: rgba(240, 196, 83, .3); }

/* ---------- 主题轮播条 ---------- */
.bd-themes {
  height: var(--theme-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 18, 40, .6);
}
.theme-tabs { display: flex; gap: 8px; flex: 1; min-width: 0; }
.theme-tab {
  position: relative; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--ink-mid);
  padding: 7px 18px; font-size: 14px; cursor: pointer;
  transition: all .22s var(--ease-out); overflow: hidden;
}
.theme-tab:hover { color: var(--cyan-soft); background: rgba(64, 140, 235, .15); }
.theme-tab.active {
  color: #fff; font-weight: 700; border-color: var(--line-glow);
  background: linear-gradient(180deg, rgba(61, 139, 255, .4), rgba(61, 139, 255, .12));
  box-shadow: 0 0 16px rgba(61, 139, 255, .3), inset 0 0 12px rgba(89, 214, 255, .12);
}
.theme-tab.active::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.theme-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.rotate-progress {
  width: 130px; height: 5px; border-radius: 3px; overflow: hidden;
  background: rgba(90, 140, 200, .2);
}
.rotate-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(89, 214, 255, .6);
}
.rotate-hint { font-size: 11px; color: var(--ink-low); white-space: nowrap; }

/* ---------- 主体三栏 ---------- */
.bd-main {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 24% 1fr 24%;
  gap: 12px;
  padding: 12px 14px 8px;
}
.bd-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow: hidden; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  backdrop-filter: blur(3px);
  animation: panelIn .5s var(--ease-out) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--cyan); opacity: .6;
}
.panel::before { left: -1px; top: -1px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); border-radius: 10px 0 0 0; }
.panel::after { right: -1px; bottom: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); border-radius: 0 0 10px 0; }

.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.panel-head h2 {
  font-size: 15px; color: var(--ink-hi); letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.panel-head h2::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 8px rgba(89, 214, 255, .6);
}
.panel-head .panel-note { font-size: 11px; color: var(--ink-low); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-head .head-right { margin-left: auto; font-size: 11px; color: var(--ink-low); flex: none; }

/* ---------- 数字滚轮 ---------- */
.od {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  line-height: 1; white-space: nowrap;
}
.od-digit {
  display: inline-block; height: 1em; overflow: hidden; vertical-align: baseline;
}
.od-col {
  display: flex; flex-direction: column; text-align: center;
  transition: transform 1s cubic-bezier(.2, .8, .25, 1);
  will-change: transform;
}
.od-col span { height: 1em; line-height: 1; display: block; }
.od-fixed { display: inline-block; height: 1em; line-height: 1; }

/* ---------- 指标卡 ---------- */
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card {
  background: linear-gradient(160deg, rgba(30, 66, 125, .5), rgba(12, 28, 58, .6));
  border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 9px 11px; position: relative; overflow: hidden;
  animation: panelIn .45s var(--ease-out) both;
  transition: border-color .25s, box-shadow .25s;
}
.metric-card:hover { border-color: var(--line-glow); box-shadow: 0 0 14px rgba(64, 158, 255, .2); }
.metric-card .m-label { font-size: 12px; color: var(--ink-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card .m-value {
  margin-top: 4px; font-size: 24px; font-weight: 700; color: #fff;
  text-shadow: 0 0 16px rgba(89, 214, 255, .35);
  display: flex; align-items: baseline; gap: 3px;
}
.metric-card .m-unit { font-size: 12px; color: var(--ink-mid); font-weight: 400; }
.metric-card .m-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--ink-low); }
.m-delta { font-weight: 700; }
.m-delta.up { color: var(--green); }
.m-delta.down { color: var(--red); }
.m-delta.flat { color: var(--ink-low); }

/* 评分环/条 */
.score-hero { display: flex; align-items: center; gap: 14px; }
.score-ring { position: relative; width: 108px; height: 108px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: rgba(90, 140, 200, .18); stroke-width: 9; }
.score-ring .ring-val {
  fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease-out);
  filter: drop-shadow(0 0 6px rgba(89, 214, 255, .6));
}
.score-ring .ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 25px; font-weight: 800; color: #fff; font-family: var(--font-num);
  text-shadow: 0 0 14px rgba(89, 214, 255, .6);
}
.score-ring .ring-num small { font-size: 11px; color: var(--ink-mid); font-weight: 400; }
.score-hero .sh-meta { min-width: 0; }
.score-hero .sh-level { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.score-hero .sh-text { font-size: 12px; color: var(--ink-mid); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.dim-row { display: grid; grid-template-columns: 58px 1fr 56px; gap: 8px; align-items: center; padding: 5px 0; }
.dim-row .d-name { font-size: 12px; color: var(--ink-mid); white-space: nowrap; }
.dim-row .d-track { height: 8px; border-radius: 4px; background: rgba(90, 140, 200, .15); overflow: hidden; }
.dim-row .d-fill {
  display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(89, 214, 255, .5);
  transition: width .9s var(--ease-out);
}
.dim-row .d-num { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--cyan-soft); text-align: right; }

/* ---------- 列表 ---------- */
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 6px; font-size: 13px;
  animation: rowIn .4s var(--ease-out) both;
  transition: background-color .2s;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.rank-row:hover { background: rgba(64, 140, 235, .12); }
.rank-row .rk-no {
  width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; font-family: var(--font-num);
  background: rgba(90, 140, 200, .18); color: var(--ink-mid);
}
.rank-row:nth-child(1) .rk-no { background: linear-gradient(135deg, #ffd75e, #d4a017); color: #20180a; box-shadow: 0 0 10px rgba(240, 196, 83, .5); }
.rank-row:nth-child(2) .rk-no { background: linear-gradient(135deg, #dbe7f5, #93a7c6); color: #152238; }
.rank-row:nth-child(3) .rk-no { background: linear-gradient(135deg, #e8a06c, #b06a35); color: #241203; }
.rank-row .rk-name { color: var(--ink-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rk-sub { font-size: 11px; color: var(--ink-low); }
.rank-row .rk-val { font-family: var(--font-num); font-weight: 700; color: var(--cyan-soft); font-size: 14px; }

.risk-item {
  border: 1px solid var(--line-soft); border-left: 3px solid var(--orange);
  background: rgba(20, 42, 80, .45); border-radius: 6px;
  padding: 7px 10px; margin-bottom: 7px;
  animation: rowIn .4s var(--ease-out) both;
}
.risk-item.lv-高, .risk-item.lv-red { border-left-color: var(--red); }
.risk-item.lv-中, .risk-item.lv-orange { border-left-color: var(--orange); }
.risk-item.lv-低, .risk-item.lv-blue { border-left-color: var(--blue); }
.risk-item .ri-title { font-size: 13px; font-weight: 600; color: var(--ink-hi); display: flex; gap: 8px; align-items: center; }
.risk-item .ri-meta { font-size: 11px; color: var(--ink-low); margin-top: 3px; line-height: 1.5; }
.risk-tag {
  flex: none; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 1px 6px;
  background: rgba(255, 171, 74, .16); color: var(--orange); border: 1px solid rgba(255, 171, 74, .4);
}
.risk-tag.高, .risk-tag.red { background: rgba(255, 95, 86, .16); color: var(--red); border-color: rgba(255, 95, 86, .45); animation: tagPulse 1.8s infinite; }
.risk-tag.低, .risk-tag.blue { background: rgba(61, 139, 255, .16); color: var(--cyan-soft); border-color: rgba(61, 139, 255, .4); animation: none; }
@keyframes tagPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); } 50% { box-shadow: 0 0 10px 0 rgba(255, 95, 86, .5); } }

.event-line {
  display: flex; gap: 8px; align-items: baseline; padding: 6px 4px;
  border-bottom: 1px dashed rgba(80, 140, 220, .15); font-size: 12px;
  animation: rowIn .35s var(--ease-out) both;
}
.event-line:last-child { border-bottom: 0; }
.event-line .ev-time { flex: none; font-family: var(--font-num); color: var(--ink-low); font-size: 11px; }
.event-line .ev-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); align-self: center; }
.event-line .ev-dot.lv-urgent { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 86, .7); }
.event-line .ev-dot.lv-high { background: var(--orange); }
.event-line .ev-title { flex: 1; min-width: 0; color: var(--ink-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-line .ev-dept { flex: none; color: var(--ink-low); font-size: 11px; }

/* ---------- 中央地图 ---------- */
.bd-col-c { gap: 12px; }
.map-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-stage {
  position: relative; flex: 1; min-height: 0;
  border-radius: 8px; overflow: hidden;
}
.map-grid-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(30, 90, 180, .2), transparent 72%),
    repeating-linear-gradient(0deg, rgba(70, 140, 230, .06) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(70, 140, 230, .06) 0 1px, transparent 1px 30px);
}
.map-mount { position: absolute; inset: 0; }
.map-mount svg { width: 100%; height: 100%; display: block; }

.map-scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.map-scan::before {
  content: ""; position: absolute; left: -10%; right: -10%; height: 90px; top: -25%;
  background: linear-gradient(180deg, transparent, rgba(89, 214, 255, .13) 45%, rgba(89, 214, 255, .3) 50%, rgba(89, 214, 255, .13) 55%, transparent);
  animation: scanMove 7s linear infinite;
}
@keyframes scanMove { from { transform: translateY(0); } to { transform: translateY(560%); } }

/* 地图 SVG 元素 */
.ln-boundary {
  fill: url(#areaGrad);
  stroke: url(#edgeGrad); stroke-width: 2.4; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(89, 214, 255, .35));
  transition: filter .4s, opacity .4s;
}
.ln-boundary-glow {
  fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linejoin: round;
  opacity: .16; filter: blur(6px);
  animation: edgeBreath 4.5s ease-in-out infinite;
}
@keyframes edgeBreath { 0%, 100% { opacity: .1; } 50% { opacity: .3; } }
.ln-clip-frame { fill: none; stroke: rgba(89, 214, 255, .35); stroke-width: 1.5; stroke-dasharray: 6 5; }

.map-label { fill: var(--ink-mid); font-size: 12px; letter-spacing: 1px; text-anchor: middle; pointer-events: none; }
.map-sublabel { fill: var(--ink-low); font-size: 10px; text-anchor: middle; pointer-events: none; }

.town-node { cursor: pointer; }
.town-node .tn-core { fill: #0c2f5e; stroke: var(--cyan); stroke-width: 1.6; transition: all .25s; }
.town-node .tn-pulse { fill: none; stroke: var(--cyan); stroke-width: 1.6; opacity: 0; transform-origin: center; transform-box: fill-box; animation: nodePulse 2.6s ease-out infinite; }
@keyframes nodePulse { 0% { transform: scale(.4); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.town-node.risk-高 .tn-core { stroke: var(--red); fill: #4d1524; }
.town-node.risk-高 .tn-pulse { stroke: var(--red); }
.town-node.risk-中 .tn-core { stroke: var(--orange); fill: #4a2c10; }
.town-node.risk-中 .tn-pulse { stroke: var(--orange); }
.town-node text {
  fill: var(--ink-hi); font-size: 11px; text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(4, 12, 28, .9); stroke-width: 3px;
}
.town-node:hover .tn-core, .town-node.hl .tn-core { fill: var(--cyan); stroke: #fff; }
.town-node:hover text, .town-node.hl text { fill: #fff; font-weight: 700; }
.town-node.dim { opacity: .28; transition: opacity .3s; }
.town-node { transition: opacity .3s; }

/* 主题高亮圈 */
.theme-focus-ring {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 6;
  transform-origin: center; transform-box: fill-box;
  animation: focusSpin 9s linear infinite;
  filter: drop-shadow(0 0 8px rgba(240, 196, 83, .6));
  pointer-events: none;
}
@keyframes focusSpin { to { transform: rotate(360deg); } }

.map-tip {
  position: absolute; z-index: 5; min-width: 180px; max-width: 250px;
  background: rgba(8, 20, 44, .95); border: 1px solid var(--line-glow); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(89, 214, 255, .2);
  animation: tipIn .18s var(--ease-out) both;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.map-tip .mt-name { font-size: 14px; font-weight: 700; color: var(--cyan-soft); margin-bottom: 4px; }
.map-tip .mt-row { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-mid); padding: 1px 0; }
.map-tip .mt-row b { color: #fff; font-family: var(--font-num); }
.map-tip .mt-risk { margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(80, 140, 220, .25); color: var(--ink-low); line-height: 1.5; }

.map-legend {
  position: absolute; left: 10px; bottom: 8px; z-index: 4;
  display: flex; gap: 12px; font-size: 11px; color: var(--ink-mid);
  background: rgba(8, 20, 44, .7); border-radius: 6px; padding: 5px 10px;
  border: 1px solid rgba(80, 140, 220, .2);
}
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* 中央底部信息带 */
.bd-strip { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip-card {
  background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 9px 12px; min-height: 78px;
  animation: panelIn .5s var(--ease-out) both;
}
.strip-card .sc-title { font-size: 12px; color: var(--ink-low); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.strip-card .sc-body { font-size: 12px; color: var(--ink-mid); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip-card .sc-big { font-size: 21px; font-weight: 800; color: #fff; font-family: var(--font-num); text-shadow: 0 0 12px rgba(89, 214, 255, .4); }

/* ---------- 舆情主题 ---------- */
.ai-banner {
  border: 1px solid rgba(157, 123, 255, .5); border-radius: 8px;
  background: linear-gradient(120deg, rgba(157, 123, 255, .18), rgba(61, 139, 255, .1));
  padding: 8px 10px; font-size: 12px; color: #d8ccff; line-height: 1.55;
  position: relative; overflow: hidden;
}
.ai-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(100deg, transparent, rgba(216, 204, 255, .22), transparent);
  animation: aiSweep 2.8s linear infinite;
}
@keyframes aiSweep { from { left: -80px; } to { left: 110%; } }
.ai-banner b { color: #fff; }
.ai-banner .ai-demo { display: block; margin-top: 3px; color: var(--gold); font-size: 11px; }

.sent-card {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
  background: rgba(20, 42, 80, .45); animation: rowIn .4s var(--ease-out) both;
  border-left: 3px solid var(--blue);
}
.sent-card.lv-red { border-left-color: var(--red); }
.sent-card.lv-orange { border-left-color: var(--orange); }
.sent-card .se-head { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-hi); }
.sent-card .se-head .se-heat { margin-left: auto; flex: none; font-family: var(--font-num); font-size: 12px; color: var(--orange); }
.sent-card .se-ai { margin-top: 5px; font-size: 11px; color: #b9aaff; line-height: 1.55; }
.sent-card .se-ai::before { content: "AI 研判："; color: var(--purple); font-weight: 700; }
.sent-card .se-meta { margin-top: 4px; font-size: 11px; color: var(--ink-low); display: flex; gap: 10px; flex-wrap: wrap; }
.sent-card .se-kw { color: var(--cyan-soft); }
.se-sug { margin-top: 4px; font-size: 11px; color: var(--ink-mid); line-height: 1.5; }
.se-sug::before { content: "处置建议："; color: var(--green); font-weight: 700; }

/* 打字扫描行 */
.type-line { font-size: 12px; color: var(--cyan-soft); font-family: var(--font-num); min-height: 18px; }
.type-line::after { content: "▌"; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- 体检流程弹层 ---------- */
.check-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 9, 22, .82); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.check-mask.closing { animation: fadeOut .2s ease both; }
@keyframes fadeOut { to { opacity: 0; } }

.check-panel {
  width: min(660px, 94vw);
  background: linear-gradient(170deg, rgba(16, 38, 76, .97), rgba(8, 20, 44, .97));
  border: 1px solid var(--line-glow); border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(64, 158, 255, .18);
  animation: modalIn .35s var(--ease-spring) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.check-panel h2 { font-size: 19px; color: #fff; text-align: center; letter-spacing: 2px; }
.check-panel .ck-demo { text-align: center; font-size: 12px; color: var(--gold); margin-top: 6px; }
.ck-steps { margin: 24px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.ck-step {
  display: flex; align-items: center; gap: 12px;
  opacity: .28; transform: translateX(-8px);
  transition: all .4s var(--ease-out);
}
.ck-step.on { opacity: 1; transform: translateX(0); }
.ck-step.done { opacity: .85; transform: translateX(0); }
.ck-step .ck-ico {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  border: 1px solid var(--line-glow); color: var(--ink-mid);
  background: rgba(30, 66, 125, .4);
}
.ck-step.on .ck-ico { color: #04121f; background: var(--cyan); box-shadow: 0 0 16px rgba(89, 214, 255, .8); animation: ckSpin 1.1s linear infinite; border-radius: 50%; }
.ck-step.done .ck-ico { color: #04121f; background: var(--green); box-shadow: 0 0 10px rgba(61, 220, 151, .5); animation: none; }
@keyframes ckSpin { to { transform: rotate(360deg); } }
.ck-step .ck-name { font-size: 15px; color: var(--ink-hi); font-weight: 600; }
.ck-step .ck-state { margin-left: auto; font-size: 12px; color: var(--ink-low); font-family: var(--font-num); }
.ck-step.on .ck-state { color: var(--cyan); }
.ck-step.done .ck-state { color: var(--green); }
.ck-bar { height: 4px; border-radius: 2px; background: rgba(90, 140, 200, .2); overflow: hidden; margin-top: 16px; }
.ck-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .5s var(--ease-out); box-shadow: 0 0 10px rgba(89, 214, 255, .7); }

/* ---------- 体检报告弹层 ---------- */
.report-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 9, 22, .9);
  animation: fadeIn .25s ease both; overflow-y: auto;
}
.report-mask.closing { animation: fadeOut .2s ease both; }
.report {
  width: min(1060px, 96vw); margin: 26px auto 40px;
  background: linear-gradient(175deg, #0d2148, #081430);
  border: 1px solid var(--line-glow); border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  animation: modalIn .4s var(--ease-spring) both;
  overflow: hidden;
}
.report-head {
  padding: 20px 28px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(61, 139, 255, .18), transparent 65%);
  display: flex; align-items: flex-start; gap: 16px;
}
.report-head .rh-main { flex: 1; min-width: 0; }
.report-head h2 { font-size: 22px; color: #fff; letter-spacing: 1px; }
.report-head .rh-meta { margin-top: 5px; font-size: 12px; color: var(--ink-mid); display: flex; gap: 14px; flex-wrap: wrap; }
.report-head .rh-demo { color: var(--gold); }
.report-actions { display: flex; gap: 8px; flex: none; }
.report-body { padding: 20px 28px 26px; }

.rp-score-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.rp-big-score { text-align: center; flex: none; }
.rp-big-score .num {
  font-size: 54px; font-weight: 800; font-family: var(--font-num); color: #fff;
  text-shadow: 0 0 24px rgba(89, 214, 255, .55); line-height: 1.1;
}
.rp-big-score .num small { font-size: 16px; color: var(--ink-mid); }
.rp-big-score .lv { font-size: 14px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.rp-dims { flex: 1; min-width: 260px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rp-dim {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 12px;
  background: rgba(20, 42, 80, .4);
}
.rp-dim .n { font-size: 12px; color: var(--ink-mid); }
.rp-dim .s { font-size: 21px; font-weight: 800; font-family: var(--font-num); color: var(--cyan-soft); margin-top: 2px; }
.rp-dim .s small { font-size: 11px; color: var(--ink-low); }
.rp-dim .l { font-size: 11px; color: var(--gold); }

.rp-sec { margin-top: 20px; }
.rp-sec > h3 {
  font-size: 15px; color: var(--cyan-soft); letter-spacing: 1px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.rp-sec > h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.rp-summary { font-size: 13px; color: var(--ink-hi); line-height: 1.8; background: rgba(20, 42, 80, .35); border-radius: 8px; padding: 12px 16px; }

.rp-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.rp-matrix th, .rp-matrix td { border: 1px solid rgba(80, 140, 220, .22); padding: 8px 10px; text-align: left; vertical-align: top; }
.rp-matrix th { background: rgba(30, 66, 125, .5); color: var(--cyan-soft); font-weight: 700; white-space: nowrap; }
.rp-matrix td { color: var(--ink-hi); line-height: 1.55; }
.rp-matrix .mx-lv { font-weight: 800; white-space: nowrap; }
.rp-matrix .mx-lv.高 { color: var(--red); }
.rp-matrix .mx-lv.中 { color: var(--orange); }
.rp-matrix .mx-lv.低 { color: var(--cyan-soft); }
.rp-matrix ul { display: flex; flex-direction: column; gap: 3px; }
.rp-matrix li { position: relative; padding-left: 10px; }
.rp-matrix li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }

.rp-actions { display: flex; flex-direction: column; gap: 8px; }
.rp-act {
  display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center;
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 14px;
  background: rgba(20, 42, 80, .35); font-size: 13px;
  animation: rowIn .4s var(--ease-out) both;
}
.rp-act .pa-p {
  font-weight: 800; font-family: var(--font-num); text-align: center; border-radius: 5px; padding: 3px 0;
}
.rp-act .pa-p.P0 { background: rgba(255, 95, 86, .2); color: var(--red); border: 1px solid rgba(255, 95, 86, .5); }
.rp-act .pa-p.P1 { background: rgba(255, 171, 74, .18); color: var(--orange); border: 1px solid rgba(255, 171, 74, .45); }
.rp-act .pa-p.P2 { background: rgba(61, 139, 255, .16); color: var(--cyan-soft); border: 1px solid rgba(61, 139, 255, .4); }
.rp-act .pa-title { color: var(--ink-hi); }
.rp-act .pa-owner, .rp-act .pa-dl { font-size: 12px; color: var(--ink-mid); white-space: nowrap; }

.rp-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rp-check {
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 12px; font-size: 12px;
  background: rgba(20, 42, 80, .35);
}
.rp-check .c-name { font-weight: 700; color: var(--ink-hi); display: flex; align-items: center; gap: 6px; }
.rp-check .c-detail { color: var(--ink-mid); margin-top: 4px; line-height: 1.55; }
.c-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.c-dot.pass { background: var(--green); box-shadow: 0 0 8px rgba(61, 220, 151, .7); }
.c-dot.warn { background: var(--orange); box-shadow: 0 0 8px rgba(255, 171, 74, .7); }
.c-dot.risk { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 86, .7); }

.rp-closing { margin-top: 20px; font-size: 12px; color: var(--ink-mid); line-height: 1.8; border-top: 1px dashed rgba(80, 140, 220, .25); padding-top: 12px; }
.rp-findings { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-mid); }
.rp-findings li { padding-left: 12px; position: relative; line-height: 1.6; }
.rp-findings li::before { content: "◆"; position: absolute; left: 0; color: var(--cyan); font-size: 9px; top: 4px; }

/* ---------- 底部 ---------- */
.bd-foot {
  height: var(--foot-h); flex: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; color: var(--ink-low);
  border-top: 1px solid rgba(80, 140, 220, .12);
}
.foot-sep { opacity: .5; }

/* ---------- 滚动条 ---------- */
.bd-col::-webkit-scrollbar, .report-mask::-webkit-scrollbar { width: 6px; }
.bd-col::-webkit-scrollbar-thumb, .report-mask::-webkit-scrollbar-thumb { background: rgba(90, 140, 200, .35); border-radius: 3px; }

/* ---------- 1366×768 适配 ---------- */
@media (max-width: 1500px) {
  .bd-title { font-size: 19px; letter-spacing: 1px; }
  .bd-subtitle { font-size: 11px; max-width: 460px; }
  .bd-clock-time { font-size: 18px; }
  .bd-btn { padding: 6px 10px; font-size: 12px; }
  .theme-tab { padding: 6px 12px; font-size: 13px; }
  .rotate-progress { width: 90px; }
  .bd-main { grid-template-columns: 25% 1fr 25%; gap: 10px; padding: 10px 10px 6px; }
  .panel { padding: 8px 10px; }
  .panel-head h2 { font-size: 13px; }
  .metric-card .m-value { font-size: 20px; }
  .score-ring { width: 88px; height: 88px; }
  .score-ring .ring-num { font-size: 20px; }
  .score-hero .sh-text { -webkit-line-clamp: 3; }
  .risk-item .ri-title { font-size: 12px; }
  .rank-row { font-size: 12px; padding: 5px 6px; }
  .strip-card { min-height: 66px; }
  .event-line { padding: 4px 3px; }
  .bd-top { gap: 10px; padding: 0 12px; }
  .demo-badge { padding: 2px 7px; }
}

@media (max-height: 800px) {
  :root { --top-h: 60px; --theme-h: 40px; --foot-h: 24px; }
  .bd-title { font-size: 18px; }
  .bd-emblem { width: 34px; height: 34px; font-size: 15px; }
  .bd-clock-time { font-size: 17px; }
  .metric-card { padding: 7px 9px; }
  .metric-card .m-value { font-size: 19px; margin-top: 2px; }
  .metric-card .m-foot { margin-top: 2px; }
  .score-ring { width: 80px; height: 80px; }
  .dim-row { padding: 3px 0; }
  .risk-item { padding: 5px 8px; margin-bottom: 5px; }
  .strip-card { min-height: 60px; padding: 7px 10px; }
  .sent-card { padding: 6px 8px; margin-bottom: 6px; }
  .panel-head { margin-bottom: 5px; }
}

/* ---------- 手机 ---------- */
.bd-mobile-tip { display: none; }
@media (max-width: 1239px) {
  body { overflow-x: auto; }
  .bd-mobile-tip {
    display: block; position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
    z-index: 60; background: rgba(8, 20, 44, .92); color: var(--gold);
    border: 1px solid rgba(240, 196, 83, .5); border-radius: 999px;
    font-size: 12px; padding: 7px 16px; white-space: nowrap;
    animation: tipFloat 2.4s ease-in-out infinite;
  }
  @keyframes tipFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
}

/* ---------- 打印体检报告 ---------- */
@media print {
  body { background: #fff; }
  .board, .bd-mobile-tip { display: none !important; }
  .report-mask { position: static; background: #fff; overflow: visible; animation: none; }
  .report {
    width: 100%; margin: 0; border: 0; box-shadow: none; background: #fff; color: #1b2a41;
    animation: none;
  }
  .report-head { background: none; border-bottom: 2px solid #16345f; }
  .report-head h2 { color: #16345f; }
  .report-head .rh-meta { color: #3b4c66; }
  .report-actions { display: none !important; }
  .rp-big-score .num { color: #16345f; text-shadow: none; }
  .rp-big-score .lv { color: #b8860b; }
  .rp-dim { background: #f2f7fe; border-color: #dde4ee; }
  .rp-dim .n { color: #5b6b83; }
  .rp-dim .s { color: #1d4175; }
  .rp-sec > h3 { color: #1d4175; }
  .rp-summary { background: #f7fafd; color: #1b2a41; }
  .rp-matrix th { background: #eef3fa; color: #1d4175; }
  .rp-matrix td { color: #1b2a41; border-color: #dde4ee; }
  .rp-matrix th { border-color: #dde4ee; }
  .rp-act { background: #f7fafd; border-color: #dde4ee; }
  .rp-act .pa-title { color: #1b2a41; }
  .rp-act .pa-owner, .rp-act .pa-dl { color: #5b6b83; }
  .rp-check { background: #f7fafd; border-color: #dde4ee; }
  .rp-check .c-name { color: #1b2a41; }
  .rp-check .c-detail { color: #3b4c66; }
  .rp-closing { color: #3b4c66; border-top-color: #dde4ee; }
  .rp-findings { color: #3b4c66; }
  .risk-tag { animation: none; }
  body.anim-paused * { animation-play-state: running !important; }
}

/* 总指挥终验调整：领导视距可读性、面板内容不横向溢出 */
.panel[style*="overflow:auto"] { overflow-x: hidden !important; overflow-y: auto !important; }
.panel > * { min-width: 0; max-width: 100%; }
.sent-card .se-head { flex-wrap: wrap; line-height: 1.5; }
.sent-card .se-head .se-heat { margin-left: 0; }
.sent-card .se-meta { row-gap: 4px; }
.town-node text { font-size: 17px; font-weight: 600; stroke-width: 4px; }
.town-node .tn-core { stroke-width: 2.5; }
.map-label { font-size: 15px; }
@media (min-width: 1600px) {
  .panel-head h2 { font-size: 17px; }
  .panel-head .panel-note, .panel-head .head-right { font-size: 12px; }
  .metric-card .m-label { font-size: 13px; }
  .metric-card .m-value { font-size: 29px; }
  .metric-card .m-foot { font-size: 12px; }
  .score-hero .sh-text, .strip-card .sc-body { font-size: 13px; }
  .rank-row { font-size: 14px; padding: 8px; }
  .rank-row .rk-sub, .event-line .ev-time, .event-line .ev-dept { font-size: 12px; }
  .risk-item .ri-title { font-size: 14px; }
  .risk-item .ri-meta { font-size: 12px; }
  .sent-card { padding: 10px 12px; }
  .sent-card .se-head { font-size: 14px; }
  .sent-card .se-ai, .sent-card .se-meta, .se-sug { font-size: 12px; }
  .ai-banner { font-size: 13px; }
  .type-line { font-size: 13px; }
}
@media (max-width: 1500px) {
  .bd-title { font-size: 20px; letter-spacing: 1px; }
  .bd-top-left { gap: 8px; }
  .bd-btn { padding: 7px 10px; }
  .bd-clock-time { font-size: 20px; }
  .town-node text { font-size: 19px; }
}
/* 覆盖式滚动容器：兼容 WebView 的滚动条占位 */
.bd-col > .panel { overflow-x: hidden !important; }
.bd-col .rank-list, .bd-col .event-line, .bd-col .risk-list { width: 100%; min-width: 0; }
.bd-col .rank-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
.bd-col .event-line { min-width: 0; overflow: hidden; }
.bd-col .event-line .ev-title { min-width: 0; }
/* 圆环分数：数字与单位同一行，整体绝对居中 */
.score-ring .ring-num {
  display: flex !important; align-items: center !important; justify-content: center !important;
  white-space: nowrap; line-height: 1; text-align: center;
  flex-direction: column; gap: 2px;
}
.score-ring .ring-value { display: block; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.score-ring .ring-num small { display: block; margin-left: 0; line-height: 1; align-self: center; }
