/* ==========================================================================
   中兴节能智慧用水管理平台 v2.0 · 前台大屏样式
   深海军蓝科技风：底 #050d24 / 面板 #0a1738 / 描边 #1b3a7a
   主色 #37b6ff / 金 #ffcc66 / 告警 #ff4d4f / 正常 #28c76f
   设计基准宽度 1440，兼容 1280×720 ~ 1920×1080
   ========================================================================== */

:root {
  --bg: #050d24;
  --bg2: #071231;
  --panel: #0a1738;
  --panel2: #0d1f47;
  --line: #1b3a7a;
  --line-soft: rgba(27, 58, 122, 0.55);
  --pri: #37b6ff;
  --pri-dim: rgba(55, 182, 255, 0.16);
  --gold: #ffcc66;
  --red: #ff4d4f;
  --green: #28c76f;
  --warn: #ffb020;
  --txt: #dbe8ff;
  --txt2: #9db4dd;
  --dim: #7f97c4;
  --mono: Consolas, "Courier New", Menlo, monospace;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(55, 182, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(176, 124, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #061029 0%, var(--bg) 45%, #04091c 100%);
  color: var(--txt);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 13px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 顶部扫描光带装饰 */
body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pri), transparent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 60;
}

/* ============================ 骨架布局 ============================ */

.app {
  display: flex;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

/* ---------- 左侧导航 ---------- */

.sidebar {
  width: 108px;
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, rgba(11, 27, 62, 0.96), rgba(6, 16, 38, 0.98));
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--pri), transparent);
  opacity: 0.5;
}

.brand {
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--line-soft);
}

.brand svg { width: 26px; height: 26px; }
.brand b {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--pri);
  font-weight: 400;
}

.nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--txt2);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.nav a:hover { color: var(--txt); background: rgba(55, 182, 255, 0.08); }

.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(55, 182, 255, 0.22), rgba(55, 182, 255, 0.04));
  border-color: rgba(55, 182, 255, 0.45);
  box-shadow: inset 0 0 18px rgba(55, 182, 255, 0.18);
}

.nav a.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: var(--pri);
  box-shadow: 0 0 10px var(--pri);
  border-radius: 2px;
}

.nav a.active svg { stroke: var(--pri); }

.side-foot {
  flex: 0 0 auto;
  padding: 8px 0 10px;
  text-align: center;
  font-size: 10px;
  color: var(--dim);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
}

/* ---------- 主区 ---------- */

.main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 31, 71, 0.92), rgba(8, 20, 48, 0.62));
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(55, 182, 255, 0.75), transparent);
}

.topbar h1 {
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff, #8fd6ff 65%, #37b6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(55, 182, 255, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.campus-tag {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(255, 204, 102, 0.42);
  background: rgba(255, 204, 102, 0.08);
  border-radius: 10px;
  padding: 1px 9px;
  white-space: nowrap;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.clock-time {
  font-family: var(--mono);
  font-size: 19px;
  color: #eaf6ff;
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(55, 182, 255, 0.5);
}

.clock-date {
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}

.bell {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 31, 71, 0.85);
  color: var(--txt2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}

.bell:hover { border-color: var(--pri); color: var(--pri); }
.bell svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.bell .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-family: var(--mono);
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.85);
}

.bell .badge.hide { display: none; }

.bell.pulse { animation: bellPulse 1.6s ease-in-out infinite; }
@keyframes bellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 77, 79, 0); }
}

/* ---------- 视图容器 ---------- */

.views {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px 12px;
  overflow: hidden;
}

.view {
  display: none;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.view.active { display: flex; overflow-y: auto; }

/* ============================ 面板 ============================ */

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 38, 82, 0.55) 0%, rgba(10, 23, 56, 0.92) 55%, rgba(8, 18, 44, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 26px rgba(55, 182, 255, 0.07), 0 2px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* 四角装饰线：单个伪元素 + 8 段渐变 */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(var(--pri), var(--pri)) left top / 9px 2px no-repeat,
    linear-gradient(var(--pri), var(--pri)) left top / 2px 9px no-repeat,
    linear-gradient(var(--pri), var(--pri)) right top / 9px 2px no-repeat,
    linear-gradient(var(--pri), var(--pri)) right top / 2px 9px no-repeat,
    linear-gradient(var(--pri), var(--pri)) left bottom / 9px 2px no-repeat,
    linear-gradient(var(--pri), var(--pri)) left bottom / 2px 9px no-repeat,
    linear-gradient(var(--pri), var(--pri)) right bottom / 9px 2px no-repeat,
    linear-gradient(var(--pri), var(--pri)) right bottom / 2px 9px no-repeat;
  opacity: 0.85;
}

.panel.gold::before {
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 9px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 2px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 9px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 2px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 9px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 2px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 9px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 2px 9px no-repeat;
}

.panel-hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(55, 182, 255, 0.10), transparent 62%);
  min-height: 0;
}

.panel-hd h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #e7f2ff;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.panel-hd h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--pri);
  box-shadow: 0 0 8px var(--pri);
}

.panel-hd .hd-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.panel-bd {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
}

.panel-bd.nopad { padding: 0; }

.chart {
  flex: 1 1 auto;
  min-height: 200px;   /* 画布最低高度：屏幕过矮时不被挤扁，不足部分由视图内滚动兜底 */
  width: 100%;
}

.chart-fixed { height: 100%; min-height: 0; }

/* 数据加载失败占位 */
.fail {
  flex: 1 1 auto;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ff9aa0;
  font-size: 12px;
  letter-spacing: 1px;
}

.fail small { color: var(--dim); font-size: 11px; }

.empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 1px;
  min-height: 48px;
}

/* ============================ KPI 卡 ============================ */

.kpi-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.kpi {
  position: relative;
  padding: 9px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(55, 182, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(16, 38, 82, 0.7), rgba(8, 20, 48, 0.9));
  overflow: hidden;
  min-height: 0;
}

.kpi::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--pri), transparent);
  opacity: 0.9;
}

.kpi.gold::after { background: linear-gradient(180deg, var(--gold), transparent); }
.kpi.danger::after { background: linear-gradient(180deg, var(--red), transparent); }
.kpi.ok::after { background: linear-gradient(180deg, var(--green), transparent); }

.kpi .k-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.kpi .k-value {
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(55, 182, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi .k-value.gold { color: var(--gold); text-shadow: 0 0 18px rgba(255, 204, 102, 0.4); }
.kpi .k-value.danger { color: #ff8b8d; text-shadow: 0 0 18px rgba(255, 77, 79, 0.45); }
.kpi .k-value.ok { color: #6ee7a5; text-shadow: 0 0 18px rgba(40, 199, 111, 0.4); }

.kpi .k-value .u {
  font-size: 12px;
  color: var(--dim);
  margin-left: 3px;
  font-family: inherit;
  text-shadow: none;
}

.kpi .k-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--txt2);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 1380px) {
  .kpi .k-value { font-size: 24px; }
  .topbar h1 { font-size: 18px; }
}

/* 涨跌箭头 */
.up { color: var(--red); }
.down { color: var(--green); }
.flat { color: var(--dim); }

/* ============================ 表格 ============================ */

.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.scroll::-webkit-scrollbar { width: 7px; height: 7px; }
.scroll::-webkit-scrollbar-track { background: rgba(8, 20, 48, 0.6); }
.scroll::-webkit-scrollbar-thumb {
  background: rgba(55, 182, 255, 0.35);
  border-radius: 4px;
}
.scroll::-webkit-scrollbar-thumb:hover { background: rgba(55, 182, 255, 0.6); }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d1f47;
  color: #9db4dd;
  font-weight: 400;
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(27, 58, 122, 0.45);
  white-space: nowrap;
  color: var(--txt);
}

.tbl td.num, .tbl th.num {
  text-align: right;
  font-family: var(--mono);
}

.tbl tbody tr:hover td { background: rgba(55, 182, 255, 0.08); }
.tbl tbody tr.sel td { background: rgba(55, 182, 255, 0.16); }
.tbl tbody tr.off td { color: #ff8b8d; }
.tbl tbody tr.danger td { color: #ff8b8d; }
.tbl tbody tr.pickable { cursor: pointer; }

.tbl tfoot td {
  position: sticky;
  bottom: 0;
  background: #0d1f47;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  color: var(--gold);
}

/* 状态标签 */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag.ok { color: #6ee7a5; border-color: rgba(40, 199, 111, 0.45); background: rgba(40, 199, 111, 0.12); }
.tag.warn { color: var(--gold); border-color: rgba(255, 204, 102, 0.45); background: rgba(255, 204, 102, 0.12); }
.tag.bad { color: #ff8b8d; border-color: rgba(255, 77, 79, 0.45); background: rgba(255, 77, 79, 0.13); }
.tag.mute { color: var(--dim); border-color: var(--line); background: rgba(27, 58, 122, 0.25); }
.tag.pri { color: #9edcff; border-color: rgba(55, 182, 255, 0.45); background: rgba(55, 182, 255, 0.13); }

/* ============================ 表单控件 ============================ */

.inp, .sel {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--txt);
  background: rgba(6, 16, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  font-family: inherit;
}

.inp:focus, .sel:focus { border-color: var(--pri); box-shadow: 0 0 0 2px rgba(55, 182, 255, 0.18); }
.inp::placeholder { color: #5c739b; }
.sel option { background: #0a1738; }

.btn {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  color: #cfe9ff;
  background: rgba(55, 182, 255, 0.12);
  border: 1px solid rgba(55, 182, 255, 0.42);
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  white-space: nowrap;
}

.btn:hover { background: rgba(55, 182, 255, 0.24); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn.mini { height: 22px; padding: 0 8px; font-size: 11px; }
.btn.gold { color: var(--gold); border-color: rgba(255, 204, 102, 0.45); background: rgba(255, 204, 102, 0.1); }
.btn.gold:hover { background: rgba(255, 204, 102, 0.22); color: #fff; }
.btn.danger { color: #ff9a9c; border-color: rgba(255, 77, 79, 0.45); background: rgba(255, 77, 79, 0.1); }
.btn.danger:hover { background: rgba(255, 77, 79, 0.22); color: #fff; }

/* ============================ 总览布局 ============================ */

.ov-row {
  display: flex;
  gap: 10px;
  flex: 1 1 0;      /* 两行按剩余高度平分，避免下行内容把上行图表挤扁 */
  min-height: 0;
}

.ov-col-trend { flex: 1.75 1 0; min-width: 0; }
.ov-col-pie { flex: 1 1 0; min-width: 0; }
.ov-col-rank { flex: 1.25 1 0; min-width: 0; }
.ov-col-alert { flex: 1.15 1 0; min-width: 0; }
.ov-col-gauge { flex: 0.85 1 0; min-width: 0; min-width: 180px; }

/* ============================ 告警滚动列表 ============================ */

.alist {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.alist-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alist.scrolling .alist-inner { animation: alertScroll 26s linear infinite; }
.alist.scrolling:hover .alist-inner { animation-play-state: paused; }

@keyframes alertScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.aitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(27, 58, 122, 0.7);
  border-left: 2px solid var(--warn);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.08), rgba(8, 20, 48, 0.5));
  font-size: 12px;
  line-height: 1.45;
}

.aitem.lv-urgent { border-left-color: var(--red); background: linear-gradient(90deg, rgba(255, 77, 79, 0.13), rgba(8, 20, 48, 0.5)); }
.aitem.lv-normal { border-left-color: var(--pri); background: linear-gradient(90deg, rgba(55, 182, 255, 0.08), rgba(8, 20, 48, 0.5)); }
.aitem .ai-main { flex: 1 1 auto; min-width: 0; }
.aitem .ai-t { color: #eaf4ff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aitem .ai-d { color: var(--dim); font-size: 11px; margin-top: 1px; }
.aitem .ai-time { color: var(--dim); font-size: 10px; font-family: var(--mono); white-space: nowrap; }

/* ============================ 二维监控视图 ============================ */

.mon-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.mon-left { flex: 1.5 1 0; min-width: 0; }
.mon-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mon-right-top { flex: 1 1 0; min-height: 0; display: flex; }
.mon-right-bot { flex: 0 0 auto; min-height: 0; max-height: 44%; display: flex; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  width: 100%;
  align-content: start;
  overflow: auto;
  min-height: 0;
}

.dev-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 8px;
  background: linear-gradient(180deg, rgba(16, 38, 82, 0.6), rgba(8, 20, 48, 0.85));
  font-size: 11px;
  min-width: 0;
}

.dev-card .dc-name {
  color: #dceaff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-card .dc-val {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--pri);
  margin-top: 2px;
  white-space: nowrap;
}

.dev-card .dc-val.off { color: #ff8b8d; }
.dev-card .dc-val.on { color: #6ee7a5; }

.dev-card .dc-tag { margin-top: 3px; }

/* ============================ GIS 视图 ============================ */

.gis-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.gis-main { flex: 1 1 auto; min-width: 0; position: relative; }
.gis-side { flex: 0 0 268px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.gis-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(55, 182, 255, 0.08), transparent 55%),
    repeating-linear-gradient(0deg, rgba(27, 58, 122, 0.22) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(27, 58, 122, 0.22) 0 1px, transparent 1px 40px),
    #050e26;
}

#gisSvg { display: block; width: 100%; height: 100%; }

#gisSvg text { font-family: "Microsoft YaHei", sans-serif; }

#gisSvg .node-hit { cursor: pointer; }
#gisSvg .node-pulse { animation: nodePulse 1.5s ease-out infinite; }
@keyframes nodePulse {
  0% { opacity: 0.9; r: 9; }
  100% { opacity: 0; r: 24; }
}

#gisSvg .label {
  font-size: 11px;
  fill: #b9cdea;
  pointer-events: none;
}

#gisSvg .label.hot { fill: var(--gold); font-weight: 600; }
#gisSvg .zone-label { font-size: 13px; fill: #8fb6e8; letter-spacing: 2px; pointer-events: none; opacity: 0.75; }

.gis-legend {
  flex: 0 0 auto;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--txt2);
  border-top: 1px solid var(--line-soft);
}

.gis-legend i {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
}

.gis-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.gis-legend .ln {
  width: 18px;
  height: 3px;
  display: inline-block;
  border-radius: 2px;
  background: var(--pri);
}

.gis-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  font-size: 12px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(27, 58, 122, 0.65);
}

.kv .k { color: var(--dim); }
.kv .v { color: #eaf4ff; font-family: var(--mono); }

#gisMini { height: 96px; flex: 0 0 auto; width: 100%; }

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: rgba(8, 20, 48, 0.98);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  max-height: 180px;
  overflow: auto;
  display: none;
}

.suggest.on { display: block; }

.suggest li {
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
  color: var(--txt2);
}

.suggest li:hover, .suggest li.hot { background: rgba(55, 182, 255, 0.18); color: #fff; }

.search-wrap { position: relative; width: 150px; }
.search-wrap .inp { width: 100%; }

/* ============================ 再生水 ============================ */

.reuse-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.reuse-left { flex: 0 0 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.reuse-mid { flex: 1.2 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.reuse-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.tank-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: linear-gradient(180deg, rgba(16, 38, 82, 0.55), rgba(8, 20, 48, 0.9));
  display: flex;
  gap: 10px;
  min-height: 0;
}

.tank {
  position: relative;
  width: 84px;
  flex: 0 0 84px;
  height: 118px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 18, 44, 0.95), rgba(4, 12, 32, 0.95));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}

.tank .water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(90, 205, 255, 0.85), rgba(20, 110, 210, 0.92));
  transition: height 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
  box-shadow: 0 0 22px rgba(55, 182, 255, 0.55);
}

.tank .wave {
  position: absolute;
  left: -62%;
  width: 224%;
  height: 30px;
  top: -15px;
  background: rgba(150, 226, 255, 0.32);
  border-radius: 44%;
  animation: waveRot 7s linear infinite;
}

.tank .wave.b {
  background: rgba(55, 182, 255, 0.2);
  border-radius: 48%;
  animation-duration: 11s;
}

@keyframes waveRot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tank .tank-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  color: #eaf6ff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(55, 182, 255, 0.7);
  z-index: 2;
}

.tank-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tank-info .ti-name { font-size: 12px; color: #eaf4ff; display: flex; align-items: center; gap: 6px; }
.tank-info .ti-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.tank-info .ti-row b { font-family: var(--mono); color: #cfe6ff; font-weight: 400; }

/* ============================ 水平衡 ============================ */

.bal-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.bal-left { flex: 1.35 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bal-mid { flex: 1.15 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bal-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.big-num {
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 204, 102, 0.42);
}

.big-num small { font-size: 13px; color: var(--dim); margin-left: 3px; text-shadow: none; }

.mini-kpi {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.mini-kpi > div {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 8px;
  background: rgba(8, 20, 48, 0.7);
}

.mini-kpi .mk-l { font-size: 11px; color: var(--dim); white-space: nowrap; }
.mini-kpi .mk-v { font-family: var(--mono); font-size: 16px; color: #eaf4ff; white-space: nowrap; }

/* ============================ 三维校园 ============================ */

.scene-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.scene-main { flex: 1 1 auto; min-width: 0; position: relative; }
.scene-side { flex: 0 0 250px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

#sceneCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#sceneCanvas.grabbing { cursor: grabbing; }

.scene-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.compass {
  left: 12px;
  top: 12px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 16, 38, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass .needle {
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, var(--red) 0 45%, var(--txt2) 45% 100%);
  border-radius: 1px;
  position: relative;
  transform-origin: 50% 50%;
}

.compass .needle::after {
  content: "N";
  position: absolute;
  top: -13px;
  left: -5px;
  font-size: 9px;
  color: var(--red);
  font-family: var(--mono);
}

.scene-hint {
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}

.scene-legend {
  right: 12px;
  top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(6, 16, 38, 0.8);
  font-size: 11px;
  color: var(--txt2);
  line-height: 1.9;
}

.scene-legend .bar {
  display: block;
  width: 92px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #26d07c, #ffd24d 52%, #ff5b5b);
  margin: 2px 0 4px;
}

.scene-legend i { font-style: normal; font-family: var(--mono); }

/* ============================ 告警中心 ============================ */

.al-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.al-left { flex: 0 0 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.al-mid { flex: 1.1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.al-right { flex: 1.1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.stat-row { display: flex; gap: 8px; flex: 0 0 auto; }
.stat-row > div {
  flex: 1 1 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 9px;
  background: rgba(8, 20, 48, 0.75);
  min-width: 0;
}
.stat-row .st-l { font-size: 11px; color: var(--dim); white-space: nowrap; }
.stat-row .st-v { font-family: var(--mono); font-size: 20px; color: #eaf4ff; white-space: nowrap; }

.alist-plain {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}

.acard {
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: 3px;
  padding: 7px 9px;
  background: rgba(8, 20, 48, 0.72);
  font-size: 12px;
}

.acard.urgent { border-left-color: var(--red); }
.acard.normal { border-left-color: var(--pri); }
.acard .ac-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acard .ac-detail { color: var(--txt2); font-size: 11px; margin: 3px 0 5px; line-height: 1.5; }
.acard .ac-act { display: flex; gap: 6px; align-items: center; }
.acard .ac-time { margin-left: auto; color: var(--dim); font-size: 10px; font-family: var(--mono); }

.login-note {
  padding: 6px 9px;
  border: 1px dashed rgba(255, 204, 102, 0.5);
  border-radius: 3px;
  background: rgba(255, 204, 102, 0.07);
  color: var(--gold);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================ 报表中心 ============================ */

.rp-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.rp-left { flex: 1.6 1 0; min-width: 0; }
.rp-right { flex: 1 1 0; min-width: 0; }

/* ============================ 弹层 / 提示 ============================ */

.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 7, 20, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.mask.on { display: flex; }

.dialog {
  width: 320px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, #0f2450, #081430);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(55, 182, 255, 0.1);
  padding: 16px 18px 14px;
  position: relative;
}

.dialog h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #eaf4ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog h4::before {
  content: "";
  width: 3px;
  height: 13px;
  background: var(--pri);
  box-shadow: 0 0 8px var(--pri);
  border-radius: 2px;
}

.dialog label {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 4px;
}

.dialog .inp { width: 100%; height: 30px; margin-bottom: 10px; }

.dialog .dlg-msg {
  min-height: 16px;
  font-size: 11px;
  color: #ff9a9c;
  margin-bottom: 8px;
}

.dialog .dlg-act { display: flex; gap: 8px; justify-content: flex-end; }
.dialog .btn { height: 28px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pri);
  border-radius: 3px;
  background: rgba(8, 20, 48, 0.97);
  color: #eaf4ff;
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: 70vw;
}

.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-left-color: var(--red); color: #ffc9ca; }
.toast.ok { border-left-color: var(--green); }

/* 加载中骨架 */
.loading {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 1px;
}

.loading::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(55, 182, 255, 0.28);
  border-top-color: var(--pri);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 打印 ============================ */
@media print {
  @page { size: A4 landscape; margin: 10mm; }

  html, body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #000 !important;
  }

  body::before, .sidebar, .topbar, .mask, .toast, .no-print { display: none !important; }

  .app, .main, .views, .view.active, .rp-row, .panel, .panel-bd, .scroll {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: none !important;
    border-color: #999 !important;
    padding: 0 !important;
    margin: 0 0 6mm !important;
  }

  .panel::before { display: none !important; }

  .panel-hd {
    border-bottom: 1px solid #333 !important;
    background: none !important;
    padding: 2mm 0 !important;
  }

  .panel-hd h3, .panel-hd .hd-extra { color: #000 !important; }
  .panel-hd h3::before { background: #000 !important; box-shadow: none !important; }

  .rp-row { display: block !important; }
  .rp-left, .rp-right { width: 100% !important; }

  .tbl th {
    position: static !important;
    background: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #333 !important;
  }

  .tbl td { color: #000 !important; border-bottom: 1px solid #ccc !important; }
  .tbl tbody tr:hover td { background: none !important; }
  .tbl tbody tr.danger td { color: #000 !important; font-weight: 700; }
  .tbl tfoot td { position: static !important; background: #eee !important; color: #000 !important; }

  .tag { border-color: #666 !important; color: #000 !important; background: none !important; }
  .print-title { display: block !important; }
}

.print-title {
  display: none;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4mm;
  text-align: center;
}

/* ==========================================================================
   v3 新增：AI 速报 / 水平衡三级 / AI 探漏 / 节水效益 / 水质监测 / GIS 漏点脉冲
   ========================================================================== */

/* ---------------- 总览 · AI 探漏速报横幅 ---------------- */

.ai-brief {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 9px;
  border: 1px solid rgba(255, 77, 79, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 77, 79, 0.12), rgba(8, 20, 48, 0.55) 58%);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.ai-brief:hover {
  border-color: rgba(255, 77, 79, 0.72);
  background: linear-gradient(90deg, rgba(255, 77, 79, 0.18), rgba(8, 20, 48, 0.55) 58%);
}

.ai-brief .ab-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.ai-brief .ab-tt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff8b8d;
  letter-spacing: 1px;
}

.ai-brief .ab-tt::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.ai-brief .ab-time { color: var(--dim); font-family: var(--mono); }
.ai-brief .ab-more { margin-left: auto; color: var(--pri); }

.ai-brief .ab-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-brief .ab-item {
  flex: 1 1 0;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(27, 58, 122, 0.8);
  border-left: 2px solid var(--red);
  border-radius: 3px;
  background: rgba(8, 20, 48, 0.55);
  font-size: 12px;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
}

.ai-brief .ab-item .ab-t { color: var(--dim); flex: 0 0 auto; }
.ai-brief .ab-item .ab-n {
  color: #eaf4ff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-brief .ab-item .ab-c {
  margin-left: auto;
  color: var(--gold);
  font-family: var(--mono);
  flex: 0 0 auto;
}

/* ---------------- 水平衡 L1/L2/L3 ---------------- */

.wb-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wb-zones { flex: 1 1 0; }
.wb-l3 { flex: 1.12 1 0; }

.wb-l3-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 12px;
}

.wb-l3-main .chart { flex: 1 1 auto; min-height: 150px; }

.wb-l3-side {
  flex: 0 0 196px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.wb-l3-side .kv .v b { color: #ff8b8d; font-weight: 500; }

.wb-loss {
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px dashed rgba(255, 77, 79, 0.45);
  border-radius: 3px;
  background: rgba(255, 77, 79, 0.07);
  font-size: 11px;
  line-height: 1.65;
  color: #ff9a9c;
}

.wb-loss b {
  font-family: var(--mono);
  font-weight: 500;
  color: #ff8b8d;
}

.wb-loss.ok {
  border-color: rgba(40, 199, 111, 0.38);
  background: rgba(40, 199, 111, 0.07);
  color: #6ee7a5;
}

.wb-loss.ok b { color: #6ee7a5; }

/* ---------------- AI 探漏视图 ---------------- */

.ai-sum { flex: 0 0 auto; }

.ai-summary {
  font-size: 13px;
  line-height: 1.8;
  color: var(--txt);
}

.ai-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ai-stats > span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 20, 48, 0.7);
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}

.ai-stats > span b { color: #eaf4ff; font-weight: 500; margin-left: 4px; }
.ai-stats > span.hi b { color: #ff8b8d; }
.ai-stats > span.mid b { color: var(--gold); }

.ai-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 4px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.06), rgba(8, 20, 48, 0.5));
}

.ai-card.lv-high {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(255, 77, 79, 0.12), rgba(8, 20, 48, 0.5));
}

.ai-card .aic-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #eaf4ff;
}

.ai-card .aic-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.ai-card .aic-conf {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.conf-bar {
  height: 4px;
  margin: 6px 0 5px;
  border-radius: 2px;
  background: rgba(27, 58, 122, 0.7);
  overflow: hidden;
}

.conf-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.5), var(--gold));
}

.ai-card.lv-high .conf-bar i {
  background: linear-gradient(90deg, rgba(255, 77, 79, 0.5), var(--red));
}

.ai-card .aic-line {
  font-size: 11px;
  line-height: 1.6;
  color: var(--txt2);
}

.ai-card .aic-line .lb { color: var(--dim); margin-right: 4px; }
.ai-card .aic-line.adv { color: var(--gold); }
.ai-card .aic-line.adv .lb { color: var(--dim); }

/* ---------------- 节水效益 ---------------- */

.bf-contracts {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.bf-card {
  flex: 1 1 0;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 204, 102, 0.09), rgba(8, 20, 48, 0.85));
}

.bf-card .bc-name {
  font-size: 13px;
  color: #eaf4ff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-card .bc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}

.bf-card .bc-row b {
  font-family: var(--mono);
  font-weight: 400;
  color: #cfe6ff;
}

.bf-row {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.bf-left { flex: 1.35 1 0; min-width: 0; }
.bf-right { flex: 1 1 0; min-width: 0; }

/* ---------------- 实时监测 · 水质 ---------------- */

.mon-left.mon-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mon-left.mon-col > .panel:first-child { flex: 1 1 auto; min-height: 0; }

.mon-quality { flex: 0 0 auto; max-height: 208px; }

.wq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 8px;
  width: 100%;
}

.wq-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 9px;
  background: linear-gradient(180deg, rgba(16, 38, 82, 0.55), rgba(8, 20, 48, 0.85));
  min-width: 0;
}

.wq-card.alarm { border-color: rgba(255, 77, 79, 0.55); }

.wq-card .wq-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.wq-card .wq-hd b {
  font-family: var(--mono);
  font-weight: 500;
  color: #eaf4ff;
}

.wq-card .wq-name {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wq-card .wq-items { display: flex; gap: 7px; margin-top: 5px; }

.wq-card .wq-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid rgba(27, 58, 122, 0.6);
  border-radius: 3px;
  background: rgba(6, 16, 38, 0.55);
}

.wq-card .wq-l { display: block; font-size: 10px; color: var(--dim); }

.wq-card .wq-v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: #6ee7a5;
  line-height: 1.25;
}

.wq-card .wq-v.bad {
  color: #ff7b7d;
  text-shadow: 0 0 10px rgba(255, 77, 79, 0.5);
}

.wq-card .wq-u { font-size: 9px; color: var(--dim); margin-left: 2px; }

.wq-card .wq-time {
  margin-top: 4px;
  font-size: 10px;
  color: #5c739b;
  font-family: var(--mono);
}

/* ---------------- GIS · AI 高风险漏点脉冲 ---------------- */

#gisGLeaks .leak-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  pointer-events: none;
  animation: leakPulse 1.9s ease-out infinite;
}

@keyframes leakPulse {
  0% { r: 8; opacity: 0.95; }
  70% { opacity: 0.25; }
  100% { r: 30; opacity: 0; }
}

#gisGLeaks .leak-core {
  fill: var(--red);
  filter: url(#glow);
  pointer-events: none;
}

#gisGLeaks .leak-label {
  fill: #ff9a9c;
  font-size: 10px;
  font-family: var(--mono);
  pointer-events: none;
}
