/* 智慧供热管控系统 · 可视化指挥大屏（蓝色科技风） */
/* 设计基准 1920×1080，整屏等比缩放，适配任意分辨率投屏 */

:root {
  --sc-bg: #02060f;
  --sc-cyan: #22e1ff;
  --sc-blue: #2f7dff;
  --sc-line: rgba(46, 138, 255, .30);
  --sc-txt: #cfe4ff;
  --sc-dim: #7d9dc9;
  --sc-ok: #22e19a;
  --sc-warn: #ffc53d;
  --sc-err: #ff5b6e;
}

html, body.screen-body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: var(--sc-bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--sc-txt);
  -webkit-font-smoothing: antialiased;
}
body.screen-body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(28, 96, 210, .34), transparent 70%),
    radial-gradient(900px 700px at 8% 100%, rgba(12, 78, 170, .22), transparent 70%),
    radial-gradient(900px 700px at 95% 90%, rgba(10, 120, 160, .18), transparent 70%);
}
body.screen-body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: linear-gradient(rgba(60, 140, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 140, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
}

#stage { position: fixed; inset: 0; z-index: 2; }
.screen {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  transform-origin: top left;
  display: flex; flex-direction: column;
  padding: 0 22px 18px; box-sizing: border-box;
}

/* ---------- 顶栏 ---------- */
.sc-head { position: relative; height: 92px; flex: none; }
.sc-head .bar {
  position: absolute; inset: 4px -22px auto; height: 84px;
  background: linear-gradient(180deg, rgba(20, 72, 150, .55), rgba(5, 18, 44, 0));
  border-bottom: 1px solid rgba(60, 160, 255, .35);
}
.sc-head .bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sc-cyan), transparent);
  opacity: .8;
}
.sc-title {
  position: relative; z-index: 2; text-align: center; padding-top: 8px;
}
.sc-title h1 {
  margin: 0; font-size: 34px; letter-spacing: 8px; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #7fd6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(60, 180, 255, .35);
}
.sc-title .sub { margin-top: 5px; font-size: 12px; letter-spacing: 5px; color: rgba(140, 200, 255, .65); }
.sc-side {
  position: absolute; top: 24px; z-index: 3; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--sc-dim);
}
.sc-side.l { left: 6px; }
.sc-side.r { right: 6px; }
.sc-side b { color: #fff; font-weight: 600; }
.sc-chip {
  padding: 5px 12px; border: 1px solid var(--sc-line); border-radius: 4px;
  background: rgba(16, 56, 118, .35); cursor: pointer; user-select: none;
  transition: .18s; white-space: nowrap;
}
.sc-chip:hover { border-color: var(--sc-cyan); color: #fff; box-shadow: 0 0 14px rgba(34, 225, 255, .28); }
.sc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-ok);
  box-shadow: 0 0 8px var(--sc-ok); margin-right: 6px; animation: scblink 1.6s infinite; }
@keyframes scblink { 50% { opacity: .25; } }

/* ---------- 主体三列 ---------- */
.sc-body { flex: 1; display: grid; grid-template-columns: 420px 1fr 420px; gap: 16px; min-height: 0; }
.sc-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

/* ---------- 面板 ---------- */
.pnl {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 54, 112, .40), rgba(6, 20, 46, .58));
  border: 1px solid var(--sc-line);
  box-shadow: inset 0 0 40px rgba(24, 90, 190, .16);
}
.pnl::before, .pnl::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--sc-cyan); opacity: .85;
}
.pnl::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.pnl::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.pnl > .hd {
  flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border-bottom: 1px solid rgba(60, 140, 255, .18);
  background: linear-gradient(90deg, rgba(32, 104, 200, .35), transparent 70%);
}
.pnl > .hd h3 { margin: 0; font-size: 16px; font-weight: 700; color: #eaf5ff; letter-spacing: 2px; }
.pnl > .hd .ic { color: var(--sc-cyan); font-size: 14px; }
.pnl > .hd .more { margin-left: auto; font-size: 12px; color: var(--sc-dim); text-decoration: none; }
.pnl > .hd .more:hover { color: var(--sc-cyan); }
.pnl > .bd { flex: 1; min-height: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.pnl > .bd.p0 { padding: 0; }

/* ---------- KPI 条 ---------- */
.sc-kpis { flex: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 6px 0 12px; }
.sc-kpi {
  position: relative; padding: 12px 14px; overflow: hidden;
  background: linear-gradient(135deg, rgba(23, 74, 158, .48), rgba(6, 20, 46, .55));
  border: 1px solid var(--sc-line); border-left: 3px solid var(--sc-blue);
}
.sc-kpi::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 82px; height: 82px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 255, .22), transparent 70%);
}
.sc-kpi .t { font-size: 14px; color: #a9caf0; letter-spacing: 1px; }
.sc-kpi .v { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; font-family: "DIN Alternate", Impact, system-ui; }
.sc-kpi .v small { font-size: 13px; font-weight: 500; color: #9fc0e8; margin-left: 4px; }
.sc-kpi .d { font-size: 12.5px; color: #a6c4e8; }
.sc-kpi .d.up::before { content: "▲ "; color: var(--sc-ok); }
.sc-kpi.ok { border-left-color: var(--sc-ok); } .sc-kpi.ok .v { color: #b6ffe4; }
.sc-kpi.err { border-left-color: var(--sc-err); } .sc-kpi.err .v { color: #ffc0c8; }
.sc-kpi.hot { border-left-color: #ff9f43; } .sc-kpi.hot .v { color: #ffd9b0; }
.sc-kpi.cy { border-left-color: var(--sc-cyan); } .sc-kpi.cy .v { color: #bff2ff; }

/* ---------- 中间三维舞台 ---------- */
.sc-stage { position: relative; flex: 1; min-height: 0; }
.sc-stage canvas { display: block; width: 100%; height: 100%; }
.sc-stage .loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--sc-dim); font-size: 14px; letter-spacing: 2px;
}
.sc-stage .loading .ring {
  width: 46px; height: 46px; border: 3px solid rgba(34, 225, 255, .18);
  border-top-color: var(--sc-cyan); border-radius: 50%; animation: scspin 1s linear infinite;
}
@keyframes scspin { to { transform: rotate(360deg); } }

/* 三维热点标注 */
.hot-pt { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; }
.hot-pt .pin { position: relative; width: 10px; height: 10px; }
.hot-pt .pin i {
  position: absolute; inset: 0; border-radius: 50%; background: var(--sc-cyan);
  box-shadow: 0 0 10px var(--sc-cyan);
}
.hot-pt .pin i.wave { animation: scwave 1.8s ease-out infinite; }
@keyframes scwave { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }
.hot-pt .lab {
  position: absolute; left: 16px; bottom: 8px; white-space: nowrap;
  border-left: 2px solid var(--sc-cyan); padding: 4px 10px;
  background: linear-gradient(90deg, rgba(10, 44, 96, .88), rgba(10, 44, 96, .25));
  font-size: 12px; color: #dff3ff;
}
.hot-pt .lab b { color: #fff; font-size: 14px; margin-left: 6px; font-family: "DIN Alternate", system-ui; }
.hot-pt.warn .lab { border-left-color: var(--sc-warn); }
.hot-pt.warn .pin i { background: var(--sc-warn); box-shadow: 0 0 10px var(--sc-warn); }

.stage-tools { position: absolute; right: 12px; bottom: 12px; z-index: 6; display: flex; gap: 8px; }
.stage-tools .sc-chip { font-size: 12px; padding: 4px 10px; background: rgba(6, 24, 56, .7); }
.stage-legend {
  position: absolute; left: 14px; bottom: 12px; z-index: 6; font-size: 12px; color: var(--sc-dim);
  display: flex; gap: 16px; align-items: center;
}
.stage-legend b { color: #fff; font-family: "DIN Alternate", system-ui; font-size: 15px; }

/* 设备参数条 */
.dev-strip { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 10px 12px 12px; }
.dev-strip .it {
  border: 1px solid rgba(60, 140, 255, .22); background: rgba(11, 38, 80, .45); padding: 7px 10px;
}
.dev-strip .it .k { font-size: 12px; color: var(--sc-dim); }
.dev-strip .it .v { font-size: 19px; font-weight: 700; color: #eaf7ff; font-family: "DIN Alternate", system-ui; }
.dev-strip .it .v small { font-size: 11px; color: var(--sc-dim); margin-left: 3px; }
.dev-strip .it.ok .v { color: #7dffcf; } .dev-strip .it.warn .v { color: var(--sc-warn); }

/* ---------- 通用小组件 ---------- */
.sc-chart { width: 100%; flex: 1; min-height: 0; }
.sc-chart.h140 { flex: none; height: 140px; }
.sc-chart.h120 { flex: none; height: 120px; }
.sc-chart.h100 { flex: none; height: 100px; }
.sc-chart.h150 { flex: none; height: 150px; }

.sc-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-tbl th {
  text-align: left; font-weight: 500; color: #8fb6e8; background: rgba(30, 92, 180, .28);
  padding: 4px 10px; border-bottom: 1px solid rgba(60, 140, 255, .2); white-space: nowrap;
}
.sc-tbl td { padding: 4px 10px; border-bottom: 1px dashed rgba(60, 140, 255, .14); color: #d4e6ff; }
.sc-tbl tbody tr:hover td { background: rgba(34, 225, 255, .07); }
.sc-tbl .n { text-align: right; font-family: "DIN Alternate", system-ui; }

.sc-bar { margin-top: 0; }
.sc-bar .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--sc-dim); margin-bottom: 3px; }
.sc-bar .lab b { color: #fff; font-family: "DIN Alternate", system-ui; }
.sc-bar .track { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 4px; overflow: hidden; }
.sc-bar .track i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #1f66d6, var(--sc-cyan)); box-shadow: 0 0 10px rgba(34, 225, 255, .5); }
.sc-bar .track.h i { background: linear-gradient(90deg, #d9622a, #ffb057); box-shadow: 0 0 10px rgba(255, 150, 60, .45); }
.sc-bar .track.g i { background: linear-gradient(90deg, #14926c, #4dffc0); box-shadow: 0 0 10px rgba(60, 255, 190, .4); }

.dl2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 8px; }
.dl2 .it { border-left: 2px solid rgba(47, 125, 255, .6); padding-left: 7px; }
.dl2 dt { font-size: 11px; color: var(--sc-dim); white-space: nowrap; }
.dl2 dd { margin: 1px 0 0; font-size: 15px; font-weight: 700; color: #fff; font-family: "DIN Alternate", system-ui; white-space: nowrap; }

/* 报警滚动 */
.alarm-list { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.alarm-list .roll { position: absolute; left: 0; right: 0; top: 0; }
.alarm-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-bottom: 1px dashed rgba(60, 140, 255, .14); font-size: 13px; }
.alarm-row .tg { flex: none; font-size: 11px; padding: 2px 7px; border-radius: 2px; }
.alarm-row .tg.r { background: rgba(255, 91, 110, .18); color: #ff8b98; border: 1px solid rgba(255, 91, 110, .45); }
.alarm-row .tg.y { background: rgba(255, 197, 61, .16); color: #ffd677; border: 1px solid rgba(255, 197, 61, .42); }
.alarm-row .tx { flex: 1; color: #dbeaff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alarm-row .tm { flex: none; color: #7d9dc9; font-family: "DIN Alternate", system-ui; }

/* GIS */
.gis-wrap { position: relative; flex: 1; min-height: 0; }
.gis-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gis-wrap { padding: 6px 10px 8px; box-sizing: border-box; }

/* 导航抽屉 */
.nav-mask { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 20, .72); display: none; }
.nav-mask.on { display: block; }
.nav-drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: 520px; overflow: auto;
  background: linear-gradient(180deg, #071a3c, #030c1e); border-left: 1px solid var(--sc-line); padding: 22px 24px;
}
.nav-drawer h4 { margin: 0 0 6px; color: #fff; font-size: 18px; letter-spacing: 2px; }
.nav-drawer .tip { font-size: 12px; color: var(--sc-dim); margin-bottom: 16px; }
.nav-drawer .grp { margin: 16px 0 6px; font-size: 13px; color: var(--sc-cyan); letter-spacing: 2px; }
.nav-drawer .lk { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-drawer .lk a {
  font-size: 12px; color: #cfe4ff; text-decoration: none; padding: 5px 10px;
  border: 1px solid var(--sc-line); background: rgba(16, 56, 118, .35);
}
.nav-drawer .lk a:hover { border-color: var(--sc-cyan); color: #fff; }
.nav-drawer .x { position: absolute; right: 18px; top: 18px; cursor: pointer; color: var(--sc-dim); font-size: 18px; }

/* 机位标签（1#/2#/3# 循环泵） */
.unit-tag { position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 5; }
.unit-tag .pin { position: relative; width: 8px; height: 8px; margin: 0 auto; }
.unit-tag .pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--sc-cyan); box-shadow: 0 0 10px var(--sc-cyan); }
.unit-tag .pin i.wave { animation: scwave 1.8s ease-out infinite; }
.unit-tag .lab {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 4px 10px; border: 1px solid rgba(34, 225, 255, .5);
  background: linear-gradient(180deg, rgba(10, 48, 104, .92), rgba(6, 24, 56, .92));
  font-size: 12px; color: #dff3ff;
}
.unit-tag .lab .no { color: #fff; font-size: 14px; font-family: 'DIN Alternate', system-ui; }
.unit-tag .lab .st { color: var(--sc-cyan); }
.unit-tag .lab .iv { color: #a9caf0; }
.unit-tag.standby .pin i { background: var(--sc-blue); box-shadow: 0 0 10px var(--sc-blue); }
.unit-tag.standby .lab { border-color: rgba(47, 125, 255, .5); }
.unit-tag.standby .lab .st { color: #8ab6ff; }
.unit-tag.stop .pin i { background: var(--sc-err); box-shadow: 0 0 10px var(--sc-err); }
.unit-tag.stop .lab { border-color: rgba(255, 91, 110, .55); }
.unit-tag.stop .lab .st { color: #ff8b98; }

/* 泵房：机位小标签与排组标签 */
.unit-tag.sm .lab { padding: 3px 8px; font-size: 11.5px; gap: 5px; }
.unit-tag.sm .lab .no { font-size: 13px; }
.row-tag {
  position: absolute; transform: translate(0, -50%); pointer-events: none; z-index: 5;
  padding: 3px 9px; font-size: 12px; color: #cfe4ff; white-space: nowrap;
  border-left: 2px solid var(--sc-cyan);
  background: linear-gradient(90deg, rgba(10, 44, 96, .85), rgba(10, 44, 96, .1));
}

/* ================= 三级下钻大屏：邢台地图 / 小区 / 机组 ================= */
.map-wrap { position: relative; width: 100%; height: 100%; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.rgn { cursor: pointer; transition: .18s; }
.rgn .fill { fill: rgba(28, 86, 168, .55); stroke: #3f8ad6; stroke-width: 1.2; transition: .18s; }
.rgn:hover .fill { fill: rgba(52, 152, 255, .85); stroke: #7ee9ff; }
.rgn.on .fill { fill: rgba(34, 225, 255, .55); stroke: #22e1ff; stroke-width: 1.8; }
.rgn.warn .fill { fill: rgba(255, 197, 61, .38); stroke: #ffc53d; }
.rgn.err .fill { fill: rgba(255, 91, 110, .40); stroke: #ff5b6e; }
.rgn .nm { fill: #dff3ff; font-size: 11px; text-anchor: middle; pointer-events: none; }
.rgn .vl { fill: #7fd6ff; font-size: 10px; text-anchor: middle; pointer-events: none; font-family: 'DIN Alternate', system-ui; }
.rgn.dim { opacity: .28; }

.lv-crumb { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.lv-crumb a { color: #7fd6ff; cursor: pointer; }
.lv-crumb a:hover { color: #fff; text-decoration: underline; }
.lv-crumb span.sep { color: #47679b; }
.lv-crumb b { color: #fff; }

.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; padding: 10px; overflow: auto; height: 100%; align-content: start; }
.cm-card { background: linear-gradient(160deg, rgba(24,64,128,.85), rgba(12,32,68,.85)); border: 1px solid #24528f; border-radius: 8px; padding: 9px 10px; cursor: pointer; transition: .18s; }
.cm-card:hover { border-color: #22e1ff; box-shadow: 0 0 0 1px rgba(34,225,255,.35), 0 8px 18px rgba(0,0,0,.35); transform: translateY(-2px); }
.cm-card .t { font-size: 12.5px; color: #eaf6ff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cm-card .t i { width: 7px; height: 7px; border-radius: 50%; background: #22e1ff; font-style: normal; }
.cm-card.warn .t i { background: #ffc53d; }
.cm-card.err .t i { background: #ff5b6e; }
.cm-card .s { font-size: 10.5px; color: #8fb6e8; margin-top: 3px; }
.cm-card .m { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 10px; color: #8fb6e8; }
.cm-card .m b { display: block; font-size: 13px; color: #fff; font-family: 'DIN Alternate', system-ui; }

.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 10px; padding: 12px; overflow: auto; height: 100%; align-content: start; }
.unit-box { background: rgba(12,38,78,.8); border: 1px solid #24528f; border-radius: 9px; padding: 11px 13px; }
.unit-box.warn { border-color: #ffc53d; }
.unit-box.err { border-color: #ff5b6e; }
.unit-box .uh { display: flex; align-items: center; justify-content: space-between; font-size: 15.5px; color: #eaf6ff; font-weight: 700; }
.unit-box .uh .st { font-size: 12px; padding: 2px 10px; border-radius: 11px; background: rgba(34,225,255,.16); color: #22e1ff; font-weight: 500; }
.unit-box.warn .uh .st { background: rgba(255,197,61,.16); color: #ffc53d; }
.unit-box.err .uh .st { background: rgba(255,91,110,.16); color: #ff9aa6; }
.unit-box .t4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.unit-box .t4 div { background: rgba(255,255,255,.05); border-radius: 6px; padding: 5px 9px; }
.unit-box .t4 dt { font-size: 11px; color: #8fb6e8; }
.unit-box .t4 dd { font-size: 18px; font-family: 'DIN Alternate', system-ui; font-weight: 700; margin: 0; }
.unit-box .t4 .g dd { color: #ff8b62; }
.unit-box .t4 .h dd { color: #22e1ff; }
.unit-box .t4 .g2 dd { color: #ffc53d; }
.unit-box .t4 .h2 dd { color: #7ee787; }

.lv-tools { display: flex; gap: 6px; align-items: center; }
.lv-stage { position: relative; flex: 1; display: flex; min-height: 0; }
.lv-stage .half-map { width: 42%; min-width: 42%; border-right: 1px solid rgba(63,138,214,.28); }
.lv-stage .half-list { flex: 1; min-width: 0; }
.lv-sum { display: flex; gap: 10px; padding: 8px 10px 0; font-size: 10.5px; color: #8fb6e8; flex-wrap: wrap; }
.lv-sum b { color: #fff; font-family: 'DIN Alternate', system-ui; font-size: 13px; }

/* 三级面板头部：标题与面包屑防挤压 */
#lvTitle { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tools { flex: 0 0 auto; white-space: nowrap; }
.lv-crumb { white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.lv-crumb a, .lv-crumb b { display: inline; }
.sc-col { min-width: 0; }
.pnl { min-width: 0; }
.pnl > .hd { min-width: 0; }
.lv-tools { flex: 0 1 auto; min-width: 0; overflow: hidden; }

/* ================= 真实边界地图容器与装饰 ================= */
.geo-wrap { position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(720px 420px at 50% 46%, rgba(31, 88, 190, .22), transparent 72%),
    radial-gradient(420px 260px at 82% 18%, rgba(34, 225, 255, .08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(79, 155, 224, .045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(79, 155, 224, .045) 0 1px, transparent 1px 46px); }
.half-map { position: relative; }
.lv-stage > div[style*="flex-direction:column"] { min-width: 0; }
.geo-deco { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(34, 225, 255, .55); z-index: 3; pointer-events: none; }
.geo-deco.tl { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.geo-deco.tr { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.geo-deco.bl { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.geo-deco.br { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.geo-foot { position: absolute; left: 16px; bottom: 12px; z-index: 3; display: flex; gap: 16px; align-items: center;
  font-size: 12.5px; color: #8fb6e8; pointer-events: none; }
.geo-foot i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.geo-foot .tip { color: #5f7ba6; }
.geo-badge { position: absolute; right: 14px; top: 10px; z-index: 3; font-size: 12.5px; color: #7fd6ff; pointer-events: none;
  background: rgba(7, 22, 48, .72); border: 1px solid #24528f; border-radius: 20px; padding: 4px 14px;
  font-family: 'DIN Alternate', system-ui; letter-spacing: .5px; }

/* 汇总 chip 条 */
.lv-sum { padding: 9px 10px 2px; gap: 7px; }
.lv-sum .chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(18, 48, 96, .55);
  border: 1px solid #1f4a86; border-radius: 24px; padding: 7px 18px; font-size: 14.5px; color: #9db8de; }
.lv-sum .chip i { width: 7px; height: 7px; border-radius: 50%; background: #22e1ff; }
.lv-sum .chip b { font-size: 18.5px; }

/* 区级：汇总 chip 浮层 */
.geo-sum { position: absolute; left: 14px; top: 10px; z-index: 3; }
.geo-sum .lv-sum { padding: 0; }
.geo-sum .chip { background: rgba(7, 22, 48, .78); backdrop-filter: blur(2px); }


/* ================= 机组列表：一行一卡，纵向滚动（设备数可扩展） ================= */
.unit-list { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; overflow-y: auto; height: 100%; }
.unit-list::-webkit-scrollbar { width: 6px; }
.unit-list::-webkit-scrollbar-thumb { background: #1f4a86; border-radius: 3px; }
.unit-row { display: flex; align-items: center; gap: 14px; flex: none;
  background: linear-gradient(90deg, rgba(18, 48, 96, .62), rgba(12, 38, 78, .55));
  border: 1px solid #24528f; border-left: 3px solid #22e1ff; border-radius: 12px; padding: 16px 20px; transition: .15s; }
.unit-row:hover { border-color: #3f8ad6; background: linear-gradient(90deg, rgba(24, 62, 120, .7), rgba(14, 44, 90, .6)); }
.unit-row.warn { border-left-color: #ffc53d; }
.unit-row.err { border-left-color: #ff5b6e; }
.unit-row dt { font-size: 16px; color: #9db8de; display: block; margin-bottom: 4px; }
.unit-row dd { margin: 0; font-size: 29px; font-weight: 700; font-family: 'DIN Alternate', system-ui; color: #eaf6ff; line-height: 1.25; }
.unit-row dd small { font-size: 16px; color: #8fb6e8; font-weight: 400; margin-left: 2px; }
.u-id { width: 190px; flex: none; }
.u-id .no { font-size: 23px; font-weight: 700; color: #eaf6ff; display: flex; align-items: center; gap: 9px; }
.u-id .no .st { font-size: 15px; padding: 3px 15px; border-radius: 15px; background: rgba(34, 225, 255, .16); color: #22e1ff; font-weight: 500; }
.unit-row.warn .no .st { background: rgba(255, 197, 61, .16); color: #ffc53d; }
.unit-row.err .no .st { background: rgba(255, 91, 110, .16); color: #ff9aa6; }
.u-id .cm { font-size: 15.5px; color: #9db8de; margin-top: 5px; }
.u-t { flex: 1.25; min-width: 0; text-align: center; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(63, 138, 214, .30); border-radius: 12px; padding: 24px 14px; }
.u-t dt { white-space: nowrap; }
.u-t.g dd { color: #ff8b62; }
.u-t.h dd { color: #22e1ff; }
.u-t.g2 dd { color: #ffc53d; }
.u-t.h2 dd { color: #7ee787; }
.u-x { width: 210px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding-left: 16px;
  border-left: 1px dashed rgba(63, 138, 214, .35); }
.u-x span { display: flex; justify-content: space-between; align-items: baseline; }
.u-x dt { margin-bottom: 0; }
.u-x dd { font-size: 23px; }

/* ================= 双碳看板（碳达峰 / 碳中和） ================= */
.sc-kpi .d.down::before { content: "▼ "; color: var(--sc-ok); }
.sc-kpi.grn { border-left-color: var(--sc-ok); }
.sc-kpi.grn .v { color: #b6ffe4; }

.cb-hero {
  flex: none; border: 1px solid rgba(34, 225, 154, .32); border-radius: 4px;
  background: linear-gradient(90deg, rgba(10, 70, 56, .6), rgba(6, 24, 56, .16));
  padding: 5px 10px 6px;
}
.cb-hero .cb-k { font-size: 12px; color: var(--sc-dim); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.cb-hero .cb-k .sc-dot { background: var(--sc-ok); }
.cb-hero .cb-k em {
  margin-left: auto; font-style: normal; font-size: 13px; color: var(--sc-ok);
  font-family: "DIN Alternate", system-ui;
}
.cb-hero .cb-v { display: flex; align-items: baseline; gap: 6px; }
.cb-hero .cb-v b {
  font-family: "DIN Alternate", Impact, system-ui; font-size: 30px; font-weight: 800;
  color: #6effc4; letter-spacing: 1px; text-shadow: 0 0 18px rgba(34, 225, 154, .45);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.cb-hero .cb-v small { font-size: 12px; color: #9fc0e8; }
.dl2 .it.g { border-left-color: rgba(34, 225, 154, .75); }
.dl2 .it.g dd { color: #6effc4; }

/* ================= 机组行内远控按钮 ================= */
.unit-row { cursor: pointer; }
.unit-row.off { border-left-color: #6f809e; opacity: .82; }
.unit-row.off .no .st { background: rgba(143, 160, 189, .18); color: #b9c6dc; }
.unit-row.off dd { color: #9db8de; }
.u-ops { display: flex; gap: 8px; margin-top: 8px; }
.ubtn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 13px; border-radius: 4px;
  font-size: 14px; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: .15s;
  border: 1px solid rgba(46, 138, 255, .5); background: rgba(8, 30, 64, .72); color: #bcd8ff;
}
.ubtn:hover { border-color: var(--sc-cyan); color: #fff; box-shadow: 0 0 12px rgba(34, 225, 255, .3); }
.ubtn.on { background: linear-gradient(180deg, #1fbf7d, #128f5b); border-color: #0e7d4f; color: #fff; font-weight: 700; }
.ubtn.on:hover { background: linear-gradient(180deg, #29d68e, #14a267); box-shadow: 0 0 14px rgba(34, 225, 154, .45); }
.ubtn.off { background: linear-gradient(180deg, #e8555f, #c8323e); border-color: #a92933; color: #fff; font-weight: 700; }
.ubtn.off:hover { background: linear-gradient(180deg, #f2666f, #d63b47); box-shadow: 0 0 14px rgba(255, 91, 110, .45); }

/* ================= 机组详情 / 远控弹窗（大屏深色皮肤） ================= */
.modal-mask.sc { background: rgba(2, 8, 22, .68); z-index: 200; }
.modal.sc {
  width: min(700px, calc(100vw - 60px)); border-radius: 6px; color: var(--sc-txt); font-size: 12px;
  background: linear-gradient(180deg, #0b2247 0%, #061530 100%);
  border: 1px solid rgba(46, 138, 255, .5); box-shadow: 0 26px 76px rgba(0, 0, 0, .62);
}
.modal.sc .m-hd { border-bottom: 1px solid rgba(46, 138, 255, .28); padding: 9px 16px; }
.modal.sc .m-hd h4 { color: #eaf6ff; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; }
.modal.sc .m-hd h4::before { content: "◈"; color: var(--sc-cyan); margin-right: 6px; font-size: 10px; }
.modal.sc .m-hd .x { color: var(--sc-dim); font-size: 15px; }
.modal.sc .m-hd .x:hover { color: #fff; }
.modal.sc .m-bd { padding: 12px 16px; }
.modal.sc .m-ft { border-top: 1px solid rgba(46, 138, 255, .28); padding: 10px 16px; gap: 8px; }

.ud-top { display: flex; flex-direction: column; gap: 3px; padding-bottom: 9px;
  border-bottom: 1px dashed rgba(46, 138, 255, .28); }
.ud-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ud-name b { font-size: 17px; color: #fff; font-family: "DIN Alternate", system-ui; letter-spacing: .5px; }
.ud-pill { font-size: 11px; padding: 2px 11px; border-radius: 12px;
  background: rgba(34, 225, 255, .16); color: var(--sc-cyan); }
.ud-pill.warn { background: rgba(255, 197, 61, .16); color: var(--sc-warn); }
.ud-pill.err { background: rgba(255, 91, 110, .16); color: #ff9aa6; }
.ud-pill.off { background: rgba(143, 160, 189, .18); color: #b9c6dc; }
.ud-mode { margin-left: auto; font-size: 11px; color: var(--sc-dim); }
.ud-mode b { color: #eaf6ff; } .ud-mode b.ok { color: var(--sc-ok); }
.ud-site { font-size: 11.5px; color: var(--sc-dim); }

.ud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0; }
.ud-t { background: rgba(255, 255, 255, .05); border: 1px solid rgba(46, 138, 255, .22);
  border-radius: 4px; padding: 6px 9px; }
.ud-t dt { font-size: 10.5px; color: var(--sc-dim); white-space: nowrap; }
.ud-t dd { margin: 1px 0 0; font-size: 15px; font-weight: 700; color: #eaf6ff;
  font-family: "DIN Alternate", system-ui; line-height: 1.2; }
.ud-t dd small { font-size: 10.5px; font-weight: 400; color: #8fb6e8; margin-left: 3px; }
.ud-t.g dd { color: #ff8b62; } .ud-t.h dd { color: var(--sc-cyan); }
.ud-t.g2 dd { color: var(--sc-warn); } .ud-t.h2 dd { color: #7ee787; }
.ud-t.co2 dd { color: #ffb07a; } .ud-t.coal dd { color: #6effc4; }

.ud-set { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11px;
  color: var(--sc-dim); padding: 8px 10px; border-radius: 4px;
  background: rgba(8, 30, 64, .55); border: 1px solid rgba(46, 138, 255, .22); }
.ud-set .ubtn { font-size: 11px; padding: 3px 10px; }
.ud-inp { width: 66px; height: 24px; padding: 0 8px; border-radius: 4px; font-family: "DIN Alternate", system-ui;
  border: 1px solid rgba(46, 138, 255, .5); background: rgba(3, 14, 34, .8); color: #eaf6ff; font-size: 11.5px; }
.ud-inp.w { width: 128px; }
.ud-inp:focus { outline: none; border-color: var(--sc-cyan); box-shadow: 0 0 0 2px rgba(34, 225, 255, .18); }
.ud-hint { margin-left: auto; font-size: 10.5px; color: #5f7ba6; }

.ud-warn { margin-top: 10px; border-radius: 4px; padding: 9px 11px;
  background: rgba(255, 91, 110, .10); border: 1px solid rgba(255, 91, 110, .45); }
.ud-warn .t { font-size: 12px; font-weight: 700; color: #ff9aa6; }
.ud-warn .d { font-size: 11px; color: #d9c3c8; margin-top: 3px; line-height: 1.6; }
.ud-warn .r { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11px; color: var(--sc-dim); }

.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 30px; padding: 0 16px; border-radius: 5px; font-size: 12px; letter-spacing: .5px;
  border: 1px solid rgba(46, 138, 255, .5); background: rgba(8, 30, 64, .8); color: #bcd8ff;
  cursor: pointer; transition: .15s; font-family: inherit; }
.dbtn:hover { border-color: var(--sc-cyan); color: #fff; }
.dbtn.pw { font-weight: 700; }
.dbtn.pw.on { background: linear-gradient(180deg, #1fbf7d, #128f5b); border-color: #0e7d4f; color: #fff; }
.dbtn.pw.on:hover { background: linear-gradient(180deg, #29d68e, #14a267); box-shadow: 0 6px 18px rgba(34, 225, 154, .35); }
.dbtn.pw.off { background: linear-gradient(180deg, #e8555f, #c8323e); border-color: #a92933; color: #fff; }
.dbtn.pw.off:hover { background: linear-gradient(180deg, #f2666f, #d63b47); box-shadow: 0 6px 18px rgba(255, 91, 110, .35); }
.dbtn:disabled { background: rgba(255, 255, 255, .05); border-color: rgba(46, 138, 255, .22);
  color: #55708f; cursor: not-allowed; box-shadow: none; }

/* 机位标签：可点击进入机组详情 / 远程控制 */
.unit-tag .lab.pick { pointer-events: auto; cursor: pointer; transition: .15s; }
.unit-tag .lab.pick:hover { border-color: var(--sc-cyan); background: linear-gradient(180deg, rgba(16, 66, 138, .95), rgba(8, 32, 72, .95)); box-shadow: 0 0 16px rgba(34, 225, 255, .5); }
