/* 全球实时地震地图 · 专题样式
   基于 _shared/thematic/thematic.css。
   配色取「震情」暖色：深石板底 + 火山橙 accent，与震级分级（蓝/黄/橙/红）呼应。 */

:root {
  --accent: #ff7847;
  --accent-light: #ffb38a;
  --accent-dark: #e0532a;
  --accent-soft: rgba(255, 120, 71, 0.14);
  --panel-solid: rgba(9, 15, 26, 0.94);
}

html, body, #map { background: #060b14; }

/* 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: #2a0f06; 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; }

/* ── 最近地震列表 ───────────────────────────────────────── */
.qlist { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; margin-bottom: 6px; }
.qrow {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 6px 8px; transition: background .16s, border-color .16s;
}
.qrow:hover { background: rgba(255,255,255,.05); }
.qrow:hover .mbadge { transform: scale(1.08); }
.mbadge {
  flex: 0 0 auto; min-width: 30px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 12px; font-weight: 700; color: #1a0b04;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 10px -2px currentColor;
  transition: transform .16s;
}
.qmeta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.qplace { font-size: 12.5px; color: #d8e4f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qtime { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.qempty { font-size: 11.5px; color: var(--dim); padding: 10px 4px; text-align: center; }

/* 详情卡顶部色条随选中震源切换 */
.detail { border-top: 3px solid var(--rc, var(--accent)); }
.detail > header small { color: var(--rc, var(--accent)); }
.detail > footer a { color: #ffb38a; text-decoration: none; border-bottom: 1px dotted rgba(255,179,138,.5); }

/* ── 图例 ─────────────────────────────────────────────────── */
.legend { gap: 5px 13px; max-width: 270px; }
.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: 12px; height: 12px; border-radius: 50%; display: block; flex: 0 0 auto; box-shadow: 0 0 8px -1px currentColor; }

/* 移动端 */
@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; }
  .qlist { max-height: 200px; }
}
