/* ============ 展示大屏 · 暗色科技主题（1920×1080 设计坐标系） ============ */
/* 调色板: dataviz 已验证暗色档（surface #1a1a19 上的系列色与状态色） */
:root {
  --bg-0: #050a18;
  --bg-1: #0a1528;
  --bg-2: #0d1b33;
  --panel: rgba(16, 34, 66, 0.42);
  --panel-border: rgba(72, 156, 255, 0.22);
  --glow: rgba(56, 135, 229, 0.55);
  --ink-1: #ffffff;
  --ink-2: #c3c2b7;
  --ink-3: #898781;
  --gridline: #2c2c2a;
  --baseline: #383835;
  --s1: #3987e5;  /* 蓝 蜂奥 */
  --s2: #199e70;  /* 青 鸿祺 */
  --s3: #c98500;  /* 黄 */
  --s4: #9085e9;  /* 紫 */
  --s5: #e66767;  /* 红 */
  --s6: #d55181;  /* 品红 */
  --good: #0ca30c;
  --seq-100: #104281; --seq-250: #184f95; --seq-400: #3987e5; --seq-600: #5598e7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }

/* 等比缩放舞台: 设计 1920×1080, 超出屏幕黑边 */
/* 初始 transform 为 CSS 兜底(JS 未执行时也能居中显示), show.js fit() 会立即校准 */
.stage {
  position: fixed; left: 50%; top: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(0.5);
}
.screen {
  width: 1920px; height: 1080px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 18% -8%, rgba(38, 90, 170, 0.28), transparent 60%),
    radial-gradient(ellipse 900px 520px at 85% -6%, rgba(22, 140, 110, 0.16), transparent 60%),
    radial-gradient(ellipse 1200px 700px at 50% 118%, rgba(30, 70, 140, 0.18), transparent 65%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 55%, var(--bg-2) 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink-1);
}
/* 背景网格（缓慢流动） */
.screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 150, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 150, 240, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 85%);
  animation: gridflow 26s linear infinite;
}
@keyframes gridflow { from { background-position: 0 0; } to { background-position: 48px 96px; } }
/* 扫描光束 */
.screen::after {
  content: ""; position: absolute; top: -40px; bottom: -40px; width: 240px; left: -320px;
  background: linear-gradient(100deg, transparent, rgba(130, 190, 255, 0.09), transparent);
  transform: skewX(-12deg);
  animation: beam 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes beam {
  0% { left: -320px; }
  60%, 100% { left: 2200px; }
}
/* 上升粒子 */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particles span {
  position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(110, 170, 255, 0.55);
  box-shadow: 0 0 8px rgba(80, 150, 255, 0.7);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-1120px); opacity: 0; }
}

/* ============ 顶栏 ============ */
.top {
  height: 88px; padding: 0 36px; flex: 0 0 auto;
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(20, 48, 96, 0.5), rgba(10, 20, 44, 0.2) 55%, rgba(16, 56, 90, 0.42));
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--s1), #1c5cab);
  box-shadow: 0 0 22px var(--glow);
  position: relative;
  animation: logoglow 3.2s ease-in-out infinite;
}
@keyframes logoglow {
  0%, 100% { box-shadow: 0 0 16px var(--glow); }
  50% { box-shadow: 0 0 34px rgba(90, 170, 255, 0.9); }
}
.logo-mark::after {
  content: ""; position: absolute; inset: 13px;
  border: 2.5px solid #fff; border-radius: 8px; opacity: 0.92;
}
.title {
  font-size: 27px; font-weight: 700; letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(90, 160, 255, 0.45);
}
.subtitle { font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.12em; margin-top: 2px; }
.slogan {
  margin-left: auto; font-size: 15px; color: var(--ink-2); letter-spacing: 0.28em;
  padding: 8px 22px; border: 1px solid var(--panel-border); border-radius: 999px;
  background: rgba(20, 46, 92, 0.35);
}
.clock { text-align: right; min-width: 200px; }
.clock .time {
  font-size: 30px; font-weight: 700; letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums; color: #dceaff;
  text-shadow: 0 0 16px var(--glow);
}
.clock .date { font-size: 13px; color: var(--ink-2); margin-top: 2px; letter-spacing: 0.08em; }

/* ============ 主体三列 ============ */
.main {
  flex: 1; min-height: 0; display: flex; gap: 16px; padding: 16px 20px;
}
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col.left { width: 400px; }
.col.right { width: 400px; }
.col.center { flex: 1; }
/* 左右列: 首块按内容定高, 其余面板均分剩余高度（否则 flex:1 图表塌陷为 0） */
.col.left .panel, .col.right .panel { flex: 1; min-height: 0; }
.col.left .panel:first-child, .col.right .panel:first-child { flex: 0 0 auto; }

/* 面板卡片 */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px 16px 12px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 40px rgba(56, 135, 229, 0.05);
  display: flex; flex-direction: column;
  animation: rise 0.7s ease both, breathe 5.5s ease-in-out 1.5s infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: inset 0 0 40px rgba(56, 135, 229, 0.05), 0 0 6px rgba(56, 135, 229, 0.08); }
  50% { box-shadow: inset 0 0 46px rgba(56, 135, 229, 0.1), 0 0 18px rgba(56, 135, 229, 0.22); }
}
.panel:nth-child(2) { animation-delay: 0.08s; }
.panel:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 四角装饰 */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.panel::before { left: -1px; top: -1px; border-left: 2px solid var(--s1); border-top: 2px solid var(--s1); border-radius: 12px 0 0 0; }
.panel::after { right: -1px; bottom: -1px; border-right: 2px solid var(--s1); border-bottom: 2px solid var(--s1); border-radius: 0 0 12px 0; }
.panel h2 {
  font-size: 15.5px; font-weight: 650; letter-spacing: 0.1em; color: var(--ink-1);
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px; flex: 0 0 auto;
}
.panel h2 i {
  width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #6db4ff, var(--s1));
  box-shadow: 0 0 8px var(--glow);
}
.panel h2 .right-note { margin-left: auto; font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em; }
.panel .chart { flex: 1; min-height: 0; }
.panel.tall { flex: 1; }
/* 内容定高的面板里的图表需要显式高度 */
#cSopCat { height: 190px; flex: 0 0 auto; }

/* ============ 左列: 资产 ============ */
.hero { text-align: center; padding: 6px 0 10px; }
.hero-num {
  font-size: 62px; font-weight: 700; line-height: 1.05; color: #fff;
  text-shadow: 0 0 26px var(--glow);
}
.hero-label { font-size: 13px; color: var(--ink-2); letter-spacing: 0.18em; margin-top: 2px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini {
  border: 1px solid rgba(90, 150, 240, 0.14); border-radius: 9px;
  background: rgba(12, 26, 54, 0.5); padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.mini .mv { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; color: #dceaff; }
.mini .ml { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }

.gauge-sub { text-align: center; font-size: 12.5px; color: var(--ink-2); margin-top: -6px; }
.gauge-sub b { color: #9ecbff; }

/* ============ 中列 KPI ============ */
.kpi-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi {
  position: relative; text-align: center;
  border: 1px solid var(--panel-border); border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 48, 96, 0.5), rgba(10, 22, 46, 0.55));
  padding: 16px 6px 13px;
  animation: rise 0.7s ease both;
}
.kpi:nth-child(2) { animation-delay: 0.05s; } .kpi:nth-child(3) { animation-delay: 0.1s; }
.kpi:nth-child(4) { animation-delay: 0.15s; } .kpi:nth-child(5) { animation-delay: 0.2s; }
.kpi:nth-child(6) { animation-delay: 0.25s; }
.kpi::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--s1), transparent);
}
.kpi .kv {
  font-size: 40px; font-weight: 700; color: #fff;
  text-shadow: 0 0 22px var(--glow);
  animation: kvpulse 4.5s ease-in-out infinite;
}
@keyframes kvpulse {
  0%, 100% { text-shadow: 0 0 18px var(--glow); }
  50% { text-shadow: 0 0 34px rgba(110, 185, 255, 0.95); }
}
.kpi .kl { font-size: 13px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0.12em; }

/* ============ 右列 ============ */
.sop-nums { display: flex; gap: 12px; padding: 2px 0 8px; }
.sop-nums > div {
  flex: 1; text-align: center; border: 1px solid rgba(90, 150, 240, 0.14);
  border-radius: 9px; background: rgba(12, 26, 54, 0.5); padding: 8px 4px;
  display: flex; flex-direction: column; gap: 3px;
}
.sop-nums .big { font-size: 26px; font-weight: 700; color: #dceaff; }
.sop-nums .small { font-size: 11.5px; color: var(--ink-3); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-item {
  border: 1px solid rgba(90, 150, 240, 0.14); border-radius: 9px;
  background: rgba(12, 26, 54, 0.5); padding: 10px 8px;
  display: flex; flex-direction: column; gap: 3px; text-align: center;
}
.team-item .tv { font-size: 22px; font-weight: 700; color: #dceaff; }
.team-item .tl { font-size: 11.5px; color: var(--ink-3); }
.status-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0 2px; }
.status-hero {
  font-size: 34px; font-weight: 700; color: var(--good);
  text-shadow: 0 0 22px rgba(12, 163, 12, 0.55);
  display: flex; align-items: center; gap: 10px;
}
.status-hero .dot.big { width: 13px; height: 13px; box-shadow: 0 0 12px var(--good); margin: 0; }
.status-sub { font-size: 13px; color: var(--ink-2); letter-spacing: 0.1em; }
.status-line {
  display: flex; justify-content: center; gap: 22px;
  font-size: 13px; color: var(--ink-2); padding: 6px 0;
}
.status-line b { color: #fff; font-size: 15px; }
.live {
  text-align: center; font-size: 12px; color: var(--ink-3);
  border-top: 1px solid rgba(90, 150, 240, 0.14); padding-top: 8px; margin-top: 4px;
}
.live .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--good); margin-right: 6px;
  box-shadow: 0 0 8px var(--good);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live b { color: var(--ink-2); }

/* ============ 底栏（跑马灯） ============ */
.foot {
  height: 34px; flex: 0 0 auto;
  display: flex; align-items: center; overflow: hidden;
  font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.16em;
  border-top: 1px solid var(--panel-border);
  background: rgba(8, 16, 34, 0.6);
}
.foot .ticker { width: 100%; overflow: hidden; white-space: nowrap; }
.foot .ticker-inner {
  display: inline-flex; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.foot .ticker-copy { display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.foot-sep { color: var(--panel-border); }
