/* 今日屏：复用 style.css 的外壳与 token，这里定义版面层次、字号与彩色分工 */

/* ── 版面：结论 → 主图 → 明细，三段有明确主次 ───────────── */
.board { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }

/* 四个关键数：等分、大字号、各自一个强调色 */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 0 0 auto; }
.sum {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px; background: #0d0d11;
  padding: 12px 14px 12px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.sum::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.sum .s-label { font-size: 13px; color: #b9b6b0; letter-spacing: .02em; }
.sum .s-value {
  font-family: var(--mono); font-size: clamp(26px, 2.2vw, 36px); font-weight: 600;
  line-height: 1.1; color: var(--c); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.sum .s-note { font-size: 12px; color: #8b8884; }

/* 主图区：左宽右窄，占剩余高度的一半以上 */
.split { display: grid; grid-template-columns: 1.62fr 1fr; gap: 10px; flex: 1.25 1 0; min-height: 0; }

/* 明细区：四块等宽，占其余高度 */
.details { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; flex: .92 1 0; min-height: 0; }

/* ── 面板与标题字号（覆盖 style.css 的小字号） ─────────── */
.panel { padding: 11px 13px; background: #0d0d11; }
.phead { margin-bottom: 9px; }
.phead .pname b { font-size: 15px; }
.phead .pname em { font-size: 9.5px; }
.pnote { font-size: 12.5px; color: #b9b6b0; }
.picon { width: 22px; height: 22px; font-size: 11px; }

/* 分时图例 */
.legend2 { font-size: 12px; color: #b9b6b0; gap: 16px; margin-top: 7px; }
.legend2 .lk { width: 14px; height: 3px; }
.legend-extra { margin-left: auto; font-family: var(--mono); color: #8b8884; }

/* 剖面列表：字号与行距放大 */
.cross-key { font-size: 12.5px; margin-top: 9px; }
.wlist .srow { font-size: 13px; }
.wlist .srow .sname { width: 68px; color: #b9b6b0; }
.wlist .srow .sval { color: var(--ink); }
.wlist .srow .spct { color: #8b8884; }

/* ── 明细表：字号放大、行等高、数值用主色 ───────────────── */
.table { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.table .thead {
  display: flex; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: #8b8884; flex: 0 0 auto;
}
.table .trow {
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
  font-size: 14.5px; color: #d9d6d1; flex: 0 0 auto;
}
.table .trow + .trow { border-top: 1px solid var(--line-soft); }
.table .c-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .c-num {
  width: 68px; text-align: right; font-family: var(--mono); font-size: 15px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.table .c-pct { width: 64px; text-align: right; font-family: var(--mono); font-size: 12.5px; color: #8b8884; }

/* 订单状态：条形用彩色区分状态 */
.table .trow .bar { flex: 0 0 62px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.table .trow .bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); }

/* 今日指标：2×3 大数字 */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; flex: 1 1 auto; min-height: 0; align-content: space-between; }
.facts .f { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.facts .f span { font-size: 12px; color: #8b8884; }
.facts .f b {
  font-family: var(--mono); font-size: clamp(17px, 1.4vw, 22px); font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.facts .f b.good { color: var(--green); }
.facts .f b.bad { color: var(--pink); }

/* ── 告警弹窗 ─────────────────────────────── */
.alert {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(2px);
}
.alert[hidden] { display: none; }
.alert-box {
  width: min(460px, calc(100vw - 48px)); padding: 20px 22px 16px;
  border: 1px solid rgba(255, 92, 146, .45); border-radius: 12px;
  background: #14141a; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.alert-box h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--pink); }
.alert-box p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: #b9b6b0; }
.alert-box b { color: var(--ink); font-weight: 500; font-family: var(--mono); }
.alert-actions { display: flex; justify-content: flex-end; }
.alert-actions button {
  appearance: none; border: 1px solid var(--line); border-radius: 7px;
  background: rgba(255, 255, 255, .06); color: var(--ink);
  padding: 7px 18px; font-size: 13.5px; cursor: pointer;
}
.alert-actions button:hover { background: rgba(255, 255, 255, .1); }
.alert-actions button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ── 窄屏 ─────────────────────────────────── */
@media (max-width: 1280px) {
  .details { grid-template-columns: repeat(3, 1fr); }
  .details { flex: 1.2 1 0; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  body { height: auto; min-height: 100vh; overflow: auto; }
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .hero-center { text-align: left; }
  .big-sub { justify-content: flex-start; }
  .hero-right { grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 26px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; flex: 0 0 auto; }
  .split > .panel { min-height: 260px; }
  .details { grid-template-columns: 1fr; flex: 0 0 auto; }
  .details > .panel { min-height: 220px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

/* 越界带更淡，压在色段上也不挡文字 */
.over-band {
  background: repeating-linear-gradient(135deg, rgba(255, 92, 146, .22) 0 1px, transparent 1px 7px),
              rgba(255, 92, 146, .04);
  box-shadow: inset 1px 0 0 rgba(255, 92, 146, .45);
}
