:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --surface-3: #edf2f5;
  --ink: #0a2634;
  --ink-soft: #16394a;
  --muted: #516d7b;
  --muted-2: #7d94a0;
  --line: #dfe7eb;
  --line-strong: #c6d3d9;
  --navy: #062a3a;
  --navy-2: #0a3b4f;
  --cyan: #0a708f;
  --cyan-deep: #07576e;
  --aqua: #0e8a7c;
  --coral: #b9392a;
  --amber: #96700a;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 38, 52, .05);
  --shadow: 0 14px 38px rgba(10, 38, 52, .09);
  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.large-text { font-size: 18px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #f6f9fa 0%, #f1f5f7 52%, #f5f8f9 100%);
}
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 620px; height: 620px; right: -180px; top: -6%; background: rgba(10, 112, 143, .1); }
.orb-b { width: 520px; height: 520px; left: -180px; top: 48%; background: rgba(14, 138, 124, .07); }
.grid-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 38, 52, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 38, 52, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 58% at 50% 0%, #000 18%, transparent 74%);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 22px;
  padding: 11px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--cyan) 46%, var(--aqua) 78%, #c8a24a 100%);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 4px;
  display: grid; place-items: center;
  background: linear-gradient(158deg, #0d4c66, #06293a);
  box-shadow: inset 0 -2px 0 rgba(56, 207, 190, .55);
}
.brand-mark svg { width: 22px; height: 22px; color: #d8fbff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; letter-spacing: .14em; color: var(--ink); font-weight: 700; }
.brand-text em { font-style: normal; font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
.nav { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 12px;
  font-size: 13.5px; color: var(--muted); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(.4); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 3px;
  border: 1px solid rgba(14, 138, 124, .28);
  background: rgba(14, 138, 124, .06);
  font-size: 11px; letter-spacing: .04em; color: #0a6f64; white-space: nowrap;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); animation: pulse 2.2s infinite; }
.live-pill.small { padding: 3px 8px; font-size: 9.5px; letter-spacing: .14em; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,138,124,.5); } 70% { box-shadow: 0 0 0 8px rgba(14,138,124,0); } 100% { box-shadow: 0 0 0 0 rgba(14,138,124,0); } }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 3px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); transition: .2s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 31px; height: 31px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.a11y-btn { font-size: 13px; font-weight: 700; }
.menu-btn { display: none; }

/* ---------- layout ---------- */
main { min-height: 70vh; }
.view { display: none; padding: 0 clamp(18px, 4vw, 56px); }
.view.active { display: block; animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- hero stage：整幅深色态势背景，底部过渡回白色 ---------- */
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 calc(-1 * clamp(18px, 4vw, 56px));
  padding: 0 clamp(18px, 4vw, 56px);
  background: #041c27;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  filter: saturate(.4) brightness(.45) contrast(1.14);
}
.hero-geo { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-bg-map {
  width: 76%; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 26px rgba(58, 172, 198, .14));
}
.hero-bg-map .city-node circle { stroke-width: .6; }
.hero-bg-map .city-node text {
  font-size: 5.6px; font-weight: 500; letter-spacing: 0;
  fill: #e6f5fa; fill-opacity: .86;
  paint-order: stroke;
  stroke: rgba(3, 20, 28, .7); stroke-width: 1.4; stroke-linejoin: round;
}
.hero-bg-map .city-node.danger text { fill: #ffd7cd; }
.hero-right-col {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; min-width: 0; justify-self: end;
}
.typhoon-live {
  display: flex; align-items: center; gap: 10px;
  margin: 12px -16px -16px; padding: 11px 16px;
  border-top: 1px solid rgba(127, 216, 232, .14);
  background: rgba(1, 10, 15, .32);
  color: #d9edf4;
}
.typhoon-live .tdot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #46d6a4; box-shadow: 0 0 0 0 rgba(70, 214, 164, .5);
  animation: pulse 2.4s infinite;
}
.typhoon-live.warn { background: rgba(58, 22, 14, .4); border-top-color: rgba(228, 101, 60, .34); }
.typhoon-live.warn .tdot { background: #e4653c; box-shadow: 0 0 0 0 rgba(228, 101, 60, .5); }
.typhoon-live.unknown .tdot { background: #8fa7b2; animation: none; box-shadow: none; }
.typhoon-live .tl-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.typhoon-live strong { font-size: 12.5px; font-weight: 600; color: #eaf7fb; }
.typhoon-live .tl-body span { font-size: 10.5px; letter-spacing: .02em; color: rgba(190, 218, 228, .72); }
.typhoon-live .tl-time { margin-left: auto; flex: none; font-family: var(--mono); font-size: 10px; color: rgba(160, 199, 213, .75); }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 19, 27, .97) 0%, rgba(3, 19, 27, .93) 34%, rgba(4, 24, 34, .44) 62%, rgba(4, 24, 34, .14) 100%),
    radial-gradient(720px 420px at 78% 38%, rgba(23, 110, 130, .18), transparent 70%);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(191, 232, 242, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 232, 242, .055) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 62% 42%, #000 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 76% at 62% 42%, #000 22%, transparent 76%);
}
.hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 246, 248, 0) 0%, rgba(243, 246, 248, .14) 40%, rgba(243, 246, 248, .58) 74%, var(--bg) 100%);
}

.hero {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: clamp(28px, 4vw, 60px);
  align-items: start; padding: clamp(46px, 6vw, 86px) 0 clamp(56px, 6vw, 84px);
}

/* 深色背景上的文字与控件 */
.hero-stage .eyebrow { color: #8fdcec; }
.hero-stage .hero h1 { color: #f3fbfe; }
.hero-stage .grad { background: linear-gradient(100deg, #8ff0ea, #4fd3e8 46%, #9bf0c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stage .lede { color: rgba(214, 234, 241, .84); border-left-color: rgba(143, 220, 236, .38); }
.hero-stage .hero-meta { border-top-color: rgba(255, 255, 255, .16); }
.hero-stage .hero-meta > div { border-left-color: rgba(255, 255, 255, .13); }
.hero-stage .hero-meta > div::before { color: rgba(160, 199, 213, .75); }
.hero-stage .hero-meta strong { color: #eefafd; }
.hero-stage .hero-meta span { color: rgba(196, 222, 231, .78); }
.hero-stage .btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); color: #e4f6fb; backdrop-filter: blur(6px); }
.hero-stage .btn-ghost:hover { border-color: #7fe3f2; color: #fff; background: rgba(255, 255, 255, .12); }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2);
  font-weight: 600;
}
.eyebrow::before, .kicker::before {
  content: ""; width: 20px; height: 1px; background: currentColor; opacity: .55; flex: none;
}
.eyebrow { color: var(--cyan); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(14,138,124,.12); }
.hero h1 {
  margin: 20px 0 18px; font-size: clamp(37px, 4.7vw, 58px);
  line-height: 1.14; letter-spacing: -.02em; font-weight: 700; color: var(--ink);
}
.grad {
  background: linear-gradient(100deg, var(--cyan-deep), var(--cyan) 46%, #1a9c8c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  max-width: 560px; color: var(--muted); font-size: 14.5px; line-height: 2;
  padding-left: 16px; border-left: 2px solid var(--line-strong);
}
.hero-copy { min-width: 0; }
.hero-cta { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 3px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; transition: .2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, #0b4f68, var(--cyan)); color: #fff; box-shadow: 0 8px 20px rgba(10, 112, 143, .2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(10, 112, 143, .26); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink-soft); background: var(--surface); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); }
.btn.compact { padding: 10px 16px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  counter-reset: hm;
}
.hero-meta > div { padding-left: 15px; border-left: 1px solid var(--line); min-width: 0; }
.hero-meta > div:first-child { padding-left: 0; border-left: 0; }
.hero-meta > div::before {
  counter-increment: hm; content: "0" counter(hm);
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  color: var(--muted-2); margin-bottom: 4px;
}
.hero-meta strong {
  display: block; font-size: 27px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.hero-meta span { font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }

/* ---------- map card ---------- */
.map-card {
  border-radius: 6px; border: 1px solid #103a4c;
  background: linear-gradient(180deg, #082f40 0%, #05222f 100%);
  box-shadow: 0 30px 60px rgba(6, 30, 42, .28); padding: 16px; position: relative; overflow: hidden;
  min-width: 0;
}
.map-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 240px at 88% 0%, rgba(56, 190, 214, .14), transparent 68%);
}
.hero-panel {
  width: 100%;
  background: linear-gradient(180deg, rgba(4, 20, 28, .22) 0%, rgba(2, 14, 20, .38) 100%);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px rgba(1, 10, 15, .28);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.map-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; position: relative; z-index: 1; }
.console-kicker { font-size: 9px; letter-spacing: .2em; color: #7fa4b3; }
.map-head h3 { margin: 4px 0 0; font-size: 18px; color: #eaf6fa; font-weight: 600; letter-spacing: .01em; }
.map-plate { position: relative; border-radius: 3px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.map-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(.62) brightness(.82) contrast(1.05); }
.sea-map { position: relative; width: 100%; height: auto; display: block; }
.sea-label { fill: #a8cbd8; font-size: 13px; letter-spacing: .3em; font-family: var(--font); }
.sea-label.small { font-size: 10px; letter-spacing: .12em; }
.island-label { fill: #e8fff9; font-size: 12px; font-weight: 600; letter-spacing: .1em; font-family: var(--font); }
.city-node circle { fill: #6fd8e6; stroke: #04222f; stroke-width: 1.8; }
.city-node text { fill: #e2f4fa; font-size: 11px; font-family: var(--font); font-weight: 600; }
.city-node.danger circle { fill: #ff6a52; }
.city-node.danger text { fill: #ffc4b8; }
.track-label { fill: #ffc2a4; font-size: 10px; font-family: var(--font); letter-spacing: .06em; }
.map-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; font-size: 10.5px; color: #a9c8d4; letter-spacing: .04em;
}
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 4px; }
.lg.red { background: #e04b3c; } .lg.orange { background: #ef8b2c; }
.lg.yellow { background: #e8b823; } .lg.blue { background: #2d8fd0; }
.map-legend-note { margin-left: auto; font-size: 9.5px; color: #7ea3b2; }
.hero-alerts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; }
.mini-alert {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 2px;
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .09);
  border-left: 2px solid rgba(255, 255, 255, .18);
  font-size: 11.5px; color: #d6e9f0; transition: .2s; cursor: pointer; text-align: left; width: 100%;
}
.mini-alert:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.mini-alert .alert-badge { flex-shrink: 0; }
.mini-alert span.title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-alert time { font-size: 9.5px; color: #8fb0bd; flex-shrink: 0; }
.skeleton-mini { height: 36px; border-radius: 2px; background: linear-gradient(100deg, rgba(255,255,255,.06) 20%, rgba(255,255,255,.12) 40%, rgba(255,255,255,.06) 60%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.map-foot {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 9.5px; color: #8fb0bd;
  letter-spacing: .04em; flex-wrap: wrap;
}
.map-foot em { font-style: normal; }
.map-foot b { color: #a9e8f4; font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.ticker-wrap { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.ticker-label { flex-shrink: 0; padding: 2px 7px; border-radius: 2px; background: rgba(255, 122, 96, .16); color: #ffb2a2; border: 1px solid rgba(255, 122, 96, .3); }
#tickerText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a7c7d3; }

/* ---------- quick entries ---------- */
.quick-band { max-width: 1320px; margin: 8px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.quick-card {
  display: flex; align-items: center; gap: 12px; padding: 17px 18px;
  border-right: 1px solid var(--line); background: var(--surface);
  transition: .2s; position: relative;
}
.quick-card:last-child { border-right: 0; }
.quick-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); transform: scaleY(0); transition: transform .22s;
}
.quick-card:hover { background: var(--surface-2); }
.quick-card:hover::before { transform: scaleY(1); }
.quick-icon { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(10, 112, 143, .07); border: 1px solid rgba(10, 112, 143, .14); color: var(--cyan); flex-shrink: 0; }
.quick-icon svg { width: 18px; height: 18px; }
.quick-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.quick-text strong { font-size: 14px; color: var(--ink); letter-spacing: .01em; }
.quick-text em { font-style: normal; font-size: 10.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-text b { color: var(--cyan); }
.quick-arrow { width: 15px; height: 15px; margin-left: auto; color: var(--muted-2); flex-shrink: 0; transition: .2s; }
.quick-card:hover .quick-arrow { color: var(--cyan); transform: translateX(2px); }

/* ---------- source strip ---------- */
.source-strip {
  max-width: 1320px; margin: 14px auto 0; padding: 13px 18px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.source-strip-label { font-size: 9.5px; letter-spacing: .2em; color: var(--muted-2); font-weight: 600; }
.source-logos { display: flex; gap: 22px; flex-wrap: wrap; }
.source-logos span { font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.source-strip-note { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }

/* ---------- field records ---------- */
.field-band { max-width: 1320px; margin: 0 auto; padding-top: clamp(30px, 4vw, 44px); }
.field-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.field-band-head h2 { margin: 7px 0 0; font-size: 17px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.field-band-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--muted-2); }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field-item { position: relative; display: block; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--navy); color: inherit; text-decoration: none; }
.field-item img { width: 100%; height: 236px; object-fit: cover; display: block; transition: transform .6s ease; }
.field-item:hover img { transform: scale(1.04); }
.field-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 34, 48, 0) 34%, rgba(6, 34, 48, .86) 100%); }
.field-cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  display: flex; align-items: flex-start; gap: 9px;
  color: #eaf6fa;
}
.field-cap b { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: #8fd6e4; font-weight: 500; }
.field-cap-text { display: flex; flex-direction: column; line-height: 1.4; }
.field-cap-text strong { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #f2fbfe; }
.field-cap-text em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(198, 226, 236, .62); }
.field-go {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  width: 15px; height: 15px; color: #eaf8fc;
  opacity: 0; transform: translateX(-5px); transition: opacity .25s, transform .25s;
}
.field-item:hover .field-go, .field-item:focus-visible .field-go { opacity: .9; transform: none; }
.field-item:focus-visible { outline: 2px solid #7fd0e0; outline-offset: 2px; }

/* ---------- sections ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(42px, 6vw, 74px) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 9px 0 0; font-size: clamp(23px, 2.7vw, 31px); letter-spacing: -.01em; color: var(--ink); font-weight: 700; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 12.5px; font-weight: 600; }
.text-link svg { width: 14px; height: 14px; transition: .2s; }
.text-link:hover svg { transform: translateX(3px); }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cap-card {
  position: relative; padding: 24px 22px 22px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--surface);
  transition: .22s; cursor: pointer; overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .28s;
}
.cap-card:hover { background: var(--surface-2); border-color: var(--line-strong); }
.cap-card:hover::before { transform: scaleX(1); }
.cap-card.wide { grid-column: span 2; }
.cap-no {
  position: absolute; right: 20px; top: 16px; font-family: var(--mono);
  font-size: 22px; color: #dfe8ec; letter-spacing: .02em; font-weight: 500;
}
.cap-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--cyan);
  margin-bottom: 18px;
}
.cap-icon svg { width: 19px; height: 19px; }
.cap-card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.cap-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.85; }
.cap-stat { display: block; margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted-2); }
.cap-stat b { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
.cap-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11.5px; color: var(--cyan); opacity: 0; transform: translateY(3px); transition: .22s; font-weight: 600; }
.cap-card:hover .cap-link { opacity: 1; transform: none; }
.cap-link svg { width: 13px; height: 13px; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-card, .news-card {
  display: flex; flex-direction: column; padding: 20px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--surface);
  transition: .22s; position: relative; overflow: hidden;
}
.preview-card:hover, .news-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.news-top { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.alert-badge { font-size: 9.5px; padding: 3px 8px; border-radius: 2px; letter-spacing: .06em; border: 1px solid transparent; font-weight: 600; }
.alert-Red, .alert-红色 { background: rgba(224, 75, 60, .09); color: #b1362a; border-color: rgba(224, 75, 60, .26); }
.alert-Orange, .alert-橙色 { background: rgba(239, 139, 44, .1); color: #a85f0d; border-color: rgba(239, 139, 44, .28); }
.alert-Yellow, .alert-黄色 { background: rgba(232, 184, 35, .12); color: #88660a; border-color: rgba(232, 184, 35, .3); }
.alert-Green, .alert-蓝色, .alert-信息 { background: rgba(45, 143, 208, .09); color: #1c6590; border-color: rgba(45, 143, 208, .24); }
.source-badge { font-size: 9.5px; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 2px; background: var(--surface-2); }
.news-card h3 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.news-card h3 a:hover { color: var(--cyan); }
.news-card .original { font-size: 10.5px; color: var(--muted-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p.summary { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--muted-2); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-foot .open-link { color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.news-foot svg { width: 12px; height: 12px; }

.flow-band {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center;
  padding: clamp(30px, 4vw, 50px); border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(120deg, #082f40, #0b4b61 60%, #0d6659);
  position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(6, 42, 58, .22);
}
.flow-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(460px 280px at 90% 10%, rgba(120, 220, 235, .16), transparent 70%);
}
.flow-copy { position: relative; color: #fff; }
.flow-copy .kicker { color: #8fd6e4; }
.flow-copy .kicker::before { opacity: .8; }
.flow-copy h2 { font-size: clamp(22px, 2.6vw, 31px); margin: 12px 0 12px; color: #fff; font-weight: 700; line-height: 1.35; }
.flow-copy p { color: #bcd9e2; font-size: 12.5px; margin-bottom: 22px; line-height: 1.85; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; position: relative; }
.flow-steps li {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.flow-steps li:first-child { border-top: 1px solid rgba(255, 255, 255, .13); }
.flow-steps b { font-family: var(--mono); color: #7fcfdd; font-size: 10.5px; letter-spacing: .08em; flex: none; }
.flow-steps strong { display: inline-block; width: 52px; font-size: 13px; color: #fff; font-weight: 600; flex: none; }
.flow-steps span { font-size: 11px; color: #a9c9d4; }

/* ---------- page head / toolbar ---------- */
.page-head {
  max-width: 1320px; margin: 0 auto; padding: clamp(32px, 4.4vw, 54px) 0 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 8px 0 8px; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; font-size: 13px; line-height: 1.9; }
.page-head-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.sync-bar {
  max-width: 1320px; margin: 0 auto 16px; padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  font-size: 12px; color: var(--muted);
}
.sync-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sync-meta strong { color: var(--ink); font-weight: 600; }
.sync-meta em { color: var(--ink); font-style: normal; font-variant-numeric: tabular-nums; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf8f; }
.sync-dot.fail { background: #e2574c; }
.src-list { display: flex; flex-wrap: wrap; gap: 6px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg, #fff);
  font-size: 11px; color: var(--muted);
}
.src-chip i { width: 5px; height: 5px; border-radius: 50%; background: #2fbf8f; }
.src-chip.fail i { background: #e2574c; }
.src-chip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.history-badge { color: #8a6d3b !important; border-color: #e6d3a8 !important; background: #fdf7e8 !important; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; padding: 6px 10px; border-radius: 2px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); }
.badge b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* page head with real photo */
.page-head.has-photo {
  position: relative; margin: clamp(20px, 2.6vw, 30px) auto 20px;
  padding: clamp(32px, 4.2vw, 52px) clamp(24px, 3.2vw, 42px);
  min-height: clamp(200px, 22vw, 268px);
  border: 1px solid #103a4c; border-radius: 4px; overflow: hidden;
  align-items: flex-end;
}
.page-head.has-photo .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  filter: saturate(.78) brightness(.88);
}
.page-head.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(5, 32, 45, .94) 0%, rgba(5, 32, 45, .86) 48%, rgba(5, 32, 45, .58) 84%, rgba(5, 32, 45, .42) 100%),
    linear-gradient(180deg, rgba(5, 32, 45, 0) 20%, rgba(5, 32, 45, .5) 58%, rgba(5, 32, 45, .8) 100%);
}
.page-head.has-photo > * { position: relative; z-index: 1; }
.page-head.has-photo .kicker { color: #7fd0e0; }
.page-head.has-photo h1 { color: #ffffff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.page-head.has-photo p { color: #e6f4f9; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.page-head.has-photo .badge { background: rgba(5, 32, 45, .55); border-color: rgba(255, 255, 255, .26); color: #eaf7fb; backdrop-filter: blur(4px); }
.page-head.has-photo .badge .dot { background: #7fe0cf; }
.page-head.has-photo .badge b { color: #fff; }
.page-head.has-photo .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.page-head.has-photo .btn-primary:hover { background: #eaf6fa; }
.page-head.has-photo .btn-ghost { border-color: rgba(255,255,255,.3); color: #eaf6fa; background: rgba(255,255,255,.06); }

.demo-note { max-width: 1320px; margin: 0 auto 18px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 2px; background: rgba(150, 112, 10, .06); border: 1px solid rgba(150, 112, 10, .2); border-left: 2px solid var(--amber); color: #7d5c08; font-size: 11.5px; }
.demo-note svg { width: 15px; height: 15px; flex-shrink: 0; }

.toolbar { max-width: 1320px; margin: 0 auto 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar.stacked { flex-direction: column; align-items: stretch; }
.search-box { flex: 1 1 240px; max-width: 320px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); }
.search-box.wide { width: 100%; max-width: none; flex: 1 1 100%; }
.search-box svg { width: 17px; height: 17px; color: var(--muted-2); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: 0; outline: 0; color: var(--ink); font-size: 13px; padding: 12px 0; }
.search-box input::placeholder { color: var(--muted-2); }
.search-box:focus-within { border-color: rgba(10, 112, 143, .45); box-shadow: 0 0 0 3px rgba(10, 112, 143, .06); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; align-items: center; }
.chip {
  padding: 6px 12px; border-radius: 2px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 11.5px; transition: .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.active { background: rgba(10, 112, 143, .08); border-color: rgba(10, 112, 143, .42); color: var(--cyan-deep); font-weight: 600; }
.chip b { font-weight: 500; opacity: .6; margin-left: 3px; }

.alert-stats { max-width: 1320px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.stat-card { padding: 17px 18px; border-right: 1px solid var(--line); }
.stat-card:last-child { border-right: 0; }
.stat-card em { display: block; font-style: normal; font-size: 10px; letter-spacing: .06em; color: var(--muted-2); }
.stat-card strong { font-size: 23px; display: block; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 10px; color: var(--muted); }
.stat-card .bar { height: 3px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.stat-card .bar i { display: block; height: 100%; background: var(--cyan); }

.news-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pager { max-width: 1320px; margin: 24px auto 0; display: flex; justify-content: center; gap: 5px; align-items: center; flex-wrap: wrap; }
.pager button { min-width: 33px; height: 33px; padding: 0 10px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; }
.pager button:hover { border-color: var(--line-strong); color: var(--ink); }
.pager button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager span { font-size: 11.5px; color: var(--muted-2); padding: 0 8px; }

/* ---------- shelter ---------- */
.shelter-note { margin-bottom: 10px; }
.shelter-guide-shell { max-width: 1320px; margin: 0 auto 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.shelter-guide-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 21px 22px 17px; }
.shelter-guide-top h2 { margin: 6px 0 0; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.shelter-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--aqua); font-size: 11px; white-space: nowrap; }
.shelter-verified svg { width: 14px; height: 14px; }
.shelter-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shelter-tab { min-width: 84px; text-align: center; }
.shelter-tab:focus-visible, .guide-source:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.shelter-guide { padding: 20px 22px 22px; outline: none; }
.shelter-guide-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 16px; }
.shelter-guide-meta > div > span { display: block; color: var(--cyan); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.shelter-guide-meta h2 { margin: 4px 0 0; font-size: 18px; color: var(--ink); }
.shelter-guide-meta > p { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.shelter-guide-meta > p span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.shelter-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shelter-guide-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelter-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelter-card { padding: 22px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); }
.shelter-card.wide { grid-column: span 3; }
.shelter-card.kit-card { grid-column: span 2; }
.guide-card { display: flex; flex-direction: column; padding: 18px; background: linear-gradient(180deg, rgba(10, 112, 143, .025), transparent 45%), var(--surface); }
.guide-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--cyan); }
.guide-card-head > span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted-2); }
.guide-card-head svg { width: 19px; height: 19px; }
.guide-card h3 { margin-bottom: 12px; }
.guide-card .check-list { flex: 1; }
.guide-sources { display: grid; gap: 6px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-sources-label { color: var(--muted-2); font-size: 9px; letter-spacing: .08em; }
.guide-source { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 1px solid transparent; background: var(--surface-2); color: var(--muted); transition: .18s; }
.guide-source:hover { border-color: rgba(10, 112, 143, .28); color: var(--cyan-deep); background: rgba(10, 112, 143, .04); }
.guide-source-copy { min-width: 0; }
.guide-source-copy b { display: block; font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.guide-source-copy em { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.55; font-style: normal; overflow-wrap: anywhere; }
.guide-source > svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--cyan); }
.kit-source { max-width: 440px; }
.shelter-card.hotline { background: linear-gradient(160deg, #082f40, #0b4b61); border-color: transparent; color: #fff; }
.shelter-card.hotline h3 { color: #fff; }
.shelter-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; color: var(--ink); font-weight: 600; }
.shelter-card h3 svg { width: 18px; height: 18px; color: var(--cyan); }
.shelter-card.hotline h3 svg { color: #8fe0d6; }
.hotline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hotline-list li { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hotline-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hotline-list b { font-size: 21px; font-weight: 700; letter-spacing: .01em; color: #a9ecdf; font-variant-numeric: tabular-nums; }
.hotline-list span { font-size: 11.5px; color: #c4e3ea; }
.shelter-tip { margin: 14px 0 0; font-size: 11px; line-height: 1.75; color: var(--muted-2); }
.shelter-card.hotline .shelter-tip { color: #a9c9d4; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 19px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 0; background: rgba(14, 138, 124, .14); border: 1px solid rgba(14, 138, 124, .45); }
.kit-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-tags span { padding: 5px 10px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.phrase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 12px 0 16px; }
.phrase { padding: 12px 14px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid rgba(10, 112, 143, .35); }
.phrase em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: var(--cyan); margin-bottom: 4px; }
.phrase p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- translation ---------- */
.translate-card {
  max-width: 1320px; margin: 0 auto; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.trans-head { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lang-select-wrap { display: flex; flex-direction: column; gap: 2px; }
.lang-select-wrap label { font-size: 8.5px; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }
.lang-select { background: transparent; border: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; outline: 0; padding: 0 20px 0 0; cursor: pointer; }
.lang-select option { background: #fff; color: var(--ink); }
.swap-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.swap-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: rotate(180deg); transition: .35s; }
.swap-btn svg { width: 16px; height: 16px; }
.trans-body { display: grid; grid-template-columns: 1fr 1fr; }
.trans-pane { padding: 18px 20px 16px; display: flex; flex-direction: column; min-height: 330px; }
.source-pane { border-right: 1px solid var(--line); }
.pane-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pane-tag { font-size: 9.5px; letter-spacing: .16em; color: var(--muted-2); }
.pane-tag.accent { color: var(--cyan); }
.pane-tag em { font-style: normal; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.pane-actions { display: flex; gap: 6px; }
.char-count { font-size: 10.5px; color: var(--muted-2); }
.char-count b { color: var(--muted); font-weight: 500; }
#sourceText {
  flex: 1; min-height: 150px; resize: none; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-size: 16px; line-height: 1.9; padding: 4px 0;
}
#sourceText::placeholder { color: #9cb2bc; }
.source-highlight { display: none; margin: 4px 0 10px; padding: 10px 12px; border-radius: 2px; border: 1px dashed rgba(150, 112, 10, .3); background: rgba(150, 112, 10, .04); font-size: 12px; line-height: 1.75; color: var(--muted); }
.source-highlight:not(:empty) { display: block; }
.source-highlight .sh-label { display: block; font-size: 8.5px; letter-spacing: .14em; color: var(--amber); margin-bottom: 4px; }
.voice-bar { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.voice-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 2px; border: 1px solid var(--line); background: rgba(10, 112, 143, .04); color: var(--muted); font-size: 11.5px; }
.voice-btn:hover { color: var(--cyan); border-color: rgba(10, 112, 143, .38); }
.voice-btn svg { width: 14px; height: 14px; }
.voice-btn.recording { background: rgba(185, 57, 42, .08); border-color: rgba(185, 57, 42, .4); color: var(--coral); animation: recPulse 1.6s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 6px rgba(185, 57, 42, .07); } }
.auto-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-2); }
.auto-label input { accent-color: var(--cyan); }
.text-btn { margin-left: auto; background: none; border: 0; color: var(--muted-2); font-size: 11.5px; }
.text-btn:hover { color: var(--ink); }
.sample-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sample-row button { border: 1px dashed var(--line-strong); background: none; color: var(--muted-2); font-size: 10.5px; padding: 4px 9px; border-radius: 2px; }
.sample-row button:hover { color: var(--cyan); border-color: rgba(10, 112, 143, .38); }
.result-pane { background: linear-gradient(180deg, rgba(10, 112, 143, .03), transparent); }
.result-text { flex: 1; min-height: 150px; font-size: 16px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; padding: 4px 0; color: var(--ink); }
.result-text .placeholder-text { color: #9cb2bc; }
@keyframes blink { 50% { opacity: 0; } }
.result-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.status-text { font-size: 10.5px; color: var(--muted-2); }
mark.term-hit { background: rgba(232, 184, 35, .2); color: #7d5c08; border-bottom: 1px solid rgba(150, 112, 10, .45); padding: 0 2px; }

.rag-panel { max-width: 1320px; margin: 14px auto 0; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.rag-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rag-head h3 { margin: 4px 0 0; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.rag-tabs { display: flex; gap: 5px; }
.rag-tabs button { padding: 6px 12px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; }
.rag-tabs button.active { background: rgba(10, 112, 143, .08); border-color: rgba(10, 112, 143, .34); color: var(--cyan-deep); font-weight: 600; }
.rag-tabs b { font-weight: 500; opacity: .7; margin-left: 2px; }
.rag-content { padding: 16px 20px 20px; min-height: 90px; }
.rag-empty { color: var(--muted-2); font-size: 12.5px; }
.rag-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.rag-item { padding: 13px 15px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface-2); border-left: 2px solid rgba(10, 112, 143, .3); }
.rag-item .rag-item-top { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted-2); margin-bottom: 6px; }
.rag-item .score { color: var(--aqua); font-family: var(--mono); }
.rag-item strong { display: block; font-size: 12.5px; margin-bottom: 4px; color: var(--ink); }
.rag-item p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.rag-item .tag { display: inline-block; font-size: 9.5px; padding: 1px 6px; border-radius: 2px; background: rgba(10, 112, 143, .07); color: var(--cyan); margin-right: 4px; }
.empty-state { text-align: center; padding: 26px 10px; color: var(--muted-2); }
.empty-state svg { width: 24px; height: 24px; margin: 0 auto 8px; opacity: .5; }
.empty-state p { margin: 0; font-size: 11.5px; }

/* ---------- tables ---------- */
.table-wrap { max-width: 1320px; margin: 0 auto; border-radius: 2px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; padding: 11px 16px; font-size: 9.5px; letter-spacing: .12em; color: var(--muted-2); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #edf2f5; vertical-align: middle; color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: .16s; }
.data-table tbody tr:hover { background: rgba(10, 112, 143, .03); }
.term-zh { font-weight: 600; color: var(--ink); }
.term-en { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.term-trans { color: var(--aqua); font-weight: 600; }
.tag-lang { font-size: 9.5px; padding: 2px 6px; border-radius: 2px; background: var(--surface-3); color: var(--ink-soft); }
.tag-domain { font-size: 9.5px; color: var(--muted-2); }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.status-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); }
.row-action { background: none; border: 0; color: var(--cyan); font-size: 11.5px; font-weight: 600; }
.term-cards { display: none; }

/* ---------- corpus ---------- */
.corpus-list { max-width: 1320px; margin: 0 auto; display: grid; gap: 8px; }
.corpus-item { padding: 16px 18px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); transition: .18s; border-left: 2px solid rgba(10, 112, 143, .28); }
.corpus-item:hover { border-color: var(--line-strong); border-left-color: var(--cyan); }
.corpus-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.corpus-pair .zh { font-size: 13px; line-height: 1.8; color: var(--ink); }
.corpus-pair .tr { font-size: 13px; line-height: 1.8; color: var(--aqua); }
.corpus-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 9px; font-size: 10px; color: var(--muted-2); }
.corpus-meta .dot-sep { opacity: .4; }

/* ---------- QA ---------- */
.qa-shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 286px 1fr; gap: 10px; min-height: 600px; }
.qa-side { display: flex; flex-direction: column; gap: 10px; }
.qa-side-block { padding: 17px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); }
.qa-side-block h4 { margin: 0 0 11px; font-size: 9.5px; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; }
.suggest-list { display: grid; gap: 5px; }
.suggest-list button { text-align: left; padding: 9px 11px; border-radius: 2px; border: 1px solid transparent; border-left: 2px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.suggest-list button:hover { color: var(--cyan-deep); border-color: rgba(10, 112, 143, .24); border-left-color: var(--cyan); background: rgba(10, 112, 143, .04); }
.qa-side-block.note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa-side-block.note li { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.qa-side-block.note b { color: var(--aqua); font-variant-numeric: tabular-nums; }
.chat { display: flex; flex-direction: column; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.chat-scroll { flex: 1; padding: 22px; overflow-y: auto; max-height: 620px; min-height: 470px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 11px; max-width: 88%; }
.msg.user { flex-direction: row-reverse; margin-left: auto; }
.avatar { width: 32px; height: 32px; border-radius: 2px; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; background: linear-gradient(150deg, #0b4f68, var(--cyan)); color: #fff; }
.msg.user .avatar { background: var(--surface-3); color: var(--muted); }
.bubble { padding: 13px 16px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.msg.user .bubble { background: rgba(10, 112, 143, .06); border-color: rgba(10, 112, 143, .2); }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .muted { color: var(--muted-2); font-size: 11.5px; }
.bubble .cite { display: inline-block; font-size: 9.5px; padding: 0 4px; border-radius: 2px; background: rgba(10, 112, 143, .1); color: var(--cyan-deep); vertical-align: 1px; margin: 0 1px; }
.qa-sources { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 6px; }
.qa-sources .src-title { font-size: 9.5px; letter-spacing: .1em; color: var(--muted-2); }
.qa-src { display: block; padding: 8px 10px; border-radius: 2px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; }
.qa-src:hover { border-color: rgba(10, 112, 143, .3); }
.qa-src b { color: var(--cyan); font-weight: 600; margin-right: 4px; }
.qa-src span { color: var(--muted-2); }
.chat-input { display: flex; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat-input input { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 11px 14px; color: var(--ink); outline: 0; font-size: 13px; }
.chat-input input:focus { border-color: rgba(10, 112, 143, .45); }
.chat-hint { text-align: center; font-size: 9.5px; color: var(--muted-2); padding: 0 0 10px; }
.typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* ---------- admin ---------- */
.admin-stats { max-width: 1320px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.admin-table td { font-size: 12px; }
.admin-table .title-cell { max-width: 380px; }
.admin-table .title-cell b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.admin-actions { display: flex; gap: 5px; }
.admin-actions button { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.admin-actions button:hover { color: var(--cyan); border-color: rgba(10, 112, 143, .32); }
.admin-actions button.danger:hover { color: var(--coral); border-color: rgba(185, 57, 42, .38); }
.admin-actions svg { width: 13px; height: 13px; }

/* ---------- knowledge update ---------- */
.update-panel { max-width: 1320px; margin: 26px auto 20px; border: 1px solid var(--line); background: var(--surface); }
.update-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.update-head h2 { margin: 4px 0 6px; font-size: 17px; color: var(--ink); font-weight: 600; }
.update-head p { margin: 0; max-width: 760px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.update-stats { max-width: none; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.update-stats .stat-card strong.small { font-size: 15px; }
.pending-group { border-bottom: 1px solid var(--line); }
.pending-group:last-child { border-bottom: 0; }
.pending-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px 10px; flex-wrap: wrap; }
.pending-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.pending-head h3 b { color: var(--cyan); font-weight: 600; }
.pending-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { padding: 5px 10px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10.5px; }
.mini-btn.ok { color: var(--cyan-deep); border-color: rgba(10, 112, 143, .3); background: rgba(10, 112, 143, .05); }
.mini-btn.ok:hover { background: rgba(10, 112, 143, .12); }
.mini-btn.no:hover { color: var(--coral); border-color: rgba(185, 57, 42, .35); }
.pending-trans { display: flex; gap: 8px; line-height: 1.6; font-size: 11.5px; color: var(--ink-soft); }
.pending-trans em { flex: 0 0 44px; font-style: normal; font-size: 9.5px; letter-spacing: .04em; color: var(--muted-2); padding-top: 2px; }
.pending-trans + .pending-trans { margin-top: 4px; }
.pending-source { max-width: 220px; font-size: 10.5px; color: var(--muted-2); }
.update-empty { padding: 26px 18px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(56px, 7vw, 92px); border-top: 2px solid var(--cyan); background: var(--navy); color: #cfe2e9; }
.footer-main { max-width: 1320px; margin: 0 auto; padding: 46px 0 32px; display: flex; gap: 60px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 13px; max-width: 330px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .07); box-shadow: inset 0 -2px 0 rgba(56, 207, 190, .5); }
.footer-brand strong { font-size: 15px; letter-spacing: .1em; color: #f0f8fb; }
.footer-brand p { margin: 7px 0 0; font-size: 11.5px; color: #8fb0bd; line-height: 1.75; }
.footer-cols { display: flex; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.footer-cols h5 { margin: 0 0 12px; font-size: 9.5px; letter-spacing: .16em; color: #7fa4b3; font-weight: 600; }
.footer-cols a, .footer-cols span { display: block; font-size: 11.5px; color: #a9c8d4; margin-bottom: 8px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { max-width: 1320px; margin: 0 auto; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: #7fa4b3; flex-wrap: wrap; }
.footer-secure { display: inline-flex; align-items: center; gap: 5px; }
.footer-secure svg { width: 12px; height: 12px; color: #6fd0c2; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 39, .58); backdrop-filter: blur(5px); }
.modal-card { position: relative; max-width: 720px; width: calc(100% - 32px); max-height: 86vh; overflow-y: auto; margin: 7vh auto; padding: 28px; border-radius: 3px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); animation: modalIn .28s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 15px; top: 15px; width: 31px; height: 31px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.modal-close svg { width: 14px; height: 14px; }
.modal h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.45; color: var(--ink); font-weight: 700; }
.modal .modal-sub { font-size: 11.5px; color: var(--muted-2); margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.modal .modal-body p { color: var(--muted); font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.modal .modal-original { margin-top: 16px; padding: 13px 15px; border-radius: 2px; border: 1px dashed var(--line-strong); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.form-grid { display: grid; gap: 12px; margin-top: 16px; }
.form-grid label { font-size: 10.5px; color: var(--muted-2); display: block; margin-bottom: 5px; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: 0; font-size: 12.5px; }
.form-grid textarea { min-height: 90px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toast-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 300; display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 2px; border: 1px solid rgba(10, 112, 143, .3); background: #fff; color: var(--ink); font-size: 12px; box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast.error { border-color: rgba(185, 57, 42, .4); color: #a33a26; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- skeletons ---------- */
.skeleton { height: 190px; border-radius: 2px; border: 1px solid var(--line); background: linear-gradient(100deg, #eef3f6 20%, #e4ecf0 40%, #eef3f6 60%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skeleton.tall { height: 230px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- polish：质感、层级与轻动效 ---------- */
::selection { background: rgba(10, 112, 143, .16); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3d3da; border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a9bfc9; }

/* 滚动进度与吸顶导航 */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 95; pointer-events: none; }
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #0a708f, #14b8a6 62%, #d3a84a);
  box-shadow: 0 0 10px rgba(20, 184, 166, .55);
}
.topbar { transition: box-shadow .25s, background .25s; }
.topbar.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 12px 30px rgba(6, 42, 58, .08); }

/* 首屏入场 */
.hero-copy { animation: heroIn .8s cubic-bezier(.22, .8, .28, 1) both; }
.hero-stage .hero-panel { animation: heroIn .9s .12s cubic-bezier(.22, .8, .28, 1) both; }
.hero-stage .lede { text-shadow: 0 1px 14px rgba(2, 18, 26, .55); }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 主按钮扫光 */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, .34) 48%, transparent 64%);
  transform: translateX(-130%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }

/* 首屏统计：玻璃分隔与数字质感 */
.hero-stage .hero-meta { margin-top: 32px; padding: 18px 20px 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-stage .hero-meta > div { padding-left: 18px; border-left-color: rgba(255, 255, 255, .13); }
.hero-stage .hero-meta strong { letter-spacing: -.025em; text-shadow: 0 1px 14px rgba(126, 224, 240, .2); }

/* 态势面板：透明化，让背景卫星图透出来 */
.hero-panel { position: relative; overflow: hidden; }
.hero-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(127, 227, 242, .05) 55%, transparent);
  animation: panelScan 9s linear infinite;
}
.hero-panel::after { display: none; }
@keyframes panelScan { to { transform: translateY(680px); } }
.map-head, .map-legend, .hero-alerts, .map-foot { position: relative; z-index: 1; }
.mini-alert:hover { transform: translateX(2px); }
.mini-alert:has(.alert-Red) { border-left-color: #e04b3c; }
.mini-alert:has(.alert-Orange) { border-left-color: #ef8b2c; }
.mini-alert:has(.alert-Yellow) { border-left-color: #e8b823; }
.mini-alert:has(.alert-Green) { border-left-color: #2d8fd0; }

/* 首屏 SVG 态势动效 */
.hero-bg-map .city-node.danger circle { transform-box: fill-box; transform-origin: center; animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { opacity: .55; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.18); } }

/* 快捷入口 */
.quick-card { transition: background .22s, transform .22s, box-shadow .22s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(10, 38, 52, .08); z-index: 1; }
.quick-icon { transition: background .22s, color .22s, border-color .22s; }
.quick-card:hover .quick-icon { background: var(--cyan); border-color: var(--cyan); color: #fff; }

/* 数据源条 */
.source-logos span { position: relative; transition: color .2s; }
.source-logos span:hover { color: var(--cyan-deep); }
.source-logos span + span::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px;
  background: var(--line-strong); transform: translateY(-50%) rotate(45deg);
}

/* 现场照片 */
.field-item { border-radius: 3px; }
.field-item img { filter: saturate(.82) contrast(1.02); }
.field-item:hover img { filter: saturate(1.06) contrast(1.04); }
.field-item::before {
  content: ""; position: absolute; left: 14px; top: 13px; z-index: 1;
  width: 24px; height: 2px; background: #7fd0e0; opacity: .9;
}

/* 能力卡片 */
.cap-card { border-radius: 3px; transition: transform .25s, box-shadow .25s, background .22s, border-color .22s; }
.cap-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(10, 38, 52, .08); }
.cap-icon { transition: background .22s, color .22s, border-color .22s; border-radius: 3px; }
.cap-card:hover .cap-icon { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.cap-no { font-size: 26px; letter-spacing: .01em; }
.cap-link svg { transition: transform .22s; }
.cap-card:hover .cap-link svg { transform: translateX(3px); }

/* 预警卡片：色带、悬浮与标题下划线 */
.preview-card, .news-card { border-radius: 3px; transition: transform .22s, box-shadow .22s, background .22s, border-color .22s; }
.preview-card::before, .news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-strong); transition: background .22s;
}
.news-card:has(.alert-Red)::before { background: #d14b3a; }
.news-card:has(.alert-Orange)::before { background: #e0812a; }
.news-card:has(.alert-Yellow)::before { background: #d9ad1d; }
.news-card:has(.alert-Green)::before { background: #2d8fd0; }
.preview-card:hover, .news-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10, 38, 52, .07); }
.news-card h3 a {
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s ease, color .2s;
}
.news-card:hover h3 a { background-size: 100% 1px; }

/* 统计卡片 */
.stat-card { position: relative; overflow: hidden; transition: background .2s; }
.stat-card:hover { background: var(--surface-2); }
.stat-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--aqua));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-card strong { letter-spacing: -.02em; }

/* 流程带 */
.flow-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(143, 214, 228, .16);
  box-shadow: 0 0 0 34px rgba(143, 214, 228, .05), 0 0 0 68px rgba(143, 214, 228, .035);
  pointer-events: none;
}

/* 页头照片 */
.page-head.has-photo { box-shadow: 0 20px 44px rgba(6, 42, 58, .16); }
.page-head.has-photo::after {
  z-index: 1;
  background:
    linear-gradient(94deg, rgba(5, 32, 45, .95) 0%, rgba(5, 32, 45, .9) 44%, rgba(5, 32, 45, .68) 72%, rgba(5, 32, 45, .24) 100%),
    linear-gradient(180deg, rgba(5, 32, 45, 0) 30%, rgba(5, 32, 45, .18) 78%, rgba(5, 32, 45, .42) 100%);
}
.page-head.has-photo .ph { z-index: 0; }
.page-head.has-photo > :not(.ph) { z-index: 2; }
.page-head.has-photo h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.page-head.has-photo p { max-width: 620px; font-size: 13.5px; font-weight: 500; color: #f0f9fc; text-shadow: 0 1px 4px rgba(0, 0, 0, .6), 0 8px 28px rgba(0, 0, 0, .5); }
.page-head.has-photo .badge { transition: border-color .2s, background .2s; }
.page-head.has-photo .badge:hover { border-color: rgba(255, 255, 255, .5); }

/* 表格与检索 */
.table-wrap { border-radius: 3px; box-shadow: var(--shadow-sm); }
.search-box { border-radius: 3px; }
.chip { border-radius: 3px; }
.chip:hover { background: var(--surface-2); }

/* 页脚 */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--aqua) 52%, transparent);
}
.footer-cols a { transition: color .2s, transform .2s; }
.footer-cols a:hover { transform: translateX(2px); }

/* ---------- 信息层级与概览组件 ---------- */
.block-head {
  max-width: 1320px; margin: 0 auto 10px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
}
.block-head h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.block-head p { margin: 0; max-width: 470px; text-align: right; color: var(--muted); font-size: 11px; line-height: 1.7; }
.block-head .kicker { color: var(--cyan); }

.data-overview { max-width: 1320px; margin: 0 auto 10px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 10px; }
.overview-card {
  display: flex; flex-direction: column;
  padding: 15px 18px 17px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.overview-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.overview-head span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--cyan); }
.overview-head h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: 1; align-content: center; }
.ov-metric { padding-left: 11px; border-left: 1px solid var(--line); min-width: 0; }
.ov-metric:first-child { padding-left: 0; border-left: 0; }
.ov-metric strong { display: block; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-metric span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
.domain-bars { display: grid; gap: 7px; }
.domain-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 10.5px; color: var(--muted); }
.domain-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-row > i { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.domain-row > i > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--aqua)); transition: width .55s ease; }
.domain-row > b { text-align: right; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.flow-strip {
  max-width: 1320px; margin: 0 auto 10px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 3px; background: var(--surface);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.flow-step { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-right: 1px solid var(--line); }
.flow-step:last-child { border-right: 0; }
.flow-step > span {
  flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(10, 112, 143, .3); color: var(--cyan); font-family: var(--mono); font-size: 9px;
}
.flow-step b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.flow-step em { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted-2); }
.flow-step::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
  background: var(--surface); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.flow-step:last-child::after { display: none; }

.shelter-quick { max-width: 1320px; margin: 0 auto 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelter-quick article {
  position: relative; display: flex; align-items: flex-start; gap: 13px; overflow: hidden;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.shelter-quick article::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(10, 112, 143, .12));
}
.sq-idx { position: absolute; right: 14px; top: 11px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted-2); }
.sq-icon {
  flex: 0 0 auto; width: 33px; height: 33px; display: grid; place-items: center;
  border-radius: 3px; background: rgba(10, 112, 143, .07); color: var(--cyan-deep);
}
.sq-icon svg { width: 17px; height: 17px; }
.shelter-quick h3 { margin: 0 0 4px; font-size: 12.5px; color: var(--ink); }
.shelter-quick p { margin: 0; padding-right: 14px; font-size: 11px; line-height: 1.7; color: var(--muted); }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 112, 143, .05), transparent);
}
.chat-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-ident .avatar {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px;
}
.chat-ident b { display: block; font-size: 12px; color: var(--ink); }
.chat-ident em { display: block; margin-top: 2px; font-style: normal; font-size: 9.5px; color: var(--muted-2); }
.chat-caps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chat-caps span {
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--muted); font-size: 9px; white-space: nowrap;
}

.qa-side-block.note li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.kb-bar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.kb-bar > i { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--aqua)); transition: width .6s ease; }

.corpus-item { position: relative; padding-left: 56px; }
.corpus-idx { position: absolute; left: 18px; top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted-2); }

.stat-card .stat-icon { position: absolute; right: 14px; top: 14px; color: var(--muted-2); opacity: .55; }
.stat-card .stat-icon svg { width: 16px; height: 16px; }
.stat-card span:not(.stat-icon) { display: block; }

.toolbar.stacked {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.page-head.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent 65%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent 65%);
}

/* 滚动渐显（仅在 JS 可用时启用） */
body.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .28, 1); }
body.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (hover: none) {
  .cap-link { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-right-col { max-width: 720px; justify-self: center; }
  .hero-bg-map { width: 72%; }
  .nav a { padding: 9px 9px; font-size: 13px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card.wide { grid-column: span 2; }
  .news-grid, .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-shell { grid-template-columns: 240px 1fr; }
  .quick-band { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(1), .quick-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .shelter-grid { grid-template-columns: repeat(2, 1fr); }
  .shelter-card.wide { grid-column: span 2; }
  .shelter-card.kit-card { grid-column: span 1; }
  .shelter-guide-grid, .shelter-guide-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrase-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-item:last-child { grid-column: span 2; }
  .field-item:last-child img { height: 260px; }
  .page-head.has-photo { min-height: 210px; }
}
@media (max-width: 860px) {
  .hero-bg::before {
    background:
      linear-gradient(180deg, rgba(3, 19, 27, .93) 0%, rgba(3, 19, 27, .8) 44%, rgba(4, 24, 34, .92) 100%),
      radial-gradient(520px 340px at 68% 26%, rgba(23, 110, 130, .26), transparent 72%);
  }
  .nav { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 6px; border-radius: 2px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 13px; }
  .nav a::after { display: none; }
  .nav a.active { background: var(--surface-3); }
  .menu-btn { display: grid; }
  .live-pill span { display: none; }
  .live-pill { padding: 6px 8px; }
  .trans-body { grid-template-columns: 1fr; }
  .source-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .trans-pane { min-height: 250px; }
  .qa-shell { grid-template-columns: 1fr; }
  .qa-side { flex-direction: row; flex-wrap: wrap; }
  .qa-side-block { flex: 1; min-width: 220px; }
  .rag-list { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .alert-stats, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .flow-band { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { gap: 30px; }
  .corpus-pair { grid-template-columns: 1fr; gap: 8px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head-badges { justify-content: flex-start; }
  .page-head.has-photo { padding: 28px 22px; min-height: 220px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hero-stage .hero-meta > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stage .hero-meta > div:nth-child(even) { padding-left: 18px; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 5px; }
  .block-head p { max-width: none; text-align: left; }
  .data-overview { grid-template-columns: 1fr; }
  .shelter-quick { grid-template-columns: 1fr; }
  .flow-strip { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(1), .flow-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .flow-step:nth-child(2)::after { display: none; }
  .corpus-item { padding-left: 44px; }
  .corpus-idx { left: 13px; top: 15px; }
  .page-head.has-photo { align-items: flex-start; }
}
@media (max-width: 640px) {
  .flow-strip { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step::after { display: none; }
  .overview-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .ov-metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .chat-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chat-caps { display: none; }
  .qa-side { flex-direction: column; }
  .qa-side-block { min-width: 0; }
  .toolbar.stacked { padding: 11px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand-text em { display: none; }
  .live-pill { display: none; }
  .view { padding: 0 14px; }
  .hero-stage { margin: 0 -14px; padding: 0 14px; }
  .hero-stage::after { height: 130px; }
  .hero-bg-map { display: none; }
  .hero { padding-top: 30px; padding-bottom: 56px; }
  .hero h1 { font-size: 33px; }
  .lede { padding-left: 12px; font-size: 13.5px; }
  .hero-meta strong { font-size: 22px; }
  .cap-grid, .news-grid, .preview-grid, .quick-band { grid-template-columns: 1fr; }
  .cap-card.wide { grid-column: span 1; }
  .quick-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-card:last-child { border-bottom: 0; }
  .source-strip { padding: 12px 4px; gap: 12px; }
  .source-strip-note { display: none; }
  .source-logos { gap: 14px; }
  .source-logos span { font-size: 11px; }
  .section { padding-top: 40px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-item:last-child { grid-column: span 1; }
  .field-item img, .field-item:last-child img { height: 200px; }
  .alert-stats, .admin-stats { grid-template-columns: 1fr 1fr; }
  .data-table { display: none; }
  .term-cards { display: grid; gap: 10px; padding: 12px; }
  .term-card { padding: 14px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface-2); }
  .term-card .tc-top { display: flex; justify-content: space-between; gap: 10px; }
  .term-card .tc-trans { color: var(--aqua); margin: 6px 0; font-size: 13px; }
  .term-card .tc-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 9.5px; color: var(--muted-2); }
  .admin-table { display: table; font-size: 10.5px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3), .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
  .admin-table .title-cell { max-width: 150px; }
  .trans-head { padding: 12px 14px; display: grid; grid-template-columns: 1fr 32px; gap: 6px 10px; align-items: center; }
  .trans-head > .lang-select-wrap:first-child { grid-column: 1; grid-row: 1; }
  .trans-head > .swap-btn { grid-column: 2; grid-row: 1 / span 2; }
  .trans-head > .lang-select-wrap:last-child { grid-column: 1; grid-row: 2; }
  .lang-select { width: 100%; font-size: 13.5px; }
  .trans-pane { padding: 15px 13px; }
  .chat-scroll { padding: 15px; }
  .modal-card { padding: 22px 18px; margin: 5vh auto; }
  .footer-main { padding: 30px 20px 22px; }
  .footer-bottom { padding: 14px 20px; }
  .footer-cols { gap: 22px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .map-card { padding: 13px; }
  .typhoon-live { margin: 12px -13px -13px; }
  .shelter-grid { grid-template-columns: 1fr; }
  .shelter-card.wide, .shelter-card.kit-card { grid-column: span 1; }
  .shelter-guide-top { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px 16px 14px; }
  .shelter-tabs { padding: 10px 16px; }
  .shelter-tab { flex: 1 1 calc(33.333% - 6px); min-width: 0; padding: 7px 8px; }
  .shelter-guide { padding: 16px; }
  .shelter-guide-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .shelter-guide-meta > p { text-align: left; }
  .shelter-guide-grid, .shelter-guide-grid.is-four { grid-template-columns: 1fr; }
  .phrase-grid { grid-template-columns: 1fr; }
  .map-legend-note { display: none; }
  .page-head.has-photo { padding: 24px 18px; min-height: 200px; }
  .page-head.has-photo::after { background: linear-gradient(180deg, rgba(5, 32, 45, .7) 0%, rgba(5, 32, 45, .9) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
