/* ===== 数据大屏 · 深色科技风 ===== */
:root {
  --bg: #060b1a;
  --panel: rgba(16, 26, 50, 0.72);
  --panel-border: rgba(64, 158, 255, 0.22);
  --accent: #3b82f6;
  --accent2: #22d3ee;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --text: #e8f1ff;
  --muted: #7d93b8;
  /* 统一间距节奏 */
  --gap: 10px;
  --row-h: 30px;
  --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: hidden; }

.screen {
  height: 100vh; width: 100vw; padding: 10px 14px 8px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(1000px 500px at 90% 110%, rgba(34,211,238,.12), transparent 60%),
    var(--bg);
}

/* 顶部 */
.sc-header { display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px 8px; border-bottom: 1px solid var(--panel-border); flex-shrink: 0; }
.sc-title { display: flex; align-items: baseline; gap: 14px; }
.sc-logo { font-size: 25px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-sub { font-size: 14px; color: var(--muted); letter-spacing: 4px; }
.sc-topright { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.sc-clock { font-size: 21px; font-weight: 700; color: var(--accent2); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.sc-live { display: flex; align-items: center; gap: 6px; }
.sc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.sc-exit { background: rgba(59,130,246,.15); border: 1px solid var(--panel-border); color: var(--text);
  padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.sc-exit:hover { background: rgba(59,130,246,.3); }

/* 三列主体 */
.sc-body { flex: 1; display: grid; grid-template-columns: 23% 1fr 23%; gap: var(--gap); min-height: 0; }
.sc-col { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.sc-flex1 { flex: 1 1 0; min-height: 0; }
.sc-flex2 { flex: 1.25 1 0; min-height: 0; }

/* 面板 */
.sc-panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--r);
  padding: 10px 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.sc-panel::before { content: ''; position: absolute; top: 0; left: 12px; width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); }
.sc-panel h3 { font-size: 14px; font-weight: 600; color: #a9c4ea; margin-bottom: 8px; flex-shrink: 0;
  letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.sc-panel h3::before { content: ''; width: 3px; height: 13px; background: var(--accent2); border-radius: 2px; }

.sc-chart { flex: 1; min-height: 0; }
.sc-chart-lg { width: 100%; height: 100%; }

/* KPI 行 */
.sc-kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc-kpi-row + .sc-kpi-row { margin-top: 6px; }
.sc-kpi { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.15);
  border-radius: 8px; padding: 7px 8px; text-align: center; }
.sc-kpi b { display: block; font-size: 21px; font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; line-height: 1.15; }
.sc-kpi span { font-size: 11px; color: var(--muted); }
.sc-kpi-row2 .sc-kpi { background: rgba(34,211,238,.06); border-color: rgba(34,211,238,.14); }
.sc-kpi-row2 .sc-kpi b { color: #8ee7f5; font-size: 18px; }

/* 统一列表行（站点 / 待办 / 里程碑 共用一个节奏） */
.sc-sites { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.sc-site { display: flex; align-items: center; gap: 8px; font-size: 13px;
  height: var(--row-h); padding: 0 6px; border-radius: 6px; flex-shrink: 0; }
.sc-site:nth-child(odd) { background: rgba(59,130,246,.045); }
.sc-site .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-site .dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.sc-site .dot.off { background: var(--red); box-shadow: 0 0 6px var(--red); }
.sc-site .nm { flex: 1; color: #c7d8f2; }
.sc-site .st { font-size: 12px; color: var(--muted); }

/* 中间轮播 */
.sc-carousel-tabs { display: flex; gap: 8px; flex-shrink: 0; }
.car-tab { font-size: 14px; color: var(--muted); padding: 5px 14px; border-radius: 6px;
  cursor: pointer; border: 1px solid transparent; }
.car-tab.active { color: var(--accent2); background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); }
.sc-carousel { flex: 1; position: relative; min-height: 0; background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: var(--r); overflow: hidden; }
.car-slide { position: absolute; inset: 0; padding: 10px 12px; opacity: 0; visibility: hidden; transition: opacity .5s; }
.car-slide.active { opacity: 1; visibility: visible; }

/* 任务推进面板 */
.sc-taskpanel { width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.sc-tstat { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; flex-shrink: 0; }
.sc-tstat .box { background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.18);
  border-radius: 10px; padding: 12px; text-align: center; }
.sc-tstat .box b { font-size: 28px; color: var(--accent2); font-weight: 800; }
.sc-tstat .box span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.sc-tlist { flex: 1; overflow-y: auto; min-height: 0; }
.sc-trow { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px;
  font-size: 14px; border-radius: 6px; flex-shrink: 0; }
.sc-trow:nth-child(odd) { background: rgba(59,130,246,.05); }
.sc-trow .chk { color: var(--accent2); }
.sc-trow.done { opacity: .45; }
.sc-trow.done .tx { text-decoration: line-through; }
.sc-trow .tx { flex: 1; color: #c7d8f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-trow .pj { font-size: 12px; color: var(--accent); background: rgba(59,130,246,.12);
  padding: 1px 8px; border-radius: 12px; flex-shrink: 0; }

/* 任务环 */
.sc-taskrings { display: flex; justify-content: space-around; gap: 6px; flex: 1; align-items: center; }
.sc-taskring { text-align: center; flex: 1; }
.sc-taskring .ring { position: relative; width: 70px; height: 70px; margin: 0 auto; }
.sc-taskring .ring svg { transform: rotate(-90deg); }
.sc-taskring .ring .num { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; flex-direction: column; font-size: 16px; font-weight: 700; color: var(--accent2); }
.sc-taskring .ring .num small { font-size: 10px; color: var(--muted); font-weight: 400; }
.sc-taskring .lb { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 今日待办（复用统一行高） */
.sc-todo { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.sc-todo-item { display: flex; align-items: center; gap: 8px; font-size: 13px;
  height: 34px; padding: 0 8px; border-radius: 6px; flex-shrink: 0; }
.sc-todo-item:nth-child(odd) { background: rgba(59,130,246,.05); }
.sc-todo-item .prio { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sc-todo-item .prio.high { background: var(--red); }
.sc-todo-item .prio.normal { background: var(--orange); }
.sc-todo-item .prio.low { background: var(--muted); }
.sc-todo-item .tx { flex: 1; color: #c7d8f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-todo-item .pj { color: var(--accent); font-size: 12px; flex-shrink: 0; }

/* 里程碑 */
.sc-milestones { display: flex; flex-direction: column; overflow-y: auto; flex: 1; gap: 6px; }
.sc-ms { display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 8px 10px; border-left: 2px solid var(--accent); background: rgba(59,130,246,.07); border-radius: 4px; flex-shrink: 0; }
.sc-ms .t { flex: 1; color: #c7d8f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ms .d { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.sc-ms .left { font-size: 13px; font-weight: 700; color: var(--orange); flex-shrink: 0; min-width: 38px; text-align: right; }
.sc-ms .left.urgent { color: var(--red); }

/* 底部滚动条 */
.sc-footer { height: 30px; border-top: 1px solid var(--panel-border); overflow: hidden;
  display: flex; align-items: center; flex-shrink: 0; }
.sc-marquee { white-space: nowrap; font-size: 14px; color: #9fb8dd; animation: marquee 40s linear infinite; }
.sc-marquee span { margin-right: 40px; }
.sc-marquee b { color: var(--accent2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 滚动条美化 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,.35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
