/* ============================================================
   冷却液水质监测大屏 —— 全屏地图 + 左右浮层面板布局
   ============================================================ */
:root {
  --panel-bg: rgba(14, 34, 62, 0.7);
  --panel-brd: rgba(125, 190, 240, 0.36);
  --text: #f4f9ff;
  --text-sub: #abc6e6;
  --cyan: #4fe3ff;
  --green: #00ff9d;
  --amber: #ffa800;
  --red: #ff6b85;
  --blue: #7db6ff;
  --violet: #b79bff;
  --side-w: 396px;
  --top-h: 70px;
  --foot-h: 40px;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #04091a;
  color: var(--text);
}

/* 通用隐藏（大屏页不加载 admin.css，必须在此显式定义） */
.hidden {
  display: none !important;
}

/* ---------- 地图背景 ---------- */
.map-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #061024;
}
/* 明亮清晰的地图形态：提高饱和度与亮度，只轻微压暗保证面板文字可读 */
.map-bg.bright {
  filter: saturate(1.22) brightness(1.02) contrast(1.03);
}
/* 四周渐变遮罩减弱，让底图更透亮 */
.map-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(4, 9, 26, 0) 40%, rgba(4, 9, 26, 0.34) 72%, rgba(4, 9, 26, 0.66) 100%),
    linear-gradient(to right, rgba(4, 9, 26, 0.42), rgba(4, 9, 26, 0) 26%, rgba(4, 9, 26, 0) 74%, rgba(4, 9, 26, 0.42)),
    linear-gradient(to top, rgba(4, 9, 26, 0.52), rgba(4, 9, 26, 0) 28%);
}
.map-markers {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.map-markers .mk {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.mk-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 0 14px currentColor;
  background: currentColor;
  position: relative;
}
/* 点位只有「暗部基座 + 实心核心」，无柔光、无呼吸 */
@keyframes mkBreath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.42;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.14;
  }
}
/* 只保留两档，均使用荧光色：ok=全部达标（荧光绿），bad=存在超标项（荧光橙） */
.mk.ok {
  color: #00d97f;
}
.mk.bad {
  color: #f59300;
}
.mk.bad .mk-dot {
  width: 17px;
  height: 17px;
}
/* 园区点位不再显示名称标签，只保留亮点，防止缩放时文字互相压盖 */
@keyframes mkPing {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* 未配置地图 Key 时的降级底图。
   注意：它是全屏层，若隐藏失效会整块盖住地图、吃掉所有鼠标事件，
   所以这里默认 display:none，只有显式加 .shown 才显示（双重保险） */
.map-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
}
.map-fallback.shown {
  display: block;
}
.map-fallback canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.map-notice {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 6;
  display: none;
  max-width: 620px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 32, 58, 0.92);
  border: 1px solid rgba(255, 168, 0, 0.5);
  color: #ffe1b0;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.map-notice.shown {
  display: block;
}
.map-notice b {
  color: #ffd98a;
}
.map-notice .close {
  float: right;
  cursor: pointer;
  opacity: 0.6;
  margin-left: 10px;
}

/* ---------- 整体骨架 ---------- */
.screen {
  position: relative;
  z-index: 3;
  height: 100%;
  pointer-events: none; /* 让鼠标能穿透到下层地图 */
}
.top-bar,
.side,
.ticker,
.park-card {
  pointer-events: auto;
}

.top-bar {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(6, 16, 34, 0.92) 0%, rgba(6, 16, 34, 0.5) 70%, rgba(6, 16, 34, 0) 100%);
}
.title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 公司 Logo：京脉科技（原图红蓝配色，深色顶栏上垫白色圆角底板保证辨识度） */
.logo-img {
  height: 38px;
  width: auto;
  padding: 3px 7px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
}
.title-text h1 {
  font-size: 21px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #9fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-text .sub {
  font-size: 11.5px;
  color: var(--text-sub);
  letter-spacing: 0.6px;
}
.top-mid {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-mid label {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 顶栏下拉框：与按钮统一外观（注意不要与下方 .map-credit 合并，否则会被写成 fixed 浮层、无法点击） */
select {
  background: rgba(13, 28, 54, 0.85);
  border: 1px solid rgba(84, 156, 226, 0.35);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
  position: static;
  pointer-events: auto;
}
select option {
  background: #0d1c36;
  color: var(--text);
}

/* 海外底图来源提示（底部居中，仅切到全球底图时出现） */
.map-credit {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--foot-h) + 10px);
  z-index: 4;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #a9c2e0;
  background: rgba(6, 16, 34, 0.72);
  border: 1px solid rgba(84, 156, 226, 0.28);
  pointer-events: none;
  letter-spacing: 0.2px;
}

.mini-btn,
.zoom-preset {
  background: rgba(13, 28, 54, 0.85);
  border: 1px solid rgba(84, 156, 226, 0.35);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}
/* 收起 / 弹出信息栏按钮 */
.btn-panels {
  min-width: 78px;
  white-space: nowrap;
  background: rgba(13, 28, 54, 0.85);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-panels::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: 1px;
}
.btn-panels.active::before {
  background: var(--amber);
}
.btn-panels:hover {
  background: rgba(23, 52, 96, 0.95);
}
select:hover,
.mini-btn:hover {
  border-color: var(--cyan);
}
.mini-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(79, 227, 255, 0.14);
}
#btnFullscreen { min-width: 68px; }
.map-state {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(84, 156, 226, 0.4);
  color: #9fd8ff;
  white-space: nowrap;
}
.map-state.ok {
  color: #4dffb0;
  border-color: rgba(34, 197, 94, 0.5);
}
.map-state.fallback {
  color: #ffd98a;
  border-color: rgba(245, 158, 11, 0.5);
}
.zoom-btns {
  display: inline-flex;
  gap: 4px;
}
.zoom-btns .mini-btn {
  width: 26px;
  padding: 5px 0;
  text-align: center;
  line-height: 1;
  font-size: 14px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.clock {
  font-size: 14px;
  color: #bcd6ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.enter-admin {
  font-size: 12.5px;
  color: #9fd8ff;
  text-decoration: none;
  border: 1px solid rgba(84, 156, 226, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(13, 28, 54, 0.7);
}
.enter-admin:hover {
  border-color: var(--cyan);
  color: #fff;
}

/* ---------- 左右浮层 ---------- */
.stage {
  position: relative;
  height: calc(100% - var(--top-h) - var(--foot-h));
}
.side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 14px;
  /* 收起 / 弹出时的滑动动画 */
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
}
}
.side-left {
  left: 0;
}
.side-right {
  right: 0;
}

/* 信息栏收起：各自向所在的一端滑出屏幕，只留全屏地图 */
.screen.panels-off .side-left {
  transform: translateX(calc(-100% - 26px));
  opacity: 0;
  pointer-events: none;
}
.screen.panels-off .side-right {
  transform: translateX(calc(100% + 26px));
  opacity: 0;
  pointer-events: none;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-brd);
  border-radius: 10px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  /* 卡片本身不做外发光/阴影，保持干净 */
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.panel-head {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(84, 156, 226, 0.18);
}
.panel-head h2 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #eaf3ff;
  position: relative;
  padding-left: 11px;
}
.panel-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), #2563eb);
}
.panel-tag {
  font-size: 11.5px;
  color: var(--text-sub);
}
.tools {
  display: flex;
  gap: 6px;
}
.tools select {
  padding: 3px 6px;
  font-size: 12px;
}

.panel-overview {
  flex: 0 0 auto;
}
.panel-alarm,
.panel-trend,
.panel-coolant,
.panel-pass {
  flex: 1 1 0;
  min-height: 0;
}
.panel-trend {
  flex: 1.15 1 0;
}
.panel-coolant {
  flex: 1 1 0;
}
.panel-pass {
  flex: 1.25 1 0;
}

/* ---------- 运营总览四宫格 ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.ov-card {
  border-radius: 8px;
  padding: 10px 11px;
  background: linear-gradient(160deg, rgba(23, 48, 88, 0.85), rgba(11, 24, 46, 0.7));
  border: 1px solid rgba(84, 156, 226, 0.22);
  position: relative;
  overflow: hidden;
}
.ov-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.09;
}
.ov-card.c-cyan {
  color: var(--cyan);
}
.ov-card.c-blue {
  color: var(--blue);
}
.ov-card.c-green {
  color: var(--green);
}
.ov-card.c-violet {
  color: var(--violet);
}
/* 第一行：数据中心园区 —— 独占整行；标签+说明在左，大数值靠右（纯 CSS 网格，无需改结构） */
.ov-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'label value'
    'sub   value';
  align-items: center;
  column-gap: 10px;
  padding: 9px 13px;
}
.ov-card.wide .ov-label {
  grid-area: label;
  font-size: 13px;
}
.ov-card.wide .ov-sub {
  grid-area: sub;
  margin-top: 2px;
  white-space: normal;
}
.ov-card.wide .ov-value {
  grid-area: value;
  margin-top: 0;
  font-size: 30px;
  text-align: right;
}
.ov-card.c-amber {
  color: var(--amber);
}
.ov-label {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ov-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ov-value {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ov-value small {
  font-size: 12.5px;
  font-weight: 500;
  margin-left: 3px;
  color: #b9d4f5;
}
.ov-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #7e97bb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 预警列表 ---------- */
.scroll-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 10px 10px;
  min-height: 0;
}
.alarm-item {
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255, 84, 112, 0.12), rgba(255, 84, 112, 0.03));
  border: 1px solid rgba(255, 84, 112, 0.3);
  border-left: 3px solid var(--red);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.alarm-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 84, 112, 0.6);
}
.alarm-item.warn {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.03));
  border-color: rgba(245, 158, 11, 0.3);
  border-left-color: var(--amber);
}
.ai-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ai-path {
  font-size: 13px;
  font-weight: 600;
  color: #ffe3ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alarm-item.warn .ai-path {
  color: #ffeccc;
}
.badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.danger {
  background: rgba(255, 84, 112, 0.2);
  color: #ffc247;
  border: 1px solid rgba(255, 84, 112, 0.45);
}
.badge.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd98a;
  border: 1px solid rgba(255, 168, 0, 0.5);
}
.badge.ok {
  background: rgba(34, 197, 94, 0.16);
  color: #4dffb0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.ai-sub {
  font-size: 11.5px;
  color: #93a9c9;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.ai-chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8e6fb;
}
.ai-chip b {
  color: #ffc247;
}

/* ---------- 图表容器 ---------- */
.chart-host {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

/* ---------- 水冷液统计 ---------- */
.coolant-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 5px;
  padding: 6px 8px 9px;
}
/* 圆环收窄一点，把横向空间让给右侧三行小框，保证「m³ · 百分比」完整显示 */
.chart-host.ring {
  flex: 0 0 118px;
  height: auto;
}
.coolant-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 170, 230, 0.45) transparent;
}
.coolant-list::-webkit-scrollbar {
  width: 5px;
}
.coolant-list::-webkit-scrollbar-track {
  background: transparent;
}
.coolant-list::-webkit-scrollbar-thumb {
  background: rgba(120, 170, 230, 0.45);
  border-radius: 3px;
}
.coolant-list::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 227, 255, 0.7);
}
.cl-item {
  border-radius: 7px;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(120, 170, 230, 0.16);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cl-item:hover,
.cl-item.active {
  background: rgba(55, 214, 255, 0.12);
  border-color: rgba(79, 227, 255, 0.5);
}
.cl-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap; /* 类型名（乙二醇/丙二醇/纯水冷）不折行 */
}
/* 类型名完整显示，不做省略号截断 */
.cl-name {
  white-space: nowrap;
  overflow: visible;
}
.cl-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}
.cl-count {
  margin-left: auto;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.cl-vol {
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
}
.cl-unit {
  font-size: 10.5px;
  color: var(--text-sub);
  font-weight: 400;
}
/* 百分比固定最小宽度并右对齐，三行数字列对齐更整齐，也不会被挤掉 */
.cl-pct {
  min-width: 32px;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: #cfe4ff;
  flex-shrink: 0;
}
.cl-bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 5px;
  overflow: hidden;
}
.cl-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.cl-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #8ba3c4;
  display: flex;
  gap: 10px;
}

/* ---------- 底部滚动条 ---------- */
.ticker {
  height: var(--foot-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(0deg, rgba(6, 16, 34, 0.94), rgba(6, 16, 34, 0.35));
}
.ticker-label {
  font-size: 12px;
  color: #9fd8ff;
  border: 1px solid rgba(84, 156, 226, 0.4);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.ticker-view {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  animation: tickerRun 90s linear infinite;
  font-size: 12.5px;
  color: #c3d8f5;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* ---------- 地图图例：园区点位颜色含义 ---------- */
.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 3px 12px 3px 10px;
  border-radius: 20px;
  background: rgba(6, 18, 38, 0.72);
  border: 1px solid rgba(120, 170, 230, 0.24);
  flex-shrink: 0;
}
.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #b6cbe8;
}
.lg-item b {
  font-size: 12.5px;
  font-weight: 600;
  color: #eaf4ff;
}
.lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.lg-dot.ok {
  background: radial-gradient(circle at 32% 30%, #3dffab 0%, #00d97f 50%, #005c37 100%);
  box-shadow: 0 0 10px rgba(0, 217, 127, 0.9), 0 1px 1px rgba(0, 50, 30, 0.55);
}
.lg-dot.bad {
  background: radial-gradient(circle at 32% 30%, #ffbe4d 0%, #f59300 50%, #8a3d00 100%);
  box-shadow: 0 0 10px rgba(245, 147, 0, 0.9), 0 1px 1px rgba(80, 35, 0, 0.55);
}
.ticker-track span b {
  color: #4dffb0;
}
.ticker-track span i {
  font-style: normal;
  color: #ffc247;
}
@keyframes tickerRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 园区信息卡 ---------- */
.park-card {
  position: fixed;
  z-index: 8;
  width: 316px;
  right: calc(var(--side-w) + 26px);
  bottom: calc(var(--foot-h) + 18px);
  background: rgba(14, 34, 62, 0.92);
  border: 1px solid rgba(125, 190, 240, 0.42);
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: blur(10px);
  padding: 14px 16px 16px;
  max-height: 62vh;
  overflow-y: auto;
}
.pc-close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  color: #7e97bb;
  font-size: 18px;
  line-height: 1;
}
.pc-close:hover {
  color: #fff;
}
.park-card h3 {
  font-size: 15.5px;
  color: #fff;
  padding-right: 18px;
}
.pc-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 2px;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.pc-grid div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 170, 230, 0.16);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}
.pc-grid span {
  display: block;
  font-size: 10.5px;
  color: #7e97bb;
}
.pc-grid b {
  font-size: 15px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.pc-bname {
  font-size: 12.5px;
  color: #a9c4e6;
  margin: 8px 0 4px;
  font-weight: 600;
}
.pc-bcust {
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #6fd0ff;
  background: rgba(60, 160, 230, 0.16);
  border: 1px solid rgba(96, 190, 255, 0.28);
  border-radius: 999px;
  padding: 0 6px;
}
/* 环网单独指定了客户（与所在楼宇默认客户不同） */
.pc-lcust {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #ffcf7a;
  background: rgba(255, 180, 60, 0.14);
  border: 1px solid rgba(255, 190, 90, 0.3);
  border-radius: 999px;
  padding: 0 5px;
}
.pc-loop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 4px;
  font-size: 12px;
}
.pc-loop-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-loop-meta {
  font-size: 10.5px;
  color: #7e97bb;
}
.pc-foot {
  margin-top: 10px;
  text-align: right;
}
.pc-foot a {
  font-size: 12px;
  color: #9fd8ff;
  border: 1px solid rgba(84, 156, 226, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}

/* ---------- 自适应 ---------- */
@media (max-width: 1600px) {
  :root {
    --side-w: 352px;
  }
  .ov-value {
    font-size: 21px;
  }
  /* 窄屏下再收一点圆环，保证三行小框里的百分比完整显示 */
  .chart-host.ring {
    flex: 0 0 106px;
  }
}
@media (max-width: 1280px) {
  :root {
    --side-w: 310px;
  }
  .title-text h1 {
    font-size: 17px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .chart-host.ring {
    flex: 0 0 92px;
  }
}

/* ICP 备案号：大屏底部右侧，弱化显示不干扰数据 */
.beian-dash {
  margin-left: 14px;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: rgba(190, 216, 240, 0.45);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.beian-dash:hover { color: rgba(210, 232, 252, 0.85); }
