/* 宁夏智慧水利综合演示系统 · 样式 */
:root {
  --bg: #040b1a;
  --bg2: #071530;
  --panel: rgba(8, 26, 58, 0.82);
  --panel2: rgba(13, 38, 80, 0.55);
  --line: #18396a;
  --line2: #2a5ea3;
  --txt: #d8e6fb;
  --dim: #8aa4cc;
  --mute: #5d7399;
  --cyan: #2fd3ff;
  --blue: #3a8bff;
  --green: #3ddc97;
  --yellow: #ffd34d;
  --orange: #ff9f43;
  --red: #ff5a5f;
  --purple: #a78bfa;
  --num: "DIN Alternate", "Bahnschrift", "DIN Condensed", "Roboto Mono", ui-monospace, monospace;
  --top: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1400px 700px at 50% -20%, #0d2a5a 0%, rgba(4, 11, 26, 0) 60%), var(--bg);
  color: var(--txt);
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.up { color: var(--orange); }
.down { color: var(--cyan); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.warn { color: var(--yellow); }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
#topbar {
  position: sticky; top: 0; z-index: 60; height: var(--top);
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(180deg, #08204a 0%, #061530 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; cursor: pointer; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand b { font-size: 16px; letter-spacing: 1px; color: #fff; }
.brand small { display: block; font-size: 11px; color: var(--dim); line-height: 1.2; letter-spacing: 0.5px; }
#nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a {
  padding: 6px 8px; border-radius: 4px; color: var(--dim); white-space: nowrap; font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
#nav a:hover { color: #fff; text-decoration: none; background: rgba(47, 211, 255, 0.07); }
#nav a.on { color: #fff; background: linear-gradient(180deg, rgba(47, 211, 255, 0.2), rgba(47, 211, 255, 0.04)); box-shadow: inset 0 -2px 0 var(--cyan); }
.topright { display: flex; gap: 6px; align-items: center; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: 4px; background: rgba(26, 72, 140, 0.35);
  color: var(--txt); cursor: pointer; font-size: 13px; white-space: nowrap;
}
.btn:hover { border-color: var(--cyan); color: #fff; text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #1f8fff, #1565d8); border-color: #4aa8ff; color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; }
.btn.on { border-color: var(--cyan); color: var(--cyan); background: rgba(47, 211, 255, 0.12); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--dim); padding: 2px 10px; cursor: pointer; font-size: 12px; height: 24px; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: rgba(47, 211, 255, 0.16); color: #fff; }
select, input[type="number"], input[type="text"], textarea {
  background: #06142c; color: var(--txt); border: 1px solid var(--line2); border-radius: 4px; padding: 3px 8px; font: inherit; font-size: 13px;
}
select:focus, input:focus, textarea:focus { outline: 1px solid var(--cyan); }
input[type="range"] { accent-color: var(--cyan); }

/* ---------- 页面通用 ---------- */
#view { min-height: calc(100vh - var(--top)); }
.page { padding: 14px 18px 48px; max-width: 1720px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 22px; color: #fff; letter-spacing: 1px; }
.page-head h2 small { font-size: 13px; color: var(--dim); font-weight: normal; margin-left: 10px; letter-spacing: 0; }
.page-head p { margin: 4px 0 0; color: var(--dim); max-width: 980px; }
.grid { display: grid; gap: 12px; }
.g1 { grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.mt { margin-top: 12px; }

.panel {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(47, 140, 255, 0.06);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; border-color: var(--cyan); border-style: solid; opacity: 0.8;
}
.panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
.panel > header {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px;
  border-bottom: 1px solid rgba(42, 94, 163, 0.35);
  background: linear-gradient(90deg, rgba(47, 211, 255, 0.1), rgba(47, 211, 255, 0) 60%);
}
.panel > header h3 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; padding-left: 9px; border-left: 3px solid var(--cyan); line-height: 1.2; white-space: nowrap; }
.panel > header .sub { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel > header .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.panel > .body { flex: 1; min-height: 0; padding: 10px 12px; position: relative; }
.panel > footer { padding: 4px 12px 8px; font-size: 11.5px; color: var(--mute); line-height: 1.5; }
.panel > footer a { color: #6fb6e8; }
.chart { width: 100%; height: 300px; }
.chart.h200 { height: 200px; } .chart.h240 { height: 240px; } .chart.h360 { height: 360px; } .chart.h420 { height: 420px; } .chart.h520 { height: 520px; }
.fill { position: absolute; inset: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kpi { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; min-width: 0; }
.kpi .l { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font: 600 26px/1.25 var(--num); color: #fff; letter-spacing: 0.5px; }
.kpi .v .u { font: 12px "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--dim); margin-left: 4px; letter-spacing: 0; }
.kpi .s { color: var(--mute); font-size: 12px; line-height: 1.45; }
.kpi.hl .v { color: var(--cyan); }

.tag { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 12px; line-height: 20px; border: 1px solid currentColor; white-space: nowrap; }
.chip { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; line-height: 20px; color: #06142c; font-weight: 600; white-space: nowrap; }
.note { color: var(--dim); font-size: 12.5px; line-height: 1.65; }
.note b { color: var(--txt); }
.callout { border-left: 3px solid var(--yellow); background: rgba(255, 211, 77, 0.07); padding: 8px 12px; border-radius: 0 4px 4px 0; color: #f0e2b0; font-size: 13px; }
.callout.info { border-color: var(--cyan); background: rgba(47, 211, 255, 0.07); color: #cdeefc; }
.src { color: #6fb6e8; }
ul.clean { margin: 0; padding-left: 18px; }
ul.clean li { margin: 3px 0; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 6px 8px; border-bottom: 1px solid rgba(42, 94, 163, 0.3); text-align: left; vertical-align: top; }
table.tbl th { color: var(--dim); font-weight: 500; background: rgba(13, 38, 80, 0.5); position: sticky; top: 0; z-index: 1; }
table.tbl tr:hover td { background: rgba(47, 211, 255, 0.04); }
table.tbl td.r, table.tbl th.r { text-align: right; }
table.tbl td.num, table.tbl th { white-space: nowrap; }

.flowchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.flowchips span { padding: 2px 10px; border-radius: 12px; border: 1px solid var(--line2); font-size: 12px; color: var(--dim); }
.flowchips span.on { border-color: var(--yellow); color: var(--yellow); }
.flowchips em { color: var(--mute); font-style: normal; }
.scroll { overflow: auto; }

/* 水质格子 */
.wq-grid { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.wq-grid th { color: var(--dim); font-weight: normal; white-space: nowrap; padding: 0 4px; text-align: right; }
.wq-grid thead th { text-align: center; font-size: 11px; padding: 0; }
.wq-grid td { width: 22px; height: 18px; border-radius: 2px; text-align: center; color: #06142c; font-size: 10px; font-weight: 700; cursor: default; }
.wq-grid td.na { background: #1b2a44 !important; color: #50668c; font-weight: 400; }
.wq-grid td.fail { outline: 2px solid #fff; outline-offset: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--dim); align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -2px; }

/* ---------- 驾驶舱 ---------- */
.cockpit { height: calc(100vh - var(--top)); display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 10px; min-height: 720px; }
.ck-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ck-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 0 12px rgba(47, 211, 255, 0.45); }
.ck-title small { font-size: 12px; color: var(--dim); font-weight: normal; letter-spacing: 0; margin-left: 8px; }
.ck-time { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 420px; }
.ck-time input[type="range"] { flex: 1; min-width: 160px; }
.ck-date { font: 600 18px var(--num); color: var(--cyan); white-space: nowrap; min-width: 110px; }
.ck-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(330px, 1fr) minmax(0, 1.85fr) minmax(330px, 1fr); gap: 10px; }
.ck-col { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.ck-col.right { grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
.ck-center { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; min-width: 0; }
.ck-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ck-kpis .kpi { padding: 7px 10px; }
.ck-kpis .kpi .v { font-size: 22px; }
.ck-map { position: relative; }
.ck-map .body { padding: 0; }
.map-tools { position: absolute; left: 10px; top: 48px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.map-legend { position: absolute; right: 10px; bottom: 30px; z-index: 5; background: rgba(4, 14, 34, 0.78); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 12px; color: var(--dim); max-width: 250px; }
.map-legend div { display: flex; align-items: center; gap: 6px; line-height: 20px; }
.map-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.map-legend i.box { width: 12px; height: 12px; border-radius: 2px; }
.map-legend i.ml-rv { background: #3fa9ff; height: 4px; }
.map-legend i.ml-cn { background: linear-gradient(90deg, #3ddc97 0 33%, #38d6ff 33% 66%, #b49bff 66%); }
.map-legend i.ml-tr { background: #2a6fc2; }
.map-legend i.ml-pl { background: #7fe7ff; transform: rotate(45deg) scale(.7); }
.map-legend i.ml-dr { background: repeating-linear-gradient(90deg, #7d8fb3 0 4px, transparent 4px 7px); }
.map-legend i.ml-st { background: linear-gradient(0deg, #ffbe28, rgba(255, 224, 120, 0)); border-radius: 1px; width: 6px; height: 14px; }
.map-attr { position: absolute; left: 10px; bottom: 6px; font-size: 10.5px; color: var(--mute); z-index: 5; }
.map-attr a { color: var(--mute); }

.st-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(42, 94, 163, 0.35); }
.st-row:last-child { border-bottom: 0; }
.st-note { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: help; }
.st-row .nm { color: #fff; font-weight: 600; line-height: 1.25; }
.st-row .nm small { display: block; color: var(--mute); font-weight: normal; font-size: 11px; }
.st-row .val { font: 600 26px/1.1 var(--num); color: var(--cyan); }
.st-row .val .u { font: 12px "PingFang SC", sans-serif; color: var(--dim); margin-left: 3px; }
.st-row .meta { font-size: 12px; color: var(--dim); text-align: right; line-height: 1.5; white-space: nowrap; }
.res-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--dim); padding-top: 6px; }
.res-row b { color: var(--txt); font-family: var(--num); }

.bar-row { margin: 9px 0; }
.bar-row .t { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.bar-row .t b { color: #fff; font-family: var(--num); font-size: 14px; }
.bar { position: relative; height: 10px; border-radius: 5px; background: rgba(42, 94, 163, 0.25); overflow: hidden; margin-top: 4px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #1f8fff, var(--cyan)); }
.bar > i.b2 { background: linear-gradient(90deg, #8a6bff, #c9a6ff); }
.bar.est > i { background: repeating-linear-gradient(45deg, rgba(255, 211, 77, 0.75) 0 6px, rgba(255, 211, 77, 0.35) 6px 12px); }

.ev-list { display: flex; flex-direction: column; gap: 6px; height: 100%; overflow: auto; }
.ev { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 6px 8px; border: 1px solid rgba(42, 94, 163, 0.35); border-radius: 4px; cursor: pointer; background: rgba(8, 26, 58, 0.6); }
.ev:hover { border-color: var(--cyan); }
.ev .d { font: 600 13px var(--num); color: var(--cyan); white-space: nowrap; }
.ev .x { font-size: 12.5px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev .m { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }

.ticker { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.ticker .lb { color: var(--yellow); font-weight: 600; white-space: nowrap; }
.ticker .tk { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 34px; }
.ticker .tk div { position: absolute; left: 0; top: 0; line-height: 34px; animation: tk 90s linear infinite; white-space: nowrap; }
.ticker .tk div a { color: var(--txt); margin-right: 36px; font-size: 13px; }
.ticker .tk div a span { color: var(--cyan); margin-right: 6px; font-family: var(--num); }
.ticker:hover .tk div { animation-play-state: paused; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 200; background: rgba(1, 6, 16, 0.72); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.15s; }
.modal { width: min(760px, 96vw); max-height: 88vh; display: flex; flex-direction: column; background: #071a3c; border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.modal.wide { width: min(1080px, 96vw); }
.modal > header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal > header h3 { margin: 0; font-size: 16px; color: #fff; }
.modal > header .x { margin-left: auto; cursor: pointer; color: var(--dim); font-size: 20px; line-height: 1; border: 0; background: none; }
.modal > .mb { padding: 14px 16px; overflow: auto; line-height: 1.75; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.intro h1 { margin: 0 0 6px; font-size: 24px; color: #fff; letter-spacing: 1px; }
.intro .lead { color: var(--dim); margin: 0 0 14px; }
.intro .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.intro .stats div { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.intro .stats b { display: block; font: 600 22px var(--num); color: var(--cyan); }
.intro .stats span { font-size: 12px; color: var(--dim); }
.intro .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 讲解模式 ---------- */
.tour-card { position: fixed; z-index: 300; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(720px, 94vw); background: linear-gradient(180deg, #0b2a5e, #081d42); border: 1px solid var(--cyan); border-radius: 8px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 4000px rgba(1, 6, 16, 0.35); }
.tour-card { transition: top 0.25s ease, bottom 0.25s ease; }
.tour-card.top { bottom: auto; top: 68px; }
.tour-card.side { left: auto; right: 18px; transform: none; width: min(420px, 94vw); }
.tour-card.side .tour-foot { flex-direction: column; align-items: stretch; }
.tour-card.side .acts { justify-content: flex-start; }
.tour-card .st { font-size: 12px; color: var(--cyan); display: flex; justify-content: space-between; gap: 12px; }
.tour-card .tour-left { color: var(--dim); font-variant-numeric: tabular-nums; }
.tour-bar { height: 3px; margin-top: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 0.1s linear; }
.tour-card.paused .tour-bar i { background: var(--yellow); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.tour-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.tour-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--cyan); background: transparent; cursor: pointer; opacity: 0.6; }
.tour-dots button.done { background: var(--cyan); opacity: 0.45; }
.tour-dots button.on { background: var(--cyan); opacity: 1; transform: scale(1.25); }
.tour-dots button:hover { opacity: 1; }
.tour-card .tour-voice.on { border-color: var(--cyan); color: var(--cyan); }
.tour-card h4 { margin: 2px 0 6px; font-size: 16px; color: #fff; }
.tour-card p { margin: 0; color: var(--txt); font-size: 13.5px; line-height: 1.7; }
.tour-card .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tour-hl { outline: 2px solid var(--yellow) !important; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 211, 77, 0.18) !important; position: relative; z-index: 250; }

/* ---------- 文档类页面 ---------- */
.doc h3.sec { font-size: 18px; color: #fff; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc h3.sec:first-child { margin-top: 0; }
.doc h3.sec small { color: var(--dim); font-weight: normal; font-size: 13px; margin-left: 8px; }
.doc p { margin: 6px 0; }
.pain { display: grid; grid-template-columns: 34px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pain > div { padding: 10px 12px; border-bottom: 1px solid rgba(42, 94, 163, 0.35); font-size: 13px; }
.pain > div.h { background: rgba(13, 38, 80, 0.7); color: var(--dim); font-weight: 600; }
.pain > div.n { font: 700 18px var(--num); color: var(--cyan); text-align: center; }
.pain .ev2 { color: var(--mute); font-size: 12px; margin-top: 4px; }
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.role b { color: #fff; display: block; margin-bottom: 4px; }
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.road .stage { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--panel2); position: relative; }
.road .stage .v { font: 700 18px var(--num); color: var(--cyan); }
.road .stage .t { color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.road .stage ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.road .stage .kpi2 { margin-top: 8px; font-size: 12px; color: var(--yellow); }
.arch { display: grid; gap: 8px; }
.arch .layer { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: stretch; }
.arch .layer > b { display: flex; align-items: center; justify-content: center; background: rgba(47, 211, 255, 0.12); border: 1px solid var(--line2); border-radius: 6px; color: var(--cyan); font-size: 13px; text-align: center; padding: 6px; }
.arch .layer > div { display: flex; flex-wrap: wrap; gap: 6px; }
.arch .box { flex: 1 1 130px; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font-size: 12.5px; }
.arch .box b { color: #fff; display: block; font-size: 13px; }
.arch .box.real { border-color: rgba(61, 220, 151, 0.6); }
.arch .box.plan { border-style: dashed; opacity: 0.85; }

/* ---------- 移动端原型 ---------- */
.mob-wrap { display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: 24px; align-items: start; }
.phone { width: 390px; height: 820px; border-radius: 46px; padding: 14px; background: #0b0f19; box-shadow: 0 0 0 2px #2a3550, 0 30px 70px rgba(0, 0, 0, 0.6); position: relative; }
.phone .scr { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #f3f6fb; color: #1b2a44; display: flex; flex-direction: column; font-size: 14px; }
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #0b0f19; border-radius: 0 0 16px 16px; z-index: 3; }
.m-status { height: 40px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 26px 4px; font-size: 13px; font-weight: 600; background: #0f62d6; color: #fff; }
.m-head { background: linear-gradient(180deg, #0f62d6, #1a7cf0); color: #fff; padding: 8px 16px 14px; }
.m-head h4 { margin: 0; font-size: 18px; }
.m-head p { margin: 2px 0 0; font-size: 12px; opacity: 0.85; }
.m-body { flex: 1; overflow: auto; padding: 10px 12px 14px; }
.m-tabs { height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dfe6f2; background: #fff; }
.m-tabs button { border: 0; background: none; color: #7a8aa6; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.m-tabs button svg { width: 22px; height: 22px; }
.m-tabs button.on { color: #0f62d6; font-weight: 600; }
.m-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(20, 40, 80, 0.08); }
.m-card h5 { margin: 0 0 8px; font-size: 14px; color: #1b2a44; display: flex; justify-content: space-between; align-items: center; }
.m-card h5 small { font-weight: normal; color: #8a99b3; font-size: 11px; }
.m-st { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2f8; }
.m-st:last-child { border-bottom: 0; }
.m-st .n { font-weight: 600; }
.m-st .n small { display: block; color: #8a99b3; font-weight: normal; font-size: 11px; }
.m-st .v { font: 700 22px var(--num); color: #0f62d6; text-align: right; }
.m-st .v small { font: 11px sans-serif; color: #8a99b3; margin-left: 2px; }
.m-st .d { font-size: 11px; text-align: right; }
.m-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.m-chips button { flex: none; border: 1px solid #d3ddee; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; color: #4a5b78; cursor: pointer; }
.m-chips button.on { background: #0f62d6; color: #fff; border-color: #0f62d6; }
.m-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef2f8; cursor: pointer; }
.m-row:last-child { border-bottom: 0; }
.m-row .r { font: 700 16px var(--num); color: #1b2a44; }
.m-row .r small { font: 11px sans-serif; color: #8a99b3; }
.m-alert { border-left: 4px solid #ff9f43; padding: 8px 10px; background: #fff8ef; border-radius: 0 8px 8px 0; margin-bottom: 8px; font-size: 13px; }
.m-alert.red { border-color: #ff4d4f; background: #fff1f0; }
.m-alert.blue { border-color: #1a7cf0; background: #eef5ff; }
.m-alert b { display: block; font-size: 13px; }
.m-alert span { color: #5d6b85; font-size: 12px; }
.m-pill { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; line-height: 18px; color: #fff; }
.m-back { color: #0f62d6; cursor: pointer; font-size: 13px; margin-bottom: 6px; display: inline-block; }

/* ---------- AI 页 ---------- */
textarea.raw { width: 100%; min-height: 170px; resize: vertical; line-height: 1.6; font-size: 13px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; font-size: 13px; }
.kv div:nth-child(odd) { color: var(--dim); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0; }
.check i { font-style: normal; font-weight: 700; }
.brief { background: rgba(13, 38, 80, 0.55); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; line-height: 1.9; font-size: 14px; }
.brief mark { background: rgba(47, 211, 255, 0.16); color: #fff; padding: 0 3px; border-radius: 2px; }

/* ---------- 供水链路 ---------- */
.proj { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.proj b { color: #fff; }
.proj ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--txt); }

/* ---------- 响应式 ---------- */
/* 矮屏或较窄屏：驾驶舱改为可滚动，面板按内容自然撑开 */
@media (max-height: 940px), (max-width: 1600px) {
  .cockpit { height: auto; min-height: 0; }
  .ck-grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.6fr) minmax(300px, 1fr); }
  .ck-col, .ck-col.right, .ck-center { grid-template-rows: none; align-content: start; }
  #ck-trend .body { min-height: 230px; }
  #ck-canal .body { min-height: 340px; }
  #ck-rain .body { min-height: 280px; }
  .ck-map { min-height: 620px; }
  .ck-map > header .sub { display: none; }
}

@media (max-width: 1700px) {
  .ck-kpis .kpi { padding: 6px 8px; }
  .ck-kpis .kpi .v { font-size: 20px; }
}
@media (max-width: 1400px) {
  .ck-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .cockpit { height: auto; }
  .ck-time { min-width: 0; flex-wrap: wrap; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-col, .ck-col.right, .ck-center { grid-template-rows: none; }
  .ck-col .panel .body, .ck-center .panel .body { min-height: 300px; }
  .ck-map { min-height: 560px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21, .g12 { grid-template-columns: 1fr; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mob-wrap { grid-template-columns: 1fr; justify-items: center; }
  .brand small { display: none; }
}
@media (max-width: 860px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .pain { grid-template-columns: 28px 1fr; }
  .pain > div.h:nth-child(n + 3) { display: none; }
  .intro .stats { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: 1fr; }
  .ck-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-time { min-width: 0; flex-wrap: wrap; }
}

/* ================= 第二轮：动效、AI、三维孪生 ================= */
/* 启动加载 */
.boot { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 500px at 50% 40%, #0c2a5a, #020812 70%); transition: opacity .6s ease, visibility .6s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-in { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); }
.boot-in b { color: #fff; font-size: 20px; letter-spacing: 3px; }
.boot-logo { width: 64px; height: 64px; filter: drop-shadow(0 0 12px rgba(47, 211, 255, .6)); }
.boot-wave { animation: wave 1.6s ease-in-out infinite; }
.boot-bar { width: 220px; height: 3px; background: rgba(47, 211, 255, .15); border-radius: 2px; overflow: hidden; }
.boot-bar em { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #2fd3ff, transparent); animation: bar 1.1s linear infinite; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* 入场 */
.enter { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter, .boot-wave, .boot-bar em, .ticker .tk div { animation: none !important; } }

/* 面板质感：悬停发光、标题扫光 */
.panel { transition: border-color .25s, box-shadow .25s; }
.panel:hover { border-color: rgba(47, 211, 255, .55); box-shadow: inset 0 0 24px rgba(47, 140, 255, .08), 0 0 18px rgba(47, 211, 255, .12); }
.panel > header { position: relative; overflow: hidden; }
.panel > header::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(127, 231, 255, .16), transparent); transform: skewX(-20deg); animation: sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { left: -80px; } 100% { left: 110%; } }
.btn { transition: border-color .2s, color .2s, background .2s, box-shadow .2s; }
.btn:focus-visible, .seg button:focus-visible, .theme-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.btn.primary:hover { box-shadow: 0 0 14px rgba(47, 160, 255, .55); }
.kpi { position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.kpi:hover { transform: translateY(-2px); border-color: rgba(47, 211, 255, .5); }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(47, 211, 255, .7), transparent); opacity: .55; }

/* 顶栏：同步状态与时钟 */
.sync { font-size: 12px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 12px; cursor: help; }
.sync .dot, .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #5d7399; display: inline-block; }
.sync .dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.clock { font-size: 13px; color: var(--cyan); letter-spacing: .5px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 1500px) { .clock { display: none; } }

/* 驾驶舱标题装饰 */
.ck-title { position: relative; padding: 0 26px; }
.ck-title::before, .ck-title::after { content: ""; position: absolute; top: 50%; width: 18px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.ck-title::before { left: 0; }
.ck-title::after { right: auto; left: calc(100% - 20px); transform: scaleX(-1); display: none; }
.ck-map > .body { background: radial-gradient(60% 55% at 50% 52%, rgba(31, 111, 255, .18), transparent 70%), repeating-linear-gradient(0deg, rgba(47, 140, 255, .05) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(47, 140, 255, .05) 0 1px, transparent 1px 34px); overflow: hidden; }
.ck-map > .body::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(47, 211, 255, .07), transparent); animation: scan 6s linear infinite; pointer-events: none; z-index: 4; }
@keyframes scan { from { top: -120px; } to { top: 100%; } }
.map-compass { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; z-index: 5; opacity: .9; }
.map-3d-tools { position: absolute; left: 10px; top: 10px; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; }

/* AI 通用 */
.ai-badge { display: inline-block; padding: 0 6px; border-radius: 4px; font: 700 11px/18px var(--num); color: #06142c; background: linear-gradient(90deg, #7fe7ff, #a78bfa); vertical-align: 1px; }
.ai-out { font-size: 13.5px; line-height: 1.75; }
.ai-meta { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ai-dot.err { background: var(--red); }
.ai-meta .ai-dot:not(.on):not(.err) { background: var(--cyan); animation: pulse 1s infinite; }
.ai-body p { margin: 4px 0; }
.ai-body ul { margin: 4px 0; }
.ai-body .md-h { margin: 8px 0 4px; font-size: 14px; color: var(--cyan); }
.ai-caret { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: pulse .8s infinite; }
.ai-check { margin-top: 6px; font-size: 12.5px; }
.ai-ctx { font-size: 12px; color: var(--dim); }
.ai-ctx summary { cursor: pointer; }
.ai-ctx pre { max-height: 260px; overflow: auto; background: #050f24; border: 1px solid var(--line); border-radius: 4px; padding: 8px; white-space: pre-wrap; font-size: 11.5px; color: #9fb8dc; }
.ai-btn { background: linear-gradient(90deg, rgba(127, 231, 255, .16), rgba(167, 139, 250, .16)); border-color: rgba(167, 139, 250, .6); }
.ai-btn:hover { border-color: #c4b5fd; box-shadow: 0 0 12px rgba(167, 139, 250, .4); }

/* AI 问数抽屉 */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .8); background: radial-gradient(circle at 35% 30%, #4c3aa8, #121a4a 70%); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(167, 139, 250, .6), 0 10px 26px rgba(0, 0, 0, .5); animation: fab 2.6s infinite; }
.ai-fab span { font: 700 16px/1 var(--num); }
.ai-fab em { font-style: normal; font-size: 11px; opacity: .85; }
@keyframes fab { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .55), 0 10px 26px rgba(0, 0, 0, .5); } 70% { box-shadow: 0 0 0 14px rgba(167, 139, 250, 0), 0 10px 26px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0), 0 10px 26px rgba(0, 0, 0, .5); } }
.ai-drawer { position: fixed; top: calc(var(--top) + 8px); right: 12px; bottom: 92px; width: min(460px, 94vw); z-index: 160; display: flex; flex-direction: column; background: rgba(6, 20, 46, .97); border: 1px solid rgba(167, 139, 250, .55); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transform: translateX(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); backdrop-filter: blur(6px); }
.ai-drawer.open { transform: none; }
.ai-drawer > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ai-drawer > header b { color: #fff; }
.ai-drawer > header .x { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 20px; cursor: pointer; }
.ai-log { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.7; }
.ai-msg.me { align-self: flex-end; max-width: 85%; background: rgba(31, 143, 255, .22); border: 1px solid rgba(47, 160, 255, .45); }
.ai-msg.bot { background: rgba(13, 38, 80, .6); border: 1px solid var(--line); }
.ai-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-sug button { border: 1px solid var(--line2); background: rgba(26, 72, 140, .3); color: var(--txt); border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; text-align: left; }
.ai-sug button:hover { border-color: var(--cyan); }
#ai-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
#ai-form textarea { flex: 1; resize: none; }

/* 三维孪生 */
.twin-page { position: relative; height: calc(100vh - var(--top)); min-height: 640px; overflow: hidden; background: #020812; }
.twin-stage { position: absolute; inset: 0; }
.tw-canvas { display: block; width: 100% !important; height: 100% !important; }
.tw-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tw-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; color: #dff6ff; text-shadow: 0 0 6px #000, 0 0 2px #000; will-change: transform; }
.tw-lbl.peak { color: #c9e7ff; font-size: 12px; }
.tw-lbl.peak small { margin-left: 4px; color: #7f9cc7; }
.tw-lbl.city { color: #ffffff; font-weight: 600; font-size: 13px; letter-spacing: 1px; padding: 1px 6px; border-left: 2px solid var(--cyan); background: rgba(4, 16, 40, .55); }
.tw-lbl.station { text-align: center; padding: 3px 8px; border: 1px solid rgba(255, 211, 77, .8); border-radius: 3px; background: rgba(4, 16, 40, .86); box-shadow: 0 0 12px rgba(255, 211, 77, .35); }
.tw-lbl.station b { display: block; color: #ffd34d; font-size: 11px; font-weight: 600; }
.tw-lbl.station span { font: 700 15px var(--num); color: #fff; }
.tw-lbl.station small { font: 10px sans-serif; color: #8aa4cc; }
.tw-lbl.rain { color: #9fd8ff; font-size: 12px; padding: 1px 6px; border: 1px solid rgba(127, 196, 255, .6); border-radius: 10px; background: rgba(4, 20, 50, .7); }
.tw-tip { position: absolute; display: none; z-index: 8; pointer-events: none; background: rgba(5, 18, 42, .95); border: 1px solid #2b5ea3; border-radius: 4px; padding: 6px 9px; font-size: 12px; color: #dbe8ff; line-height: 1.6; }
.tw-hud { position: absolute; z-index: 7; pointer-events: none; }
.tw-hud > * { pointer-events: auto; }
.tw-glass { background: rgba(6, 22, 50, .72); border: 1px solid rgba(47, 211, 255, .35); border-radius: 8px; backdrop-filter: blur(6px); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.tw-top { left: 16px; right: 16px; top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tw-top .ttl { padding: 8px 14px; }
.tw-top .ttl b { font-size: 18px; color: #fff; letter-spacing: 2px; text-shadow: 0 0 12px rgba(47, 211, 255, .6); }
.tw-top .ttl small { display: block; color: var(--dim); font-size: 11.5px; }
.tw-ctrl { display: flex; gap: 6px; align-items: center; padding: 8px 10px; flex-wrap: wrap; }
.tw-left { left: 16px; top: 92px; width: 300px; padding: 10px 12px; max-height: calc(100% - 190px); overflow: auto; }
.tw-right { right: 16px; top: 92px; width: 300px; padding: 10px 12px; max-height: calc(100% - 190px); overflow: auto; }
.tw-bottom { left: 16px; right: 16px; bottom: 14px; display: flex; gap: 10px; align-items: center; padding: 8px 12px; }
.tw-bottom input[type="range"] { flex: 1; }
.tw-h { font-size: 13px; color: var(--cyan); margin: 4px 0 6px; font-weight: 600; }
.tw-st { display: grid; grid-template-columns: 1fr auto; padding: 5px 0; border-bottom: 1px dashed rgba(42, 94, 163, .4); }
.tw-st b { color: #fff; }
.tw-st small { display: block; color: var(--mute); font-size: 11px; }
.tw-st .v { font: 700 20px var(--num); color: var(--cyan); text-align: right; }
.tw-bars .row { display: grid; grid-template-columns: 86px 1fr 40px; gap: 6px; align-items: center; font-size: 12px; margin: 3px 0; }
.tw-bars .row i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f8fff, #38e1ff); box-shadow: 0 0 6px rgba(56, 225, 255, .6); }
.tw-bars .row span:last-child { text-align: right; font-family: var(--num); color: #fff; }
.tw-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); }
@media (max-width: 1200px) { .tw-left, .tw-right { width: 250px; } }
@media (max-width: 900px) { .tw-left, .tw-right { display: none; } }
.ck-wx { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); white-space: nowrap; padding: 3px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 26, 58, .6); }
.ck-wx .lb { color: var(--yellow); font-weight: 600; }
.ck-wx b { color: #fff; font-weight: 500; }
.ck-wx em { font-style: normal; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

#ck-jump { max-width: 240px; }
#tw-storm { max-width: 260px; }
.ck-kpis .kpi .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticker .ck-wx { border: 0; background: none; padding: 0 10px 0 0; border-right: 1px solid var(--line); border-radius: 0; flex: none; }
body[data-route="twin"] .ai-fab { bottom: 84px; }
body[data-route="twin"] .ai-drawer { bottom: 150px; }

/* 三维孪生标签（第三轮） */
.tw-lbl { left: 0; top: 0; }
.tw-lbl.canal { font-size: 11px; color: #dff6ff; padding: 1px 5px; border-radius: 2px; background: rgba(4, 18, 44, .72); border: 1px solid rgba(56, 214, 255, .45); }
.tw-lbl.canal b { margin-left: 4px; font: 700 11.5px var(--num); color: #fff; }
.tw-lbl.cval { font-size: 11px; color: #cfe3ff; padding: 1px 6px; border-radius: 10px; background: rgba(30, 20, 70, .72); border: 1px solid rgba(180, 155, 255, .5); }
.tw-lbl.cval b { margin-left: 4px; color: #ffe9a8; }
.tw-lbl.place { font-size: 11px; color: #9fe8ff; }
.tw-lbl.station em { display: block; font-style: normal; font-size: 10px; color: #9fb8dc; }

/* BIM 视口 */
.bim-wrap { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.bim-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.bim-tabs button { border: 1px solid var(--line2); background: rgba(13, 38, 80, .55); color: var(--dim); border-radius: 6px; padding: 7px 0; cursor: pointer; font-size: 13px; }
.bim-tabs button.on { background: linear-gradient(180deg, #1f8fff, #1565d8); color: #fff; border-color: #4aa8ff; }
.bim-stage { position: relative; flex: 1; min-height: 300px; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: radial-gradient(80% 70% at 50% 45%, #0b2550, #030b1c 75%); }
.bim-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.bim-hud { position: absolute; left: 10px; top: 10px; z-index: 3; font: 600 12px var(--num); color: #dff6ff; padding: 4px 10px; border: 1px solid rgba(61, 220, 151, .6); border-radius: 4px; background: rgba(4, 16, 40, .8); max-width: 60%; }
.bim-hud i, .bim-lbl i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fffb0; box-shadow: 0 0 6px #2fffb0; margin-right: 6px; vertical-align: 1px; }
.bim-layers { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--txt); padding: 6px 10px; border: 1px solid var(--line2); border-radius: 6px; background: rgba(4, 16, 40, .8); }
.bim-layers input { accent-color: var(--cyan); margin-right: 5px; vertical-align: -2px; }
.bim-tools { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line2); border-radius: 6px; background: rgba(4, 16, 40, .8); }
.bim-tools button { border: 0; background: none; color: var(--dim); font-size: 12px; padding: 3px 9px; border-radius: 4px; cursor: pointer; }
.bim-tools button.on, .bim-tools button:hover { background: rgba(47, 211, 255, .18); color: #fff; }
.bim-tools i { width: 1px; background: var(--line2); margin: 2px 3px; }
.bim-axis { position: absolute; right: 12px; bottom: 10px; z-index: 3; font: 11px var(--num); color: var(--mute); }
.bim-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.bim-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11.5px; color: #dff6ff; padding: 3px 8px; border: 1px solid rgba(47, 211, 255, .6); border-radius: 4px; background: rgba(4, 16, 40, .85); }
.bim-lbl.main { border-color: rgba(61, 220, 151, .8); }
.bim-lbl.main2 { border-color: rgba(47, 211, 255, .8); }
.bim-lbl.scn { border-color: rgba(255, 159, 67, .75); border-style: dashed; }
.bim-lbl b { color: #fff; }
.bim-lbl small { display: block; color: #8aa4cc; font-size: 10px; }
.bim-lbl .wq { padding: 0 5px; border-radius: 3px; color: #06142c; margin-left: 4px; }
.bim-slider { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); }
.bim-slider input { flex: 1; }
.bim-slider b { font-family: var(--num); color: #fff; min-width: 36px; text-align: right; }
.bim-bar { font-size: 12px; color: var(--txt); padding: 6px 10px; border-left: 3px solid var(--cyan); background: rgba(13, 38, 80, .5); border-radius: 0 4px 4px 0; line-height: 1.6; }

/* ================= 水质水生态 ================= */
/* 评价月份时间轴 */
.q-time { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 26, 58, .7); flex: 0 1 640px; min-width: 420px; }
.q-time .lb { color: var(--dim); font-size: 12px; white-space: nowrap; }
.q-time .ck-date { min-width: 96px; font-size: 16px; text-align: center; }
.q-track { position: relative; flex: 1; min-width: 160px; height: 24px; display: flex; align-items: center; }
.q-track input[type="range"] { width: 100%; margin: 0; position: relative; z-index: 2; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan) var(--p, 100%), rgba(42, 94, 163, .45) var(--p, 100%)); }
.q-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 10px rgba(47, 211, 255, .8); cursor: pointer; }
.q-track input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 10px rgba(47, 211, 255, .8); cursor: pointer; }
.q-ticks { position: absolute; left: 7px; right: 7px; top: 17px; height: 6px; pointer-events: none; }
.q-ticks i { position: absolute; width: 1px; height: 4px; background: rgba(138, 164, 204, .45); }
.q-ticks i.y { height: 6px; background: var(--yellow); }

/* 达标环 */
.q-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, .85fr); gap: 10px; }
.q-ring { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; padding: 10px 14px; }
.q-ring svg { width: 74px; height: 74px; transform: rotate(-90deg); grid-row: 1; grid-column: 1; }
.q-ring circle { fill: none; stroke-width: 7; }
.q-ring circle.bg { stroke: rgba(42, 94, 163, .3); }
.q-ring circle.fg { stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1), stroke .4s; filter: drop-shadow(0 0 4px currentColor); }
.q-ring-c { grid-row: 1; grid-column: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.q-ring .q-ring-c .v { font-size: 19px; line-height: 1; }
.q-ring .q-ring-c .v .u { font-size: 10px; margin-left: 1px; }
.q-ring-t { min-width: 0; }
.q-ring-t .l { color: #fff; font-size: 13.5px; font-weight: 600; }
.q-ring-n { display: block; font-size: 22px; color: #fff; line-height: 1.3; }
.q-ring-n small { font: 12px "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--dim); margin-left: 2px; }
.q-ring .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-ring.na { opacity: .62; }
.q-ring:focus-visible, .q-kpi-iss:focus-visible { outline: 1px solid var(--cyan); }
.q-kpi-iss { cursor: pointer; display: flex; flex-direction: column; justify-content: center; border-color: rgba(255, 90, 95, .35); background: linear-gradient(135deg, rgba(255, 90, 95, .12), rgba(13, 38, 80, .55) 60%); }
.q-kpi-iss .v { color: #ff8a8d; font-size: 30px; }
.q-kpi-iss::after { background: linear-gradient(90deg, transparent, rgba(255, 90, 95, .7), transparent) !important; }

/* 河段态势图 */
.q-legend { gap: 8px; }
.q-legend i { width: 10px; height: 10px; border-radius: 50%; }
.q-lg-fail { background: transparent !important; border: 2px solid #ff4d4f; box-sizing: border-box; }
.q-river-wrap { position: relative; overflow-x: auto; }
#q-river { min-width: 940px; }
.q-river { display: block; width: 100%; height: auto; user-select: none; }
.q-river-glow { fill: none; stroke: rgba(47, 141, 255, .55); stroke-width: 26; }
.q-river-base { fill: none; stroke: url(#q-rg); stroke-width: 13; stroke-linecap: round; }
.q-river-flow { fill: none; stroke: rgba(200, 240, 255, .85); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 22; animation: q-flow 2.4s linear infinite; }
.q-river-flow.f2 { stroke: rgba(127, 231, 255, .45); stroke-width: 5; stroke-dasharray: 40 90; animation-duration: 5.5s; }
@keyframes q-flow { to { stroke-dashoffset: -100; } }
.q-band { transition: fill .2s; }
.q-rt { font-size: 13px; fill: var(--cyan); font-weight: 600; }
.q-rt2 { fill: var(--dim); font-weight: 400; font-size: 11.5px; }
.q-rt-bad { fill: #ff6b6b; font-size: 11.5px; }
.q-rt-ok { fill: var(--green); font-size: 11.5px; font-weight: 400; }
.q-trib { fill: none; stroke-width: 2.2; opacity: .55; }
.q-trib-flow { fill: none; stroke: rgba(220, 245, 255, .7); stroke-width: 1.4; stroke-dasharray: 2 9; animation: q-flow 3s linear infinite; }
.q-mk { stroke-width: 1.5; transition: r .15s; }
.q-mk.na { stroke-dasharray: 2 2; }
.q-hit { fill: transparent; cursor: pointer; }
.q-dr:hover .q-mk { r: 9; }
.q-dr:hover .q-trib { opacity: 1; stroke-width: 3; }
.q-fail-ring { fill: none; stroke: #ff4d4f; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: q-ping 1.6s ease-out infinite; }
@keyframes q-ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.q-mn { cursor: pointer; }
.q-mn-t { fill: #fff; font-size: 13px; font-weight: 600; }
.q-mn-s { fill: var(--mute); font-size: 11px; }
.q-mn-c { fill: #06142c; font: 700 13px var(--num); pointer-events: none; }
.q-lead { stroke: rgba(127, 231, 255, .35); stroke-dasharray: 2 3; }
.q-core { stroke: #06142c; stroke-width: 3; transition: r .15s; }
.q-halo { fill: none; stroke-width: 2; opacity: .75; transform-box: fill-box; transform-origin: center; animation: q-breathe 2.8s ease-in-out infinite; }
.q-mn.bad .q-halo { stroke-width: 3; animation: q-ping 1.4s ease-out infinite; }
.q-mn:hover .q-core { r: 19; }
.q-mn:hover .q-mn-t { fill: var(--cyan); }
@keyframes q-breathe { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.14); opacity: .3; } }
.q-end circle { fill: #24344f; stroke: #3a4f75; }
.q-end text:first-of-type { fill: var(--dim); font-size: 12px; font-weight: 600; }
.q-tip { position: absolute; display: none; z-index: 9; pointer-events: none; max-width: 320px; background: rgba(5, 18, 42, .96); border: 1px solid #2b5ea3; border-radius: 6px; padding: 7px 10px; font-size: 12px; color: #dbe8ff; line-height: 1.65; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.q-tip b { color: #fff; }

/* 三维水质立方 */
#q-cube > .body { padding: 0; display: flex; }
.q-cube { position: relative; flex: 1; min-height: 470px; overflow: hidden; border-radius: 0 0 6px 6px; background: radial-gradient(70% 70% at 50% 45%, rgba(31, 111, 255, .16), transparent 70%), repeating-linear-gradient(0deg, rgba(47, 140, 255, .04) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(47, 140, 255, .04) 0 1px, transparent 1px 32px); }
.q-cube-cv { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.q-cube-lbls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.q-cl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; color: #9fb8dc; text-shadow: 0 0 4px #000, 0 0 2px #000; will-change: transform; }
.q-cl.row { margin-top: -8px; translate: -100% 0; }
.q-cl.mon { translate: -50% 0; font-family: var(--num); color: #7f9cc7; }
.q-cl.mon.on { color: #04142c; background: var(--cyan); padding: 0 5px; border-radius: 8px; font-weight: 700; z-index: 2; box-shadow: 0 0 10px rgba(47, 211, 255, .7); }
.q-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.q-key i { display: inline-block; width: 14px; height: 6px; border-radius: 1px; }
.q-key i.cap { background: #fff; }
.q-key i.goal { height: 0; border-top: 2px dashed #ffd34d; }
.q-key i.col { background: rgba(47, 211, 255, .35); border: 1px solid #7fe7ff; height: 10px; }
.q-side { gap: 12px; align-content: start; }
.q-cbar { margin: 7px 0; }
.q-cbar .bar { height: 8px; overflow: visible; }
.q-cbar .bar > i { transition: width .7s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 8px rgba(47, 211, 255, .35); }
.q-cbar .bar > em { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: #fff; border-radius: 1px; transition: left .7s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 4px #fff; }
.q-cnote { margin-top: 6px; font-size: 11.5px; color: var(--mute); }

/* 类别矩阵 */
.q-mbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; min-height: 26px; }
.q-chips, .q-ibar { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.q-chips button, .q-ibar button { border: 1px solid var(--line2); background: rgba(26, 72, 140, .25); color: var(--dim); border-radius: 12px; padding: 1px 10px; font-size: 12px; cursor: pointer; transition: all .15s; }
.q-chips button:hover, .q-ibar button:hover { color: #fff; border-color: var(--cyan); }
.q-chips button.on, .q-ibar button.on { background: rgba(47, 211, 255, .18); color: #fff; border-color: var(--cyan); }
.q-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--txt); cursor: pointer; }
.q-chk input { accent-color: var(--cyan); }

.q-mwrap { position: relative; }
.q-mscroll { max-height: 540px; overflow: auto; border: 1px solid rgba(42, 94, 163, .35); border-radius: 6px; background: rgba(4, 14, 34, .35); scrollbar-width: thin; scrollbar-color: #2a5ea3 transparent; }
.q-mx { border-collapse: separate; border-spacing: 0; font-size: 12px; table-layout: fixed; }
.q-mx.fit { width: 100%; min-width: 900px; }
.q-mx col.c-lb { width: 250px; } .q-mx.wide col.c-lb { width: 340px; } .q-mx col.c-sm { width: 84px; } .q-mx:not(.fit) { width: 100%; } .q-mx:not(.fit) col.c-lb { width: auto; } .q-mx:not(.fit) col.c-m { width: 72px; }
.q-mx th.lb { position: sticky; left: 0; z-index: 2; background: #071a3a; text-align: left; padding: 0 10px 0 12px; border-right: 1px solid rgba(42, 94, 163, .45); }
.q-mx th.sm, .q-mx td.sm { position: sticky; right: 0; z-index: 2; background: #071a3a; border-left: 1px solid rgba(42, 94, 163, .45); padding: 0 8px; text-align: right; }
/* 表头吸附：年份行 + 月份行 */
.q-mx thead th { position: sticky; z-index: 3; background: #0a2148; color: var(--dim); font-weight: 500; white-space: nowrap; }
.q-mx thead tr.yr th { top: 0; height: 22px; font: 600 11.5px var(--num); color: #7f9cc7; letter-spacing: 1px; border-bottom: 1px solid rgba(42, 94, 163, .3); }
.q-mx thead tr.mo th { top: 22px; height: 24px; font: 11px var(--num); cursor: pointer; border-bottom: 1px solid rgba(42, 94, 163, .55); transition: color .15s; }
.q-mx thead tr.mo th:hover { color: #fff; }
.q-mx thead th.lb, .q-mx thead th.sm { z-index: 4; top: 0; color: var(--dim); font: 500 12px "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; vertical-align: middle; }
.q-mx thead tr.mo th.cur { color: #04142c; font-weight: 700; background: linear-gradient(180deg, #7fe7ff, #2fd3ff); box-shadow: 0 0 10px rgba(47, 211, 255, .55); }
/* 年份分隔 */
.q-mx .ys { border-left: 1px dashed rgba(255, 211, 77, .35); }
/* 行 */
.q-mx tbody th.lb { height: 26px; font-weight: 400; cursor: pointer; }
.q-mx tbody th.lb > div { display: flex; align-items: baseline; gap: 2px; overflow: hidden; white-space: nowrap; }
.q-mx tbody th.lb em { font-style: normal; color: var(--mute); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.q-mx tbody th.lb span { color: var(--txt); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.q-mx tbody th.lb small { color: var(--mute); font-size: 11px; margin-left: 6px; flex: none; }
.q-mx tbody tr[data-id]:hover th.lb, .q-mx tbody tr[data-id]:hover td.sm { background: #0c2a58; }
.q-mx tbody tr[data-id]:hover th.lb span { color: var(--cyan); }
.q-mx tbody tr[data-id]:hover td { background-color: rgba(47, 211, 255, .05); }
.q-mx tbody tr[data-id] + tr[data-id] > * { border-top: 1px solid rgba(42, 94, 163, .14); }
/* 格子 */
.q-mx td[data-m] { padding: 2px 1px; text-align: center; cursor: pointer; }
.q-mx td[data-m].cur { background: rgba(47, 211, 255, .14) !important; box-shadow: inset 1px 0 0 rgba(127, 231, 255, .5), inset -1px 0 0 rgba(127, 231, 255, .5); }
.q-mx td i { display: block; height: 20px; border-radius: 3px; font: 700 10.5px/20px var(--num); font-style: normal; color: #06142c; position: relative; transition: transform .12s, box-shadow .12s; }
.q-mx td i.na { background: repeating-linear-gradient(135deg, rgba(42, 94, 163, .22) 0 3px, rgba(42, 94, 163, .08) 3px 6px); }
.q-mx td i.f { box-shadow: inset 0 0 0 2px #fff; }
.q-mx td i.f::after { content: ""; position: absolute; right: 0; top: 0; border: 4px solid transparent; border-top-color: #ff2d55; border-right-color: #ff2d55; border-top-right-radius: 3px; }
.q-mx td i sup { font-size: 8px; line-height: 0; margin-left: 1px; }
.q-mx td[data-m]:hover i { transform: scale(1.22); z-index: 1; box-shadow: 0 0 0 1px #fff, 0 4px 12px rgba(0, 0, 0, .55); }
.q-mx td[data-m]:hover i.f { box-shadow: inset 0 0 0 2px #fff, 0 4px 12px rgba(0, 0, 0, .55); }
/* 行末达标率 */
.q-mx td.sm b { font: 600 12.5px var(--num); display: block; line-height: 1.2; }
.q-mx td.sm .mb { display: block; height: 3px; border-radius: 2px; background: rgba(42, 94, 163, .35); overflow: hidden; margin-top: 2px; }
.q-mx td.sm .mb i { display: block; height: 100%; border-radius: 2px; opacity: .85; }
/* 分组行 */
.q-mx tr.grp > * { height: 28px; background: rgba(13, 38, 80, .75); border-top: 1px solid rgba(47, 211, 255, .25); }
.q-mx tr.grp th.lb { color: var(--cyan); font-weight: 600; font-size: 12.5px; background: #0b2550; }
.q-mx tr.grp th.lb small { color: var(--mute); font-weight: 400; margin-left: 6px; font-size: 11px; }
.q-mx tr.grp td.sm { background: #0b2550; }
.q-mx tr.grp td.sm b { font-size: 12px; }
.q-mx tr.grp td[colspan] span { display: block; height: 1px; background: linear-gradient(90deg, rgba(47, 211, 255, .35), transparent 70%); }
.q-proj { margin-bottom: 14px; }
.q-proj-t { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.q-proj .note { margin-top: 4px; }
.q-proj .q-mx { width: 100%; min-width: 0; border: 1px solid rgba(42, 94, 163, .35); border-radius: 6px; }
/* 图例 */
.q-mleg { font-size: 11.5px; gap: 12px; }
.q-mleg i { border-radius: 3px; }
.q-mleg i.na { background: repeating-linear-gradient(135deg, rgba(42, 94, 163, .5) 0 2px, rgba(42, 94, 163, .15) 2px 4px); }
.q-mleg i.f { background: #ffd34d; box-shadow: inset 0 0 0 2px #fff; position: relative; }
.q-mleg i.f::after { content: ""; position: absolute; right: 0; top: 0; border: 3px solid transparent; border-top-color: #ff2d55; border-right-color: #ff2d55; border-top-right-radius: 2px; }
.q-mleg i.cur { background: rgba(47, 211, 255, .25); border: 1px solid #7fe7ff; }
.q-mleg b { color: var(--txt); }

/* 问题清单 */
.q-flow { margin-bottom: 8px; }
.q-flow span { padding: 1px 8px; font-size: 11.5px; }
.q-ibar { margin-bottom: 8px; }
.q-ilist { display: flex; flex-direction: column; gap: 6px; max-height: 500px; overflow: auto; padding-right: 2px; }
.q-iss { padding: 7px 10px; border: 1px solid rgba(42, 94, 163, .45); border-left: 3px solid var(--yellow); border-radius: 5px; background: rgba(8, 26, 58, .6); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.q-iss.key { border-left-color: #ff4d4f; background: linear-gradient(90deg, rgba(255, 77, 79, .1), rgba(8, 26, 58, .6) 50%); }
.q-iss:hover { border-color: var(--cyan); transform: translateX(2px); }
.q-iss .h { display: flex; align-items: center; gap: 6px; }
.q-iss .h b { color: #fff; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-iss .h .tag { font-size: 11px; line-height: 18px; }
.q-iss .m { font-size: 11.5px; color: var(--mute); margin: 1px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-iss .strip { display: flex; gap: 3px; align-items: flex-end; }
.q-iss .strip span { flex: 1; max-width: 40px; text-align: center; border-radius: 3px; font: 700 11px/18px var(--num); color: #06142c; position: relative; }
.q-iss .strip span.na { background: #1b2a44; color: #50668c; }
.q-iss .strip span.f { box-shadow: inset 0 0 0 2px #fff; }
.q-iss .strip span small { position: absolute; left: 0; right: 0; top: 18px; font: 9.5px/12px var(--num); color: var(--mute); }
.q-iss .strip { padding-bottom: 12px; }
.q-iss .strip em { margin-left: auto; font-style: normal; font-size: 18px; color: #ff8a8d; line-height: 1; align-self: center; }
.q-iss .strip em small { font: 11px sans-serif; color: var(--mute); }

/* 详情弹窗 */
.q-det-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.q-det-kv > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.q-det-kv span { display: block; font-size: 11.5px; color: var(--dim); }
.q-det-kv b { color: #fff; font-size: 15px; }
.q-det-kv b small { color: var(--dim); font-size: 11px; font-weight: 400; }
.q-det tr.q-focus td { background: rgba(47, 211, 255, .1); }

/* 说明折叠 */
.q-notes { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 8px 14px; }
.q-notes summary { cursor: pointer; color: var(--dim); font-size: 13px; }
.q-notes summary:hover { color: #fff; }
.q-notes ul { margin-top: 8px; }

@media (max-width: 1400px) { .q-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .q-time { flex-basis: 100%; min-width: 0; } .q-cube { min-height: 420px; } }
@media (max-width: 860px) { .q-kpis { grid-template-columns: 1fr 1fr; } .q-det-kv { grid-template-columns: 1fr 1fr; } .q-time .lb { display: none; } }
@media (prefers-reduced-motion: reduce) { .q-river-flow, .q-trib-flow, .q-fail-ring, .q-halo, .q-iss { animation: none !important; } }
/* ---------- 城乡供水 · 西线供水拓扑与停运推演 ---------- */
.wl { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; }
.wl-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wl-tl { position: relative; display: flex; }
.wl-tl .trk { position: absolute; top: 9px; height: 2px; background: var(--line2); border-radius: 1px; }
.wl-tl .trk i { display: block; height: 100%; background: linear-gradient(90deg, #1f8fff, var(--cyan)); box-shadow: 0 0 6px rgba(47, 211, 255, .6); transition: width .5s ease; }
.wl-tl button { flex: 1; position: relative; border: 0; background: none; cursor: pointer; color: var(--mute); padding: 22px 2px 0; font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wl-tl button em { position: absolute; top: 3px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--line2); transition: all .3s; }
.wl-tl button b { font-weight: 600; font-size: 12.5px; }
.wl-tl button.done { color: var(--dim); }
.wl-tl button.done em { border-color: var(--cyan); background: #0c3a66; }
.wl-tl button.on { color: #fff; }
.wl-tl button.on em { background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 211, 255, .2), 0 0 10px var(--cyan); }
.wl-tl button:hover { color: #fff; }
.wl-cap { font-size: 12px; color: var(--dim); text-align: center; min-height: 18px; }
.wl-cap b { color: var(--cyan); font-weight: 500; margin-right: 4px; }
.wl-stage { position: relative; border: 1px solid rgba(42, 94, 163, .35); border-radius: 6px; background: radial-gradient(900px 300px at 60% 40%, rgba(20, 70, 140, .18), transparent 70%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(42, 94, 163, .08) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(42, 94, 163, .08) 39px 40px); }
.wl-svg { display: block; width: 100%; height: auto; user-select: none; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.wl-svg [tabindex]:focus { outline: none; }
.wl-zone { fill: rgba(143, 179, 224, .35); font-size: 12px; letter-spacing: 4px; }
/* 设施 */
.wl-n { cursor: pointer; transition: opacity .3s; --c: var(--cyan); }
.wl-t-src { --c: #3a9bff; } .wl-t-pump { --c: #ffd34d; } .wl-t-res { --c: #a78bfa; } .wl-t-plant { --c: #ff9f43; } .wl-t-user { --c: #ff6b9a; } .wl-t-irr { --c: #3ddc97; }
.wl-n .bx { fill: rgba(9, 30, 66, .94); stroke: var(--c); stroke-width: 1.3; transition: stroke .25s, fill .2s; }
.wl-n .ac { fill: var(--c); }
.wl-n .t { fill: #fff; font-size: 13px; font-weight: 600; }
.wl-n .s { fill: #8fb3e0; font-size: 11px; font-family: var(--num), "PingFang SC", sans-serif; }
.wl-n .wv { fill: none; stroke: var(--c); stroke-width: 1.4; opacity: .7; }
.wl-n .gw circle { fill: rgba(255, 159, 67, .12); stroke: rgba(255, 159, 67, .7); }
.wl-n .gw text { fill: #ffb870; font-size: 10px; font-weight: 600; }
.wl-n:hover .bx, .wl-n:focus .bx { fill: rgba(22, 56, 110, .96); }
.wl-n.sel .bx { stroke-width: 2.4; filter: drop-shadow(0 0 6px var(--c)); }
.wl-n.st-ok.wl-t-user .bx { fill: rgba(16, 48, 60, .94); }
.wl-n.st-buf { --c: var(--yellow); }
.wl-n.st-gw { --c: var(--orange); }
.wl-n.st-cut, .wl-n.st-off { --c: var(--red); }
.wl-n.st-off .bx { stroke-dasharray: 5 3; fill: rgba(70, 14, 24, .9); }
.wl-n.st-dead { opacity: .45; --c: #3e5579; }
.wl-n.st-plan { opacity: .6; --c: #4f6f9f; } .wl-n.st-plan .bx { stroke-dasharray: 5 4; fill: rgba(9, 30, 66, .5); }
.wl-n.st-future { opacity: .16; } .wl-n.st-future .bx { stroke-dasharray: 5 4; }
.wl-bd rect { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.wl-bd text { fill: #06142c; font-size: 10.5px; font-weight: 700; }
.wl-jn { fill: var(--cyan); stroke: #071a3a; stroke-width: 2; }
.wl-jn.st-dead, .wl-jn.st-off { fill: #3e5579; }
/* 管段 */
.wl-e { cursor: pointer; transition: opacity .3s; }
.wl-e .base { fill: none; stroke: #183a66; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.wl-e .flow { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 2 10; animation: wlflow .9s linear infinite; }
.wl-e .hit { fill: none; stroke: transparent; stroke-width: 18; }
.wl-e:hover .base { stroke: rgba(127, 231, 255, .55); }
.wl-e.st-ok .base { stroke: rgba(47, 211, 255, .3); }
.wl-e.st-buf .base { stroke: rgba(255, 211, 77, .3); } .wl-e.st-buf .flow { stroke: var(--yellow); }
.wl-e.st-dead .flow, .wl-e.st-off .flow, .wl-e.st-plan .flow, .wl-e.st-future .flow, .wl-e.idle .flow { display: none; }
.wl-e.st-dead { opacity: .5; }
.wl-e.st-off .base { stroke: rgba(255, 90, 95, .75); stroke-dasharray: 7 6; }
.wl-e.st-plan .base { stroke: #35588a; stroke-dasharray: 6 6; }
.wl-e.st-future { opacity: .14; } .wl-e.st-future .base { stroke-dasharray: 6 6; }
.wl-e.idle.st-ok .base, .wl-e.idle.st-buf .base { stroke-dasharray: 3 5; }
.wl-e.rev .flow { animation-direction: reverse; }
.wl-e.irr .base { stroke: rgba(61, 220, 151, .25); stroke-dasharray: 6 5; } .wl-e.irr .flow { stroke: var(--green); }
.wl-e.sel .base { stroke: rgba(255, 255, 255, .7); }
.wl-el { fill: #9fc3ee; font-size: 11px; paint-order: stroke; stroke: #06152f; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.wl-el.st-future { opacity: .2; } .wl-el.st-off { fill: #ff9aa0; } .wl-el.st-buf { fill: #ffe39a; } .wl-el.st-dead { opacity: .5; }
@keyframes wlflow { to { stroke-dashoffset: -12; } }
/* 截断点 */
.wl-valve { cursor: pointer; }
.wl-valve rect { fill: #0e5aa8; stroke: #7fd0ff; stroke-width: 1.2; filter: drop-shadow(0 0 4px rgba(47, 160, 255, .6)); transition: fill .2s; }
.wl-valve text { fill: #fff; font-size: 11.5px; font-weight: 700; pointer-events: none; }
.wl-valve text.vn { fill: #8fb3e0; font-size: 10px; font-weight: 600; paint-order: stroke; stroke: #06152f; stroke-width: 3px; }
.wl-valve:hover rect, .wl-valve:focus rect { fill: #1877d6; }
.wl-valve.shut rect { fill: #c9303b; stroke: #ffb0b4; filter: drop-shadow(0 0 5px rgba(255, 90, 95, .8)); }
.wl-valve.shut text.vn { fill: #ff9aa0; }
.wl-tip { position: absolute; z-index: 5; max-width: 220px; pointer-events: none; opacity: 0; transition: opacity .12s; background: rgba(5, 18, 42, .96); border: 1px solid #2b5ea3; border-radius: 4px; padding: 6px 9px; font-size: 12px; line-height: 1.5; color: #dbe8ff; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.wl-tip b { color: #fff; }
.wl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--dim); }
.wl-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.wl-legend .lg-ok { background: var(--cyan); box-shadow: 0 0 5px var(--cyan); } .wl-legend .lg-buf { background: var(--yellow); }
.wl-legend .lg-off { background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 8px); } .wl-legend .lg-plan { background: repeating-linear-gradient(90deg, #4f6f9f 0 5px, transparent 5px 8px); }
.wl-legend .vv { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 3px; background: #0e5aa8; color: #fff; font-size: 10px; margin-right: 4px; }
/* 侧栏 */
.wl-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wl-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.wl-card h4 { margin: 0 0 8px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 6px; }
.wl-card h4 .x { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 18px; line-height: 1; cursor: pointer; }
.wl-card h4 .x:hover { color: #fff; }
.wl-card ul.clean { margin-top: 6px; }
.wl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.wl-meta b { color: var(--cyan); font-size: 13px; }
.wl-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(42, 94, 163, .4); }
.wl-scen { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-offs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wl-off { border: 1px solid rgba(255, 90, 95, .6); background: rgba(255, 90, 95, .12); color: #ffb0b4; border-radius: 12px; padding: 0 9px; font-size: 12px; line-height: 22px; cursor: pointer; }
.wl-off:hover { background: rgba(255, 90, 95, .25); color: #fff; }
.wl-sum { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.wl-sum b { color: var(--green); font-size: 18px; margin-right: 1px; }
.wl-tbl td { padding: 5px 6px; font-size: 12.5px; }
.wl-tbl td:first-child { white-space: nowrap; color: var(--txt); }
.wl-tbl td.note { font-size: 11.5px; line-height: 1.45; }
.wl-tbl tr { cursor: pointer; }
.wl-tbl tr.mute td:first-child { color: var(--mute); }
.wl-fn { font-size: 11px !important; color: var(--mute) !important; margin: 6px 0 0; }
@media (max-width: 1280px) { .wl { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wl-e .flow { animation: none; } }
/* ---------- 移动端联动：顶栏按钮、右侧手机抽屉、推送横幅、PC 回执 ---------- */
.pd-btn { display: inline-flex; align-items: center; gap: 4px; position: relative; }
.pd-btn svg { width: 15px; height: 15px; }
.pd-badge { position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff4d4f; color: #fff; font: 700 10.5px/17px var(--num); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #071530; }
.pd-btn.pd-ring { animation: pdring .7s ease; }
@keyframes pdring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.pd { position: fixed; top: var(--top); right: 0; bottom: 0; width: 400px; z-index: 140; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(8, 26, 58, .98), rgba(4, 13, 30, .98)); border-left: 1px solid var(--line2); box-shadow: -12px 0 30px rgba(0, 0, 0, .45); transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.pd.on { transform: none; }
.pd > header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(42, 94, 163, .4); }
.pd > header b { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 14px; white-space: nowrap; }
.pd > header b svg { width: 16px; height: 16px; color: var(--cyan); }
.pd-stat { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-stat b { color: var(--cyan); font-weight: 600; }
.pd > header .x { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 20px; cursor: pointer; line-height: 1; }
.pd > header .x:hover { color: #fff; }
.pd-phone { flex: 1; min-height: 0; margin: 12px auto 8px; width: 352px; padding: 10px; border-radius: 40px; background: #0b0f19; box-shadow: 0 0 0 2px #2a3550, 0 20px 50px rgba(0, 0, 0, .6); }
.pd-scr { height: 100%; border-radius: 31px; overflow: hidden; background: #f3f6fb; color: #1b2a44; display: flex; flex-direction: column; font-size: 13px; }
.pd-scr .m-status { height: 34px; padding: 0 22px 4px; font-size: 12px; }
.pd-scr .m-head { padding: 6px 16px 10px; }
.pd-scr .m-head h4 { font-size: 16px; }
.pd-scr .m-body { padding: 10px 10px 14px; }
.pd-tabs { display: flex; gap: 6px; padding: 8px 10px 0; background: #fff; border-bottom: 1px solid #e3e9f3; }
.pd-tabs button { border: 0; background: none; padding: 4px 8px 7px; font-size: 13px; color: #6b7a96; cursor: pointer; border-bottom: 2px solid transparent; }
.pd-tabs button i { font-style: normal; font-size: 10.5px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #e6ecf6; color: #5d6b85; }
.pd-tabs button.on { color: #0f62d6; font-weight: 600; border-color: #0f62d6; }
.pd-tabs button.on i { background: #0f62d6; color: #fff; }
.pd-msg { background: #fff; border-radius: 12px; padding: 10px 11px; margin-bottom: 9px; box-shadow: 0 1px 3px rgba(20, 40, 80, .08); border-left: 4px solid var(--lc); animation: pdin .35s ease; }
.pd-msg.focus { box-shadow: 0 0 0 2px rgba(15, 98, 214, .35), 0 4px 12px rgba(20, 40, 80, .12); }
.pd-msg.done { opacity: .72; }
@keyframes pdin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.pd-msg .top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8a99b3; margin-bottom: 4px; }
.pd-msg .top .lv { color: #fff; border-radius: 4px; padding: 0 5px; line-height: 17px; font-weight: 600; }
.pd-msg .top .ago { margin-left: auto; }
.pd-msg > b { display: block; font-size: 13.5px; color: #1b2a44; line-height: 1.4; }
.pd-msg > p { margin: 3px 0 4px; font-size: 12px; color: #4a5b78; line-height: 1.55; }
.pd-msg > p b { color: #1b2a44; }
.pd-msg .to { font-size: 11px; color: #8a99b3; }
.pd-msg .to a { color: #0f62d6; }
.pd-ok { margin-top: 6px; font-size: 11.5px; color: #138a54; background: #eafaf2; border-radius: 6px; padding: 4px 7px; }
.pd-ok.done { color: #0f62d6; background: #eef5ff; }
.pd-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.pd-b { border: 1px solid #cfd9ea; background: #fff; color: #33445f; border-radius: 14px; padding: 2px 11px; font-size: 12px; line-height: 20px; cursor: pointer; }
.pd-b:hover { border-color: #0f62d6; color: #0f62d6; }
.pd-b.pri { background: #0f62d6; border-color: #0f62d6; color: #fff; }
.pd-b.pri:hover { background: #1a7cf0; color: #fff; }
.pd-form { margin-top: 7px; padding: 8px; border-radius: 8px; background: #f3f6fb; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 12px; }
.pd-form label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.pd-form input[type="text"] { grid-column: span 2; border: 1px solid #cfd9ea; border-radius: 6px; padding: 4px 7px; font: inherit; color: #1b2a44; background: #fff; }
.pd-form .pd-acts { grid-column: span 2; margin-top: 2px; }
.pd-empty { text-align: center; color: #8a99b3; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; line-height: 1.7; }
.pd-empty svg { width: 40px; height: 40px; color: #c3cfe3; }
.pd-empty b { color: #5d6b85; font-size: 13.5px; }
.pd-empty span { text-align: left; }
.pd > footer { display: flex; gap: 8px; justify-content: center; padding: 8px 12px 12px; }
.pd-toasts { position: fixed; top: calc(var(--top) + 10px); right: 14px; z-index: 170; width: 330px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.pd-toast { pointer-events: auto; cursor: pointer; background: rgba(245, 248, 253, .97); color: #1b2a44; border-radius: 14px; padding: 9px 12px 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); border-left: 4px solid var(--lc); animation: pdtoast .35s cubic-bezier(.2, .8, .2, 1); transition: opacity .35s, transform .35s; }
.pd-toast.out { opacity: 0; transform: translateX(40px); }
.pd-toast .hd { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7a96; }
.pd-toast .hd svg { width: 13px; height: 13px; color: #0f62d6; }
.pd-toast .hd em { font-style: normal; color: var(--lc); font-weight: 700; }
.pd-toast .hd i { margin-left: auto; font-style: normal; }
.pd-toast b { display: block; font-size: 13px; margin-top: 3px; }
.pd-toast p { margin: 2px 0 0; font-size: 12px; color: #4a5b78; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes pdtoast { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.pd-receipt { position: fixed; left: 50%; top: calc(var(--top) + 14px); transform: translateX(-50%); z-index: 180; background: rgba(9, 44, 34, .96); border: 1px solid rgba(61, 220, 151, .7); color: #d8ffe9; border-radius: 6px; padding: 8px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); display: flex; flex-direction: column; align-items: center; gap: 1px; animation: pdtoast .3s ease; transition: opacity .35s; max-width: 70vw; }
.pd-receipt b { color: #fff; font-size: 13.5px; }
.pd-receipt span { font-size: 12px; color: #a6e9c6; }
.pd-receipt.out { opacity: 0; }
.pd-flash { animation: pdflash 2.4s ease; }
@keyframes pdflash { 0%, 100% { box-shadow: none; } 15%, 55% { box-shadow: 0 0 0 2px var(--cyan), 0 0 26px rgba(47, 211, 255, .55); } }
body.pd-open #view { margin-right: 400px; transition: margin-right .32s; }
body.pd-open .ai-fab { right: 422px; }
body.pd-open .ai-drawer.open { right: 412px; }
.wl-push { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
@media (max-width: 1100px) { body.pd-open #view { margin-right: 0; } .pd { width: min(400px, 100vw); } }
@media (max-height: 760px) { .pd-phone { width: 330px; border-radius: 32px; } .pd-scr { border-radius: 24px; } }
/* ---------- 城乡供水 · “一张网”产品思路 ---------- */
.na { display: flex; flex-direction: column; gap: 12px; --real: #3ddc97; --proto: #2fd3ff; --part: #ffd34d; --plan: #5d7399; }
.na-lg { display: inline-flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); }
.na-lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; border: 1.5px solid; }
.na-lg i.real { border-color: #3ddc97; background: rgba(61, 220, 151, .18); } .na-lg i.proto { border-color: #2fd3ff; background: rgba(47, 211, 255, .18); }
.na-lg i.part { border-color: #ffd34d; background: rgba(255, 211, 77, .15); } .na-lg i.plan { border-color: #5d7399; border-style: dashed; }
.na-top { display: flex; align-items: center; gap: 16px; }
.na-top .note { margin: 0; flex: 1; }
.na-sum { display: flex; gap: 8px; flex: none; }
.na-k { min-width: 84px; padding: 6px 12px; border-radius: 6px; border: 1px solid; display: flex; align-items: baseline; gap: 6px; }
.na-k b { font-size: 24px; line-height: 1.1; }
.na-k span { font-size: 12px; color: var(--dim); }
.na-k.real { border-color: rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .08); } .na-k.real b { color: var(--real); }
.na-k.proto { border-color: rgba(47, 211, 255, .5); background: rgba(47, 211, 255, .08); } .na-k.proto b { color: var(--proto); }
.na-k.part { border-color: rgba(255, 211, 77, .45); background: rgba(255, 211, 77, .07); } .na-k.part b { color: var(--part); }
.na-k.plan { border-color: rgba(93, 115, 153, .6); border-style: dashed; } .na-k.plan b { color: #8aa4cc; }
.na-cols { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.na-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(13, 38, 80, .35); border: 1px solid rgba(42, 94, 163, .35); }
.na-col > header { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 4px; border-bottom: 1px solid rgba(42, 94, 163, .35); margin-bottom: 2px; }
.na-col > header b { color: var(--cyan); font-size: 15px; letter-spacing: 2px; }
.na-col > header span { color: var(--mute); font-size: 12px; }
.na-arr { display: flex; align-items: center; justify-content: center; }
.na-arr i { width: 100%; height: 2px; position: relative; background: linear-gradient(90deg, rgba(47, 211, 255, .1), rgba(47, 211, 255, .8)); }
.na-arr i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid rgba(47, 211, 255, .9); border-right: 0; }
.na-it { position: relative; padding: 7px 26px 7px 10px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); border-left-width: 3px; font-size: 12px; color: var(--dim); line-height: 1.5; transition: border-color .2s, background .2s, transform .2s; }
.na-it > b { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; margin-bottom: 1px; }
.na-it > b em { font-style: normal; font-size: 10.5px; font-weight: 500; padding: 0 5px; border-radius: 3px; line-height: 16px; margin-left: auto; }
.na-it.real { border-left-color: var(--real); } .na-it.real > b em { color: var(--real); background: rgba(61, 220, 151, .14); }
.na-it.proto { border-left-color: var(--proto); } .na-it.proto > b em { color: var(--proto); background: rgba(47, 211, 255, .14); }
.na-it.part { border-left-color: var(--part); } .na-it.part > b em { color: var(--part); background: rgba(255, 211, 77, .12); }
.na-it.plan { border-style: dashed; border-left-style: solid; border-left-color: var(--plan); background: rgba(13, 38, 80, .25); } .na-it.plan > b { color: #b9c9e4; } .na-it.plan > b em { color: #8aa4cc; background: rgba(93, 115, 153, .2); }
.na-it.lk { cursor: pointer; }
.na-it.lk:hover { background: rgba(20, 56, 110, .7); border-color: rgba(47, 211, 255, .6); transform: translateX(2px); }
.na-go { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--cyan); font-size: 18px; opacity: .6; }
.na-it.lk:hover .na-go { opacity: 1; }
.na-row h5 { margin: 0 0 6px; font-size: 13.5px; color: #fff; font-weight: 600; }
.na-row h5 small { color: var(--mute); font-weight: 400; font-size: 12px; margin-left: 6px; }
.na-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.na-rule > b .na-ev { color: #ffd38a; } .na-rule > b .na-ac { color: #9ff0c9; } .na-rule > b i { font-style: normal; color: var(--cyan); }
.na-rule.plan > b .na-ev, .na-rule.plan > b .na-ac { color: #b9c9e4; }
.na-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.na-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.na-roles > div { padding: 7px 10px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; color: var(--dim); display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
.na-roles b { color: #fff; font-size: 13px; }
.na-roles em { font-style: normal; color: var(--cyan); font-size: 11.5px; justify-self: end; align-self: center; border: 1px solid rgba(47, 211, 255, .4); border-radius: 3px; padding: 0 5px; line-height: 17px; }
.na-roles span { grid-column: span 2; }
.na-road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.na-road > div { position: relative; padding: 18px 12px 0 0; font-size: 12px; color: var(--dim); line-height: 1.55; }
.na-road > div::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: rgba(93, 115, 153, .5); }
.na-road > div.real::before { background: linear-gradient(90deg, var(--real), rgba(61, 220, 151, .4)); }
.na-road > div i { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--plan); }
.na-road > div.real i { background: var(--real); border-color: var(--real); box-shadow: 0 0 8px rgba(61, 220, 151, .7); }
.na-road b { display: block; color: #8aa4cc; font-size: 11.5px; font-weight: 500; }
.na-road > div.real b { color: var(--real); }
.na-road strong { display: block; color: #fff; font-size: 13px; margin: 1px 0 2px; }
@media (max-width: 1400px) { .na-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .na-two { grid-template-columns: 1fr; } .na-top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 1000px) { .na-cols { grid-template-columns: 1fr; gap: 8px; } .na-arr { display: none; } .na-road { grid-template-columns: 1fr; gap: 10px; } }
/* ---------- 城乡供水 · 水源地水质 / 春旱回看 / 盐环定 ---------- */
.sq { display: flex; flex-direction: column; gap: 10px; }
.sq-top { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(61, 220, 151, .1), rgba(61, 220, 151, 0)); border: 1px solid rgba(61, 220, 151, .25); }
.sq-top > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.sq-top b { color: #fff; font-size: 13.5px; }
.sq-top span { color: var(--dim); font-size: 11.5px; line-height: 1.5; }
.sq-ring { --p: 0; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(93, 115, 153, .35) 0); -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px); mask: radial-gradient(circle, transparent 19px, #000 20px); position: relative; }
.sq-ring b { position: absolute; inset: 0; display: grid; place-items: center; }
.sq-top .sq-ring + div { margin-left: 0; }
.sq-top .sq-ring { -webkit-mask: none; mask: none; background: radial-gradient(circle, #0a2148 0 19px, transparent 20px), conic-gradient(var(--green) calc(var(--p) * 1%), rgba(93, 115, 153, .35) 0); }
.sq-ring b { color: var(--green); font-size: 18px; }
.sq-ring b small { color: var(--dim); font-size: 11px; }
.sq-card { padding: 10px 12px 12px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--green); transition: border-color .2s, background .2s; }
.sq-card:hover { background: rgba(20, 56, 110, .6); border-color: rgba(47, 211, 255, .45); border-left-color: var(--green); }
.sq-card.bad { border-left-color: var(--red); }
.sq-card > header { display: flex; align-items: center; gap: 8px; }
.sq-card > header b { color: #fff; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-st { flex: none; font-size: 11px; padding: 0 7px; border-radius: 9px; line-height: 18px; color: var(--dim); border: 1px solid var(--line2); }
.sq-st.ok { color: #06142c; background: var(--green); border-color: var(--green); font-weight: 600; }
.sq-st.bad { color: #fff; background: var(--red); border-color: var(--red); font-weight: 600; }
.sq-meta { font-size: 11.5px; color: var(--mute); margin: 2px 0 26px; }
.sq-meta b { color: var(--txt); font-weight: 500; }
.sq-meta a { color: #6fb6e8; cursor: pointer; }
.sq-axis { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); height: 18px; border-radius: 4px; overflow: visible; }
.sq-axis > span { display: grid; place-items: center; font-size: 10.5px; color: var(--mute); border-right: 1px solid rgba(4, 11, 26, .6); }
.sq-axis > span.in { background: rgba(61, 220, 151, .16); color: #9ff0c9; }
.sq-axis > span.out { background: rgba(93, 115, 153, .14); }
.sq-axis > span:first-child { border-radius: 4px 0 0 4px; } .sq-axis > span:last-child { border-radius: 0 4px 4px 0; border-right: 0; }
.sq-goal { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--yellow); box-shadow: 0 0 6px rgba(255, 211, 77, .7); }
.sq-pin { position: absolute; bottom: calc(100% + 5px); transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 16px; padding: 0 5px; border-radius: 3px; background: var(--pc); color: #06142c; white-space: nowrap; cursor: default; }
.sq-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--pc); }
.sq-fn { margin: 0; font-size: 11.5px !important; }
#s-dry-t .tbl td, #s-dry-t .tbl th { padding: 5px 6px; font-size: 12px; }
#s-dry-t .callout { font-size: 12px; line-height: 1.6; }
.yh { display: flex; flex-direction: column; gap: 10px; }
.yh-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.yh-kpi { display: flex; flex-direction: column; gap: 6px; }
.yh-kpi > div { padding: 6px 10px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.yh-kpi span { display: block; font-size: 11.5px; color: var(--dim); }
.yh-kpi b { font-size: 19px; color: #fff; line-height: 1.25; }
.yh-kpi b small { font: 11px "PingFang SC", sans-serif; color: var(--dim); margin-left: 4px; }
.yh-kpi b.ok { color: var(--green); }
.yh-list { display: flex; flex-direction: column; gap: 4px; }
.yh-it { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; gap: 2px 8px; align-items: center; padding: 6px 10px; border-radius: 5px; cursor: default; transition: background .2s; }
.yh-it:hover { background: rgba(47, 211, 255, .08); }
.yh-it > i { width: 10px; height: 10px; border-radius: 2px; }
.yh-it > span { font-size: 12.5px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-it em { font-style: normal; font-size: 10.5px; margin-left: 6px; padding: 0 4px; border-radius: 3px; color: var(--dim); border: 1px solid var(--line2); }
.yh-it em.x { color: var(--yellow); border-color: rgba(255, 211, 77, .5); }
.yh-it > b { font-size: 15px; color: #fff; text-align: right; }
.yh-it > small { font-size: 11.5px; color: var(--dim); text-align: right; font-family: var(--num); }
.yh-bar { grid-column: 2 / 5; height: 4px; border-radius: 2px; background: rgba(93, 115, 153, .2); overflow: hidden; }
.yh-bar s { display: block; height: 100%; border-radius: 2px; opacity: .85; text-decoration: none; }
.sq-ring b { display: flex; align-items: center; justify-content: center; }


/* ================= 防洪抗旱 ================= */
/* 阶段卡：导航 + 实时状态 */
.f-stages { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 2fr); gap: 12px; margin-bottom: 12px; position: sticky; top: calc(var(--top) + 6px); z-index: 20; }
.f-sg { position: relative; display: flex; align-items: stretch; gap: 0; padding: 8px 10px 8px 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 20, 46, .92); backdrop-filter: blur(6px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.f-sg.alt { gap: 8px; }
.f-sg-t { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; letter-spacing: 4px; font-size: 12px; color: var(--cyan); border-right: 1px solid var(--line); background: rgba(47, 211, 255, .06); border-radius: 10px 0 0 10px; }
.f-st { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 10px; align-items: center; text-align: left; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--txt); cursor: pointer; font: inherit; transition: background .2s, border-color .2s, transform .2s; position: relative; }
.f-st:hover { background: rgba(47, 211, 255, .06); border-color: rgba(47, 211, 255, .25); }
.f-st.on { background: linear-gradient(180deg, rgba(47, 211, 255, .18), rgba(47, 211, 255, .04)); border-color: rgba(47, 211, 255, .6); box-shadow: inset 0 -2px 0 var(--cyan), 0 0 16px rgba(47, 211, 255, .15); }
.f-st .n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 12px var(--num); font-style: normal; color: var(--cyan); border: 1.5px solid rgba(47, 211, 255, .55); background: rgba(47, 211, 255, .08); }
.f-st.on .n { background: var(--cyan); color: #04142c; box-shadow: 0 0 12px rgba(47, 211, 255, .7); }
.f-st .tx b { display: block; font-size: 14px; color: #fff; white-space: nowrap; }
.f-st .tx small { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-st .val { grid-column: 2; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); min-height: 22px; }
.f-st .val b { font-size: 19px; line-height: 1.1; color: #fff; }
.f-st .val em { font-style: normal; color: var(--mute); }
.f-st .val em::before { content: "· "; }
.f-arrow { flex: none; width: 22px; align-self: center; height: 2px; position: relative; background: linear-gradient(90deg, rgba(47, 211, 255, .1), rgba(47, 211, 255, .6)); overflow: visible; }
.f-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: rgba(47, 211, 255, .7); }
.f-arrow::before { content: ""; position: absolute; top: -1px; width: 6px; height: 4px; border-radius: 2px; background: #bff3ff; box-shadow: 0 0 6px #2fd3ff; animation: f-dot 1.6s linear infinite; }
@keyframes f-dot { from { left: 0; opacity: 0; } 30% { opacity: 1; } to { left: 16px; opacity: 0; } }
.f-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(47, 211, 255, .25); border-top-color: var(--cyan); animation: f-rot .8s linear infinite; vertical-align: -2px; }
@keyframes f-rot { to { transform: rotate(360deg); } }
.f-sec { display: none; }
.f-sec.on { display: block; animation: f-in .35s ease both; }
@keyframes f-in { from { opacity: 0; } to { opacity: 1; } }

/* 预报预警 */
#f-3d > .body { padding: 0; }
.f-3d-wrap { position: relative; }
.f-3d-host { position: relative; height: 520px; overflow: hidden; border-radius: 0 0 6px 6px; background: #020812; }
.f-3d-lg { position: absolute; left: 10px; bottom: 10px; z-index: 8; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 70%; padding: 6px 10px; font-size: 11.5px; color: var(--dim); border: 1px solid rgba(47, 211, 255, .3); border-radius: 6px; background: rgba(4, 14, 34, .78); }
.f-3d-lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.f-3d-lg .lg-red { background: #ff4d4f; }
.f-3d-lg .lg-orange { background: #ff9f43; }
.f-3d-lg .lg-yellow { background: #ffd34d; }
.f-3d-lg .lg-blue { background: #38b6ff; }
.f-3d-lg .lg-hi { background: #5a3aa8; }
.f-3d-lg .lg-lo { background: #1c3366; }
#f-att > .body { display: flex; flex-direction: column; gap: 8px; }
.f-lvsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.f-lvsum > div { text-align: center; padding: 6px 4px; border-radius: 6px; border: 1px solid rgba(42, 94, 163, .45); background: rgba(8, 26, 58, .5); opacity: .55; transition: all .3s; }
.f-lvsum > div.on { opacity: 1; border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 30%, transparent); }
.f-lvsum b { display: block; font-size: 22px; line-height: 1.15; color: var(--c); }
.f-lvsum span { font-size: 11px; color: var(--dim); }
.f-att-list { flex: 1; min-height: 0; max-height: 452px; overflow: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 2px; }
.f-att { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 1px 10px; align-items: center; padding: 6px 10px; border: 1px solid rgba(42, 94, 163, .4); border-left: 3px solid var(--c); border-radius: 5px; background: rgba(8, 26, 58, .55); cursor: pointer; transition: border-color .15s, transform .15s; animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.f-att:hover { border-color: var(--cyan); transform: translateX(2px); }
.f-att .h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.f-att .h b { color: #fff; }
.f-att .h .tag, .f-att .h .mute { font-size: 11px; line-height: 18px; }
.f-att .m { grid-row: 2; display: flex; gap: 10px; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; }
.f-att .m b { color: var(--txt); }
.f-att .spark { grid-row: span 2; grid-column: 2; display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.f-att .spark i { width: 7px; border-radius: 2px 2px 0 0; }
.f-att .spark.na { font-size: 11px; color: var(--mute); align-items: center; }
.f-fc-st {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 10px; margin-bottom: 6px; border-radius: 6px;
  background: var(--panel2); border: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}
.f-fc-st .fc-meta b { color: #fff; font-weight: 600; }
.f-fc-st .fc-sep { color: var(--mute); }
.f-fc-st .fc-badge {
  margin-left: auto; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
  color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  background: color-mix(in srgb, var(--green) 14%, transparent);
}
.f-fc-st .fc-badge.warn {
  color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent);
  background: color-mix(in srgb, var(--yellow) 14%, transparent);
}
.f-days { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; margin-bottom: 4px; align-items: center; }
.f-days button { border: 1px solid var(--line2); background: rgba(26, 72, 140, .25); color: var(--dim); border-radius: 12px; padding: 0 9px; font: 11.5px/20px var(--num); cursor: pointer; }
.f-days button:hover { color: #fff; border-color: var(--cyan); }
.f-days button.on { background: rgba(47, 211, 255, .2); color: #fff; border-color: var(--cyan); }

/* 预演 */
.f-sim { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr) minmax(250px, 1fr); gap: 14px; align-items: stretch; }
.f-sim-ctl { display: flex; flex-direction: column; gap: 10px; padding-right: 12px; border-right: 1px dashed rgba(42, 94, 163, .45); }
.f-sl .t { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.f-sl .t span { flex: 1; }
.f-sl .t span small, .f-sl .t > small { color: var(--mute); font-size: 11px; }
.f-sl .t b { font-size: 22px; color: #fff; }
.f-sl input[type="range"], .f-time input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; margin: 6px 0; background: linear-gradient(90deg, var(--cyan) var(--p, 50%), rgba(42, 94, 163, .45) var(--p, 50%)); }
.f-sl input[type="range"]::-webkit-slider-thumb, .f-time input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 10px rgba(47, 211, 255, .8); cursor: pointer; }
.f-sl input[type="range"]::-moz-range-thumb, .f-time input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); cursor: pointer; }
.f-preset { display: flex; gap: 6px; flex-wrap: wrap; }
.f-sim-ctl select { max-width: 100%; margin-top: 4px; display: block; width: 100%; }
.f-bt { padding: 6px 8px; border-radius: 5px; background: rgba(13, 38, 80, .5); border: 1px solid rgba(42, 94, 163, .35); }
.f-sim-svg {
  min-width: 0; display: flex; align-items: center; padding: 6px;
  border: 1px solid var(--line); border-radius: 8px;
  background: radial-gradient(500px 180px at 50% 42%, rgba(31, 111, 255, .14), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(42, 94, 163, .09) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(42, 94, 163, .09) 27px 28px), rgba(5, 16, 38, .65);
}
.f-sv { width: 100%; height: auto; display: block; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.f-sv .sv-lead { stroke: rgba(127, 231, 255, .35); stroke-width: 1.2; stroke-dasharray: 3 3; }
.f-sv .sv-brk { fill: none; stroke: rgba(47, 211, 255, .38); stroke-width: 1; stroke-dasharray: 3 3; }
.f-sv .sv-pill rect { fill: rgba(9, 30, 66, .9); stroke: rgba(47, 211, 255, .45); stroke-width: 1; }
.f-sv .sv-pill text { fill: var(--cyan); font-size: 11px; font-weight: 600; }
.f-sv .sv-warn rect { fill: rgba(255, 90, 95, .1); stroke: rgba(255, 90, 95, .42); stroke-width: 1; }
.f-sv .sv-warn text { fill: #ff9aa0; font-size: 11px; font-weight: 500; }
.f-sv .sv-card .bx { fill: rgba(8, 26, 58, .92); stroke: var(--line2); stroke-width: 1; }
.f-sv .sv-card .div-bx { stroke: rgba(255, 179, 71, .45); }
.f-sv .sv-card .in-bx { stroke: rgba(61, 220, 151, .45); }
.f-sv .sv-card .in-ac { fill: #3a9bff; }
.f-sv .sv-card .div-ac { fill: #ff9f43; }
.f-sv .sv-card .in-ac2 { fill: #3ddc97; }
.f-sv .sv-sub { fill: var(--mute); font-size: 10.5px; }
.f-sv .lu { fill: var(--dim); font-size: 11px; font-weight: 400; }
.f-sv .sv-jn { fill: #06142c; stroke-width: 2; }
.f-sv .sv-port { fill: #081a3a; stroke-width: 2; }
.f-sv .div-jn { stroke: #ffb347; }
.f-sv .in-jn { stroke: #3ddc97; }
.f-sv .band { fill: url(#f-sv-g); opacity: .94; transition: d .35s ease; }
.f-sv .glow { fill: rgba(47, 141, 255, .45); transition: d .35s ease; }
.f-sv .flow { fill: none; stroke: rgba(232, 248, 255, .9); stroke-width: 2; stroke-dasharray: 4 18; stroke-linecap: round; animation: q-flow 1.8s linear infinite; }
.f-sv .flow.f2 { stroke: rgba(127, 231, 255, .28); stroke-width: 14; stroke-dasharray: 28 76; stroke-linecap: round; animation-duration: 4.2s; }
.f-sv .div { fill: none; stroke: #ffb347; opacity: .82; stroke-linecap: butt; transition: stroke-width .35s; }
.f-sv .in { fill: none; stroke: #3ddc97; opacity: .82; stroke-linecap: butt; transition: stroke-width .35s; }
.f-sv .flowl { fill: none; stroke: rgba(255, 255, 255, .88); stroke-dasharray: 2 10; stroke-linecap: round; animation: q-flow 1.6s linear infinite; }
.f-sv .nd circle { stroke: #06142c; stroke-width: 2.5; }
.f-sv .nd .halo { stroke: none; opacity: .18; transition: fill .3s; }
.f-sv .nd .halo.in-h { fill: #3a9bff; }
.f-sv .in-n { fill: #3a9bff; }
.f-sv #f-sv-out { transition: fill .3s; }
.f-sv .ping { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.f-sv .ping.on { animation: sv-ping 1.5s ease-out infinite; }
@keyframes sv-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
.f-sv .nt { fill: #06142c; font: 700 12px var(--num); }
.f-sv .nt.in-t { fill: #fff; }
.f-sv .lt { fill: #fff; font-size: 12.5px; font-weight: 600; }
.f-sv .lv { fill: var(--cyan); font-size: 18px; font-weight: 700; transition: fill .3s; }
.f-sv .lv2 { fill: #ffb347; font-size: 15px; font-weight: 700; }
.f-sv .lv3 { fill: #3ddc97; font-size: 15px; font-weight: 700; }
.f-sv .ls { fill: #dbe8ff; font-size: 12.5px; font-weight: 600; }
.f-sim-out { display: flex; flex-direction: column; gap: 8px; padding-left: 12px; border-left: 1px dashed rgba(42, 94, 163, .45); }
.f-sim-g {
  height: 214px; border: 1px solid var(--line); border-radius: 8px;
  background: radial-gradient(240px 140px at 50% 48%, rgba(47, 211, 255, .08), transparent 72%), rgba(8, 27, 61, .72);
}
#f-sim-out { display: flex; flex-direction: column; gap: 8px; }
.f-lv {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 700; --c: var(--green); color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 5%, transparent));
}
.f-lv.warn { --c: var(--yellow); } .f-lv.bad { --c: #ff4d4f; }
.f-lv i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 24%, transparent), 0 0 10px color-mix(in srgb, var(--c) 55%, transparent);
  animation: lv-pulse 1.8s ease-in-out infinite;
}
@keyframes lv-pulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 24%, transparent), 0 0 8px color-mix(in srgb, var(--c) 50%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 8%, transparent), 0 0 12px color-mix(in srgb, var(--c) 70%, transparent); }
}
.f-lv small { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--dim); }
.f-mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.f-mini3 > div { padding: 8px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.f-mini3 span { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; margin-bottom: 2px; }
.f-mini3 b { display: block; font-size: 16px; line-height: 1.25; color: #fff; white-space: nowrap; }
.f-mini3 b small { font: 500 10.5px "PingFang SC", sans-serif; color: var(--dim); margin-left: 3px; }
.f-mini3 > div > small { display: block; font-size: 10.5px; color: var(--mute); }
.f-mini3.col { grid-template-columns: 1fr; }
.f-mini3.col b { font-size: 22px; }
.f-out { font-size: 12px; padding: 5px 10px; }
.f-cons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
#f-cons.empty .f-cons { grid-template-columns: 1fr; }
#f-cons.empty #f-cons-c { display: none; }
.f-empty { padding: 26px 18px; text-align: center; color: var(--dim); font-size: 13px; border: 1px dashed var(--line2); border-radius: 8px; }
.f-empty b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.f-ctbl tr.best td { background: rgba(61, 220, 151, .08); }
.f-ctbl tr.best td:first-child { box-shadow: inset 3px 0 0 var(--green); }
#f-test .f-mini3 { margin-bottom: 6px; }
.f-gf { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 14px; }
.f-gf > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.f-verdict { padding: 10px 12px; border-radius: 6px; border-left: 3px solid var(--yellow); background: rgba(255, 211, 77, .07); font-size: 12.5px; color: #e8dcb6; line-height: 1.7; }
.f-verdict b { display: block; color: var(--yellow); font-size: 14px; margin-bottom: 2px; }

/* 预案 */
.f-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.f-pc { --c: var(--green); position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(42, 94, 163, .5); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(8, 26, 58, .6) 45%); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.f-pc.warn { --c: var(--yellow); } .f-pc.bad { --c: #ff4d4f; border-color: rgba(255, 77, 79, .55); } .f-pc.idle { --c: #5d7399; }
.f-pc::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 10px var(--c); }
.f-pc-h { display: flex; align-items: center; gap: 8px; }
.f-pc-h em { font-style: normal; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.f-pc-h b { color: #fff; font-size: 14px; }
.f-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 12px; font-size: 12px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.f-pill.ok { --c: var(--green); } .f-pill.warn { --c: var(--yellow); } .f-pill.bad { --c: #ff4d4f; } .f-pill.idle { --c: #8aa4cc; }
.f-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.f-pill.bad i { animation: pulse 1s infinite; box-shadow: 0 0 8px var(--c); }
.f-pc > div > span:first-child { display: block; font-size: 11px; color: var(--mute); margin-bottom: 1px; }
.f-pc-c { font-size: 13px; color: #fff; font-weight: 600; line-height: 1.5; }
.f-pc-n { font-size: 12.5px; color: var(--txt); padding: 6px 8px; border-radius: 5px; background: rgba(4, 14, 34, .5); border: 1px dashed rgba(42, 94, 163, .5); }
.f-pc-n b { color: var(--c); font-family: var(--num); }
.f-pc-r { font-size: 12.5px; color: var(--dim); line-height: 1.6; flex: 1; }
.f-pc-f { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(42, 94, 163, .3); padding-top: 6px; }
.f-pc-f .note { flex: 1; font-size: 11.5px; }

/* 旱情 */
.f-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 26, 58, .6); }
.f-time .lb { color: var(--dim); font-size: 12px; }
.f-time input[type="range"] { flex: 1; min-width: 160px; }
.f-time .ck-date { min-width: 100px; font-size: 16px; text-align: center; }
.f-dr-sum { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.f-dr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.f-val { margin-bottom: 8px; padding: 10px 12px; border-radius: 6px; border-left: 3px solid var(--yellow); background: rgba(255, 211, 77, .06); animation: rise .4s ease both; }
.f-val .t { font-size: 12.5px; color: #e8dcb6; margin-bottom: 6px; }
.f-val .t b { color: var(--yellow); margin-right: 8px; }
.f-val-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.f-val-g > div { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 5px; background: rgba(4, 14, 34, .45); font-size: 11.5px; color: var(--dim); }
.f-val-g b { color: #fff; font-size: 13px; }
.f-dps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.f-dpc { --c: #3a8bff; display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(8, 26, 58, .55) 40%); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; font-size: 12px; }
.f-dpc .h { display: flex; align-items: center; gap: 6px; }
.f-dpc .h b { color: #fff; font-size: 14px; }
.f-dpc .lvl { margin-left: auto; color: var(--c); font-weight: 700; font-size: 12.5px; }
.f-dpc .lvbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.f-dpc .lvbar i { height: 5px; border-radius: 3px; background: rgba(42, 94, 163, .35); }
.f-dpc .lvbar i.on { background: var(--k); box-shadow: 0 0 6px var(--k); }
.f-dpc .kv { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--dim); }
.f-dpc .kv .chip { font-size: 11px; padding: 0 5px; }
.f-dpc .src { font-size: 11.5px; color: var(--txt); padding-top: 5px; border-top: 1px dashed rgba(42, 94, 163, .4); line-height: 1.5; }
.f-dpc .act { font-size: 11.5px; color: var(--dim); line-height: 1.55; }

/* 事件库 */
.f-ev-list { max-height: 460px; overflow: auto; }
.f-ev-list tbody tr { cursor: pointer; }
.f-ev-list tbody tr:hover td { background: rgba(47, 211, 255, .06); }

@media (max-width: 1500px) { .f-dps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .f-sim { grid-template-columns: minmax(230px, 1fr) minmax(0, 1.8fr); } .f-sim-out { grid-column: 1 / -1; border-left: 0; padding-left: 0; display: grid; grid-template-columns: 260px 1fr; align-items: start; } }
@media (max-width: 1280px) { .f-stages { grid-template-columns: 1fr; position: static; } .f-cons, .f-gf, .f-dr-grid { grid-template-columns: 1fr; } .f-val-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .f-sg { flex-wrap: wrap; } .f-arrow { display: none; } .f-st { flex-basis: 45%; } .f-sim { grid-template-columns: 1fr; } .f-sim-ctl { border-right: 0; padding-right: 0; } .f-sim-out { grid-template-columns: 1fr; } .f-dps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .f-arrow::before, .f-sv .flow, .f-sv .flowl, .f-sv .ping.on, .f-lv i, .f-att, .f-pc, .f-dpc, .f-sec.on { animation: none !important; } }


/* ================= 简历 ================= */
.cv-btn svg { width: 13px; height: 13px; }
.cv-btn { border-color: rgba(47, 211, 255, .6); color: #cdeefc; }
.modal.cv-modal { width: min(940px, 96vw); max-height: 94vh; }
.cv-modal > .mb { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.cv { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.cv-bar { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(8, 26, 58, .72); }
.cv-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.cv-meta b { color: #fff; font-weight: 600; }
.cv-tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 10px; color: var(--cyan); background: rgba(47, 211, 255, .1); border: 1px solid rgba(47, 211, 255, .28); }
.cv-desk { flex: 1; min-height: 0; overflow: auto; padding: 20px 14px 28px; background: radial-gradient(80% 55% at 50% 6%, #133262, #050f24 78%); }
.cv-paper { position: relative; width: 210mm; max-width: 100%; margin: 0 auto; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 20px 54px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .1); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.cv-paper iframe { display: block; width: 100%; height: calc(94vh - 160px); border: 0; border-radius: 6px; background: #fff; opacity: 0; transition: opacity .35s; }
.cv-paper.ready iframe { opacity: 1; }
.cv-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5b6470; font-size: 13px; }
.cv-paper.ready .cv-load { display: none; }
@media (max-width: 860px) { .cv-meta { display: none; } .cv-bar { justify-content: flex-end; } .cv-desk { padding: 12px 10px 20px; } }
/* ---------- 工程孪生 · BIM 视口（第二版：构件拾取、剖切、引线标签） ---------- */
.bim-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, border-color .2s, color .2s; }
.bim-tabs button em { font-style: normal; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(47, 211, 255, .14); color: var(--cyan); border: 1px solid rgba(47, 211, 255, .35); }
.bim-tabs button:hover { border-color: var(--cyan); color: #fff; }
.bim-tabs button.on em { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .5); }
.bim-stage { background: radial-gradient(70% 60% at 50% 48%, #0d2b5a 0%, #061634 55%, #020a1a 100%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .55); }
.bim-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(2, 10, 26, .45), transparent 18%, transparent 82%, rgba(2, 10, 26, .55)); }
.bim-stage:fullscreen { border-radius: 0; border: 0; }
.bim-hud { display: flex; align-items: center; backdrop-filter: blur(4px); }
.bim-layers { gap: 5px; padding: 8px 10px; border-radius: 8px; background: rgba(4, 16, 40, .78); backdrop-filter: blur(4px); min-width: 128px; }
.bim-layers > b { font-size: 11px; color: var(--mute); font-weight: 500; letter-spacing: 2px; margin-bottom: 1px; }
.bim-layers label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--dim); transition: color .2s; }
.bim-layers label:hover { color: #fff; }
.bim-layers input { position: absolute; opacity: 0; pointer-events: none; }
.bim-layers label i { width: 26px; height: 14px; border-radius: 7px; background: rgba(93, 115, 153, .45); position: relative; transition: background .2s; flex: none; }
.bim-layers label i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #c9d6ea; transition: transform .2s; }
.bim-layers input:checked + i { background: rgba(47, 211, 255, .75); }
.bim-layers input:checked + i::after { transform: translateX(12px); background: #fff; }
.bim-layers input:checked ~ * { color: inherit; }
.bim-layers label:has(input:checked) { color: var(--txt); }
.bim-tools { align-items: center; padding: 4px; border-radius: 8px; backdrop-filter: blur(4px); }
.bim-tools button { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; transition: background .15s, color .15s; }
.bim-tools button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.bim-tools i { align-self: stretch; }
.bim-axis { display: none; }
.bim-gizmo { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 46px; height: 46px; }
.bim-gizmo svg { width: 100%; height: 100%; overflow: visible; }
.bim-gizmo circle { fill: rgba(4, 16, 40, .75); stroke: var(--line2); }
.bim-gizmo .n { fill: #ff5a5f; } .bim-gizmo .s { fill: #8aa4cc; }
.bim-gizmo text { fill: var(--dim); font: 600 7px var(--num); text-anchor: middle; }
.bim-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; font-size: 11.5px; color: var(--mute); pointer-events: none; white-space: nowrap; }
.bim-msg { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--dim); font-size: 13px; background: rgba(3, 11, 28, .55); }
.bim-msg .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(47, 211, 255, .2); border-top-color: var(--cyan); animation: bimspin .8s linear infinite; }
@keyframes bimspin { to { transform: rotate(360deg); } }
/* 引线标签：锚点在 (0,0)，标签框沿引线上移 --lh */
.bim-lbl { --lh: 22px; position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; will-change: transform; }
.bim-lbl::before { content: ""; position: absolute; left: -0.5px; bottom: 0; width: 1px; height: var(--lh); background: linear-gradient(0deg, rgba(47, 211, 255, .9), rgba(47, 211, 255, .25)); }
.bim-lbl::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #2fffb0; box-shadow: 0 0 6px #2fffb0; }
.bim-lbl .bx { position: absolute; left: 0; bottom: var(--lh); transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; color: #dff6ff; padding: 4px 9px; border: 1px solid rgba(47, 211, 255, .6); border-radius: 5px; background: rgba(4, 16, 40, .86); backdrop-filter: blur(3px); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); line-height: 1.45; }
.bim-lbl.dn::before { bottom: auto; top: 0; }
.bim-lbl.dn .bx { bottom: auto; top: var(--lh); }
.bim-lbl.main .bx { border-color: rgba(61, 220, 151, .85); background: linear-gradient(180deg, rgba(10, 48, 44, .92), rgba(4, 22, 36, .92)); }
.bim-lbl.main::before { background: linear-gradient(0deg, rgba(61, 220, 151, .95), rgba(61, 220, 151, .25)); }
.bim-lbl.main2 .bx { border-color: rgba(47, 211, 255, .85); }
.bim-lbl.scn .bx { border-color: rgba(255, 159, 67, .8); border-style: dashed; }
.bim-lbl.scn::before { background: linear-gradient(0deg, rgba(255, 159, 67, .9), rgba(255, 159, 67, .2)); }
.bim-lbl.scn::after { background: #ff9f43; box-shadow: 0 0 6px #ff9f43; }
.bim-lbl .bx small { display: block; color: #8aa4cc; font-size: 10px; }
/* 构件悬停提示与属性卡 */
.bim-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .12s; padding: 5px 9px; border-radius: 4px; background: rgba(5, 18, 42, .95); border: 1px solid rgba(255, 211, 77, .7); font-size: 12px; white-space: nowrap; }
.bim-tip b { color: #fff; display: block; } .bim-tip span { color: var(--dim); font-size: 11px; font-family: var(--num); }
.bim-info { position: absolute; right: 10px; top: 150px; z-index: 4; width: 236px; padding: 10px 12px; border-radius: 8px; background: rgba(4, 16, 40, .9); border: 1px solid rgba(61, 220, 151, .7); box-shadow: 0 8px 26px rgba(0, 0, 0, .5); backdrop-filter: blur(4px); font-size: 12px; animation: pdin .25s ease; }
.bim-info header { display: flex; align-items: center; margin-bottom: 4px; }
.bim-info .cat { font-size: 10.5px; color: var(--green); border: 1px solid rgba(61, 220, 151, .5); border-radius: 3px; padding: 0 5px; line-height: 17px; }
.bim-info header button { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 16px; cursor: pointer; line-height: 1; }
.bim-info > b { color: #fff; font-size: 13.5px; display: block; margin-bottom: 6px; }
.bim-info dl { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; }
.bim-info dt { color: var(--mute); }
.bim-info dd { margin: 0; color: var(--txt); }
.bim-info dd small { color: var(--mute); font-size: 10.5px; margin-left: 3px; font-family: "PingFang SC", sans-serif; }
.bim-info .acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(42, 94, 163, .5); font-size: 11px; }
.bim-info .acts button { border: 1px solid var(--line2); background: rgba(47, 211, 255, .1); color: var(--cyan); border-radius: 4px; padding: 1px 10px; font-size: 12px; cursor: pointer; }
.bim-info .acts button:hover { background: rgba(47, 211, 255, .22); color: #fff; }
/* 情景滑块 */
.bim-slider .tag { color: var(--orange); font-size: 11px; line-height: 17px; border-style: dashed; }
.bim-slider input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f8fff, var(--cyan) var(--p, 62%), rgba(93, 115, 153, .35) var(--p, 62%)); outline: none; cursor: pointer; }
.bim-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 0 4px rgba(47, 211, 255, .18), 0 0 10px rgba(47, 211, 255, .6); }
.bim-slider input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.bim-bar b { color: var(--cyan); }
@media (max-width: 1280px) { .bim-hint { display: none; } .bim-tools button span { display: none; } }
.bim-hint { left: auto; right: 68px; transform: none; bottom: 26px; }
.bim-hint { right: auto; left: 12px; top: 44px; bottom: auto; }

/* ================= 灌区调度 ================= */
.f-stages.one { grid-template-columns: 1fr; }
.f-stages.one .f-sg { gap: 6px; }
.ir-year { display: flex; align-items: center; gap: 8px; }
.ir-top { grid-template-columns: minmax(0, 2.6fr) minmax(300px, 1fr); }
.ir-glg { gap: 10px; font-size: 11.5px; }
.ir-day { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 26, 58, .6); }
.ir-day input[type="range"] { flex: 1; min-width: 160px; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan) var(--p, 100%), rgba(42, 94, 163, .45) var(--p, 100%)); }
.ir-day input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); box-shadow: 0 0 10px rgba(47, 211, 255, .8); cursor: pointer; }
.ir-day input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); cursor: pointer; }
.ir-day .ck-date { min-width: 104px; text-align: center; font-size: 16px; }
.ir-sch-wrap { position: relative; }
.ir-sv { display: block; width: 100%; height: auto; user-select: none; }
.ir-sv .zone { fill: rgba(47, 140, 255, .04); stroke: rgba(47, 140, 255, .18); stroke-dasharray: 4 4; }
.ir-sv .zt { fill: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.ir-sv .zt2 { fill: var(--mute); font-size: 12px; letter-spacing: 2px; }
.ir-rv { fill: none; stroke: url(#ir-rg); stroke-linecap: round; transition: stroke-width .25s; }
.ir-rv-glow { fill: none; stroke: rgba(47, 141, 255, .45); stroke-linecap: round; transition: stroke-width .25s; }
.ir-rvf { fill: none; stroke: rgba(220, 246, 255, .85); stroke-width: 2; stroke-dasharray: 3 22; stroke-linecap: round; animation: q-flow 2.2s linear infinite; }
.ir-c { cursor: pointer; }
.ir-c .hit { fill: none; stroke: transparent; stroke-width: 16; }
.ir-c .base { fill: none; stroke: var(--c); stroke-linecap: round; opacity: .78; transition: stroke-width .25s, opacity .2s; }
.ir-c .flow { fill: none; stroke: rgba(255, 255, 255, .9); stroke-linecap: round; stroke-dasharray: 2 12; animation: q-flow linear infinite; }
.ir-c .end { fill: var(--c); stroke: #06142c; stroke-width: 1.5; }
.ir-c .pump rect { fill: #071a3a; stroke: var(--c); stroke-width: 1.5; }
.ir-c .pump path { fill: var(--c); }
.ir-c .lb { fill: #c7d8f5; font-size: 12.5px; paint-order: stroke; stroke: #071a3a; stroke-width: 3px; }
.ir-c .lb .v { fill: var(--c); font-family: var(--num); font-weight: 700; }
.ir-c.off .base { opacity: .22; stroke-dasharray: 3 4; }
.ir-c.off .flow { display: none; }
.ir-c.off .lb { fill: var(--mute); }
.ir-c.hov .base, .ir-c.sel .base { opacity: 1; filter: drop-shadow(0 0 5px var(--c)); }
.ir-c.hov .lb, .ir-c.sel .lb { fill: #fff; font-weight: 600; }
.ir-c.sel .end { r: 5; }
.ir-dam rect { fill: #9fb8dc; stroke: #06142c; stroke-width: 2; }
.ir-dam .lead { stroke: rgba(127, 231, 255, .3); stroke-dasharray: 2 3; }
.ir-sv .t { fill: #fff; font-size: 13px; font-weight: 600; paint-order: stroke; stroke: #071a3a; stroke-width: 3px; }
.ir-sv .s { fill: var(--cyan); font-size: 12px; paint-order: stroke; stroke: #071a3a; stroke-width: 3px; }
.ir-nd circle { fill: #3a9bff; stroke: #06142c; stroke-width: 3; }
.ir-tot { font-size: 22px; fill: #fff; font-weight: 700; }
.ir-tot .l { font-size: 12px; fill: var(--dim); font-weight: 400; }
#ir-dayp > .body { display: flex; flex-direction: column; gap: 8px; }
.ir-toplist .hd { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mute); margin-bottom: 2px; }
.ir-toplist .row { display: grid; grid-template-columns: 16px 88px minmax(0, 1fr) 36px; gap: 6px; align-items: center; padding: 3px 4px; border-radius: 4px; font-size: 12.5px; cursor: pointer; transition: background .15s; }
.ir-toplist .row:hover, .ir-toplist .row.sel { background: rgba(47, 211, 255, .1); }
.ir-toplist .row em { font-style: normal; font: 11px var(--num); color: var(--mute); }
.ir-toplist .row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-toplist .row .b { height: 6px; border-radius: 3px; background: rgba(42, 94, 163, .3); overflow: hidden; }
.ir-toplist .row .b i { display: block; height: 100%; border-radius: 3px; transition: width .25s; }
.ir-toplist .row b { text-align: right; color: #fff; }
.ir-yr { margin-top: auto; }
/* 校核 */
.ir-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ir-val { padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(61, 220, 151, .35); background: linear-gradient(160deg, rgba(61, 220, 151, .08), rgba(8, 26, 58, .55) 50%); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.ir-val.part { border-color: rgba(255, 211, 77, .35); background: linear-gradient(160deg, rgba(255, 211, 77, .06), rgba(8, 26, 58, .55) 50%); }
.ir-val .h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ir-val .h b { color: #fff; font-size: 13px; flex: 1; }
.ir-val .h .tag { font-size: 10.5px; }
.ir-val .bars > div { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px 32px; gap: 6px; align-items: center; font-size: 11.5px; color: var(--dim); margin: 3px 0; }
.ir-val .bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), var(--c)); width: var(--w); animation: ir-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.ir-val .bars b { color: #fff; text-align: right; font-size: 13px; }
.ir-val .bars small { color: var(--mute); font-size: 10.5px; }
@keyframes ir-grow { from { width: 0; } }
/* 渠道 */
.ir-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-chips .grp { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 5px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: rgba(8, 26, 58, .6); }
.ir-chips .gt { font-size: 12px; color: var(--c); font-weight: 600; margin-right: 4px; }
.ir-chips button { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid rgba(42, 94, 163, .5); background: rgba(26, 72, 140, .2); color: var(--txt); border-radius: 12px; padding: 1px 10px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.ir-chips button small { font-size: 11px; color: var(--c); }
.ir-chips button:hover { border-color: var(--c); }
.ir-chips button.on { background: color-mix(in srgb, var(--c) 25%, transparent); border-color: var(--c); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 35%, transparent); }
.ir-ck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ir-subs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(42, 94, 163, .4); font-size: 12.5px; }
.ir-subs > div { display: flex; align-items: baseline; gap: 5px; }
.ir-subs i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ir-subs b { color: #fff; }
.ir-subs small { color: var(--mute); }
/* 预测 */
.ir-lagv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ir-lagv > div { padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); }
.ir-lagv span { display: block; font-size: 12px; color: var(--dim); }
.ir-lagv b { display: block; font-size: 34px; line-height: 1.15; color: var(--c); }
.ir-lagv b small { font-size: 13px; margin-left: 2px; }
.ir-lagv > div > small { font-size: 11px; color: var(--mute); }
/* 灌溉季 */
.ir-tl { position: relative; height: 34px; margin-bottom: 10px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(42, 94, 163, .15) 0 1px, transparent 1px 8.33%), rgba(8, 26, 58, .6); border: 1px solid var(--line); overflow: hidden; }
.ir-tl i { position: absolute; top: 6px; bottom: 6px; border-radius: 4px; background: linear-gradient(90deg, #2f8dff, #2fd3ff); box-shadow: 0 0 10px rgba(47, 211, 255, .4); animation: ir-grow 1s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.ir-tl i.w { background: linear-gradient(90deg, #8a6bff, #c9a6ff); }
.ir-tl i.plan { background: repeating-linear-gradient(45deg, rgba(201, 166, 255, .8) 0 6px, rgba(201, 166, 255, .4) 6px 12px); }
.ir-tl i span { display: block; font-size: 11px; line-height: 22px; padding: 0 6px; color: #06142c; font-weight: 700; white-space: nowrap; font-style: normal; }
.ir-scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ir-sc { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(47, 211, 255, .35); background: linear-gradient(160deg, rgba(47, 211, 255, .1), rgba(8, 26, 58, .6) 50%); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.ir-sc.w { border-color: rgba(167, 139, 250, .4); background: linear-gradient(160deg, rgba(167, 139, 250, .12), rgba(8, 26, 58, .6) 50%); }
.ir-sc .h { display: flex; align-items: center; gap: 6px; } .ir-sc .h b { color: #fff; font-size: 14px; }
.ir-sc .v b { font-size: 26px; color: var(--cyan); } .ir-sc.w .v b { color: #c9a6ff; }
.ir-sc .v small { color: var(--dim); font-size: 12px; margin-left: 4px; }
.ir-sc .d { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.ir-sys { display: flex; flex-direction: column; gap: 8px; }
.ir-sys .proj .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ir-sys .f-mini3 { margin-bottom: 6px; }
@media (max-width: 1400px) { .ir-top { grid-template-columns: 1fr; } #ir-dayp > .body { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 1100px) { .ir-vals { grid-template-columns: 1fr; } .ir-ck { grid-template-columns: repeat(2, minmax(0, 1fr)); } #ir-dayp > .body { display: flex; } }
@media (prefers-reduced-motion: reduce) { .ir-rvf, .ir-c .flow, .ir-val, .ir-sc, .ir-tl i, .ir-val .bars i { animation: none !important; } }
#ir-canal > .body { display: flex; flex-direction: column; }
#ir-canal .ir-cc { flex: 1; height: auto; min-height: 300px; }
/* 灌区调度 · 键盘聚焦可见（仅 Tab 聚焦时显示，不影响鼠标点击外观） */
.ir-chips button:focus-visible, .ir-speed .seg button:focus-visible, .ir-day .btn:focus-visible, #ir-stages .f-st:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* ================= 主题切换与浅色模式 ================= */
:root { color-scheme: dark; }
.theme-btn svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 1360px) { .theme-btn span { display: none; } .theme-btn { padding: 0 6px; } }
.wq-grid th.wq-yr { color: var(--mute); }
.legend i.wq-na { background: #1b2a44; }
.legend i.wq-fail { background: #fff; outline: 1px solid #fff; }
.map-compass .mc-ring { fill: none; stroke: rgba(95, 220, 255, .35); }
.map-compass .mc-n { fill: #5fdcff; }
.map-compass .mc-s { fill: rgba(95, 220, 255, .3); }
.map-compass .mc-txt { fill: #06142c; font-weight: 700; }

:root[data-theme="light"] {
  color-scheme: light;
  scrollbar-color: #b6c5da transparent;
  --bg: #eef3f9;
  --bg2: #e3ecf7;
  --panel: rgba(255, 255, 255, 0.94);
  --panel2: #f4f7fc;
  --line: #d4e0ef;
  --line2: #acc2de;
  --txt: #1e2f4b;
  --dim: #4c6282;
  --mute: #647999;
  --cyan: #0277bd;
  --blue: #1d6fe8;
  --green: #0a8754;
  --yellow: #b4690e;
  --orange: #c8520a;
  --red: #dc2626;
  --purple: #6d28d9;
}

[data-theme="light"] body {
  background: radial-gradient(1400px 680px at 50% -15%, rgba(29, 111, 232, 0.1) 0%, rgba(238, 243, 249, 0) 60%), var(--bg);
}

/* 启动屏 */
[data-theme="light"] .boot { background: radial-gradient(900px 500px at 50% 40%, #e1eeff, #f1f5fb 70%); }
[data-theme="light"] .boot-in b { color: #0f1f38; }
[data-theme="light"] .boot-logo { filter: drop-shadow(0 0 10px rgba(2, 119, 189, .28)); }
[data-theme="light"] .boot-drop { stroke: #0277bd; }
[data-theme="light"] .boot-wave { stroke: #38bdf8; }
[data-theme="light"] .boot-bar { background: rgba(2, 119, 189, .15); }
[data-theme="light"] .boot-bar em { background: linear-gradient(90deg, transparent, #0277bd, transparent); }

/* 顶栏与基础控件 */
[data-theme="light"] #topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(15, 35, 70, 0.06);
}
[data-theme="light"] .brand b { color: #0f1f38; }
[data-theme="light"] .logo-wave { stroke: #ffffff; }
[data-theme="light"] #nav a:hover { color: var(--cyan); background: rgba(2, 119, 189, 0.07); }
[data-theme="light"] #nav a.on {
  color: var(--cyan); font-weight: 600;
  background: linear-gradient(180deg, rgba(2, 119, 189, 0.13), rgba(2, 119, 189, 0.03));
  box-shadow: inset 0 -2px 0 var(--cyan);
}
[data-theme="light"] .btn { background: #ffffff; box-shadow: 0 1px 2px rgba(15, 35, 70, 0.04); }
[data-theme="light"] .btn:hover { border-color: var(--cyan); color: var(--cyan); background: #f0f7ff; }
[data-theme="light"] .btn.primary { background: linear-gradient(180deg, #1a7cf0, #0f62d6); border-color: #1a7cf0; color: #fff; }
[data-theme="light"] .btn.primary:hover { color: #fff; box-shadow: 0 2px 12px rgba(15, 98, 214, .32); }
[data-theme="light"] .btn.ghost { background: transparent; box-shadow: none; }
[data-theme="light"] .btn.ghost:hover { background: rgba(2, 119, 189, 0.06); }
[data-theme="light"] .btn.on { border-color: var(--cyan); color: var(--cyan); background: rgba(2, 119, 189, 0.1); }
[data-theme="light"] .cv-btn { border-color: rgba(2, 119, 189, .45); color: #0b66c3; background: rgba(2, 119, 189, .05); }
[data-theme="light"] .seg { background: #f8fafd; }
[data-theme="light"] .seg button.on { background: rgba(2, 119, 189, 0.13); color: #064e8c; font-weight: 600; }
[data-theme="light"] select,
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="text"],
[data-theme="light"] textarea { background: #ffffff; border-color: var(--line2); color: var(--txt); }
[data-theme="light"] ::placeholder { color: var(--mute); opacity: .85; }
[data-theme="light"] .sync { background: #f8fafd; }
[data-theme="light"] .sync .dot { background: #94a3b8; }

/* 页面、面板、指标卡、表格 */
[data-theme="light"] .page-head h2 { color: #0f1f38; }
[data-theme="light"] .panel { box-shadow: 0 2px 10px rgba(15, 35, 70, 0.05); }
[data-theme="light"] .panel::before,
[data-theme="light"] .panel::after { opacity: 0.45; }
[data-theme="light"] .panel:hover { border-color: rgba(2, 119, 189, .45); box-shadow: 0 6px 20px rgba(15, 35, 70, 0.09); }
[data-theme="light"] .panel > header { border-bottom-color: var(--line); background: linear-gradient(90deg, rgba(2, 119, 189, 0.06), rgba(2, 119, 189, 0) 60%); }
[data-theme="light"] .panel > header::after { background: linear-gradient(90deg, transparent, rgba(2, 119, 189, .06), transparent); }
[data-theme="light"] .panel > header h3 { color: #0f1f38; }
[data-theme="light"] .panel > footer a,
[data-theme="light"] .src { color: #0b66c3; }
[data-theme="light"] .kpi { background: #ffffff; box-shadow: 0 1px 4px rgba(15, 35, 70, 0.04); }
[data-theme="light"] .panel .kpi { background: var(--panel2); box-shadow: none; }
[data-theme="light"] .kpi:hover { border-color: rgba(2, 119, 189, .45); }
[data-theme="light"] .kpi .v { color: #0f1f38; }
[data-theme="light"] .kpi.hl .v { color: var(--cyan); }
[data-theme="light"] .kpi::after { opacity: .45; }
[data-theme="light"] .callout { background: #fffbeb; border-color: #d97706; color: #78350f; }
[data-theme="light"] .callout.info { background: #eff8ff; border-color: #0284c7; color: #0c4a6e; }
[data-theme="light"] table.tbl th { background: #edf2f9; color: var(--dim); border-bottom-color: var(--line); }
[data-theme="light"] table.tbl td { border-bottom-color: #e4ebf4; }
[data-theme="light"] table.tbl tr:hover td { background: rgba(2, 119, 189, 0.04); }
[data-theme="light"] .wq-grid td.na { background: #e2e8f0 !important; color: #64748b; }
[data-theme="light"] .wq-grid td.fail { outline: 2px solid #0f172a; }
[data-theme="light"] .legend i.wq-na { background: #e2e8f0; }
[data-theme="light"] .legend i.wq-fail { background: #ffffff; outline: 1.5px solid #0f172a; }

/* 驾驶舱 */
[data-theme="light"] .ck-title { color: #0f1f38; text-shadow: none; }
[data-theme="light"] .ck-map > .body {
  background: radial-gradient(60% 55% at 50% 52%, rgba(29, 111, 232, .07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(2, 119, 189, .045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(2, 119, 189, .045) 0 1px, transparent 1px 34px), #f6faff;
}
[data-theme="light"] .ck-map > .body::after { background: linear-gradient(180deg, transparent, rgba(2, 119, 189, .05), transparent); }
[data-theme="light"] .map-compass .mc-ring { stroke: rgba(2, 119, 189, .35); }
[data-theme="light"] .map-compass .mc-n { fill: #0277bd; }
[data-theme="light"] .map-compass .mc-s { fill: rgba(2, 119, 189, .22); }
[data-theme="light"] .map-compass .mc-txt { fill: #ffffff; }
[data-theme="light"] .map-legend { background: rgba(255, 255, 255, 0.92); border-color: var(--line); color: var(--txt); box-shadow: 0 4px 12px rgba(15, 35, 70, 0.08); }
[data-theme="light"] .map-legend i.ml-rv { background: #0284c7; }
[data-theme="light"] .map-legend i.ml-cn { background: linear-gradient(90deg, #0a8754 0 33%, #0277bd 33% 66%, #7c3aed 66%); }
[data-theme="light"] .map-legend i.ml-tr { background: #4b86d4; }
[data-theme="light"] .map-legend i.ml-pl { background: #0284c7; }
[data-theme="light"] .map-legend i.ml-dr { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px); }
[data-theme="light"] .map-legend i.ml-st { background: linear-gradient(0deg, #b45309, rgba(217, 119, 6, 0.12)); }
[data-theme="light"] .st-row { border-bottom-color: rgba(148, 163, 184, 0.35); }
[data-theme="light"] .st-row .nm { color: #0f1f38; }
[data-theme="light"] .bar-row .t b { color: #0f1f38; }
[data-theme="light"] .bar { background: #e2eaf5; }
[data-theme="light"] .bar.est > i { background: repeating-linear-gradient(45deg, rgba(217, 119, 6, 0.72) 0 6px, rgba(217, 119, 6, 0.3) 6px 12px); }
[data-theme="light"] .ev { background: #f8fafd; border-color: var(--line); }
[data-theme="light"] .ck-wx { background: #f8fafd; }
[data-theme="light"] .ck-wx b { color: #0f1f38; }
[data-theme="light"] .ticker { box-shadow: 0 1px 4px rgba(15, 35, 70, 0.04); }
[data-theme="light"] .ticker .ck-wx { background: none; }

/* 弹窗、讲解模式、文档页、AI 助手 */
[data-theme="light"] .modal-mask { background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(2px); }
[data-theme="light"] .modal { background: #ffffff; border-color: var(--line); box-shadow: 0 20px 50px rgba(15, 35, 70, 0.2); }
[data-theme="light"] .modal > header h3,
[data-theme="light"] .intro h1 { color: #0f1f38; }
[data-theme="light"] .tour-card {
  background: #ffffff; border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(15, 35, 70, 0.22), 0 0 0 4000px rgba(15, 23, 42, 0.28);
}
[data-theme="light"] .tour-card h4 { color: #0f1f38; }
[data-theme="light"] .tour-bar { background: rgba(15, 35, 70, 0.1); }
[data-theme="light"] .tour-card.paused .tour-bar i { background: #d97706; }
[data-theme="light"] .tour-hl { outline-color: #d97706 !important; box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.18) !important; }
[data-theme="light"] .doc h3.sec,
[data-theme="light"] .role b,
[data-theme="light"] .arch .box b,
[data-theme="light"] .proj b { color: #0f1f38; }
[data-theme="light"] .pain { background: #ffffff; }
[data-theme="light"] .pain > div { border-bottom-color: var(--line); }
[data-theme="light"] .pain > div.h { background: #edf2f9; color: var(--dim); }
[data-theme="light"] .arch .layer > b { background: #e6f2ff; border-color: #b7d5f5; color: #055099; }
[data-theme="light"] .arch .box.real { border-color: rgba(10, 135, 84, 0.55); background: #f3fbf7; }
[data-theme="light"] .arch .box.plan { background: #f8fafd; }
[data-theme="light"] .brief { background: #f4f7fc; border-color: var(--line); color: var(--txt); }
[data-theme="light"] .brief mark { background: rgba(2, 132, 199, 0.14); color: #0c4a6e; font-weight: 600; }
[data-theme="light"] .ai-badge { color: #fff; background: linear-gradient(90deg, #0284c7, #7c3aed); }
[data-theme="light"] .ai-ctx pre { background: #f4f7fc; border-color: var(--line); color: #334155; }
[data-theme="light"] .ai-btn { background: linear-gradient(90deg, rgba(2, 132, 199, .09), rgba(109, 40, 217, .09)); border-color: rgba(109, 40, 217, .38); color: #4c1d95; }
[data-theme="light"] .ai-btn:hover { border-color: #6d28d9; box-shadow: 0 2px 10px rgba(109, 40, 217, .18); }
[data-theme="light"] .ai-drawer { background: rgba(255, 255, 255, .98); border-color: rgba(109, 40, 217, .35); box-shadow: -8px 10px 40px rgba(15, 35, 70, .18); }
[data-theme="light"] .ai-drawer > header b { color: #0f1f38; }
[data-theme="light"] .ai-msg.me { background: #e8f3ff; border-color: #93c5fd; color: #0f1f38; }
[data-theme="light"] .ai-msg.bot { background: #f4f7fc; border-color: var(--line); }
[data-theme="light"] .ai-sug button { background: #ffffff; border-color: var(--line2); color: var(--txt); }

/* 三维孪生 */
[data-theme="light"] .twin-page { background: #dce8f5; }
[data-theme="light"] .tw-glass { background: rgba(255, 255, 255, .88); border-color: rgba(2, 119, 189, .24); box-shadow: 0 8px 28px rgba(15, 35, 70, .12); }
[data-theme="light"] .tw-top .ttl b { color: #0f1f38; text-shadow: none; }
[data-theme="light"] .tw-st { border-bottom-color: rgba(148, 163, 184, .35); }
[data-theme="light"] .tw-st b,
[data-theme="light"] .tw-bars .row span:last-child { color: #0f1f38; }
[data-theme="light"] .tw-tip { background: rgba(255, 255, 255, .96); border-color: var(--line2); color: var(--txt); box-shadow: 0 6px 20px rgba(15, 35, 70, .15); }
[data-theme="light"] .tw-lbl { color: #0f172a; text-shadow: 0 0 4px rgba(255, 255, 255, .95), 0 0 2px #fff; }
[data-theme="light"] .tw-lbl.city,
[data-theme="light"] .tw-lbl.station,
[data-theme="light"] .tw-lbl.canal,
[data-theme="light"] .tw-lbl.cval,
[data-theme="light"] .tw-lbl.rain { text-shadow: none; }
[data-theme="light"] .tw-lbl.peak { color: #334155; }
[data-theme="light"] .tw-lbl.peak small { color: #64748b; }
[data-theme="light"] .tw-lbl.city { color: #0f1f38; background: rgba(255, 255, 255, .88); border-left-color: var(--cyan); box-shadow: 0 1px 5px rgba(15, 35, 70, .12); }
[data-theme="light"] .tw-lbl.station { background: rgba(255, 255, 255, .92); border-color: #d97706; box-shadow: 0 2px 10px rgba(217, 119, 6, .2); }
[data-theme="light"] .tw-lbl.station b { color: #b45309; }
[data-theme="light"] .tw-lbl.station span { color: #0f1f38; }
[data-theme="light"] .tw-lbl.station small,
[data-theme="light"] .tw-lbl.station em { color: #475569; }
[data-theme="light"] .tw-lbl.canal { color: #0f1f38; background: rgba(255, 255, 255, .88); border-color: rgba(2, 119, 189, .45); }
[data-theme="light"] .tw-lbl.canal b { color: var(--cyan); }
[data-theme="light"] .tw-lbl.cval { color: #3b0764; background: rgba(245, 243, 255, .92); border-color: rgba(109, 40, 217, .4); }
[data-theme="light"] .tw-lbl.cval b { color: #6d28d9; }
[data-theme="light"] .tw-lbl.place { color: #0369a1; }
[data-theme="light"] .tw-lbl.rain { color: #0369a1; background: rgba(240, 249, 255, .92); border-color: rgba(2, 132, 199, .5); }

/* 工程孪生 BIM 视口 */
[data-theme="light"] .bim-tabs button { background: #f8fafd; border-color: var(--line2); color: var(--dim); }
[data-theme="light"] .bim-tabs button:hover { border-color: var(--cyan); color: var(--cyan); }
[data-theme="light"] .bim-tabs button em { background: rgba(2, 119, 189, .1); border-color: rgba(2, 119, 189, .28); }
[data-theme="light"] .bim-tabs button.on { background: linear-gradient(180deg, #1a7cf0, #0f62d6); color: #fff; border-color: #1a7cf0; }
[data-theme="light"] .bim-tabs button.on em { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .5); }
[data-theme="light"] .bim-stage {
  background: radial-gradient(70% 60% at 50% 48%, #ffffff 0%, #edf4fc 58%, #dce7f5 100%);
  box-shadow: inset 0 0 40px rgba(15, 35, 70, .06);
  border-color: var(--line2);
}
[data-theme="light"] .bim-stage::after { background: none; }
[data-theme="light"] .bim-hud,
[data-theme="light"] .bim-layers,
[data-theme="light"] .bim-tools { background: rgba(255, 255, 255, .9); border-color: var(--line2); color: var(--txt); box-shadow: 0 2px 10px rgba(15, 35, 70, .08); }
[data-theme="light"] .bim-hud i,
[data-theme="light"] .bim-lbl i,
[data-theme="light"] .bim-lbl::after { background: #0a8754; box-shadow: 0 0 6px rgba(10, 135, 84, .5); }
[data-theme="light"] .bim-layers label:hover { color: #0f1f38; }
[data-theme="light"] .bim-layers label i { background: #cbd5e1; }
[data-theme="light"] .bim-layers label i::after { background: #ffffff; }
[data-theme="light"] .bim-layers input:checked + i { background: var(--cyan); }
[data-theme="light"] .bim-tools button.on,
[data-theme="light"] .bim-tools button:hover { background: rgba(2, 119, 189, .14); color: var(--cyan); }
[data-theme="light"] .bim-gizmo circle { fill: rgba(255, 255, 255, .9); stroke: var(--line2); }
[data-theme="light"] .bim-msg { background: rgba(238, 243, 249, .78); }
[data-theme="light"] .bim-lbl .bx { background: rgba(255, 255, 255, .92); color: #0f1f38; border-color: rgba(2, 119, 189, .45); box-shadow: 0 4px 12px rgba(15, 35, 70, .12); }
[data-theme="light"] .bim-lbl b:not(.wq) { color: #0f1f38; }
[data-theme="light"] .bim-lbl.main .bx { background: linear-gradient(180deg, rgba(236, 253, 245, .96), rgba(255, 255, 255, .96)); border-color: rgba(10, 135, 84, .65); }
[data-theme="light"] .bim-lbl.scn::after { background: #d97706; box-shadow: 0 0 6px rgba(217, 119, 6, .45); }
[data-theme="light"] .bim-lbl .bx small { color: var(--dim); }
[data-theme="light"] .bim-tip { background: rgba(255, 255, 255, .96); border-color: #d97706; box-shadow: 0 4px 14px rgba(15, 35, 70, .14); }
[data-theme="light"] .bim-tip b,
[data-theme="light"] .bim-info > b,
[data-theme="light"] .bim-slider b { color: #0f1f38; }
[data-theme="light"] .bim-info { background: rgba(255, 255, 255, .94); border-color: rgba(10, 135, 84, .55); box-shadow: 0 8px 24px rgba(15, 35, 70, .14); }
[data-theme="light"] .bim-info .acts { border-top-color: var(--line); }
[data-theme="light"] .bim-info .acts button { background: rgba(2, 119, 189, .08); }
[data-theme="light"] .bim-info .acts button:hover { background: var(--cyan); color: #fff; }
[data-theme="light"] .bim-bar { background: #eff6ff; border-left-color: var(--cyan); }

/* 水质水生态 */
[data-theme="light"] .q-time { background: #ffffff; }
[data-theme="light"] .q-track input[type="range"] { background: linear-gradient(90deg, var(--cyan) var(--p, 100%), #cbd5e1 var(--p, 100%)); }
[data-theme="light"] .q-ring circle.bg { stroke: #e2e8f0; }
[data-theme="light"] .q-ring circle.fg { filter: none; }
[data-theme="light"] .q-ring-t .l,
[data-theme="light"] .q-ring-n { color: #0f1f38; }
[data-theme="light"] .q-kpi-iss { border-color: rgba(220, 38, 38, .35); background: linear-gradient(135deg, rgba(220, 38, 38, .08), #ffffff 65%); }
[data-theme="light"] .q-kpi-iss .v { color: #dc2626; }
[data-theme="light"] .q-river-glow { stroke: rgba(29, 111, 232, .22); }
[data-theme="light"] .q-river-flow { stroke: rgba(255, 255, 255, .9); }
[data-theme="light"] .q-trib-flow { stroke: rgba(255, 255, 255, .85); }
[data-theme="light"] .q-rt-bad { fill: #dc2626; }
[data-theme="light"] .q-mn-t { fill: #0f1f38; }
[data-theme="light"] .q-core { stroke: #ffffff; }
[data-theme="light"] .q-end circle { fill: #e2e8f0; stroke: #94a3b8; }
[data-theme="light"] .q-tip { background: rgba(255, 255, 255, .97); border-color: var(--line2); color: var(--txt); box-shadow: 0 8px 24px rgba(15, 35, 70, .14); }
[data-theme="light"] .q-tip b { color: #0f1f38; }
[data-theme="light"] .q-cube {
  background: radial-gradient(70% 70% at 50% 45%, rgba(2, 119, 189, .08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(2, 119, 189, .045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(2, 119, 189, .045) 0 1px, transparent 1px 32px), #f6faff;
}
[data-theme="light"] .q-cl { color: #334155; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
[data-theme="light"] .q-cl.mon { color: #64748b; }
[data-theme="light"] .q-cl.mon.on { color: #fff; background: var(--cyan); box-shadow: 0 2px 8px rgba(2, 119, 189, .35); }
[data-theme="light"] .q-key i.cap { background: #1e293b; }
[data-theme="light"] .q-key i.goal { border-top-color: #d97706; }
[data-theme="light"] .q-key i.col { background: rgba(2, 119, 189, .2); border-color: #0277bd; }
[data-theme="light"] .q-cbar .bar > em { background: #0f172a; box-shadow: 0 0 3px rgba(15, 23, 42, .45); }
[data-theme="light"] .q-chips button,
[data-theme="light"] .q-ibar button { background: #f8fafd; border-color: var(--line2); color: var(--dim); }
[data-theme="light"] .q-chips button:hover,
[data-theme="light"] .q-ibar button:hover { color: var(--cyan); border-color: var(--cyan); }
[data-theme="light"] .q-chips button.on,
[data-theme="light"] .q-ibar button.on { background: rgba(2, 119, 189, .14); color: #064e8c; border-color: var(--cyan); font-weight: 600; }
[data-theme="light"] .q-mscroll { background: #ffffff; border-color: var(--line); scrollbar-color: #94a3b8 transparent; }
[data-theme="light"] .q-mx th.lb,
[data-theme="light"] .q-mx th.sm,
[data-theme="light"] .q-mx td.sm { background: #f8fafd; border-color: var(--line); }
[data-theme="light"] .q-mx thead th { background: #edf2f9; }
[data-theme="light"] .q-mx thead tr.yr th { color: #475569; border-bottom-color: var(--line); }
[data-theme="light"] .q-mx thead tr.mo th { border-bottom-color: var(--line2); }
[data-theme="light"] .q-mx thead tr.mo th:hover { color: #0f1f38; }
[data-theme="light"] .q-mx thead tr.mo th.cur { color: #fff; background: linear-gradient(180deg, #0ea5e9, #0277bd); box-shadow: 0 2px 8px rgba(2, 119, 189, .35); }
[data-theme="light"] .q-mx .ys { border-left-color: rgba(217, 119, 6, .4); }
[data-theme="light"] .q-mx tbody tr[data-id]:hover th.lb,
[data-theme="light"] .q-mx tbody tr[data-id]:hover td.sm { background: #e8f1fc; }
[data-theme="light"] .q-mx tbody tr[data-id] + tr[data-id] > * { border-top-color: #eef2f8; }
[data-theme="light"] .q-mx td[data-m].cur { background: rgba(2, 119, 189, .1) !important; box-shadow: inset 1px 0 0 rgba(2, 119, 189, .4), inset -1px 0 0 rgba(2, 119, 189, .4); }
[data-theme="light"] .q-mx td i.na { background: repeating-linear-gradient(135deg, rgba(148, 163, 184, .26) 0 3px, rgba(148, 163, 184, .1) 3px 6px); }
[data-theme="light"] .q-mx td i.f,
[data-theme="light"] .q-mleg i.f { box-shadow: inset 0 0 0 2px #0f172a; }
[data-theme="light"] .q-mx td[data-m]:hover i { box-shadow: 0 0 0 1.5px #0f172a, 0 4px 10px rgba(15, 35, 70, .2); }
[data-theme="light"] .q-mx td[data-m]:hover i.f { box-shadow: inset 0 0 0 2px #0f172a, 0 4px 10px rgba(15, 35, 70, .2); }
[data-theme="light"] .q-mx tr.grp > * { background: #eff4fb; border-top-color: rgba(2, 119, 189, .2); }
[data-theme="light"] .q-mx tr.grp th.lb,
[data-theme="light"] .q-mx tr.grp td.sm { background: #e8f0fa; }
[data-theme="light"] .q-proj-t { color: #0f1f38; }
[data-theme="light"] .q-mleg i.na { background: repeating-linear-gradient(135deg, rgba(148, 163, 184, .55) 0 2px, rgba(148, 163, 184, .2) 2px 4px); }
[data-theme="light"] .q-mleg i.cur { background: rgba(2, 119, 189, .18); border-color: var(--cyan); }
[data-theme="light"] .q-iss { background: #f8fafd; border-color: var(--line); }
[data-theme="light"] .q-iss.key { background: linear-gradient(90deg, rgba(220, 38, 38, .07), #f8fafd 55%); }
[data-theme="light"] .q-iss .h b { color: #0f1f38; }
[data-theme="light"] .q-iss .strip span.na { background: #e2e8f0; color: #64748b; }
[data-theme="light"] .q-iss .strip span.f { box-shadow: inset 0 0 0 2px #0f172a; }
[data-theme="light"] .q-iss .strip em { color: #dc2626; }
[data-theme="light"] .q-det-kv b { color: #0f1f38; }
[data-theme="light"] .q-notes summary:hover { color: #0f1f38; }

/* 城乡供水 & 移动端联动 */
[data-theme="light"] .wl-tl .trk { background: var(--line); }
[data-theme="light"] .wl-tl button em { background: #ffffff; }
[data-theme="light"] .wl-tl button.done em { background: #dbeafe; }
[data-theme="light"] .wl-tl button.on,
[data-theme="light"] .wl-tl button:hover { color: #0f1f38; }
[data-theme="light"] .wl-stage {
  border-color: var(--line);
  background: radial-gradient(900px 300px at 60% 40%, rgba(2, 119, 189, .06), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(148, 163, 184, .16) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(148, 163, 184, .16) 39px 40px), #fafcff;
}
[data-theme="light"] .wl-zone { fill: rgba(71, 85, 105, .55); }
[data-theme="light"] .wl-n .bx { fill: #ffffff; }
[data-theme="light"] .wl-n .t { fill: #0f1f38; }
[data-theme="light"] .wl-n .s { fill: var(--dim); }
[data-theme="light"] .wl-n:hover .bx,
[data-theme="light"] .wl-n:focus .bx { fill: #f0f7ff; }
[data-theme="light"] .wl-n.st-ok.wl-t-user .bx { fill: #f0fdf8; }
[data-theme="light"] .wl-n.st-off .bx { fill: #fef2f2; }
[data-theme="light"] .wl-n.st-plan .bx { fill: #f8fafd; }
[data-theme="light"] .wl-jn { stroke: #ffffff; }
[data-theme="light"] .wl-e .base { stroke: #cbd5e1; }
[data-theme="light"] .wl-e.st-ok .base { stroke: rgba(2, 119, 189, .32); }
[data-theme="light"] .wl-e.st-buf .base { stroke: rgba(217, 119, 6, .35); }
[data-theme="light"] .wl-e.sel .base { stroke: rgba(15, 23, 42, .45); }
[data-theme="light"] .wl-el { fill: var(--dim); stroke: #fafcff; }
[data-theme="light"] .wl-el.st-off { fill: #dc2626; }
[data-theme="light"] .wl-el.st-buf { fill: #b45309; }
[data-theme="light"] .wl-valve text.vn { fill: var(--dim); stroke: #fafcff; }
[data-theme="light"] .wl-valve.shut text.vn { fill: #b91c1c; }
[data-theme="light"] .wl-n .gw circle { fill: rgba(217, 119, 6, .12); stroke: #d97706; }
[data-theme="light"] .wl-n .gw text { fill: #b45309; }
[data-theme="light"] .wl-tip { background: rgba(255, 255, 255, .97); border-color: var(--line2); color: var(--txt); box-shadow: 0 6px 20px rgba(15, 35, 70, .14); }
[data-theme="light"] .wl-tip b,
[data-theme="light"] .wl-card h4,
[data-theme="light"] .wl-card h4 .x:hover { color: #0f1f38; }
[data-theme="light"] .wl-off { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
[data-theme="light"] .wl-off:hover { background: #fee2e2; color: #991b1b; }
[data-theme="light"] .pd-badge { box-shadow: 0 0 0 2px #ffffff; }
[data-theme="light"] .pd { background: #f4f7fc; border-left-color: var(--line); box-shadow: -10px 0 30px rgba(15, 35, 70, .14); }
[data-theme="light"] .pd > header { border-bottom-color: var(--line); }
[data-theme="light"] .pd > header b,
[data-theme="light"] .pd > header .x:hover { color: #0f1f38; }
[data-theme="light"] .pd-receipt { background: rgba(236, 253, 245, .98); border-color: #10b981; color: #065f46; }
[data-theme="light"] .pd-receipt b { color: #064e3b; }
[data-theme="light"] .pd-receipt span { color: #047857; }
[data-theme="light"] .na { --real: #0a8754; --proto: #0277bd; --part: #b4690e; --plan: #647999; }
[data-theme="light"] .na-lg i.real { border-color: var(--real); background: rgba(10, 135, 84, .14); }
[data-theme="light"] .na-lg i.proto { border-color: var(--proto); background: rgba(2, 119, 189, .14); }
[data-theme="light"] .na-lg i.part { border-color: var(--part); background: rgba(180, 105, 14, .12); }
[data-theme="light"] .na-lg i.plan { border-color: var(--plan); }
[data-theme="light"] .na-k.part { border-color: rgba(180, 105, 14, .38); background: rgba(180, 105, 14, .06); }
[data-theme="light"] .na-k.plan b,
[data-theme="light"] .na-road b { color: #4c6282; }
[data-theme="light"] .na-arr i { background: linear-gradient(90deg, rgba(2, 119, 189, .18), rgba(2, 119, 189, .78)); }
[data-theme="light"] .na-arr i::after { border-left-color: #0277bd; }
[data-theme="light"] .na-col { background: #f6f9fe; border-color: var(--line); }
[data-theme="light"] .na-col > header { border-bottom-color: var(--line); }
[data-theme="light"] .na-it { background: #ffffff; }
[data-theme="light"] .na-it > b,
[data-theme="light"] .na-row h5,
[data-theme="light"] .na-roles b,
[data-theme="light"] .na-road strong { color: #0f1f38; }
[data-theme="light"] .na-it.plan { background: #f8fafd; }
[data-theme="light"] .na-it.plan > b { color: #4c6282; }
[data-theme="light"] .na-it.plan > b em { color: var(--dim); background: rgba(100, 116, 139, .14); }
[data-theme="light"] .na-it.lk:hover { background: #edf5ff; border-color: var(--cyan); }
[data-theme="light"] .na-rule > b .na-ev { color: #b45309; }
[data-theme="light"] .na-rule > b .na-ac { color: #047857; }
[data-theme="light"] .na-rule.plan > b .na-ev,
[data-theme="light"] .na-rule.plan > b .na-ac { color: #475569; }
[data-theme="light"] .na-road > div i { background: #ffffff; }
[data-theme="light"] .sq-top { background: linear-gradient(90deg, rgba(10, 135, 84, .08), rgba(10, 135, 84, 0)); border-color: rgba(10, 135, 84, .25); }
[data-theme="light"] .sq-top b,
[data-theme="light"] .sq-card > header b,
[data-theme="light"] .yh-kpi b,
[data-theme="light"] .yh-it > b { color: #0f1f38; }
[data-theme="light"] .sq-top .sq-ring { background: radial-gradient(circle, #ffffff 0 19px, transparent 20px), conic-gradient(var(--green) calc(var(--p) * 1%), rgba(100, 116, 139, .22) 0); }
[data-theme="light"] .sq-card { background: #f8fafd; }
[data-theme="light"] .sq-card:hover { background: #eff6ff; border-color: rgba(2, 119, 189, .4); border-left-color: var(--green); }
[data-theme="light"] .sq-card.bad:hover { border-left-color: var(--red); }
[data-theme="light"] .sq-st.ok { color: #fff; }
[data-theme="light"] .sq-axis > span { border-right-color: rgba(255, 255, 255, .85); }
[data-theme="light"] .sq-axis > span.in { background: rgba(10, 135, 84, .14); color: #065f46; }
[data-theme="light"] .sq-meta a { color: #0b66c3; }
[data-theme="light"] .yh-it em.x { color: #b45309; border-color: rgba(180, 105, 14, .45); }

/* 防洪抗旱 */
[data-theme="light"] .f-sg { background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(15, 35, 70, .08); }
[data-theme="light"] .f-sg-t { background: rgba(2, 119, 189, .06); }
[data-theme="light"] .f-st:hover { background: rgba(2, 119, 189, .06); border-color: rgba(2, 119, 189, .22); }
[data-theme="light"] .f-st.on { background: linear-gradient(180deg, rgba(2, 119, 189, .13), rgba(2, 119, 189, .03)); border-color: rgba(2, 119, 189, .45); box-shadow: inset 0 -2px 0 var(--cyan); }
[data-theme="light"] .f-st.on .n { color: #ffffff; box-shadow: 0 2px 8px rgba(2, 119, 189, .35); }
[data-theme="light"] .f-st .tx b,
[data-theme="light"] .f-st .val b,
[data-theme="light"] .f-att .h b,
[data-theme="light"] .f-sl .t b,
[data-theme="light"] .f-mini3 b,
[data-theme="light"] .f-empty b,
[data-theme="light"] .f-pc-h b,
[data-theme="light"] .f-pc-c,
[data-theme="light"] .f-val-g b,
[data-theme="light"] .f-dpc .h b { color: #0f1f38; }
[data-theme="light"] .f-arrow { background: linear-gradient(90deg, rgba(2, 119, 189, .15), rgba(2, 119, 189, .55)); }
[data-theme="light"] .f-arrow::after { border-left-color: rgba(2, 119, 189, .65); }
[data-theme="light"] .f-3d-host { background: #dce8f5; }
[data-theme="light"] .f-3d-lg { background: rgba(255, 255, 255, .92); border-color: var(--line); color: var(--txt); }
[data-theme="light"] .f-lvsum > div { opacity: .82; background: #f8fafd; border-color: var(--line); }
[data-theme="light"] .f-lvsum > div.on { opacity: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #ffffff), #ffffff); }
[data-theme="light"] .f-att { background: #f8fafd; border-color: var(--line); }
[data-theme="light"] .f-fc-st { background: #f8fbff; }
[data-theme="light"] .f-fc-st .fc-meta b { color: #0f1f38; }
[data-theme="light"] .f-fc-st .fc-badge { background: color-mix(in srgb, var(--green) 10%, #ffffff); }
[data-theme="light"] .f-fc-st .fc-badge.warn { background: color-mix(in srgb, var(--yellow) 12%, #ffffff); }
[data-theme="light"] .f-days button { background: #f8fafd; }
[data-theme="light"] .f-days button:hover,
[data-theme="light"] .f-days button.on { color: #064e8c; background: rgba(2, 119, 189, .14); border-color: var(--cyan); font-weight: 600; }
[data-theme="light"] .f-sl input[type="range"],
[data-theme="light"] .f-time input[type="range"] { background: linear-gradient(90deg, var(--cyan) var(--p, 50%), #cbd5e1 var(--p, 50%)); }
[data-theme="light"] .f-bt { background: #f4f7fc; border-color: var(--line); }
[data-theme="light"] .f-sim-svg {
  background: radial-gradient(500px 180px at 50% 42%, rgba(2, 119, 189, .06), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(148, 163, 184, .16) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(148, 163, 184, .16) 27px 28px), #fafcff;
}
[data-theme="light"] .f-sv .sv-lead { stroke: rgba(2, 119, 189, .35); }
[data-theme="light"] .f-sv .sv-brk { stroke: rgba(2, 119, 189, .45); }
[data-theme="light"] .f-sv .sv-pill rect { fill: #ffffff; stroke: var(--line2); }
[data-theme="light"] .f-sv .sv-warn rect { fill: #fef2f2; stroke: rgba(220, 38, 38, .35); }
[data-theme="light"] .f-sv .sv-warn text { fill: #dc2626; }
[data-theme="light"] .f-sv .sv-card .bx { fill: #ffffff; stroke: var(--line); }
[data-theme="light"] .f-sv .sv-card .div-bx { stroke: rgba(217, 119, 6, .42); }
[data-theme="light"] .f-sv .sv-card .in-bx { stroke: rgba(10, 135, 84, .42); }
[data-theme="light"] .f-sv .sv-card .in-ac { fill: #1d6fe8; }
[data-theme="light"] .f-sv .sv-card .div-ac { fill: #d97706; }
[data-theme="light"] .f-sv .sv-card .in-ac2 { fill: #0a8754; }
[data-theme="light"] .f-sv .sv-jn,
[data-theme="light"] .f-sv .sv-port { fill: #ffffff; }
[data-theme="light"] .f-sv .div-jn { stroke: #d97706; }
[data-theme="light"] .f-sv .in-jn { stroke: #0a8754; }
[data-theme="light"] .f-sv .div { stroke: #ea580c; }
[data-theme="light"] .f-sv .in { stroke: #0a8754; }
[data-theme="light"] .f-sv .glow { fill: rgba(29, 111, 232, .16); }
[data-theme="light"] .f-sv .nd circle { stroke: #ffffff; }
[data-theme="light"] .f-sv .in-n { fill: #1d6fe8; }
[data-theme="light"] .f-sv .nd .halo.in-h { fill: #1d6fe8; }
[data-theme="light"] .f-sv .nt { fill: #ffffff; }
[data-theme="light"] .f-sv .lt { fill: #0f1f38; }
[data-theme="light"] .f-sv .ls { fill: #0f1f38; }
[data-theme="light"] .f-sv .lv2 { fill: #c8520a; }
[data-theme="light"] .f-sv .lv3 { fill: #0a8754; }
[data-theme="light"] .f-sim-g { background: radial-gradient(240px 140px at 50% 48%, rgba(2, 119, 189, .05), transparent 72%), #f8fbff; }
[data-theme="light"] .f-lv {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 11%, #ffffff), color-mix(in srgb, var(--c) 4%, #ffffff));
  border-color: color-mix(in srgb, var(--c) 38%, var(--line));
}
[data-theme="light"] .f-mini3 > div { background: #f8fbff; }
[data-theme="light"] .f-verdict { background: #fffbeb; color: #78350f; border-left-color: #d97706; }
[data-theme="light"] .f-verdict b { color: #b45309; }
[data-theme="light"] .f-pc { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, #ffffff), #ffffff 55%); border-color: var(--line); }
[data-theme="light"] .f-pc-n { background: #f8fafd; border-color: var(--line2); }
[data-theme="light"] .f-pc-f { border-top-color: var(--line); }
[data-theme="light"] .f-time { background: #ffffff; }
[data-theme="light"] .f-val { background: #fffbeb; border-left-color: #d97706; }
[data-theme="light"] .f-val .t { color: #78350f; }
[data-theme="light"] .f-val .t b { color: #b45309; }
[data-theme="light"] .f-val-g > div { background: rgba(255, 255, 255, .88); border: 1px solid var(--line); }
[data-theme="light"] .f-dpc { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #ffffff), #ffffff 45%); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
[data-theme="light"] .f-dpc .lvbar i { background: #e2e8f0; }
[data-theme="light"] .f-lv.bad,
[data-theme="light"] .f-pill.bad,
[data-theme="light"] .f-pc.bad { --c: #dc2626; }
[data-theme="light"] .f-pc.bad { border-color: rgba(220, 38, 38, .45); }
[data-theme="light"] .f-pill.idle { --c: #4c6282; }
[data-theme="light"] .f-3d-lg .lg-red { background: #dc2626; }
[data-theme="light"] .f-3d-lg .lg-orange { background: #ea580c; }
[data-theme="light"] .f-3d-lg .lg-yellow { background: #d97706; }
[data-theme="light"] .f-3d-lg .lg-blue { background: #0284c7; }
[data-theme="light"] .f-3d-lg .lg-hi { background: #5b3cc4; }
[data-theme="light"] .f-3d-lg .lg-lo { background: #cbd5e1; }
[data-theme="light"] .pd-toast { background: rgba(255, 255, 255, .98); box-shadow: 0 10px 28px rgba(15, 35, 70, .18); }

/* 简历 */
[data-theme="light"] .cv-bar { background: #f4f7fc; }
[data-theme="light"] .cv-meta b { color: #0f1f38; }
[data-theme="light"] .cv-tag { background: rgba(2, 119, 189, .08); border-color: rgba(2, 119, 189, .24); }
[data-theme="light"] .cv-desk { background: radial-gradient(80% 55% at 50% 6%, #edf3fb, #d6e2f1 82%); }
[data-theme="light"] .cv-paper { box-shadow: 0 16px 42px rgba(15, 35, 70, .18), 0 0 0 1px rgba(15, 35, 70, .06); }

/* 灌区调度 */
[data-theme="light"] .ir-day { background: #ffffff; }
[data-theme="light"] .ir-day input[type="range"] { background: linear-gradient(90deg, var(--cyan) var(--p, 100%), #cbd5e1 var(--p, 100%)); }
[data-theme="light"] .ir-sv .zone { fill: rgba(2, 119, 189, .03); stroke: rgba(2, 119, 189, .2); }
[data-theme="light"] .ir-sv .ir-rv-glow { stroke: rgba(29, 111, 232, .22); }
[data-theme="light"] .ir-sv .t { fill: #0f1f38; stroke: #ffffff; }
[data-theme="light"] .ir-sv .s { fill: var(--cyan); stroke: #ffffff; }
[data-theme="light"] .ir-c .end { stroke: #ffffff; }
[data-theme="light"] .ir-c .pump rect { fill: #ffffff; }
[data-theme="light"] .ir-c .lb { fill: var(--txt); stroke: #ffffff; }
[data-theme="light"] .ir-c.hov .lb,
[data-theme="light"] .ir-c.sel .lb { fill: #0f1f38; }
[data-theme="light"] .ir-dam rect { fill: #64748b; stroke: #ffffff; }
[data-theme="light"] .ir-nd circle { stroke: #ffffff; }
[data-theme="light"] .ir-tot { fill: #0f1f38; }
[data-theme="light"] .ir-toplist .row .b { background: #e2eaf5; }
[data-theme="light"] .ir-toplist .row b,
[data-theme="light"] .ir-val .h b,
[data-theme="light"] .ir-val .bars b,
[data-theme="light"] .ir-subs b,
[data-theme="light"] .ir-sc .h b { color: #0f1f38; }
[data-theme="light"] .ir-val { background: linear-gradient(160deg, rgba(10, 135, 84, .07), #ffffff 55%); border-color: rgba(10, 135, 84, .3); }
[data-theme="light"] .ir-val.part { background: linear-gradient(160deg, rgba(180, 105, 14, .07), #ffffff 55%); border-color: rgba(180, 105, 14, .3); }
[data-theme="light"] .ir-chips .grp { background: #f8fafd; }
[data-theme="light"] .ir-chips button { background: #ffffff; border-color: var(--line2); }
[data-theme="light"] .ir-chips button.on { background: color-mix(in srgb, var(--c) 16%, #ffffff); color: #0f1f38; font-weight: 600; box-shadow: none; }
[data-theme="light"] .ir-tl { background: repeating-linear-gradient(90deg, rgba(2, 119, 189, .08) 0 1px, transparent 1px 8.33%), #f4f7fc; }
[data-theme="light"] .ir-tl i { background: linear-gradient(90deg, #0277bd, #0ea5e9); box-shadow: 0 2px 8px rgba(2, 119, 189, .22); }
[data-theme="light"] .ir-tl i.w { background: linear-gradient(90deg, #6d28d9, #7c3aed); }
[data-theme="light"] .ir-tl i.plan { background: repeating-linear-gradient(45deg, rgba(109, 40, 217, .85) 0 6px, rgba(124, 58, 237, .65) 6px 12px); }
[data-theme="light"] .ir-tl i span { color: #ffffff; }
[data-theme="light"] .ir-sc { background: linear-gradient(160deg, rgba(2, 119, 189, .07), #ffffff 55%); border-color: rgba(2, 119, 189, .26); }
[data-theme="light"] .ir-sc.w { background: linear-gradient(160deg, rgba(109, 40, 217, .07), #ffffff 55%); border-color: rgba(109, 40, 217, .26); }
[data-theme="light"] .ir-sc.w .v b { color: #6d28d9; }


/* 样式优化：KPI 与面板（仅追加覆盖，不改原规则） */
.kpi .v { font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(47, 211, 255, .18); }
.kpi.hl .v { text-shadow: 0 0 14px rgba(47, 211, 255, .45); }
.kpi .l { transition: color .2s; }
.kpi:hover .l { color: #cfe3ff; }
.kpi .s .src { color: var(--mute); text-decoration: none; border-bottom: 1px dashed currentColor; transition: color .2s; }
.kpi .s .src:hover { color: var(--cyan); }
.panel > header h3 { letter-spacing: .5px; }
[data-theme="light"] .kpi .v,
[data-theme="light"] .kpi.hl .v { text-shadow: none; }
[data-theme="light"] .kpi:hover .l { color: #0f1f38; }
[data-theme="light"] .kpi .s .src { color: #5b7aa6; }
[data-theme="light"] .kpi .s .src:hover { color: #0b66c3; }
@media (prefers-reduced-motion: reduce) {
  .kpi { transition: none; }
  .kpi:hover { transform: none; }
}
