/* ============================================================
   自然灾害预警 · 网页版
   全息指挥中心主题（Holographic Command Center）
   深蓝黑底 + 青色全息描边 + NVIDIA 绿品牌点缀
   ============================================================ */

:root {
  /* 背景与表面 */
  --bg: #04070c;
  --bg-alt: rgba(7, 13, 21, 0.78);
  --card: rgba(13, 21, 32, 0.72);
  --card-solid: #0c1420;
  --card-hover: rgba(20, 32, 48, 0.82);
  --card-2: rgba(9, 15, 24, 0.7);
  --border: rgba(64, 120, 140, 0.22);
  --border-strong: rgba(80, 160, 180, 0.42);

  /* 全息青（主视觉） */
  --holo: #43e8cf;
  --holo-bright: #5ffce2;
  --holo-soft: rgba(67, 232, 207, 0.1);
  --holo-line: rgba(67, 232, 207, 0.38);

  /* 品牌绿 */
  --green: #76b900;
  --green-bright: #8fe000;
  --green-soft: rgba(118, 185, 0, 0.12);
  --green-line: rgba(118, 185, 0, 0.35);

  /* 文字 */
  --text: #e6f1f4;
  --text-mid: #93a7b4;
  --text-dim: #5f7484;

  /* 语义色 */
  --red: #ff5252;
  --red-soft: rgba(255, 82, 82, 0.12);
  --orange: #ff9433;
  --orange-soft: rgba(255, 148, 51, 0.12);
  --yellow: #f7c948;
  --yellow-soft: rgba(247, 201, 72, 0.12);
  --blue: #4aa8ff;
  --blue-soft: rgba(74, 168, 255, 0.12);
  --ok: #46c263;

  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --font-scale: 1;
  --shadow-card: inset 0 0 0 1px rgba(67, 232, 207, 0.05), 0 8px 30px rgba(0, 0, 0, 0.42);
}

/* 高对比度 */
.high-contrast {
  --border: rgba(120, 190, 210, 0.5);
  --border-strong: rgba(150, 220, 235, 0.65);
  --text: #ffffff;
  --text-mid: #d8e6ec;
  --text-dim: #a8c0cc;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: calc(16px * var(--font-scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(30, 90, 110, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(20, 60, 90, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--holo); color: #04121a; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05090f; }
::-webkit-scrollbar-thumb { background: #1c303c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2a4654; }

/* ============================================================
   全息地球背景
   ============================================================ */
.bg-globe {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

#app { position: relative; z-index: 1; }

/* ============================================================
   顶部导航
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand svg { flex-shrink: 0; }
.brand-name { letter-spacing: 0.2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 6px;
  color: var(--text-mid); font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(67, 232, 207, 0.07); }
.nav-link.active { color: var(--holo); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--holo);
  box-shadow: 0 0 8px var(--holo);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(6, 11, 18, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px 18px;
}
.nav-drawer.open { display: block; }
.nav-drawer .nav-link {
  display: block; padding: 14px 12px; font-size: 1rem;
  border-bottom: 1px solid var(--border); border-radius: 0;
}
.nav-drawer .nav-link:last-child { border-bottom: none; }
.nav-drawer .nav-link.active::after { display: none; }

/* ============================================================
   通用区块 / 页头
   ============================================================ */
main { display: block; padding-top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); }

.page-top {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(67, 232, 207, 0.06), transparent);
}
.page-top h1 { font-size: 2rem; letter-spacing: 0.3px; }
.page-top p { color: var(--text-mid); margin-top: 10px; max-width: 720px; }

.section { padding: 52px 0; }
.section-alt {
  background: var(--bg-alt);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 9px; }
.section-head .head-hint { color: var(--text-dim); font-size: 0.86rem; }

/* 小图标统一尺寸与对齐 */
.h2-ic { display: inline-flex; align-items: center; color: var(--holo-bright); flex: none; }
.h2-ic svg { display: block; }
.wc-ic { color: var(--holo-bright); margin-right: 4px; }
.btn-ic { margin-right: 6px; color: inherit; }
.btn-green .btn-ic { color: #04121c; }

/* 导航链接里的小图标 */
.nav-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-link svg { width: 15px; height: 15px; }
.nav-drawer a { display: flex; align-items: center; gap: 9px; }
.nav-drawer a svg { width: 17px; height: 17px; }

.map-scan-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(67, 232, 207, 0.4);
  background: rgba(67, 232, 207, 0.08);
  color: var(--holo-bright);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all .18s ease;
}
.map-scan-btn svg { width: 15px; height: 15px; }
.map-scan-btn:hover:not(:disabled) {
  background: rgba(67, 232, 207, 0.18);
  border-color: var(--holo-bright);
}
.map-scan-btn:disabled { opacity: 0.7; cursor: default; }
.map-scan-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(67, 232, 207, 0.3);
  border-top-color: var(--holo-bright);
  display: inline-block; animation: mapScanSpin 0.8s linear infinite;
}
@keyframes mapScanSpin { to { transform: rotate(360deg); } }


/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(67, 232, 207, 0.13), transparent 60%),
    radial-gradient(700 380px at 8% 110%, rgba(74, 168, 255, 0.07), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(67, 232, 207, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 232, 207, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 500px at 70% 0%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--holo);
  border: 1px solid var(--holo-line); background: var(--holo-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--holo);
  box-shadow: 0 0 0 0 rgba(67, 232, 207, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 232, 207, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(67, 232, 207, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 232, 207, 0); }
}
.hero-title { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: 0.5px; }
.hero-sub { color: var(--text-mid); font-size: 1.02rem; margin-top: 18px; max-width: 560px; }

.home-lang { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.home-lang-btn {
  border: 1px solid rgba(67, 232, 207, 0.35);
  background: rgba(67, 232, 207, 0.06);
  color: var(--text-mid);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; transition: all .18s ease;
}
.home-lang-btn:hover { border-color: var(--holo-bright); color: var(--holo-bright); }
.home-lang-btn.active {
  background: var(--holo-bright); border-color: var(--holo-bright);
  color: #04121c;
}

.hero-location {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px;
}
.hero-city { font-size: 1.35rem; font-weight: 700; }
.hero-city small { display: block; font-size: 0.82rem; font-weight: 400; color: var(--text-dim); margin-top: 2px; }

/* 区县切换胶囊 */
.district-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 18, 28, 0.7);
  font-size: 0.88rem; color: var(--text-mid);
  transition: border-color 0.18s, color 0.18s;
}
.district-pill:hover { border-color: var(--holo-line); color: var(--holo); }
.district-pill b { font-size: 1rem; line-height: 1; }

/* 天气卡 */
.weather-card {
  background: linear-gradient(160deg, var(--card-hover), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.weather-card .wc-label { font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-dim); }
.weather-main { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.weather-temp { font-size: 3rem; font-weight: 700; line-height: 1; }
.weather-temp small { font-size: 1.1rem; color: var(--text-mid); font-weight: 500; }
.weather-text { font-size: 1.15rem; font-weight: 600; color: var(--holo); }
.weather-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.weather-rows .wr-item { font-size: 0.85rem; color: var(--text-mid); }
.weather-rows .wr-item b { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.weather-card .wc-source { margin-top: 12px; font-size: 0.74rem; color: var(--text-dim); }

/* 统计行 */
.stat-row {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 44px;
}
.stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-card);
}
.stat-box:hover { transform: translateY(-3px); }
.stat-num { font-size: 2.1rem; font-weight: 700; line-height: 1; min-width: 2.2rem; text-align: center; }
.stat-label { font-size: 0.85rem; color: var(--text-mid); }
.stat-box.lv-red { border-left: 3px solid var(--red); }
.stat-box.lv-red .stat-num { color: var(--red); }
.stat-box.lv-orange { border-left: 3px solid var(--orange); }
.stat-box.lv-orange .stat-num { color: var(--orange); }
.stat-box.lv-yellow { border-left: 3px solid var(--yellow); }
.stat-box.lv-yellow .stat-num { color: var(--yellow); }
.stat-box.lv-blue { border-left: 3px solid var(--blue); }
.stat-box.lv-blue .stat-num { color: var(--blue); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 600;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active { transform: scale(0.97); }
.btn-green { background: var(--green); color: #0c0f06; }
.btn-green:hover { background: var(--green-bright); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: rgba(10, 18, 28, 0.5); }
.btn-outline:hover { border-color: var(--holo-line); color: var(--holo); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.icon-btn { padding: 13px 16px; }
.btn-danger { border-color: rgba(255, 82, 82, 0.5); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }

/* ============================================================
   预警卡片网格
   ============================================================ */
.alert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.alert-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.alert-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.alert-card.lv-red::before { background: var(--red); }
.alert-card.lv-orange::before { background: var(--orange); }
.alert-card.lv-yellow::before { background: var(--yellow); }
.alert-card.lv-blue::before { background: var(--blue); }
.alert-card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--border-strong); }
.alert-card.lv-red:hover { border-color: rgba(255, 82, 82, 0.5); }
.alert-card.lv-orange:hover { border-color: rgba(255, 148, 51, 0.5); }
.alert-card.lv-yellow:hover { border-color: rgba(247, 201, 72, 0.5); }
.alert-card.lv-blue:hover { border-color: rgba(74, 168, 255, 0.5); }

.alert-card-top { display: flex; align-items: center; gap: 10px; }
.level-badge {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.6px;
  padding: 3px 10px; border-radius: 5px; text-transform: uppercase;
}
.lv-red .level-badge { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255, 82, 82, 0.3); }
.lv-orange .level-badge { color: var(--orange); background: var(--orange-soft); border: 1px solid rgba(255, 148, 51, 0.3); }
.lv-yellow .level-badge { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(247, 201, 72, 0.3); }
.lv-blue .level-badge { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(74, 168, 255, 0.3); }
.alert-card-type { font-size: 0.8rem; color: var(--text-dim); }
.alert-card h3 { font-size: 1.08rem; }
.alert-card-area { font-size: 0.86rem; color: var(--text-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alert-card-cta { margin-top: auto; font-size: 0.86rem; font-weight: 600; color: var(--holo); }
.alert-card:hover .alert-card-cta { color: var(--holo-bright); }

/* 状态：加载/空/错误 */
.state-box {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--text-mid);
  background: var(--card-2);
}
.state-box .state-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.state-box.error { border-color: rgba(255, 82, 82, 0.4); background: var(--red-soft); color: var(--red); }
.state-box .btn { margin-top: 18px; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--holo);
  animation: spin 0.8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.source-line { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-dim); margin-top: 14px; flex-wrap: wrap; }
.source-tag { color: var(--holo); font-weight: 600; }

/* ============================================================
   全国全息态势图
   ============================================================ */
.china-map-wrap {
  background: rgba(5, 12, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.china-svg { width: 100%; height: auto; display: block; }
.ch-national {
  fill: rgba(30, 80, 95, 0.1);
  stroke: var(--holo);
  stroke-width: 1.6;
  filter: url(#holoGlow);
}
.ch-provinces {
  fill: none;
  stroke: rgba(67, 232, 207, 0.34);
  stroke-width: 0.7;
  stroke-dasharray: 3 3;
}
.ch-gridlines line {
  stroke: rgba(67, 232, 207, 0.1);
  stroke-width: 0.6;
}
.ch-scan { animation: chScanMove 7s linear infinite; }
@keyframes chScanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(1020px); }
}
.ch-city { cursor: pointer; }
.ch-halo {
  fill: none; stroke: rgba(67, 232, 207, 0.35);
  stroke-width: 1; opacity: 0.5;
}
.ch-dot { fill: #2f8a80; opacity: 0.9; }
.ch-label {
  fill: var(--text-dim); font-size: 11px;
  pointer-events: none;
}
.ch-city:hover .ch-label { fill: var(--holo-bright); }
.ch-city.st-none .ch-dot { fill: #2f8a80; }
.ch-city.st-none .ch-halo { stroke: rgba(67, 232, 207, 0.3); }
.ch-city.st-safe .ch-dot { fill: #46c263; }
.ch-city.st-safe .ch-halo { stroke: rgba(70, 194, 99, 0.35); }
.ch-city.st-normal .ch-dot { fill: var(--yellow); }
.ch-city.st-normal .ch-halo { stroke: rgba(247, 201, 72, 0.55); animation: chHaloPulse 2.2s ease-in-out infinite; }
.ch-city.st-normal .ch-label { fill: var(--text-mid); }
.ch-city.st-high .ch-dot { fill: var(--red); }
.ch-city.st-high .ch-halo { stroke: rgba(255, 82, 82, 0.7); animation: chHaloPulse 1.4s ease-in-out infinite; }
.ch-city.st-high .ch-label { fill: var(--red); font-weight: 700; }
@keyframes chHaloPulse {
  0%, 100% { opacity: 0.25; r: 7; }
  50% { opacity: 0.8; r: 12; }
}
.map-legend {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; font-size: 0.84rem; color: var(--text-mid);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* 状态点（通用） */
.status-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-none { background: var(--ok); box-shadow: 0 0 6px rgba(70, 194, 99, 0.6); }
.status-normal { background: var(--yellow); box-shadow: 0 0 6px rgba(247, 201, 72, 0.6); }
.status-high { background: var(--red); box-shadow: 0 0 7px rgba(255, 82, 82, 0.7); }
.status-unknown, .status-loading { background: var(--border-strong); }

/* ============================================================
   时间线
   ============================================================ */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(var(--holo-line), transparent);
}
.timeline li {
  position: relative; display: flex; align-items: baseline; gap: 16px;
  padding: 13px 8px 13px 38px; flex-wrap: wrap;
}
.tl-dot {
  position: absolute; left: 10px; top: 19px;
  width: 10px; height: 10px; border-radius: 50%;
}
.tl-dot.lv-red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tl-dot.lv-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.tl-dot.lv-yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.tl-dot.lv-blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tl-time { font-size: 0.8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; min-width: 128px; }
.tl-body { color: var(--text-mid); font-size: 0.9rem; }
.tl-body b { color: var(--text); font-weight: 600; }
.tl-body:hover { color: var(--holo); }

/* ============================================================
   两列面板（类型分布 / TOP 风险）
   ============================================================ */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.panel-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.panel-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.panel-card canvas { width: 100%; display: block; }

.mini-risk {
  display: grid; grid-template-columns: 110px 1fr 46px;
  align-items: center; gap: 12px; padding: 9px 0;
  font-size: 0.85rem;
}
.mini-risk-name { color: var(--text-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-risk-bar { height: 7px; border-radius: 4px; background: rgba(30, 50, 60, 0.7); overflow: hidden; }
.mini-risk-bar i { display: block; height: 100%; border-radius: 4px; }
.mini-risk b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   详情页
   ============================================================ */
.detail-hero { padding: 44px 0 40px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.detail-hero.lv-red { background: linear-gradient(180deg, rgba(255, 82, 82, 0.14), transparent); }
.detail-hero.lv-orange { background: linear-gradient(180deg, rgba(255, 148, 51, 0.14), transparent); }
.detail-hero.lv-yellow { background: linear-gradient(180deg, rgba(247, 201, 72, 0.12), transparent); }
.detail-hero.lv-blue { background: linear-gradient(180deg, rgba(74, 168, 255, 0.13), transparent); }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mid); font-size: 0.88rem; margin-bottom: 22px; }
.back-link:hover { color: var(--holo); }
.detail-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 14px 0 10px; max-width: 820px; }
.detail-meta { color: var(--text-mid); font-size: 0.9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-meta .dot-sep { color: var(--text-dim); }

.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.dcard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.dcard-title { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.dcard-title .title-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--holo); box-shadow: 0 0 8px var(--holo); }

.alert-body { color: var(--text-mid); white-space: pre-wrap; font-size: 0.95rem; }

/* 区县 chips */
.district-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.district-chip {
  font-size: 0.84rem; padding: 5px 13px; border-radius: 999px;
  background: rgba(20, 34, 46, 0.7); border: 1px solid var(--border-strong); color: var(--text-mid);
}
.district-chip.focus { color: var(--red); border-color: rgba(255, 82, 82, 0.45); background: var(--red-soft); font-weight: 600; }

/* 倒计时 */
.countdown-box {
  text-align: center;
  font-size: 1.9rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--holo-bright);
  text-shadow: 0 0 18px rgba(67, 232, 207, 0.55);
  letter-spacing: 2px;
  padding: 8px 0;
}

/* 雷达影响图 */
.radar-svg { width: 100%; height: auto; display: block; }
.radar-ring { fill: none; stroke: rgba(67, 232, 207, 0.3); stroke-width: 1; stroke-dasharray: 4 4; }
.radar-cross { stroke: rgba(67, 232, 207, 0.14); stroke-width: 1; }
.radar-center-dot { fill: var(--holo); }
.radar-center-label { fill: var(--holo); font-size: 11px; text-anchor: middle; }
.radar-p.rp-focus { fill: var(--red); }
.radar-p.rp-other { fill: var(--yellow); }
.radar-pl { fill: var(--text-mid); font-size: 10px; }

/* 风险概率条 */
.risk-item { margin-bottom: 20px; }
.risk-item:last-child { margin-bottom: 0; }
.risk-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.risk-name { font-size: 0.92rem; font-weight: 600; }
.risk-prob { font-size: 0.92rem; font-weight: 700; }
.risk-bar { height: 8px; border-radius: 5px; background: rgba(30, 50, 60, 0.7); overflow: hidden; }
.risk-bar-inner { height: 100%; border-radius: 5px; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.risk-level-high { color: var(--red); }
.risk-level-mid { color: var(--orange); }
.risk-level-low { color: var(--blue); }
.risk-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }
.risk-tip {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--card-2); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim);
}

/* 推荐物资（rec-list 通用） */
.rec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.rec-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 7px;
  font-size: 0.88rem; color: var(--text-mid); text-align: left;
  transition: background 0.15s, color 0.15s;
}
.rec-item:hover { background: rgba(67, 232, 207, 0.07); color: var(--text); }
.rec-item.checked { color: var(--text); }
.rec-item.checked .material-check { background: var(--holo); border-color: var(--holo); }
.rec-item.checked .material-check svg { display: block; stroke: #04121a; }
.material-check {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.material-check svg { display: none; }

/* 测验 */
.quiz-block { display: flex; flex-direction: column; gap: 18px; }
.quiz-item { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.quiz-item:last-child { border-bottom: none; padding-bottom: 0; }
.quiz-q { font-size: 0.94rem; display: flex; gap: 10px; align-items: baseline; margin-bottom: 11px; }
.quiz-q-key {
  background: var(--holo-soft); border: 1px solid var(--holo-line); color: var(--holo);
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; flex-shrink: 0;
}
.quiz-opts { display: flex; flex-direction: column; gap: 7px; }
.quiz-opt {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 10px 13px; border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 30, 0.5);
  font-size: 0.88rem; color: var(--text-mid);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: var(--holo-line); color: var(--text); }
.opt-key {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-strong); color: var(--text-mid);
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.quiz-opt.correct { border-color: rgba(70, 194, 99, 0.6); background: rgba(70, 194, 99, 0.12); color: var(--ok); }
.quiz-opt.correct .opt-key { background: var(--ok); border-color: var(--ok); color: #04120a; }
.quiz-opt.wrong { border-color: rgba(255, 82, 82, 0.6); background: var(--red-soft); color: var(--red); }
.quiz-opt.wrong .opt-key { background: var(--red); border-color: var(--red); color: #1a0404; }
.quiz-feedback { margin-top: 10px; font-size: 0.82rem; border-radius: 8px; padding: 9px 13px; }
.quiz-feedback.ok { background: rgba(70, 194, 99, 0.1); color: var(--ok); }
.quiz-feedback.bad { background: var(--red-soft); color: var(--red); }

/* 防御指南列表 */
.defense-list li {
  position: relative; padding: 9px 0 9px 26px; color: var(--text-mid); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.defense-list li:last-child { border-bottom: none; }
.defense-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--holo);
}

/* 信息行 */
.info-rows .info-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.info-rows .info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-dim); flex-shrink: 0; }
.info-value { color: var(--text); text-align: right; font-weight: 500; }

.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   防御指南页
   ============================================================ */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.guide-side {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px;
}
.guide-side-item {
  text-align: left; padding: 11px 14px; border-radius: 7px;
  color: var(--text-mid); font-size: 0.9rem; transition: background 0.15s, color 0.15s;
}
.guide-side-item:hover { background: rgba(67, 232, 207, 0.07); color: var(--text); }
.guide-side-item.active { background: var(--holo-soft); color: var(--holo); font-weight: 600; }
.side-read { color: var(--ok); }

.guide-content {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 38px; box-shadow: var(--shadow-card);
}
.guide-content h2 { font-size: 1.5rem; margin-bottom: 10px; }
.guide-desc { color: var(--text-mid); margin-bottom: 12px; }
.guide-cause { color: var(--text-mid); font-size: 0.92rem; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; }
.guide-content h3 { font-size: 1.05rem; margin: 28px 0 14px; padding-left: 12px; border-left: 3px solid var(--holo); }
.signal-list li {
  padding: 9px 0; color: var(--text-mid); font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.guide-action-list { counter-reset: ga; }
.guide-action-list li {
  position: relative; padding: 9px 0 9px 38px; counter-increment: ga;
  color: var(--text-mid); font-size: 0.92rem; border-bottom: 1px solid var(--border);
}
.guide-action-list li::before {
  content: counter(ga); position: absolute; left: 0; top: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--holo-soft); color: var(--holo);
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guide-mark { margin-top: 26px; }
.guide-note { margin-top: 20px; padding: 14px 18px; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.84rem; color: var(--text-dim); }

/* 学习进度 */
.read-progress {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  font-size: 0.85rem; color: var(--text-mid);
}
.read-progress-bar { flex: 1; max-width: 340px; height: 8px; border-radius: 5px; background: rgba(30, 50, 60, 0.7); overflow: hidden; }
.read-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--holo), var(--holo-bright)); border-radius: 5px; box-shadow: 0 0 8px var(--holo); }

/* ============================================================
   应急工具页
   ============================================================ */
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phone-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: var(--shadow-card);
}
.phone-card:hover { transform: translateY(-3px); background: var(--card-hover); border-color: var(--holo-line); }
.phone-number { font-size: 1.5rem; font-weight: 700; color: var(--holo); }
.phone-name { font-size: 0.95rem; font-weight: 600; }
.phone-desc { font-size: 0.82rem; color: var(--text-dim); }

/* 急救 */
.aid-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.aid-tab {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.88rem; color: var(--text-mid);
  transition: all 0.15s;
}
.aid-tab:hover { color: var(--holo); border-color: var(--holo-line); }
.aid-tab.active { background: var(--holo-soft); border-color: var(--holo-line); color: var(--holo); font-weight: 600; }
.aid-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-card);
}
.aid-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.aid-step-num {
  font-size: 0.82rem; color: var(--holo); font-weight: 700;
  border: 1px solid var(--holo-line); padding: 3px 12px; border-radius: 999px;
}
.aid-dots { display: flex; gap: 7px; }
.aid-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(30, 50, 60, 0.9); }
.aid-dots i.on { background: var(--holo); box-shadow: 0 0 7px var(--holo); }
.aid-step-text { font-size: 1.06rem; color: var(--text); min-height: 84px; }
.aid-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* 向导 */
.wizard-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-card);
}
.wizard-prompt { color: var(--text-mid); margin-bottom: 18px; }
.wizard-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wizard-scene {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; font-size: 0.92rem; color: var(--text-mid);
  transition: all 0.15s;
}
.wizard-scene:hover { border-color: var(--holo-line); color: var(--holo); }
.wizard-scene.active { background: var(--holo-soft); border-color: var(--holo-line); color: var(--holo); font-weight: 600; }
.wizard-done {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--holo-soft); border: 2px solid var(--holo-line);
  color: var(--holo); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px rgba(67, 232, 207, 0.35);
}

/* 物资清单 */
.progress-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-card); }
.progress-bar { height: 10px; border-radius: 6px; background: rgba(30, 50, 60, 0.7); overflow: hidden; margin: 14px 0 8px; }
.progress-inner { height: 100%; background: linear-gradient(90deg, var(--holo), var(--holo-bright)); border-radius: 6px; transition: width 0.5s ease; box-shadow: 0 0 10px var(--holo); }
.progress-label { font-size: 0.84rem; color: var(--text-mid); }
.material-list { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.material-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 7px; font-size: 0.9rem; color: var(--text-mid);
  transition: background 0.15s;
}
.material-item:hover { background: rgba(67, 232, 207, 0.06); }
.material-item.checked { color: var(--text); }
.material-item.checked .material-check { background: var(--holo); border-color: var(--holo); }
.material-item.checked .material-check svg { display: block; stroke: #04121a; }

/* 家庭计划 */
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; display: grid; gap: 16px; box-shadow: var(--shadow-card);
}
.plan-field { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; color: var(--text-mid); }
.plan-field textarea {
  width: 100%; resize: vertical;
  background: rgba(6, 12, 20, 0.8);
  border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text); padding: 11px 13px;
  font-family: inherit; font-size: 0.9rem; line-height: 1.5;
}
.plan-field textarea:focus { outline: none; border-color: var(--holo-line); box-shadow: 0 0 0 2px rgba(67, 232, 207, 0.12); }

.tip-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tip-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; font-size: 0.9rem; color: var(--text-mid); box-shadow: var(--shadow-card);
}
.tip-card b { display: block; color: var(--holo); font-size: 0.85rem; letter-spacing: 0.5px; margin-bottom: 8px; }

.disclaimer-row { margin-top: 26px; text-align: center; }

/* ============================================================
   设置页
   ============================================================ */
.settings-wrap { max-width: 820px; }
.set-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 18px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.set-card-title {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; font-size: 0.98rem; font-weight: 600; text-align: left;
}
.set-card-title:hover { background: rgba(67, 232, 207, 0.05); }
.set-card-title.static-title:hover { background: none; cursor: default; }
.set-card-title .set-arrow { color: var(--text-dim); transition: transform 0.25s ease; }
.set-card.expanded .set-arrow { transform: rotate(90deg); }
.set-card-body { padding: 6px 24px 20px; border-top: 1px solid var(--border); }

.option-list { display: flex; flex-direction: column; gap: 4px; }
.option-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--text-mid);
}
.option-item:hover { background: rgba(67, 232, 207, 0.06); color: var(--text); }
.option-item.selected { color: var(--holo); font-weight: 600; }
.option-check { color: var(--holo); font-weight: 700; }

.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.set-row:last-child { border-bottom: none; }
.set-row-label { color: var(--text-mid); }
.set-row-hint { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }
.set-value { color: var(--text); font-weight: 600; }

/* 开关 */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.switch-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #243240; transition: background 0.2s; pointer-events: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #c4ccd8;
  transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .switch-track { background: var(--holo); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #04121a; }

/* ============================================================
   产品目录（占位页）
   ============================================================ */
.placeholder-page {
  min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 60px 24px;
}
.placeholder-icon {
  width: 88px; height: 88px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--holo-soft); border: 1px solid var(--holo-line);
  margin-bottom: 8px;
}
.placeholder-page h1 { font-size: 1.8rem; }
.placeholder-page p { color: var(--text-mid); max-width: 440px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: rgba(4, 7, 11, 0.92); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px;
  padding: 56px 28px 40px; max-width: 1180px; margin: 0 auto;
}
.footer-brand-desc { font-size: 0.86rem; color: var(--text-dim); margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--holo); }
.footer-col p { font-size: 0.84rem; color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 28px; max-width: 1180px; margin: 0 auto;
  font-size: 0.8rem; color: var(--text-dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ============================================================
   弹层 / Modal / Toast
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.overlay.bottom-sheet { align-items: flex-end; padding: 0; }

.sheet {
  background: var(--card-solid); border: 1px solid var(--border-strong);
  border-radius: 16px; width: 100%; max-width: 600px;
  max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(67, 232, 207, 0.08);
}
.bottom-sheet .sheet { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sheet-head h3 { font-size: 1.05rem; }
.sheet-close { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-mid); }
.sheet-close:hover { background: rgba(67, 232, 207, 0.08); color: var(--text); }
.sheet-body { overflow-y: auto; padding: 12px 14px 20px; }

.picker-province {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px; border-radius: 9px; font-size: 0.94rem; color: var(--text-mid);
}
.picker-province:hover { background: rgba(67, 232, 207, 0.06); color: var(--text); }
.picker-province .pp-arrow { color: var(--text-dim); }

.picker-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px;
  color: var(--text-mid); font-size: 0.88rem; border-radius: 7px; margin: 6px 4px 10px;
}
.picker-back:hover { background: rgba(67, 232, 207, 0.06); color: var(--holo); }

.picker-city {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px; border-radius: 9px; font-size: 0.94rem; color: var(--text-mid);
}
.picker-city:hover { background: rgba(67, 232, 207, 0.06); color: var(--text); }
.picker-city .pc-left { display: flex; align-items: center; gap: 12px; }
.pc-count { font-size: 0.8rem; color: var(--text-dim); }

/* Modal */
.dialog {
  background: var(--card-solid); border: 1px solid var(--border-strong); border-radius: 14px;
  width: 100%; max-width: 420px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(67, 232, 207, 0.08);
}
.dialog-head { padding: 22px 24px 0; font-size: 1.05rem; font-weight: 700; }
.dialog-body { padding: 14px 24px 22px; color: var(--text-mid); font-size: 0.92rem; white-space: pre-wrap; }
.dialog-foot { display: flex; gap: 10px; padding: 0 24px 22px; justify-content: flex-end; }

/* Toast */
.toast {
  position: fixed; top: 14%; left: 50%; transform: translateX(-50%);
  z-index: 300; max-width: 90vw;
  background: rgba(14, 22, 30, 0.96); border: 1px solid var(--border-strong);
  color: var(--text); padding: 12px 22px; border-radius: 10px;
  font-size: 0.9rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .phone-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 18px; }
  .container { padding: 0 18px; }

  .hero { padding: 48px 0 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .alert-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side {
    position: static; flex-direction: row; overflow-x: auto; gap: 8px;
    background: transparent; border: none; padding: 0;
  }
  .guide-side-item { white-space: nowrap; background: var(--card); border: 1px solid var(--border); }
  .guide-content { padding: 24px 20px; }
  .rec-list, .material-list, .tip-list { grid-template-columns: 1fr; }
  .wizard-scenes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 18px 30px; }
  .footer-bottom { padding: 18px; flex-direction: column; }
  .page-top { padding: 38px 0 22px; }
  .section { padding: 38px 0; }
  .detail-actions { grid-template-columns: 1fr; }
  .mini-risk { grid-template-columns: 92px 1fr 42px; gap: 9px; }
  .timeline li { gap: 8px; }
  .tl-time { min-width: 0; }
}

/* 减少动效 */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ================================================================
 * 产品目录 + 互动游戏
 * ================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.product-card {
  background: rgba(10, 22, 36, 0.72);
  border: 1px solid rgba(67, 232, 207, 0.22);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: rgba(67, 232, 207, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(67, 232, 207, 0.12);
}
.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(67, 232, 207, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card h3 {
  margin: 4px 0 0;
  font-size: 19px;
  color: #e8f6ff;
}
.product-card p {
  margin: 0;
  color: #9fb6c6;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.product-card .btn { align-self: flex-start; margin-top: 6px; }

.game-frame {
  margin-top: 22px;
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid rgba(67, 232, 207, 0.3);
  border-radius: 16px;
  padding: 18px;
}
.game-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #43e8cf;
}
.game-title p {
  margin: 0 0 14px;
  color: #9fb6c6;
  font-size: 13px;
}
.game-hud {
  margin: 0 0 10px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.5);
  border-left: 3px solid #43e8cf;
  border-radius: 6px;
  color: #43e8cf;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.game-hud span b { color: #fff; margin-left: 3px; }
.game-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(3, 12, 20, 0.92);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #eaf6ff;
  text-align: center;
  padding: 20px;
}
.gp-icon { font-size: 42px; color: #76b900; line-height: 1; }
.gp-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.gp-rows { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; min-width: 240px; }
.gp-rows > div { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: #9fb6c6; }
.gp-rows b { color: #fff; }
.gp-perfect { color: #76b900 !important; font-weight: bold; }
.gp-btn {
  background: linear-gradient(135deg, #76b900, #4e8a00);
  color: #fff; border: none; border-radius: 8px;
  padding: 11px 30px; font-size: 15px; font-weight: bold;
  cursor: pointer; letter-spacing: 1px;
  box-shadow: 0 4px 18px rgba(118,185,0,0.35);
}
.gp-btn:hover { filter: brightness(1.12); }
.game-canvas {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #06182e;
  cursor: crosshair;
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}
