/* =========================================================
   全局变量 - 字体 / 主色
   ========================================================= */
:root {
  /* 中文：HarmonyOS Sans / 思源黑体 / 苹方 / 雅黑，按系统优先级回退 */
  --font-cn:
    "HarmonyOS Sans SC",
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    "Source Han Sans CN",
    "Helvetica Neue",
    Arial, sans-serif;
  /* 数字 / 拉丁：Orbitron 科技 + Rajdhani 工业 + 系统等宽兜底 */
  --font-num:
    "Orbitron",
    "Rajdhani",
    "DIN Alternate",
    "Share Tech Mono",
    "Consolas",
    "Menlo",
    monospace;
  /* 等宽（用于 footer / tag / 时间戳） */
  --font-mono:
    "Share Tech Mono",
    "Consolas",
    "Menlo",
    monospace;

  --c-primary: #00D4FF;
  --c-green:   #00FF9C;
  --c-warn:    #FFB800;
  --c-danger:  #ff5566;
  --c-text:    #cfe6ff;
  --c-text-dim:#7aa8d6;
}

/* =========================================================
   全局基础
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #020B2D;
  color: var(--c-text);
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px;
}
/* 1920x1080 适配 - 等比缩放 */
#stage {
  width: 2560px; height: 1440px;
  position: absolute; left: 50%; top: 50%;
  transform-origin: center center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,90,180,0.35), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0,60,140,0.25), transparent 60%),
    linear-gradient(180deg, #020B2D 0%, #010820 100%);
}
/* 网格纹理 */
#stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

/* =========================================================
   Header 顶部栏
   ========================================================= */
.header {
  position: relative;
  height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  z-index: 5;
}
.header-left, .header-right {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-num);
}
.header-right { justify-content: flex-end; }
.clock {
  font-size: 32px; color: #00D4FF; letter-spacing: 2px; font-weight: 700;
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", monospace;
  text-shadow: 0 0 14px rgba(0,212,255,0.7);
  line-height: 1;
}
.clock .date {
  font-size: 16px; color: #7aa8d6; margin-left: 16px; letter-spacing: 2px;
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
.station-info {
  display: flex; align-items: center; gap: 18px;
  font-size: 18px; color: #9bc6f0;
}
.station-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.station-info .pill {
  border: 1px solid rgba(0,212,255,0.4);
  padding: 3px 10px; border-radius: 14px;
  background: rgba(0,80,160,0.2);
  color: #cfe6ff;
  font-size: 13px;
  white-space: nowrap;
  text-align: center;
}
.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #00FF9C; box-shadow: 0 0 10px #00FF9C;
  margin-right: 6px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.35 } }

/* 中部大标题 */
.title-wrap {
  position: relative;
  text-align: center;
  padding: 0 60px;
}
.title-wrap h1 {
  font-size: 54px; font-weight: 900; letter-spacing: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #c8f3ff 40%, #79e7ff 75%, #00D4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.55));
  position: relative; z-index: 2;
  padding-left: 10px; /* 抵消最后一个字的字距 */
}
.title-wrap .sub {
  margin-top: 8px;
  font-size: 16px; letter-spacing: 10px; color: #79b8e6;
  font-weight: 300;
  text-transform: uppercase;
}
.title-wrap .sub::before,
.title-wrap .sub::after {
  content: "—"; color: rgba(0,212,255,0.5); margin: 0 10px; letter-spacing: 0;
}
/* 标题扫光 */
.title-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: scan 4s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes scan { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }
/* 呼吸光效 */
.title-wrap::before {
  content: ""; position: absolute; inset: -10px 0 -10px 0;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.25), transparent 60%);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* 顶部流光线条 */
.top-decor {
  position: absolute; top: 114px; height: 2px; width: 38%;
  background: linear-gradient(90deg, transparent, #00D4FF, transparent);
  opacity: 0.7;
}
.top-decor.left { left: 0; }
.top-decor.right { right: 0; }
.top-decor::after {
  content: ""; position: absolute; top: -3px; width: 60px; height: 8px;
  background: linear-gradient(90deg, transparent, #00D4FF);
  filter: blur(2px);
  animation: flow 3s linear infinite;
}
.top-decor.left::after { animation-direction: normal; }
.top-decor.right::after { animation-direction: reverse; }
@keyframes flow {
  0%   { left: -60px; }
  100% { left: 100%; }
}

/* =========================================================
   主体三栏 - 严格高度控制
   ========================================================= */
.main {
  position: absolute;
  top: 128px; left: 0; right: 0; bottom: 36px;
  display: grid;
  grid-template-columns: 610px 1fr 610px;
  gap: 14px;
  padding: 8px 24px 8px;
  overflow: hidden;
}
.col {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; height: 100%; overflow: hidden;
}
/* 列内面板高度按比例分配 */
.col-left  > .panel:nth-child(1) { flex: 30 1 0; }
.col-left  > .panel:nth-child(2) { flex: 40 1 0; }
.col-left  > .panel:nth-child(3) { flex: 30 1 0; }
.col-right > .panel:nth-child(1) { flex: 35 1 0; }
.col-right > .panel:nth-child(2) { flex: 40 1 0; }
.col-right > .panel:nth-child(3) { flex: 25 1 0; }
/* 中栏：KPI 17% / 地图（C位主视觉）53% / 底排雷达+预警 30% */
.col-center > .kpi-row                  { flex: 17 1 0; }
.col-center > .panel.device-map-panel   { flex: 53 1 0; }
.col-center > .bottom-split-row         { flex: 30 1 0; }

/* 底排：左半雷达，右半预警（预警宽一些，因为预警条目文字偏长） */
.bottom-split-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  min-height: 0;
}
.bottom-split-row > .panel { min-width: 0; }

/* 卡片容器 */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,30,70,0.55) 0%, rgba(2,15,45,0.65) 100%);
  border: 1px solid rgba(0,150,220,0.25);
  backdrop-filter: blur(2px);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
/* 四角装饰线框 - 更精细的科技感折角 */
.panel::before, .panel::after,
.panel > .corner-tl, .panel > .corner-br {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid #00D4FF;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.5));
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after  { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.panel > .corner-tl { bottom: -1px; left: -1px; border-right: none; border-top: none; top: auto; }
.panel > .corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; top: auto; }

.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(0,150,220,0.18);
  background: linear-gradient(90deg, rgba(0,120,200,0.25), transparent 80%);
}
.panel-title h3 {
  font-size: 20px; font-weight: 500; color: #ffffff; letter-spacing: 3px;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 0 8px rgba(0,212,255,0.25);
}
.panel-title h3::before {
  content: ""; width: 4px; height: 16px;
  background: linear-gradient(180deg, #00D4FF, #00FF9C);
  box-shadow: 0 0 10px #00D4FF;
  border-radius: 1px;
}
/* 标题右侧装饰：双小方块 + 中点 */
.panel-title h3::after {
  content: "";
  width: 18px; height: 6px;
  background:
    linear-gradient(90deg, rgba(0,212,255,0.7) 0 4px, transparent 4px 7px,
                          rgba(0,212,255,0.4) 7px 13px, transparent 13px 16px,
                          rgba(0,212,255,0.7) 16px 18px);
  margin-left: 2px;
}
.panel-title .tag {
  font-size: 13px; color: #79e7ff; letter-spacing: 2px;
  border: 1px solid rgba(0,212,255,0.35);
  padding: 2px 10px; border-radius: 2px;
  font-family: var(--font-mono);
  background: linear-gradient(90deg, rgba(0,212,255,0.05), rgba(0,212,255,0.18));
  text-shadow: 0 0 6px rgba(0,212,255,0.4);
}
.panel-body {
  flex: 1 1 0; padding: 16px; min-height: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* =========================================================
   左侧 - 今日问诊统计
   ========================================================= */
.visits-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  flex: 0 0 38%;
  margin-bottom: 8px;
  min-height: 0;
}
.stat-block {
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,80,160,0.25), rgba(0,40,100,0.1));
  padding: 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  position: relative; overflow: hidden; min-height: 0;
}
.stat-block .label {
  font-size: 15px; color: #7aa8d6; letter-spacing: 2px;
}
.stat-block .num {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", monospace;
  font-size: 42px; font-weight: 700; color: #00D4FF;
  text-shadow: 0 0 14px rgba(0,212,255,0.6);
  letter-spacing: 2px;
  line-height: 1;            /* 关键：拉丁字体默认 1.4 行高会撑爆卡片 */
  display: inline-block;
  vertical-align: baseline;
}
.stat-block .unit {
  font-size: 15px; color: #7aa8d6; margin-left: 4px;
  line-height: 1; vertical-align: baseline;
}
.stat-block .delta {
  font-size: 14px; color: #00FF9C; line-height: 1.2;
  letter-spacing: 1px;
}
.stat-block::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 70%);
}
#chart-visits-hour { flex: 1 1 0; min-height: 0; width: 100%; }
#chart-visits-rate { width: 100%; height: 100%; min-height: 110px; }
/* 完成率卡片：减小内边距让环更大，内容居中 */
.stat-block.stat-rate {
  padding: 2px;
  align-items: center; justify-content: center;
}
.stat-block.stat-rate::after { display: none; } /* 去掉右上角光斑，避免和环冲突 */

/* 体质 / 慢病 / 年龄 */
#chart-constitution, #chart-age, #chart-chronic, #chart-radar, #chart-gauge {
  flex: 1 1 0; width: 100%; min-height: 0;
}

/* 关键词排行 */
.keyword-list {
  padding: 2px 4px; flex: 1 1 0; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-around;
  overflow: hidden;
}
.keyword-row {
  display: grid;
  grid-template-columns: 36px 1fr 76px;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}
.keyword-rank {
  font-family: "Orbitron", "Rajdhani", monospace;
  font-size: 16px; font-weight: 700;
  width: 32px; height: 28px; line-height: 28px; text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1a4880, #0a2050);
  border: 1px solid rgba(0,212,255,0.4);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
}
.keyword-row.top1 .keyword-rank {
  background: linear-gradient(135deg, #FFD66B, #ff7a00);
  border-color: #FFB800; box-shadow: 0 0 10px rgba(255,184,0,0.5);
}
.keyword-row.top2 .keyword-rank {
  background: linear-gradient(135deg, #5AD8FF, #0070b8);
  border-color: #00D4FF; box-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.keyword-row.top3 .keyword-rank {
  background: linear-gradient(135deg, #A8FFB7, #008a55);
  border-color: #00FF9C; box-shadow: 0 0 10px rgba(0,255,156,0.45);
}
.keyword-bar-wrap {
  position: relative; height: 18px;
  background: rgba(0,80,160,0.15);
  border-left: 2px solid rgba(0,212,255,0.35);
}
.keyword-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(0,212,255,0.7), rgba(0,255,156,0.5));
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
  transition: width 1s ease-out;
  position: relative;
}
.keyword-name {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: #fff; z-index: 2; letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}
.keyword-count {
  font-family: var(--font-num);
  font-size: 16px; color: #00D4FF; text-align: right;
}

/* =========================================================
   中央
   ========================================================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-height: 0;
}
.kpi-card {
  position: relative;
  border: 1px solid rgba(0,212,255,0.3);
  background: linear-gradient(135deg, rgba(0,90,180,0.28), rgba(0,30,80,0.15));
  padding: 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  overflow: hidden; min-height: 0;
}
.kpi-card.alert { border-color: rgba(255,184,0,0.45); }
.kpi-card .label {
  font-size: 16px; color: #9bc6f0; letter-spacing: 4px; font-weight: 500;
}
.kpi-card .flip {
  display: flex; gap: 5px;
  font-family: var(--font-num);
}
.digit {
  width: 44px; height: 64px;
  background:
    linear-gradient(180deg, #082a5a 0%, #02132f 100%);
  border: 1px solid rgba(0,212,255,0.55);
  box-shadow:
    inset 0 0 12px rgba(0,212,255,0.18),
    0 0 8px rgba(0,212,255,0.15);
  color: #00D4FF;
  font-size: 46px; font-weight: 700;
  font-family: "Orbitron", "Rajdhani", "DIN Alternate", "Consolas", monospace;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 0 14px rgba(0,212,255,0.8);
  position: relative;
}
.digit::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(0,0,0,0.55);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.04);
}
.kpi-card.alert .digit { color: #FFB800; border-color: rgba(255,184,0,0.6); text-shadow: 0 0 14px rgba(255,184,0,0.7); }
.kpi-card.green .digit { color: #00FF9C; border-color: rgba(0,255,156,0.5); text-shadow: 0 0 14px rgba(0,255,156,0.6); }
.kpi-card .footnote {
  font-size: 13px; color: #6fb5e6; font-family: var(--font-mono);
}
.kpi-card::before {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 70%);
}

/* 中央雷达 panel 内容直接 flex 撑满 */

/* 实时预警流 */
.alert-stream {
  flex: 1 1 0; min-height: 0; overflow: hidden; position: relative;
  padding: 2px 6px;
}
.alert-track { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(255,184,0,0.08), transparent 80%);
  border-left: 3px solid #FFB800;
  flex-shrink: 0;
}
.alert-item.high { border-left-color: #ff5566; background: linear-gradient(90deg, rgba(255,85,102,0.12), transparent 80%); }
.alert-item.mid  { border-left-color: #FFB800; }
.alert-item.low  { border-left-color: #00D4FF; background: linear-gradient(90deg, rgba(0,212,255,0.08), transparent 80%); }
.alert-time {
  font-family: var(--font-mono); color: #6fb5e6; font-size: 15px;
}
.alert-text { font-size: 17px; color: #e6f1ff; letter-spacing: 0.5px; }
.alert-text strong { color: #fff; }
.alert-tag {
  font-size: 14px; padding: 2px 8px;
  color: #FFB800; border: 1px solid rgba(255,184,0,0.4);
}
.alert-item.high .alert-tag { color: #ff8092; border-color: rgba(255,85,102,0.5); }
.alert-item.low .alert-tag { color: #00D4FF; border-color: rgba(0,212,255,0.5); }

/* =========================================================
   右侧 - 仪表盘
   ========================================================= */
.followup-wrap {
  display: flex; align-items: stretch; gap: 12px;
  flex: 1 1 0; min-height: 0; padding: 0;
}
.followup-wrap > #chart-gauge { flex: 1.1 1 0; min-width: 0; }
.followup-meta {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 8px;
  justify-content: center; min-width: 0;
}
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 10px;
  border: 1px solid rgba(0,212,255,0.18);
  background: linear-gradient(90deg, rgba(0,80,160,0.18), transparent);
}
.meta-row .k { font-size: 15px; color: #9bc6f0; letter-spacing: 2px; font-weight: 500; }
.meta-row .v {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", monospace;
  font-size: 28px; font-weight: 700; color: #00FF9C;
  text-shadow: 0 0 10px rgba(0,255,156,0.5);
  letter-spacing: 1px;
  line-height: 1;
}
.meta-row.warn .v { color: #FFB800; text-shadow: 0 0 8px rgba(255,184,0,0.4); }
.meta-row.blue .v { color: #00D4FF; text-shadow: 0 0 8px rgba(0,212,255,0.4); }

/* 慢病列表样式 */
.chronic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  flex: 1 1 0; min-height: 0;
}
.chronic-card {
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,80,160,0.2), rgba(0,30,80,0.1));
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.chronic-card .name {
  font-size: 16px; color: #cfe6ff; letter-spacing: 3px; font-weight: 500;
}
.chronic-card .count {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", "Consolas", monospace;
  font-size: 30px; font-weight: 700; color: #00D4FF;
  text-shadow: 0 0 12px rgba(0,212,255,0.5);
  letter-spacing: 1px;
  line-height: 1.05;
}
.chronic-card .count .small { font-size: 15px; color: #7aa8d6; margin-left: 4px; }
.ch.alert-text { font-size: 17px; color: #e6f1ff; letter-spacing: 0.5px; }
.alert-text strong { color: #fff; }
.alert-tag {
  font-size: 14px; padding: 2px 8px;
  color: #FFB800; border: 1px solid rgba(255,184,0,0.4);
  font-family: var(--font-mono); letter-spacing: 1px;
}
.alert-item.high .alert-tag { color: #ff8092; border-color: rgba(255,85,102,0.5); }
.alert-item.low  .alert-tag { color: #00D4FF; border-color: rgba(0,212,255,0.5); }

/* =========================================================
   右侧 - 仪表盘
   ========================================================= */
.followup-wrap {
  display: flex; align-items: stretch; gap: 12px;
  flex: 1 1 0; min-height: 0; padding: 0;
}
.followup-wrap > #chart-gauge { flex: 1.1 1 0; min-width: 0; }
.followup-meta {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 8px;
  justify-content: center; min-width: 0;
}
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 10px;
  border: 1px solid rgba(0,212,255,0.18);
  background: linear-gradient(90deg, rgba(0,80,160,0.18), transparent);
}
.meta-row .k {
  font-size: 12px; color: #9bc6f0; letter-spacing: 2px; font-weight: 500;
}
.meta-row .v {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", monospace;
  font-size: 28px; font-weight: 700; color: #00FF9C;
  text-shadow: 0 0 10px rgba(0,255,156,0.5);
  letter-spacing: 1px;
  line-height: 1;
}
.meta-row.warn .v { color: #FFB800; text-shadow: 0 0 8px rgba(255,184,0,0.4); }
.meta-row.blue .v { color: #00D4FF; text-shadow: 0 0 8px rgba(0,212,255,0.4); }

/* =========================================================
   慢病列表
   ========================================================= */
.chronic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  flex: 1 1 0; min-height: 0;
}
.chronic-card {
  border: 1px solid rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,80,160,0.2), rgba(0,30,80,0.1));
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.chronic-card .name {
  font-size: 16px; color: #cfe6ff; letter-spacing: 3px; font-weight: 500;
}
.chronic-card .count {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", "Consolas", monospace;
  font-size: 30px; font-weight: 700; color: #00D4FF;
  text-shadow: 0 0 12px rgba(0,212,255,0.5);
  letter-spacing: 1px;
  line-height: 1.05;
}
.chronic-card .count .small { font-size: 15px; color: #7aa8d6; margin-left: 4px; }
.chronic-card .progress {
  height: 4px; background: rgba(0,80,160,0.3); position: relative; margin-top: 2px;
}
.chronic-card .progress > i {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, #00D4FF, #00FF9C);
  box-shadow: 0 0 6px rgba(0,255,156,0.5);
}
.chronic-card .meta {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #7aa8d6; font-family: var(--font-mono);
}
.chronic-card .meta .ok { color: #00FF9C; }

/* =========================================================
   底栏 - 视觉层级 (品牌 > 产品 > 元信息)
   ========================================================= */
.footer-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34px;
  border-top: 1px solid rgba(0,150,220,0.25);
  background: linear-gradient(180deg, rgba(0,30,80,0.2), rgba(0,30,80,0.55));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 14px; color: #6fb5e6;
  line-height: 1;
}
.footer-bar .footer-left,
.footer-bar .footer-right {
  display: flex; align-items: center; gap: 10px;
}

/* 品牌 - 一级 */
.footer-bar .brand {
  color: #ffffff; font-weight: 700;
  font-size: 16px; letter-spacing: 3px;
  font-family: "Orbitron", "Rajdhani", monospace;
  text-shadow: 0 0 8px rgba(0,212,255,0.7);
  padding-right: 10px;
  border-right: 1px solid rgba(0,212,255,0.3);
}
/* 产品全称 - 二级 */
.footer-bar .product {
  color: #9bc6f0; letter-spacing: 1.5px;
  font-size: 14px; font-weight: 500;
  text-transform: uppercase;
  font-family: "Rajdhani", var(--font-mono);
}
/* 版本徽章 */
.footer-bar .version {
  color: #79e7ff;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  border: 1px solid rgba(0,212,255,0.35);
  border-radius: 2px;
  background: rgba(0,212,255,0.08);
  font-family: var(--font-mono);
}
/* 菱形分隔点 */
.footer-bar .sep {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(0,212,255,0.4);
  transform: rotate(45deg);
}
/* meta key/val 配对 */
.footer-bar .meta-key,
.footer-bar .sync-key {
  color: #6488a8; letter-spacing: 1.5px; font-size: 13px; font-weight: 500;
  text-transform: uppercase;
}
.footer-bar .meta-val {
  color: #79e7ff; font-weight: 700;
  font-family: "Rajdhani", "Orbitron", monospace;
  font-size: 15px; letter-spacing: 1px;
}
/* 系统状态 - 绿色 + 脉冲点 */
.footer-bar .status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #00FF9C; box-shadow: 0 0 8px #00FF9C;
  animation: pulse 1.4s ease-in-out infinite;
}
.footer-bar .status-ok {
  color: #00FF9C; font-weight: 700;
  letter-spacing: 1.5px; font-size: 14px;
  text-shadow: 0 0 6px rgba(0,255,156,0.4);
  font-family: "Rajdhani", var(--font-mono);
}
/* 同步时间戳 - LCD 风 *

/* =========================================================
   四诊仪部署地图 + 设备统计
   ========================================================= */
.device-map-body {
  display: flex;
  flex-direction: row;     /* 关键：覆写 .panel-body 的 column */
  gap: 10px; padding: 10px;
  align-items: stretch;
}
#chart-device-map {
  flex: 1 1 0; min-width: 0; min-height: 0;
}
.device-stats {
  width: 230px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.device-stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.device-stat {
  border: 1px solid rgba(0,212,255,0.3);
  background: linear-gradient(135deg, rgba(0,80,160,0.28), rgba(0,30,80,0.12));
  padding: 8px 8px 6px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative; overflow: hidden;
}
.device-stat .d-num {
  font-family: "Rajdhani", "Orbitron", "DIN Alternate", monospace;
  font-size: 40px; font-weight: 700; color: #00D4FF;
  line-height: 1; letter-spacing: 1px;
}
.device-stat .d-label {
  font-size: 13px; color: #9bc6f0; letter-spacing: 2px; font-weight: 500;
}
.device-stat.deployed { border-color: rgba(0,255,156,0.5); }
.device-stat.deployed .d-num {
  color: #00FF9C; text-shadow: 0 0 10px rgba(0,255,156,0.6);
}
.device-stat.planned  { border-color: rgba(0,212,255,0.4); }
.device-stat.planned  .d-num {
  color: #00D4FF; text-shadow: 0 0 10px rgba(0,212,255,0.5);
}
.device-stat.total {
  border-color: rgba(255,255,255,0.3);
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(0,80,160,0.1));
  padding: 10px;
}
.device-stat.total .d-num {
  font-size: 48px; color: #ffffff;
  text-shadow: 0 0 14px rgba(0,212,255,0.7);
}
.device-stat.total .d-label { font-size: 14px; }

/* 站点列表 */
.device-list {
  flex: 1 1 0; min-height: 0;
  border: 1px solid rgba(0,212,255,0.22);
  background: rgba(0,30,80,0.35);
  padding: 6px 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.device-list-title {
  font-size: 13px; color: #79b8e6; letter-spacing: 2px; font-weight: 500;
  margin-bottom: 4px; padding-bottom: 4px;
  border-bottom: 1px dashed rgba(0,212,255,0.25);
  text-transform: uppercase;
}
.device-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed rgba(0,150,220,0.12);
}
.device-item:last-child { border-bottom: none; }
.device-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00FF9C; box-shadow: 0 0 6px #00FF9C;
  animation: pulse 1.4s ease-in-out infinite;
}
.device-item .name {
  color: #cfe6ff; letter-spacing: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.device-item .cnt {
  color: #00FF9C; font-weight: 700;
  font-family: "Rajdhani", "Orbitron", monospace;
  font-size: 16px; letter-spacing: 1px;
}
