/* ============================================================================
   临正智慧农业云平台 · 数据指挥中心（大屏）
   ----------------------------------------------------------------------------
   设计基准：1920 × 1080，整体按视口等比缩放（scale-to-fit），
   与真实的指挥中心大屏一致，保证任何分辨率下比例不变形；
   窄屏（<1080px）自动降级为纵向滚动布局。
   所有样式仅服务本页（screen.html），与 css/app.css 完全解耦。
   ============================================================================ */

/* ---------- 字体（本地自带，无外网依赖） ---------- */
@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-Medium.ttf") format("truetype");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 设计变量 ---------- */
:root {
  --bg-0: #03080f;
  --bg-1: #061426;
  --bg-2: #08192d;

  --pnl: rgba(10, 34, 60, .52);
  --pnl-2: rgba(13, 44, 76, .40);
  --pnl-hd: rgba(16, 52, 88, .55);

  --line: rgba(80, 170, 240, .18);
  --line-2: rgba(80, 170, 240, .38);

  --cyan: #3fd8f5;
  --blue: #2b8ff5;
  --blue-d: #1d5fa8;
  --green: #37e08d;
  --gold: #ffc75c;
  --red: #ff5d70;
  --purple: #9a7bff;

  --ink: #dcefff;
  --ink-2: #a4c4e2;
  --muted: #6f90b0;

  --f-disp: "Tektur", "Bahnschrift", "DIN Alternate", "Microsoft YaHei", sans-serif;
  --f-cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --r: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--f-cjk);
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body.mobile { overflow: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 数字统一用等宽 + 表格数字，避免跳动 */
.num { font-family: var(--f-disp); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- 背景层 ---------- */
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.bg-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 170, 240, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 170, 240, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 46%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 46%, #000 30%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(35, 130, 220, .24), transparent 62%),
    radial-gradient(900px 520px at 4% 106%, rgba(26, 160, 130, .16), transparent 60%),
    radial-gradient(900px 520px at 98% 104%, rgba(120, 90, 220, .14), transparent 60%),
    linear-gradient(180deg, #04101f 0%, #061426 45%, #04101d 100%);
}
/* 细扫描线，轻微 CRT 质感 */
.bg-scan {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(140, 200, 255, .035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
/* 雷达扫掠 */
.bg-radar {
  position: fixed; z-index: 1; pointer-events: none;
  left: 50%; top: 52%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px;
  background: conic-gradient(from 0deg, rgba(63, 216, 245, .10), rgba(63, 216, 245, 0) 28%);
  border-radius: 50%; opacity: .5;
  animation: radar 14s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }

/* ---------- 舞台 ---------- */
#stage {
  position: fixed; z-index: 3;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(1);
  display: flex; flex-direction: column;
  padding: 18px 20px 14px;
}

/* ---------- 顶栏 ---------- */
.sc-head { position: relative; flex: 0 0 auto; height: 84px; display: flex; align-items: center; }
.sc-head::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 170, 240, .55) 18%, rgba(63, 216, 245, .85) 50%, rgba(80, 170, 240, .55) 82%, transparent);
}
.sc-head::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 420px; height: 3px; margin-left: -210px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: blur(.4px); opacity: .9;
}
.sc-head-l, .sc-head-r { flex: 1 1 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.sc-head-r { justify-content: flex-end; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(63, 216, 245, .5)); }
.brand-txt { min-width: 0; }
.brand-txt b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #eaf6ff; white-space: nowrap; }
.brand-txt span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .18em; font-family: var(--f-mono); margin-top: 3px; }

.sc-title { position: relative; text-align: center; }
.sc-title h1 {
  font-size: 33px; font-weight: 700; letter-spacing: .14em; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #cfeaff 42%, #57c8f0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(56, 180, 245, .55));
}
.sc-title .en {
  margin-top: 6px; font-size: 10.5px; letter-spacing: .46em; color: rgba(120, 190, 240, .62);
  font-family: var(--f-mono); text-transform: uppercase;
}
.sc-title .deco { position: absolute; top: 50%; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 216, 245, .7)); }
.sc-title .deco.l { right: calc(100% + 20px); }
.sc-title .deco.r { left: calc(100% + 20px); transform: scaleX(-1); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 60, 100, .55), rgba(10, 34, 60, .35));
  font-size: 12.5px; color: #cbe6ff; white-space: nowrap;
}
.chip .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip b { color: #fff; font-weight: 600; }
.chip-ico { width: 13px; height: 13px; flex: 0 0 auto; opacity: .85; }

.clock { text-align: right; }
.clock .t { font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: .04em; color: #eaf6ff; text-shadow: 0 0 18px rgba(63, 216, 245, .5); }
.clock .d { margin-top: 5px; font-size: 11px; color: var(--muted); letter-spacing: .1em; }

.sc-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 7px; color: #bfe2ff;
  background: linear-gradient(180deg, rgba(24, 70, 116, .6), rgba(10, 34, 60, .35));
  transition: .18s;
}
.sc-btn:hover { color: #fff; border-color: rgba(63, 216, 245, .75); box-shadow: 0 0 14px rgba(63, 216, 245, .35); }

/* ---------- KPI 数字条 ---------- */
.sc-kpi { flex: 0 0 auto; height: 108px; margin-top: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpi {
  position: relative; overflow: hidden; padding: 12px 16px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(155deg, rgba(16, 54, 92, .70) 0%, rgba(8, 28, 50, .52) 60%, rgba(8, 24, 44, .40) 100%);
  box-shadow: inset 0 1px 0 rgba(150, 210, 255, .10);
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--c, var(--cyan)), transparent);
  box-shadow: 0 0 14px var(--c, var(--cyan));
}
.kpi::after {
  content: ""; position: absolute; right: -30%; top: -60%; width: 70%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(150, 220, 255, .07), transparent);
  transform: rotate(18deg); animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { transform: translateX(0) rotate(18deg); } 55% { transform: translateX(-190%) rotate(18deg); } }
.kpi .k-lbl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
.kpi .k-lbl i { width: 6px; height: 6px; border-radius: 1px; background: var(--c, var(--cyan)); box-shadow: 0 0 8px var(--c, var(--cyan)); }
.kpi .k-val { display: flex; align-items: baseline; gap: 5px; margin-top: 9px; line-height: 1; }
.kpi .k-val b { font-size: 38px; font-weight: 700; color: #fff; text-shadow: 0 0 22px var(--c, var(--cyan)); }
.kpi .k-val i { font-style: normal; font-size: 12.5px; color: var(--muted); font-family: var(--f-mono); }
.kpi .k-sub { margin-top: 8px; font-size: 11px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em; }
.kpi.flash { animation: kflash .9s ease-out; }
@keyframes kflash {
  0% { box-shadow: inset 0 0 0 1px var(--c, var(--cyan)), 0 0 26px rgba(63, 216, 245, .5); }
  100% { box-shadow: inset 0 1px 0 rgba(150, 210, 255, .10); }
}

/* ---------- 主体三栏 ---------- */
.sc-body { flex: 1 1 auto; min-height: 0; margin-top: 12px; display: grid; grid-template-columns: 452px 1fr 452px; gap: 12px; }
.col { display: grid; gap: 12px; min-height: 0; }
.col-l { grid-template-rows: 1fr 1fr 1fr; }
.col-c { grid-template-rows: 1.45fr 1fr 1.05fr; }
.col-r { grid-template-rows: 1fr 1.05fr .95fr; }

/* ---------- 面板 ---------- */
.panel {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(14, 46, 80, .58) 0%, rgba(8, 28, 50, .52) 100%);
  box-shadow: inset 0 1px 0 rgba(150, 210, 255, .07), 0 8px 26px rgba(0, 8, 20, .45);
  animation: pin .55s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes pin { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* 四角装饰 */
.panel > .cnr { position: absolute; width: 12px; height: 12px; border: 1px solid rgba(63, 216, 245, .75); pointer-events: none; }
.panel > .cnr.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panel > .cnr.tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.panel > .cnr.bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }
.panel > .cnr.br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.panel-hd {
  flex: 0 0 auto; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 13px;
  background: linear-gradient(90deg, rgba(22, 74, 122, .72), rgba(12, 40, 70, .28) 62%, transparent);
  border-bottom: 1px solid var(--line);
}
.panel-hd::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.panel-hd h3 { font-size: 14px; font-weight: 600; letter-spacing: .1em; color: #e2f2ff; white-space: nowrap; }
.panel-hd .hd-en { font-size: 9.5px; letter-spacing: .26em; color: rgba(110, 175, 225, .55); font-family: var(--f-mono); text-transform: uppercase; }
.panel-hd .hd-r { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.panel-bd { position: relative; flex: 1 1 auto; min-height: 0; padding: 8px 10px 10px; }

.chart { width: 100%; height: 100%; min-height: 0; }
/* 面板内若图表上方还有读数条，图表需让出高度 */
.panel-bd > .readout + .chart { height: calc(100% - 28px); }

/* ---------- 图表内嵌读数条 ---------- */
.readout { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 2px 4px; }
.readout span {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 4px;
  font-size: 11.5px; color: var(--ink-2); background: rgba(30, 80, 130, .28); border: 1px solid var(--line);
  font-family: var(--f-mono);
}
.readout span i { width: 6px; height: 6px; border-radius: 50%; }
.readout span b { color: #fff; font-weight: 600; }

/* ---------- 灌溉链路拓扑 ---------- */
.topo { width: 100%; height: 100%; }
.topo .lnk { fill: none; stroke-width: 2; stroke-linecap: round; }
.topo .lnk.base { stroke: rgba(80, 170, 240, .22); }
.topo .lnk.flow {
  stroke: var(--cyan); stroke-dasharray: 9 13; filter: drop-shadow(0 0 5px rgba(63, 216, 245, .85));
  animation: dash 1.1s linear infinite;
}
.topo .lnk.flow.idle { stroke: rgba(140, 170, 200, .35); filter: none; animation-duration: 3.4s; opacity: .5; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.topo .node-box { fill: rgba(14, 48, 84, .78); stroke: rgba(80, 170, 240, .42); stroke-width: 1; }
.topo .node.on .node-box { stroke: rgba(63, 216, 245, .95); filter: drop-shadow(0 0 10px rgba(63, 216, 245, .55)); }
.topo .node-t { font-family: var(--f-cjk); font-size: 15px; fill: #e2f2ff; }
.topo .node-v { font-family: var(--f-mono); font-size: 12px; fill: #8fc0e8; }
.topo .node-v.hi { fill: var(--green); font-weight: 700; }
.topo .ic { fill: none; stroke: #9ed4ff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.topo .node.on .ic { stroke: var(--cyan); }
.topo .ring { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: 0; }
.topo .node.on .ring { animation: ringpulse 2.1s ease-out infinite; }
.topo .node.on .ring.d2 { animation-delay: .7s; }
@keyframes ringpulse { 0% { opacity: .7; r: 22; } 100% { opacity: 0; r: 40; } }
.topo .spin { transform-origin: 0 0; }
.topo .node.on .spin { animation: spin 1.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 阀门 / 分区 卡片 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; height: 100%; }
.vcard {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 6px 8px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(12, 40, 70, .5);
}
.vcard .v-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.vcard .v-no { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.vcard .v-nm { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .v-zn { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .v-st { display: flex; align-items: center; gap: 5px; font-size: 11px; font-family: var(--f-mono); }
.vcard .v-st i { width: 6px; height: 6px; border-radius: 50%; background: #5a6e80; }
.vcard .v-bat { position: static; font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); }
.vcard.on { border-color: rgba(55, 224, 141, .55); background: linear-gradient(150deg, rgba(18, 74, 60, .62), rgba(10, 40, 60, .5)); }
.vcard.on::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(55, 224, 141, .22), transparent 70%); }
.vcard.on .v-st { color: var(--green); }
.vcard.on .v-st i { background: var(--green); box-shadow: 0 0 9px var(--green); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 分区进度列表 ---------- */
.zrow { display: grid; grid-template-columns: 88px 1fr 54px; align-items: center; gap: 9px; height: 26px; }
.zrow .z-nm { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zbar { position: relative; height: 8px; border-radius: 4px; background: rgba(80, 170, 240, .14); overflow: hidden; }
.zbar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px rgba(63, 216, 245, .55);
  transition: width .5s ease; }
.zbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: zflow 2.2s linear infinite; }
@keyframes zflow { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.zrow .z-v { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); text-align: right; }

/* 阀门面板右侧的分区条 */
.panel-bd.split { display: grid; grid-template-columns: 1.34fr 1fr; gap: 10px; }
.panel-bd.split > * { min-width: 0; min-height: 0; }
.zside { display: flex; flex-direction: column; min-height: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.zcap {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1px 5px; font-size: 11px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em;
}
.zcap b { color: var(--green); font-weight: 600; }
.zgrid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.zrow.c { grid-template-columns: 74px 1fr 42px; gap: 7px; height: auto; }
.zrow.c .z-nm { font-size: 11px; }
.zrow.c .zbar { height: 6px; }
.zrow.c .z-v { font-size: 10.5px; }

/* ---------- 列表（告警 / 日志 / 设备） ---------- */
.list { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.row {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 4px;
  background: rgba(12, 40, 70, .42); border: 1px solid rgba(80, 170, 240, .13);
  animation: rowin .45s ease both;
}
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.row .lv { flex: 0 0 auto; width: 34px; text-align: center; font-size: 10.5px; padding: 2px 0; border-radius: 3px; font-family: var(--f-mono); }
.lv.l2 { color: #fff; background: rgba(255, 93, 112, .85); box-shadow: 0 0 12px rgba(255, 93, 112, .55); animation: breathe 1.2s ease-in-out infinite; }
.lv.l1 { color: #2a1a00; background: var(--gold); }
.lv.l0 { color: #08283c; background: #7fc6f0; }
.row .tt { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .tm { flex: 0 0 auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }

.row.log { padding: 4px 9px; background: rgba(10, 34, 58, .34); border-color: transparent; }
.row.log .tt { font-family: var(--f-mono); font-size: 11px; color: #a9cbe8; }
.row.log .tm { font-size: 10px; }
.row.log.k-alarm .tt { color: var(--red); }

.row.dev .dn { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #cfe6ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.dev .dm { flex: 0 0 auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); }
.row.dev .led { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.row.dev.up .led { background: var(--green); box-shadow: 0 0 10px var(--green); animation: breathe 1.9s ease-in-out infinite; }
.row.dev.dn .led { background: #64798c; }
.row.dev.dn .dn { color: #8fa5b8; }

.empty-tip { height: 100%; display: grid; place-items: center; font-size: 12px; color: var(--muted); }

/* ---------- 底部 ---------- */
.sc-foot {
  flex: 0 0 auto; height: 36px; margin-top: 12px; display: flex; align-items: center; gap: 14px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(90deg, rgba(14, 46, 80, .55), rgba(8, 28, 50, .45));
}
.sc-foot .fx { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.sc-foot .fx-in { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; animation: marq 42s linear infinite; will-change: transform; }
.sc-foot .fx-in span { font-size: 12px; color: var(--ink-2); font-family: var(--f-mono); letter-spacing: .03em; }
.sc-foot .fx-in span::before { content: "■"; color: var(--cyan); font-size: 8px; margin-right: 8px; vertical-align: 1px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sc-foot .ft-r { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); font-family: var(--f-mono); }
.sc-foot .ft-r b { color: var(--green); }

/* ---------- 加载遮罩 ---------- */
#boot { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: radial-gradient(700px 420px at 50% 45%, rgba(20, 70, 120, .35), transparent 65%), var(--bg-0);
  transition: opacity .6s ease; }
#boot.done { opacity: 0; pointer-events: none; }
#boot .b-in { text-align: center; }
#boot .b-ring { width: 74px; height: 74px; margin: 0 auto 18px; position: relative; }
#boot .b-ring::before, #boot .b-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent;
}
#boot .b-ring::before { border-top-color: var(--cyan); border-right-color: rgba(63, 216, 245, .35); animation: spin 1.1s linear infinite; }
#boot .b-ring::after { inset: 12px; border-bottom-color: var(--green); animation: spin 1.6s linear infinite reverse; }
#boot p { font-size: 13px; letter-spacing: .3em; color: var(--ink-2); font-family: var(--f-mono); }

/* ---------- 窄屏降级：取消缩放，纵向排布 ---------- */
body.mobile #stage {
  position: static; transform: none !important; width: 100%; height: auto;
  margin: 0; padding: 12px; display: block;
}
body.mobile .sc-head { height: auto; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
body.mobile .sc-head-l, body.mobile .sc-head-r { flex: 1 1 100%; justify-content: flex-start; }
body.mobile .sc-head-r { justify-content: space-between; }
body.mobile .sc-title { display: none; }
body.mobile .sc-kpi { height: auto; grid-template-columns: repeat(2, 1fr); }
body.mobile .kpi .k-val b { font-size: 28px; }
body.mobile .sc-body { display: block; margin-top: 12px; }
body.mobile .col { display: block; }
body.mobile .panel { height: 262px; margin-bottom: 12px; }
body.mobile .panel-bd.split { grid-template-columns: 1fr; }
body.mobile .zside { display: none; }
body.mobile .vgrid { grid-template-columns: repeat(2, 1fr); }
body.mobile .sc-foot { height: auto; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
body.mobile .sc-foot .fx { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
