/* 全球洋流运动地图 · 专题样式
   基于 _shared/thematic/thematic.css。
   配色：深海蓝黑底；暖流红 / 寒流蓝是信息色，UI accent 取青绿（与两者拉开），
   上升流渔场取金黄。 */

:root {
  --accent: #5eead4;
  --accent-light: #99f6e4;
  --accent-dark: #2dd4bf;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --panel-solid: rgba(6, 15, 24, 0.94);
}

html, body, #map { background: #050f1a; }

/* 流动条纹 overlay：粒子动画走独立 canvas，不进 MapLibre 图层。
   MapLibre 只画静态线，每帧 repaint 开销归零；本层 pointer-events:none 不吃交互。
   ⚠️ canvas 是 replaced element：inset:0 不会拉伸它（会用 300×150 固有尺寸），
   必须显式写 width/height:100%（div 的 #map 没这个问题）。 */
#fx {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none; display: block;
}

/* 4 项统计一行放下 */
.facts { grid-template-columns: repeat(4, 1fr); }
.facts > span + span { padding-left: 8px; }
.facts .v { font-size: 12px; }
.facts em { font-size: 17px; }

.hint-n { font-size: 10.5px; color: var(--dim); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ── 分段按钮（类型 / 季节 / 速度） ────────────────────────── */
.seg { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px; border-radius: 8px; background: rgba(255,255,255,.05); margin-bottom: 8px; }
.seg button {
  flex: 1 1 auto; font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
  background: transparent; border: 0; border-radius: 6px; padding: 6px 5px;
  transition: background .16s, color .16s; white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent); color: #04211d; font-weight: 700; }

/* ── 大洋筛选 chips ───────────────────────────────────────── */
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.chips button {
  font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 10px;
  transition: background .16s, color .16s, border-color .16s;
  font-variant-numeric: tabular-nums;
}
.chips button:hover { color: var(--text); }
.chips button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ── 图例：暖流 / 寒流 / 上升流 ───────────────────────────── */
.legend { gap: 5px 13px; max-width: 240px; }
.legend .lg-cap { font-size: 10px; color: var(--dim); letter-spacing: .04em; width: 100%; margin-bottom: 1px; }
.legend .lg-row { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend .lg-row i { width: 14px; height: 4px; border-radius: 2px; display: block; flex: 0 0 auto; }
.legend .lg-row s { width: 10px; height: 10px; border-radius: 50%; display: block; text-decoration: none; flex: 0 0 auto; }

/* 详情卡顶部色条随选中对象切换 */
.detail { border-top: 3px solid var(--rc, var(--accent)); }
.detail > header small { color: var(--rc, var(--accent)); }

/* 移动端 */
@media (max-width: 900px) {
  .seg button { padding: 7px 5px; font-size: 11px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts em { font-size: 15px; }
  .legend { max-width: none; }
  .panel .row { padding: 9px 0; }
}
