/* ============ 基础 ============ */
:root {
  --bg: #070a13;
  --bg-soft: #0b1120;
  --panel: rgba(18, 25, 43, 0.72);
  --panel-solid: #111828;
  --line: rgba(120, 145, 190, 0.16);
  --line-strong: rgba(130, 160, 210, 0.32);
  --text: #e9eefb;
  --muted: #8b99b6;
  --dim: #5f6c86;
  --accent: #5b8dff;
  --accent-2: #8b5bff;
  --hot: #ff5a5f;
  --warm: #ffb03a;
  --ok: #35d39a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* 修正：display 规则会覆盖 [hidden] 的默认 display:none */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(91, 141, 255, 0.16), transparent 62%),
    radial-gradient(800px 460px at 92% 4%, rgba(139, 91, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(53, 211, 154, 0.08), transparent 62%);
  pointer-events: none;
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 145, 190, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 145, 190, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

.bg-glow { display: none; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(91, 141, 255, 0.35); }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(130, 160, 210, 0.28) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(130, 160, 210, 0.26); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(130, 160, 210, 0.45); }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(7, 10, 19, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(91, 141, 255, 0.55));
}
.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(92deg, #fff 10%, #9fc0ff 55%, #c3a8ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text p { margin: 2px 0 0; font-size: 11.5px; color: var(--dim); letter-spacing: 0.3px; }

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--dim);
  pointer-events: none;
}
#search {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 39px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 40, 0.9);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
#search::placeholder { color: var(--dim); }
#search:focus {
  border-color: rgba(91, 141, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 141, 255, 0.14);
  background: rgba(20, 29, 50, 0.98);
}
#search::-webkit-search-cancel-button { display: none; }
.kbd-hint {
  position: absolute;
  right: 11px;
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.03);
}

.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim);
  flex: none;
}
.dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(53, 211, 154, 0.6); animation: pulse 2.4s infinite; }
.dot.warn { background: var(--warm); }
.dot.bad { background: var(--hot); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 211, 154, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(53, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 211, 154, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(91, 141, 255, 0.14);
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, transform 0.1s, border-color 0.16s;
}
.btn:hover { background: rgba(91, 141, 255, 0.24); border-color: rgba(91, 141, 255, 0.55); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn svg { width: 15px; height: 15px; }
.btn.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 布局 ============ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr);
  gap: 18px;
  padding: 20px clamp(16px, 3vw, 32px) 0;
  align-items: start;
}

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 27, 47, 0.86), rgba(12, 18, 33, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(120, 145, 190, 0.09);
}
.panel-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.6px;
  color: #b9c8e6;
  text-transform: uppercase;
}

.map-legend { display: flex; gap: 14px; font-size: 11px; color: var(--dim); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw-h4 { background: #7aa8ef; }
.sw-h2 { background: #3f5f96; }
.sw-h0 { background: #223152; border: 1px solid rgba(120, 145, 190, 0.3); }

/* ============ 地图 ============ */
.map-panel { display: flex; flex-direction: column; position: sticky; top: 78px; }
.map-stage {
  position: relative;
  padding: 4px 6px 6px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#map { width: 100%; height: 100%; max-height: 620px; display: block; touch-action: manipulation; }

/* 详情面板与地图同高，避免右侧大片空白 */
.detail-panel { max-height: none; }

.graticule line { stroke: rgba(120, 145, 190, 0.1); stroke-width: 0.5; }

#land path {
  fill: #223152;
  stroke: rgba(130, 170, 235, 0.45);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
/* 热度分级：越亮越热 */
#land path[data-heat="1"] { fill: #33496f; }
#land path[data-heat="2"] { fill: #3f5f96; }
#land path[data-heat="3"] { fill: #527fc4; }
#land path[data-heat="4"] { fill: #7aa8ef; stroke: rgba(255, 200, 130, 0.85); }
#land path.has-data { stroke: rgba(255, 196, 120, 0.5); }
#land path:hover,
#land path.active {
  fill: #a9c6ff !important;
  stroke: #ffffff;
  stroke-width: 1.2;
  filter: url(#glow);
}
#land path.active { fill: #c9a6ff !important; stroke: #ffffff; stroke-width: 1.3; }

.pin {
  cursor: pointer;
  transition: transform 0.16s ease;
}
.pin circle.core { fill: #ff6a5f; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1; }
.pin circle.halo { fill: rgba(255, 106, 95, 0.22); animation: pinPulse 2.6s ease-out infinite; transform-origin: center; }
.pin.hot circle.core { fill: #ffcf4d; }
.pin.hot circle.halo { fill: rgba(255, 207, 77, 0.2); }
.pin:hover circle.core { r: 5.5; }
@keyframes pinPulse {
  0% { r: 4; opacity: 0.85; }
  70% { r: 13; opacity: 0; }
  100% { r: 13; opacity: 0; }
}

.map-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(9, 14, 26, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.45;
  max-width: 260px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, calc(-100% - 12px));
}
.map-tip b { color: #fff; }
.map-tip span { color: var(--muted); }

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(9, 13, 24, 0.6);
  backdrop-filter: blur(2px);
}
.map-loading[hidden] { display: none; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(120, 160, 220, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.map-foot {
  border-top: 1px solid rgba(120, 145, 190, 0.1);
  padding: 11px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.src-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}
.src-chip b { color: #cfe0ff; font-weight: 650; }
.src-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.s-googletrends { background: #7aa8ef; }
.s-bingnews { background: #35d39a; }
.s-baidu { background: #ff5a5f; }
.s-wikipedia { background: #c3a8ff; }
.foot-note { font-size: 11px; color: var(--dim); }

/* ============ 详情面板 ============ */
.detail-panel { display: flex; flex-direction: column; min-height: 520px; }

.detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 26px;
  gap: 6px;
}
.empty-emoji { font-size: 46px; margin-bottom: 6px; opacity: 0.9; }
.detail-empty h3 { margin: 0; font-size: 15px; font-weight: 600; }
.detail-empty p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 260px; line-height: 1.65; }
.empty-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.chip:hover { color: #fff; border-color: rgba(91, 141, 255, 0.6); background: rgba(91, 141, 255, 0.16); }

.detail-body { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.detail-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(420px 130px at 12% 0%, rgba(91, 141, 255, 0.16), transparent 70%);
}
.detail-title-row { display: flex; align-items: flex-start; gap: 11px; }
.flag { font-size: 28px; line-height: 1.15; }
.detail-title-row h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.detail-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px; }
.detail-sub .tag {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(91, 141, 255, 0.14);
  color: #9db9ff;
  border: 1px solid rgba(91, 141, 255, 0.22);
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--dim);
  flex-wrap: wrap;
}
.icon-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s;
}
.icon-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 12px; height: 12px; }

.topic-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 14px;
  overflow-y: auto;
  flex: 1;
  max-height: min(56vh, 560px);
}

.topic {
  position: relative;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.topic + .topic { margin-top: 2px; }
.topic:hover { background: rgba(91, 141, 255, 0.09); }

.topic-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
}

.rank {
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(120, 145, 190, 0.12);
  color: var(--muted);
  margin-top: 1px;
}
.rank.r1 { background: linear-gradient(135deg, #ff5a5f, #ff9a3c); color: #fff; box-shadow: 0 3px 12px rgba(255, 90, 95, 0.34); }
.rank.r2 { background: linear-gradient(135deg, #ff9a3c, #ffcf4d); color: #201400; }
.rank.r3 { background: linear-gradient(135deg, #5b8dff, #8b5bff); color: #fff; }

.topic-main { min-width: 0; flex: 1; }
.topic-title {
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 550;
  color: #eaf0ff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.topic:hover .topic-title { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(160, 190, 255, 0.45); }
.topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--dim);
  flex-wrap: wrap;
}
.traffic {
  color: #ffc46b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.src-badge {
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  line-height: 15px;
}
.ext {
  flex: none;
  width: 13px; height: 13px;
  color: var(--dim);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.topic:hover .ext { opacity: 1; color: var(--accent); }

.topic-news { margin: 2px 0 0; padding: 0; list-style: none; }
.topic-news li { margin-top: 2px; }
.topic-news a {
  display: block;
  font-size: 11.5px;
  color: #93a5c6;
  padding: 3px 0 3px 32px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-news a:hover { color: #cfe0ff; text-decoration: underline; }

/* ============ 滚动条带 ============ */
.ticker {
  margin: 18px clamp(16px, 3vw, 32px) 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 20, 35, 0.8);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: flex;
  gap: 34px;
  padding-left: 20px;
  white-space: nowrap;
  animation: marquee 90s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.ticker-item b { color: #dbe6ff; font-weight: 600; }
.ticker-item .ck { color: var(--hot); font-size: 10px; }

/* ============ 卡片区 ============ */
.cards-section { padding: 22px clamp(16px, 3vw, 32px) 30px; }
.cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cards-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.cards-head h2 small { font-size: 12px; color: var(--dim); font-weight: 500; margin-left: 8px; }

.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { color: #fff; border-color: var(--line-strong); }
.filter.on {
  background: linear-gradient(135deg, rgba(91, 141, 255, 0.9), rgba(139, 91, 255, 0.9));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 5px 18px rgba(91, 141, 255, 0.28);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 13px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 15px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 27, 47, 0.8), rgba(13, 19, 34, 0.9));
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s;
  min-height: 132px;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px 120px at 100% 0%, rgba(91, 141, 255, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: rgba(91, 141, 255, 0.45); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42); }
.card:hover::after { opacity: 1; }
.card.active { border-color: rgba(91, 141, 255, 0.7); box-shadow: 0 0 0 1px rgba(91, 141, 255, 0.35), 0 14px 34px rgba(0, 0, 0, 0.42); }

.card-top { display: flex; align-items: center; gap: 9px; }
.card-flag { font-size: 19px; line-height: 1; }
.card-country { font-size: 13px; font-weight: 650; color: #dfe9ff; }
.card-code { font-size: 10.5px; color: var(--dim); letter-spacing: 0.6px; }
.card-live { margin-left: auto; font-size: 10px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; }
.card-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); display: inline-block; }

.card-topic {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); }
.card-foot .traffic { color: #ffc46b; }
.card-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8fb0ff;
  font-weight: 600;
  opacity: 0.85;
}
.card:hover .card-open { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.card.empty-card { cursor: default; }
.card.empty-card:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card-note { font-size: 12px; color: var(--dim); line-height: 1.6; }

.skeleton {
  background: linear-gradient(100deg, rgba(30, 40, 62, 0.5) 30%, rgba(45, 58, 86, 0.6) 50%, rgba(30, 40, 62, 0.5) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite;
  border-color: transparent;
  cursor: default;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.load-more-wrap { display: flex; justify-content: center; margin-top: 20px; }

/* ============ 页脚 ============ */
.footer {
  padding: 26px clamp(16px, 3vw, 32px) 46px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.9;
}
.footer p { margin: 2px 0; }
.foot-about {
  max-width: 880px;
  margin: 0 auto 10px;
  line-height: 1.85;
  color: #6f7d99;
}
.foot-about b { color: #9fb3d6; }
.muted { color: #4c5872; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .detail-panel { min-height: 420px; }
  .topic-list { max-height: none; }
}

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .top-actions { margin-left: auto; }
  .stat { display: none; }
  .layout { padding: 14px 12px 0; gap: 12px; }
  .cards-section, .footer { padding-left: 12px; padding-right: 12px; }
  .ticker { margin-left: 12px; margin-right: 12px; }
  .cards { grid-template-columns: 1fr; }
  .detail-panel { min-height: 340px; }
  .brand-text p { display: none; }
  .map-legend { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none; }
}

/* ============ 文档页（关于 / 隐私 / 条款 / 安全） ============ */
.doc-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.doc-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.doc-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.doc-nav a.on {
  color: #cfe0ff;
  background: rgba(91, 141, 255, 0.16);
  border: 1px solid rgba(91, 141, 255, 0.3);
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 42px clamp(18px, 5vw, 28px) 64px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #c6d2e8;
}
.doc h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.25;
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 17px;
  font-weight: 650;
  color: #e6eeff;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc p { margin: 0 0 14px; }
.doc .lead {
  font-size: 16px;
  color: #a9bad6;
  margin-bottom: 26px;
}
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: #eaf0ff; font-weight: 650; }
.doc a {
  color: #8fb0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(143, 176, 255, 0.4);
}
.doc a:hover { color: #cfe0ff; text-decoration-color: currentColor; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(120, 145, 190, 0.14);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: #d5e2ff;
}
.doc .note {
  font-size: 13px;
  color: var(--dim);
  border-left: 2px solid rgba(120, 145, 190, 0.35);
  padding-left: 12px;
  margin-left: 2px;
}
.doc-callout {
  background: rgba(91, 141, 255, 0.08);
  border: 1px solid rgba(91, 141, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #bfd3f5;
}
.doc-callout b { color: #e3edff; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
}
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(120, 145, 190, 0.14);
  vertical-align: top;
}
.doc-table th {
  color: #9fb3d6;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.025);
}
.doc-table tr:last-child td { border-bottom: none; }

.foot-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.foot-links a { color: #8fa4c8; }
.foot-links a:hover { color: #cfe0ff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .doc-nav { width: 100%; order: 3; justify-content: center; margin: 4px 0 0; }
  .doc { padding-top: 28px; }
  .doc-table { display: block; overflow-x: auto; white-space: nowrap; }
}
