/* ==========================================================================
   ENSO 实时监测站 — abyssal ocean theme
   ========================================================================== */

:root {
  --bg-0: #04070f;
  --bg-1: #070d1c;
  --bg-2: #0b1428;
  --bg-3: #101c36;
  --panel: rgba(12, 22, 43, 0.72);
  --line: rgba(120, 160, 220, 0.14);
  --line-strong: rgba(120, 170, 235, 0.28);

  --ink-0: #eaf2ff;
  --ink-1: #a9bfdc;
  --ink-2: #6d85a8;
  --ink-3: #4a5f7d;

  --cold: #3b82f6;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --warm: #f59e0b;
  --hot: #f97316;
  --red: #ef4444;
  --crit: #fb7185;

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* No smooth scrolling: on a page this long, animated anchor jumps are worse
   UX than an instant jump, and they interfere with tooling verification. */

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

/* ambient ocean gradient + heat bloom driven by --heat (0..1) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%,
      rgba(239, 68, 68, calc(0.10 + var(--heat, 0.3) * 0.22)) 0%,
      transparent 62%),
    radial-gradient(900px 560px at 12% 0%,
      rgba(34, 211, 238, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 46%, #03060d 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(120, 170, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 235, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 10%, transparent 78%);
}

.wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.94), rgba(4, 8, 18, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}
.brand { display: flex; align-items: baseline; gap: 11px; min-width: 0; }
.brand-mark {
  font: 700 19px/1 var(--sans);
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, #67e8f9, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-sp { flex: 1; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 7px;
  transition: color 0.16s, background 0.16s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink-0); background: rgba(120, 170, 235, 0.09); }

/* live status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 20, 40, 0.7);
  font-size: 12.5px;
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
}
.pill[data-state="live"] .dot { background: #34d399; animation: pulse 2.2s infinite; }
.pill[data-state="snapshot"] .dot { background: var(--warm); }
.pill[data-state="error"] .dot { background: var(--red); }
.pill[data-state="loading"] .dot { background: var(--cyan); animation: pulse 1.1s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.pill b { font-weight: 600; color: var(--ink-0); font-family: var(--mono); font-size: 11.5px; }
.pill span { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 35, 65, 0.6);
  color: var(--ink-1); font-size: 12.5px; font-family: var(--sans);
  cursor: pointer; transition: 0.16s; white-space: nowrap;
}
.btn:hover { background: rgba(30, 55, 95, 0.8); color: var(--ink-0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 52px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--crit); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--warm));
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  /* A CJK glyph is ~2ch wide, so a 13-character headline needs ~26ch.
     The previous 20ch cap forced 「诺」 onto its own line. */
  max-width: 28ch;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  /* never split the highlighted phrase across lines */
  white-space: nowrap;
  background: linear-gradient(92deg, #fbbf24 0%, #f97316 45%, #ef4444 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin: 0; max-width: 68ch;
  font-size: 15.5px; line-height: 1.75; color: var(--ink-1);
}
.lede b { color: var(--ink-0); font-weight: 600; }

/* ---------- panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.panel-h {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.panel-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.panel-h .tag {
  font-size: 10.5px; color: var(--ink-2); font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px;
}
.panel-sub { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 16px; line-height: 1.6; }

section { margin-bottom: 26px; scroll-margin-top: 78px; }
.sec-h {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-2);
}
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- hero stat row ---------- */
.stats {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 7px;
}
.stat-k { font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.05em; }
.stat-v {
  font: 700 34px/1 var(--mono);
  letter-spacing: -0.02em;
}
.stat-u { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 3px; }
.stat-n { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: auto; }

/* ---------- threshold scale ---------- */
.scale { margin-top: 6px; }
.scale-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: #0a1428;
}
.scale-seg { height: 100%; }
.scale-row {
  position: relative;
  height: 52px;
  margin-top: 6px;
}
.scale-pin {
  position: absolute; top: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  white-space: nowrap;
}
/* stagger the dense right-hand pins so labels never overlap */
.scale-pin[data-lv="1"] { top: 20px; }
.scale-pin i {
  width: 2px; height: 7px; background: var(--ink-0); border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}
.scale-pin[data-lv="1"] i { display: none; }
.scale-pin[data-lv="1"]::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 1px; height: 9px; background: rgba(200, 220, 245, 0.5);
}
.scale-pin b { font: 600 11.5px/1 var(--mono); }
.scale-pin span { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; }
.scale-end {
  position: absolute; bottom: -2px;
  font: 500 10.5px/1 var(--mono); color: var(--ink-3);
}
.scale-end.l { left: 0; }
.scale-end.r { right: 0; }

/* ---------- generic chart shell ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--mono); fill: var(--ink-2); }
.axis-l { stroke: rgba(120, 160, 220, 0.14); stroke-width: 1; }
.axis-t { font-size: 10.5px; fill: var(--ink-3); }
.grid-l { stroke: rgba(120, 160, 220, 0.09); stroke-width: 1; stroke-dasharray: 3 4; }

/* ---------- regional grid ---------- */
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.region {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 18px 13px;
  display: flex; flex-direction: column; gap: 3px;
  position: relative; overflow: hidden;
}
.region::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent, var(--cyan));
  opacity: 0.85;
}
.region-n { font-size: 12px; color: var(--ink-1); font-weight: 600; }
.region-box { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }
.region-v {
  font: 700 29px/1.1 var(--mono); margin: 7px 0 1px;
  color: var(--accent, var(--cyan));
  letter-spacing: -0.02em;
}
.region-cpc {
  font: 500 11px/1 var(--mono); color: var(--ink-2);
  padding: 5px 0 3px;
}
.region-cpc em { font-style: normal; color: var(--ink-3); }

/* ---------- probability bars ---------- */
.prob-list { display: flex; flex-direction: column; gap: 15px; }
.prob-row { display: grid; grid-template-columns: 92px 1fr 58px; gap: 13px; align-items: center; }
.prob-l { font-size: 12.5px; color: var(--ink-1); }
.prob-l b { display: block; color: var(--ink-0); font-weight: 600; }
.prob-l span { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.prob-track {
  height: 26px; border-radius: 7px; background: rgba(10, 20, 40, 0.85);
  border: 1px solid var(--line); overflow: hidden; position: relative;
}
.prob-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.55), var(--red));
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.prob-v {
  font: 700 17px/1 var(--mono); text-align: right; color: var(--crit);
}

/* ---------- ranking table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left; padding: 8px 10px; color: var(--ink-2);
  font-weight: 500; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-1); }
.tbl td.num { font-family: var(--mono); text-align: right; font-weight: 600; }
.tbl tr.cur td { background: rgba(239, 68, 68, 0.11); color: var(--ink-0); }
.tbl tr.cur td.num { color: var(--crit); }
.tbl .rk { font-family: var(--mono); color: var(--ink-3); width: 40px; }
.tbl .ev { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* two-column section that must not stretch panels into dead space */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- indicator grid ---------- */
.ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.ind-i {
  background: rgba(10, 19, 38, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 16px;
}
.ind-i h4 {
  margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-1);
  display: flex; align-items: center; gap: 7px;
}
.ind-i h4::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--crit);
  box-shadow: 0 0 8px var(--crit);
}
.ind-i p { margin: 0; font-size: 12.5px; line-height: 1.68; color: var(--ink-2); }
.ind-i p b { color: var(--ink-0); font-weight: 600; }

/* ---------- advisory ---------- */
.advisory {
  font-size: 14px; line-height: 1.85; color: var(--ink-1);
  border-left: 2px solid var(--warm);
  padding: 2px 0 2px 18px; margin: 0;
}
.advisory b { color: var(--ink-0); }
.advisory-meta {
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px;
  font-size: 12px; color: var(--ink-2);
}
.advisory-meta b { color: var(--ink-0); font-family: var(--mono); }

/* ---------- provenance ---------- */
.prov { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 13px; }
.prov-i {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; background: rgba(10, 19, 38, 0.5);
}
.prov-i h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-0); font-weight: 600; }
.prov-i p { margin: 0 0 7px; font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }
.prov-i code {
  font-family: var(--mono); font-size: 10.5px; color: var(--cyan);
  word-break: break-all; line-height: 1.55;
}
.prov-i a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(34, 211, 238, 0.4); }
.prov-i a:hover { color: #67e8f9; }

/* ---------- terms ---------- */
.ind-i .kv-k { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-bottom: 6px; }

/* ---------- impact matrix ----------
   Card layout is the ONLY layout. An earlier 6-column grid version collapsed
   the 传导链 column to one glyph per line at ~1000px because CJK text offers
   almost no break opportunities. Cards cannot collapse, were visually verified,
   and stay readable from phone to ultrawide (line length capped via max-width). */
.mx { display: flex; flex-direction: column; gap: 10px; }
.mx-h { display: none; }

.mx-r {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "sec  name"
    "sec  chain"
    "lag  src";
  gap: 7px 13px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 19, 38, 0.5);
  transition: border-color 0.15s, background 0.15s;
}
.mx-r:hover { border-color: var(--line-strong); background: rgba(20, 36, 66, 0.55); }
.mx-sec {
  grid-area: sec; align-self: start; min-width: 0;
  font-size: 11px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 0; text-align: center;
}
.mx-name {
  grid-area: name; min-width: 0;
  font-size: 13px; color: var(--ink-0); font-weight: 600; line-height: 1.5;
  overflow-wrap: anywhere;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.mx-chain {
  grid-area: chain; min-width: 0;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
  overflow-wrap: anywhere; word-break: break-word;
  max-width: 76ch;
}
.mx-lag {
  grid-area: lag; min-width: 0; align-self: center;
  font-size: 11.5px; color: var(--ink-1); font-family: var(--mono); white-space: nowrap;
}
.mx-src {
  grid-area: src; min-width: 0; text-align: right;
  font-size: 10.5px; color: var(--ink-3); line-height: 1.55; overflow-wrap: anywhere;
}
.mx-dir { display: none; }
.dotd {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none;
}
.dotd.neg { background: var(--red); box-shadow: 0 0 9px rgba(239, 68, 68, 0.65); }
.dotd.pos { background: var(--teal); box-shadow: 0 0 9px rgba(20, 184, 166, 0.65); }
.mx-key {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  margin-top: 14px; font-size: 11.5px; color: var(--ink-2);
}
.mx-key span { display: inline-flex; align-items: center; gap: 7px; }
.mx-key .dotd { margin-top: 0; }
.mx-key-note { color: var(--ink-3); }

/* ---------- global chain ---------- */
.gx { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 12px; }
.gx-i {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; background: rgba(10, 19, 38, 0.5);
  border-left: 3px solid var(--accent, var(--cyan));
}
.gx-n { font-size: 12.5px; color: var(--ink-0); font-weight: 600; margin-bottom: 7px; }
.gx-m {
  font: 700 18px/1.2 var(--mono); margin-bottom: 8px;
  color: var(--accent, var(--cyan)); letter-spacing: -0.01em;
}
.gx-d { font-size: 12px; color: var(--ink-2); line-height: 1.65; }
.gx-s { font-size: 10.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- chongqing ---------- */
.cq-load { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cq-l {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 18px; border-top: 2px solid var(--hot);
}
.cq-l-k { font-size: 11.5px; color: var(--ink-2); }
.cq-l-v { font: 700 27px/1.1 var(--mono); margin: 6px 0 4px; color: var(--hot); }
.cq-l-u { font-size: 12px; color: var(--ink-2); font-family: var(--mono); }
.cq-l-n { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; margin-top: 8px; }
.cq-l-s { font-size: 10px; color: var(--ink-3); margin-top: 6px; }

.mix { display: flex; flex-direction: column; gap: 13px; }
.mix-r .mix-t {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; margin-bottom: 6px;
}
.mix-r .mix-n { color: var(--ink-0); }
.mix-r .mix-v { font-family: var(--mono); color: var(--ink-1); font-size: 12px; }
.mix-bar {
  height: 22px; border-radius: 6px; overflow: hidden;
  background: rgba(10, 20, 40, 0.85); border: 1px solid var(--line);
  display: flex;
}
.mix-seg { height: 100%; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.mix-nt { font-size: 11px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }

.buff { display: flex; flex-direction: column; gap: 9px; }
.buff-r {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(10, 19, 38, 0.5);
}
.buff-k { font-size: 12px; color: var(--ink-2); }
.buff-v { font: 600 13px/1 var(--mono); color: var(--cyan); white-space: nowrap; }
.buff-n { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

.kv { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.kv-r {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px;
}
.kv-r:last-child { border-bottom: none; }
.kv-k { color: var(--ink-2); }
.kv-v { font-family: var(--mono); color: var(--ink-0); white-space: nowrap; }

/* ---------- action tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px 21px; display: flex; flex-direction: column;
}
.tier-h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.tier-c { font: 700 17px/1.2 var(--mono); color: var(--ink-0); letter-spacing: -0.01em; }
.tier-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 5px;
  border: 1px solid var(--line-strong); color: var(--ink-2);
}
.tier-nat { font-size: 11.5px; color: var(--ink-3); margin: 0 0 15px; line-height: 1.55; }
.ai { padding: 11px 0; border-top: 1px solid var(--line); }
.ai-t {
  font-size: 12.5px; color: var(--ink-0); font-weight: 600;
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.ai-ev {
  font-size: 10px; color: var(--cyan); font-family: var(--mono);
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 4px;
  padding: 1px 6px; white-space: nowrap; flex: none;
}
.ai-d { font-size: 12px; color: var(--ink-2); line-height: 1.68; margin-top: 6px; }
.ai-s { font-size: 10px; color: var(--ink-3); margin-top: 6px; }

.redl { margin: 0; padding-left: 20px; }
.redl li {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.78;
  margin-bottom: 7px;
}
.redl li::marker { color: var(--red); }

/* ---------- trade section ---------- */
.gap-safe { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gap-safe-i {
  border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 10px;
  padding: 9px 12px; background: rgba(20, 184, 166, 0.07); flex: 1 1 180px;
}
/* compact mineral strip reuses the same box but tighter */
.min-i {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  background: rgba(10, 19, 38, 0.5); flex: 1 1 120px; font-size: 12px; color: var(--ink-1);
}
.min-i b { font: 700 15px/1 var(--mono); display: block; margin-bottom: 3px; }
.min-i em { font-style: normal; display: block; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.gap-safe-i b { display: block; font-size: 13px; color: #5eead4; margin-bottom: 3px; }
.gap-safe-i span { font: 600 12px/1 var(--mono); color: var(--ink-1); display: block; margin-bottom: 4px; }
.gap-safe-i em { font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

.gap-list { display: flex; flex-direction: column; gap: 9px; }
.gap-i {
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) 74px minmax(0, 2.4fr);
  gap: 12px; align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(10, 19, 38, 0.5);
}
.gap-i:hover { border-color: var(--line-strong); }
.gap-k { min-width: 0; font-size: 13px; color: var(--ink-0); font-weight: 600; }
.gap-k small { display: block; font-weight: 400; font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }
.gap-dep { text-align: center; }
.gap-dep b { font: 700 16px/1 var(--mono); display: block; }
.gap-dep small { font-size: 9.5px; color: var(--ink-3); display: block; margin-top: 3px; }
.gap-note { min-width: 0; font-size: 12px; color: var(--ink-2); line-height: 1.65; overflow-wrap: anywhere; }
.rk-极高 { color: #f87171; } .rk-高 { color: #fb923c; }
.rk-中高 { color: #fbbf24; } .rk-中 { color: #fcd34d; } .rk-低 { color: var(--ink-3); }

.canal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 11px; }
.canal-i {
  border: 1px solid var(--line); border-left: 3px solid var(--hot);
  border-radius: 11px; padding: 13px 14px; background: rgba(10, 19, 38, 0.5);
}
.canal-k { font-size: 11.5px; color: var(--ink-2); margin-bottom: 5px; }
.canal-v { font: 700 15px/1.3 var(--mono); color: var(--hot); margin-bottom: 7px; overflow-wrap: anywhere; }
.canal-n { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }

.cq-ports { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; margin-bottom: 16px; }
.cq-p {
  border: 1px solid rgba(20, 184, 166, 0.28); border-radius: 11px;
  padding: 12px 13px; background: rgba(20, 184, 166, 0.06);
}
.cq-p-k { font-size: 11px; color: var(--ink-2); }
.cq-p-v { font: 700 16px/1.3 var(--mono); color: #5eead4; margin: 5px 0 5px; overflow-wrap: anywhere; }
.cq-p-n { font-size: 11px; color: var(--ink-3); line-height: 1.5; }

.levers { display: flex; flex-direction: column; gap: 11px; }
.lever {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px; background: rgba(10, 19, 38, 0.5);
}
.lever-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.lever-k { font-size: 13px; color: var(--ink-0); font-weight: 600; }
.lever-v {
  font: 700 13px/1 var(--mono); color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.3); border-radius: 6px; padding: 4px 9px;
  white-space: nowrap;
}
.lever-d { font-size: 12.5px; color: var(--ink-2); line-height: 1.72; max-width: 84ch; }
.lever-d b { color: var(--ink-0); font-weight: 600; }
.lever-s { font-size: 10px; color: var(--ink-3); margin-top: 7px; }

.cluster {
  margin-top: 14px; padding: 14px 15px;
  border: 1px dashed rgba(148, 163, 184, 0.3); border-radius: 12px;
}
.cluster p { margin: 0 0 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.cluster p:last-child { margin-bottom: 0; }
.cluster p b { color: var(--ink-0); }

.playbook { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.pb {
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  padding: 19px 20px; display: flex; flex-direction: column;
}
.pb-w {
  font-size: 13.5px; color: var(--ink-0); font-weight: 600;
  padding-bottom: 11px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.pb-i { padding: 11px 0; border-bottom: 1px solid var(--line); }
.pb-i:last-child { border-bottom: none; }
.pb-t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pb-t span { font-size: 12.5px; color: var(--ink-0); font-weight: 600; }
.pb-ev {
  font-size: 10px; font-family: var(--mono); flex: none;
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px;
  color: var(--cyan); white-space: nowrap;
}
.pb-d { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin-top: 6px; }
.pb-d b { color: var(--ink-0); font-weight: 600; }

@media (max-width: 700px) {
  .gap-i { grid-template-columns: 1fr 64px; grid-template-areas: "k dep" "note note"; }
  .gap-k { grid-area: k; } .gap-dep { grid-area: dep; } .gap-note { grid-area: note; }
}

/* ---------- note / footer ---------- */
.note {
  font-size: 11.5px; line-height: 1.7; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 44px; padding: 26px 0 40px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.8;
}
footer a { color: var(--ink-2); }

/* ---------- tooltip ---------- */
#tip {
  position: fixed; z-index: 90; pointer-events: none;
  background: rgba(8, 16, 32, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 9px 12px;
  font-size: 12px; line-height: 1.6; color: var(--ink-0);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.12s;
  max-width: 280px;
}
#tip[data-show="1"] { opacity: 1; }
#tip .t-t { font-family: var(--mono); font-weight: 600; margin-bottom: 3px; }
#tip .t-r { color: var(--ink-1); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > .stat:first-child { grid-column: 1 / -1; }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .nav { display: none; }
  .stats { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 22px; }
  .panel { padding: 16px 15px; }
  .prob-row { grid-template-columns: 78px 1fr 50px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
