/* ========== NAVIRA 官网设计系统 v2 ========== */
:root {
  --bg-0: #02060f;
  --bg-1: #050a1a;
  --bg-2: #0a1428;
  --bg-3: #0d1b3d;

  --glass: rgba(20, 38, 75, 0.45);
  --glass-strong: rgba(28, 50, 95, 0.65);
  --glass-border: rgba(120, 170, 255, 0.18);
  --glass-border-strong: rgba(120, 170, 255, 0.32);

  --brand: #4a9eff;
  --brand-glow: #6bb6ff;
  --brand-deep: #1e6fd9;
  --accent-cyan: #5fdfff;
  --accent-violet: #8b7fff;

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  --text-1: #eaf2ff;
  --text-2: #c4d2e8;
  --text-3: #9aabc8;
  --text-4: #687a9b;

  --font-cn: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 1400px 900px at 50% -20%, rgba(74, 158, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 30%, rgba(95, 223, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 800px 600px at 0% 70%, rgba(139, 127, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #02060f 0%, #050d24 50%, #02060f 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 14%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 28% 38%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 47% 22%, rgba(150,200,255,0.6), transparent),
    radial-gradient(1px 1px at 64% 48%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 81% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 92% 62%, rgba(150,200,255,0.5), transparent),
    radial-gradient(1px 1px at 18% 78%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 38% 88%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 73% 82%, rgba(150,200,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(180deg, rgba(2, 6, 15, 0.85) 0%, rgba(2, 6, 15, 0.4) 100%);
  border-bottom: 1px solid rgba(120, 170, 255, 0.08);
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.08em; }
.nav-logo .logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(95, 223, 255, 0.4), rgba(74, 158, 255, 0.15));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.5), inset 0 0 12px rgba(95, 223, 255, 0.3);
}
.nav-logo .logo-mark svg { width: 18px; height: 18px; }
.nav-logo .brand { font-family: var(--font-en); font-size: 16px; }
.nav-logo .brand-cn { color: var(--text-3); font-size: 13px; font-weight: 400; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; transition: color 0.2s; font-weight: 500;
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn {
  font-family: var(--font-cn);
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  border-color: var(--glass-border-strong);
  color: var(--text-1);
  background: rgba(74, 158, 255, 0.08);
}
.btn-primary {
  background: linear-gradient(135deg, #4a9eff 0%, #1e6fd9 100%);
  color: white;
  box-shadow: 0 4px 24px rgba(74, 158, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 32px rgba(74, 158, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-lg { padding: 13px 26px; font-size: 14px; }

/* ============ Hero - Full Bleed Cinematic ============ */
.hero-cinema {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* 移动浏览器地址栏出现/隐藏时不抖动 */
  min-height: 600px;
  overflow: hidden;
  z-index: 1;
}

.globe-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 60px 60px;
  gap: 32px;
}
.hero-overlay > .hero-text-block { align-self: center; }

/* === Hero 右侧 drawer（市场快讯 + 动态数据，可推拉） === */
.hero-right-drawer {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  z-index: 7;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}
.hero-right-drawer.collapsed {
  transform: translate(calc(100% - 28px + 56px), -50%); /* 380 + 56 right margin → tab 贴右屏边，保持垂直居中 */
}
.hrd-tab {
  width: 28px;
  background: linear-gradient(180deg, rgba(8, 16, 36, 0.85), rgba(6, 12, 28, 0.78));
  border: 1px solid rgba(95, 223, 255, 0.18);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--brand-glow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  height: 88px;
  padding: 0;
  flex-shrink: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.hrd-tab > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  /* 垂直书写时尾字符的 letter-spacing 会留下一段空隙，抵消掉以保持视觉居中 */
  margin-top: -0.16em;
}
.hrd-tab:hover {
  background: linear-gradient(180deg, rgba(28, 50, 95, 0.95), rgba(13, 27, 61, 0.85));
  color: var(--text-1);
}
.hrd-tab svg { width: 12px; height: 12px; transform: rotate(180deg); display: block; }
.hero-right-drawer.collapsed .hrd-tab svg { transform: rotate(0deg); }
.hrd-stack {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  /* 整体外阴影 + 圆角 + 单一容器感 */
  border-radius: 5px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(95, 223, 255, 0.04);
}
/* 上下面板拼接：上面板去掉下圆角与下边线，下面板去掉上圆角与上边线 */
.hrd-stack > .hero-live-feed > .hlf2 {
  border-radius: 5px 5px 0 0;
  border-bottom: 1px solid rgba(95, 223, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hrd-stack > .hero-data-stream > .hds2 {
  border-radius: 0 0 5px 5px;
  border-top: none;
  box-shadow: none;
}
/* 隐藏拼接处的 4 个角标（上下相接的内角） */
.hrd-stack > .hero-live-feed .hlf2-corner.bl,
.hrd-stack > .hero-live-feed .hlf2-corner.br,
.hrd-stack > .hero-data-stream .hds2-corner.tl,
.hrd-stack > .hero-data-stream .hds2-corner.tr {
  display: none;
}
/* 拼接处过渡：上面板底部加一根渐隐的水平刻度线，呼应下面板的扫描光束 */
.hrd-stack > .hero-data-stream > .hds2::before {
  background: linear-gradient(90deg, transparent 5%, rgba(167, 139, 255, 0.6), transparent 95%);
}

.hero-overlay > * { pointer-events: auto; }

.hero-text-block {
  max-width: 580px;
  z-index: 6;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.25);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-glow);
  margin-bottom: 28px;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5fdfff;
  box-shadow: 0 0 12px #5fdfff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-cinema h1 {
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-cinema h1 .gradient {
  background: linear-gradient(135deg, #5fdfff 0%, #4a9eff 50%, #8b7fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-cinema p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-cinema p.lead b { color: var(--brand-glow); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* === Country Quick Picker (in hero) === */
.country-picker {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 6;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 15, 0.85) 50%, rgba(2, 6, 15, 0.95) 100%);
  padding: 60px 40px 28px;
}
.country-picker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap;
  min-height: 16px;
  white-space: nowrap;
}
.country-picker-label > span:last-child {
  margin-left: auto;
  flex-shrink: 0;
}
.country-picker-label::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.country-picker-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.country-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,170,255,0.2) transparent;
}
.country-strip::-webkit-scrollbar { height: 4px; }
.country-strip::-webkit-scrollbar-thumb { background: rgba(120,170,255,0.2); border-radius: 4px; }
.country-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 38, 75, 0.55);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  font-size: 14px;
  color: var(--text-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
.country-pill:hover {
  border-color: rgba(95, 223, 255, 0.5);
  background: rgba(28, 50, 95, 0.7);
  color: var(--text-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 223, 255, 0.15);
}
.country-pill.active {
  background: linear-gradient(135deg, rgba(95, 223, 255, 0.25), rgba(74, 158, 255, 0.18));
  border-color: rgba(95, 223, 255, 0.6);
  color: var(--text-1);
  box-shadow: 0 0 32px rgba(95, 223, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
/* === Flag (SVG, replaces emoji) === */
.flag-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
}
.country-pill .flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.country-picker-label .label-flag {
  width: 16px; height: 12px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.pulse-flag { width: 28px; height: 20px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.country-pill .score-mini {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(95, 223, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============ HUD Dashboard 驾驶舱 ============ */
.hud-section {
  position: relative;
  z-index: 2;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 15, 0.95) 0%, rgba(5, 13, 36, 0.98) 100%);
  border-top: 1px solid rgba(95, 223, 255, 0.15);
  overflow: hidden;
}
.hud-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 223, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 223, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hud-wrap {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* HUD Header */
.hud-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(95, 223, 255, 0.1);
}
.hud-country-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hud-flag {
  width: 84px;
  height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(95, 223, 255, 0.25), inset 0 0 0 1px rgba(120, 170, 255, 0.25);
  animation: hud-flag-in 0.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes hud-flag-in {
  0% { transform: scale(0.6) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.hud-name {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hud-name-en {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.hud-name-en .sep { color: var(--text-4); margin: 0 8px; }

.hud-summary-bar {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 0 20px;
  border-left: 2px solid var(--brand);
  max-width: 480px;
}

.hud-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  letter-spacing: 0.06em;
}
.hud-time .now {
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hud-time .now::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.5s infinite;
}
.hud-time .ts { color: var(--text-1); font-weight: 500; margin-top: 4px; font-size: 13px; }

/* HUD Grid */
.hud-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

.hud-panel {
  background:
    linear-gradient(180deg, rgba(20, 38, 75, 0.5) 0%, rgba(13, 27, 61, 0.4) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: hud-panel-in 0.5s cubic-bezier(.2,.8,.2,1) both;
}
.hud-panel:hover {
  border-color: var(--glass-border-strong);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.12);
}
.hud-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.hud-panel::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 1px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

@keyframes hud-panel-in {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hud-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hud-panel-h h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hud-panel-h h4::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand);
}
.hud-panel-h .meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* Panel sizes */
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }

/* === KPI Big numbers === */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kpi-card {
  background: linear-gradient(180deg, rgba(95, 223, 255, 0.06) 0%, rgba(13, 27, 61, 0.3) 100%);
  border: 1px solid rgba(95, 223, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.kpi-card .kpi-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.kpi-card .kpi-value {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 6px;
  background: linear-gradient(135deg, #fff 0%, #b8c8e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kpi-card .kpi-value.cyan {
  background: linear-gradient(135deg, #5fdfff 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-card .kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 4px;
  color: var(--success);
}
.kpi-card .kpi-delta.down { color: var(--danger); }
.kpi-card .kpi-delta.warn { color: var(--warning); }
.kpi-card .kpi-spark {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  opacity: 0.55;
  pointer-events: none;
}

/* === Score gauge === */
.score-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.score-gauge {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}
.score-gauge .center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
}
.score-gauge .center .v {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}
.score-gauge .center .l {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.score-gauge-side { flex: 1; min-width: 0; }
.score-gauge-side .item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(120,170,255,0.12);
}
.score-gauge-side .item:last-child { border: none; }
.score-gauge-side .k { color: var(--text-3); }
.score-gauge-side .v { color: var(--text-1); font-weight: 600; }

/* === Opportunity Heatmap === */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.opp-cell {
  position: relative;
  background: rgba(8, 18, 40, 0.5);
  border: 1px solid rgba(95, 223, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
  transition: all 0.3s;
}
.opp-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
}
.opp-cell:hover { transform: translateY(-2px); border-color: rgba(95, 223, 255, 0.4); }
.opp-cell .tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.opp-cell .gauge {
  height: 4px;
  background: rgba(120,170,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.opp-cell .gauge .fill {
  height: 100%;
  background: linear-gradient(90deg, #4a9eff, #5fdfff);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}
.opp-cell .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
}
.opp-cell .score { color: var(--accent-cyan); font-weight: 700; }
.opp-cell .growth { color: var(--success); }

/* === News feed === */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,170,255,0.2) transparent;
}
.news-feed::-webkit-scrollbar { width: 4px; }
.news-feed::-webkit-scrollbar-thumb { background: rgba(120,170,255,0.2); border-radius: 4px; }
.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(8, 18, 40, 0.4);
  border: 1px solid rgba(120, 170, 255, 0.08);
  border-radius: 10px;
  transition: all 0.25s;
  align-items: flex-start;
}
.news-item:hover {
  border-color: rgba(95, 223, 255, 0.3);
  background: rgba(28, 50, 95, 0.5);
  transform: translateX(2px);
}
.news-item .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.news-item .ic.policy { background: rgba(74, 158, 255, 0.15); color: var(--brand-glow); }
.news-item .ic.tax { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.news-item .ic.incentive { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.news-item .ic.trade { background: rgba(139, 127, 255, 0.14); color: var(--accent-violet); }
.news-item .body { min-width: 0; }
.news-item .title {
  font-size: 13px; font-weight: 600;
  color: var(--text-1); line-height: 1.4;
  margin-bottom: 4px;
}
.news-item .desc {
  font-size: 11px; color: var(--text-2);
  line-height: 1.55;
}
.news-item .ts {
  text-align: right;
  flex-shrink: 0;
}
.news-item .ts .time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}
.news-item .ts .impact {
  font-size: 9px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
  display: inline-block;
}
.news-item .ts .impact.high { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.news-item .ts .impact.med { background: rgba(251, 191, 36, 0.12); color: var(--warning); }

/* === Map / cities === */
.mini-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: radial-gradient(ellipse at 50% 60%, rgba(74,158,255,0.18) 0%, rgba(8, 18, 40, 0.6) 70%);
  border-radius: 10px;
  overflow: hidden;
}
.city-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.city-pin .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan), 0 0 0 3px rgba(95, 223, 255, 0.2);
  animation: pulse 2.5s infinite;
}
.city-pin .lbl {
  font-size: 10px;
  color: var(--text-1);
  margin-top: 4px;
  background: rgba(2, 6, 15, 0.6);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid rgba(95, 223, 255, 0.15);
}
.city-pin .lbl .type { color: var(--text-3); font-size: 9px; margin-left: 4px; }

/* === Trade flow === */
.trade-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.trade-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.trade-row .lbl { color: var(--text-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }
.trade-row .bar {
  height: 6px;
  background: rgba(120,170,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.trade-row .bar .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
.trade-row .bar .fill.exp { background: linear-gradient(90deg, #5fdfff, #4a9eff); box-shadow: 0 0 8px rgba(95,223,255,0.4); }
.trade-row .bar .fill.imp { background: linear-gradient(90deg, #8b7fff, #6b5fff); box-shadow: 0 0 8px rgba(139,127,255,0.4); }
.trade-row .v { color: var(--text-1); font-weight: 600; font-family: var(--font-en); font-size: 13px; }

.trade-surplus {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.trade-surplus.neg { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.25); }
.trade-surplus .lbl { font-size: 11px; color: var(--text-2); }
.trade-surplus .v { font-family: var(--font-en); font-weight: 700; font-size: 16px; color: var(--success); }
.trade-surplus.neg .v { color: var(--danger); }

/* === Risk radar === */
.risk-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.risk-meter .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.risk-tag-h {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-2);
}
.risk-tag-h::before {
  content: "⚠"; color: var(--warning); font-size: 11px;
}
.risk-bar {
  width: 80px; height: 4px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.risk-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f87171);
  border-radius: 2px;
}

/* === Enterprise list === */
.ent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ent-pill {
  display: inline-block;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(95, 223, 255, 0.06);
  border: 1px solid rgba(95, 223, 255, 0.16);
  color: var(--text-1);
  font-weight: 500;
}

/* === Industry tags === */
.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ind-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 127, 255, 0.08);
  border: 1px solid rgba(139, 127, 255, 0.25);
  color: var(--accent-violet);
  font-weight: 500;
}

/* === Pulse stream === */
.stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}
.stream::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  pointer-events: none;
}
.stream-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.stream-line .ts { color: var(--text-4); font-size: 10px; }
.stream-line .tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.stream-line .tag.UP { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.stream-line .tag.WARN { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.stream-line .tag.INFO { background: rgba(74, 158, 255, 0.15); color: var(--brand-glow); }
.stream-line .tag.HOT { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

/* === Section headers === */
.section {
  position: relative;
  padding: 100px 40px;
  z-index: 1;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-glow);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-title .gradient {
  background: linear-gradient(135deg, #5fdfff 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

/* === Capabilities === */
.capabilities {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap-card {
  background: linear-gradient(180deg, rgba(20, 38, 75, 0.4) 0%, rgba(13, 27, 61, 0.3) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.cap-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74, 158, 255, 0.18);
}
.cap-card .glow {
  position: absolute;
  top: -50%; right: -50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cap-card:hover .glow { opacity: 1; }
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(74,158,255,0.18), rgba(95,223,255,0.06));
  border: 1px solid rgba(95,223,255,0.18);
}
.cap-icon svg { width: 20px; height: 20px; stroke: var(--brand-glow); }
.cap-tag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
}
.cap-tag.pro { background: rgba(139, 127, 255, 0.15); color: var(--accent-violet); border: 1px solid rgba(139,127,255,0.3); }
.cap-tag.free { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.cap-tag.new { background: rgba(95, 223, 255, 0.12); color: var(--accent-cyan); border: 1px solid rgba(95,223,255,0.3); }
.cap-tag.hot { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.cap-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cap-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.cap-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(120, 170, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.cap-foot .arrow { color: var(--brand-glow); }

/* === App Preview === */
.app-preview-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.app-preview-text h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--text-1);
}
.app-preview-text > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.feature-list .feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-list .check {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(95,223,255,0.2), rgba(139,127,255,0.2));
  border: 1px solid rgba(95, 223, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand-glow);
  margin-top: 2px;
}
.feature-list .check svg { width: 16px; height: 16px; stroke: currentColor; }
.feature-list .ftxt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feature-list .ftxt strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.feature-list .ftxt span {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.download-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(13, 27, 61, 0.6);
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px;
  color: var(--text-1);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.dl-btn:hover {
  background: rgba(28, 50, 95, 0.8);
  border-color: var(--brand-glow);
  transform: translateY(-2px);
}
.dl-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.dl-btn .dl-l2 {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.dl-btn .dl-l1 {
  font-size: 15px;
  font-weight: 600;
}

.phone-stack {
  position: relative;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: absolute;
  width: 280px;
  height: 580px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1a2a4a 0%, #0a1530 100%);
  border: 1px solid rgba(95, 223, 255, 0.2);
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(74, 158, 255, 0.15);
}
.phone-1 {
  transform: translate(-90px, -10px) rotate(-5deg);
  z-index: 1;
}
.phone-2 {
  transform: translate(90px, 30px) rotate(6deg);
  z-index: 2;
}
.phone .notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 5;
}
.phone-content {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #0a1530 0%, #050a1f 100%);
  overflow: hidden;
  position: relative;
}

/* CTA */
.cta-block {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(74, 158, 255, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, rgba(28, 50, 95, 0.5) 0%, rgba(13, 27, 61, 0.5) 100%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 28px;
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.cta-block p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  position: relative;
}
.cta-block .btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative;
}

footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-en);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-1); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scanning overlay when changing country */
.hud-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  border-radius: 16px;
}
.hud-scan::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(95, 223, 255, 0.4) 50%, transparent 100%);
  animation: scan 0.9s ease-out forwards;
}
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* === Scroll hint · 向下流光指示 === */
.scroll-hint {
  position: absolute;
  right: 32px;
  bottom: 220px;
  z-index: 6;
  pointer-events: none;
  animation: hint-fade 3s ease-in-out infinite;
}
.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--accent-cyan));
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { top: -10px; }
  100% { top: 36px; }
}
@keyframes hint-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hero overlay — give the globe center stage */
.hero-overlay {
  padding: 88px 56px 180px;
}
.hero-text-block {
  align-self: start;
  margin-top: 3vh;
}
/* (右侧 stack 已在 .hero-right-stack 上设置 margin-bottom) */

/* === Hero Right Drawer · Sci-Fi Holographic Readout =====================
   两个面板共享视觉语汇：
   - 4 角 corner brackets（极细线、不闭合）
   - 顶栏：tag + 名称 + 分隔线 + ID + LIVE 灯
   - 副标：辅助信息 + 信号条 / 节点
   - 主区：列表（上面板：rail+glyph+meta+text；下面板：终端日志）
   - 底栏：FEED 标识 / CTA
   背景层：极淡渐变 + 横向网格 + 顶部扫描光束（不再是厚重 panel）
============================================================================= */

/* ---------- 共用：corner brackets ---------- */
.hlf2-corner,
.hds2-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.7;
}
.hlf2-corner::before,
.hlf2-corner::after,
.hds2-corner::before,
.hds2-corner::after {
  content: "";
  position: absolute;
  background: var(--hud-edge, rgba(95, 223, 255, 0.6));
}
.hlf2-corner.tl, .hds2-corner.tl { top: -1px; left: -1px; }
.hlf2-corner.tr, .hds2-corner.tr { top: -1px; right: -1px; transform: scaleX(-1); }
.hlf2-corner.bl, .hds2-corner.bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.hlf2-corner.br, .hds2-corner.br { bottom: -1px; right: -1px; transform: scale(-1, -1); }
.hlf2-corner::before, .hds2-corner::before { /* 横线 */
  top: 0; left: 0; width: 10px; height: 1px;
}
.hlf2-corner::after, .hds2-corner::after { /* 竖线 */
  top: 0; left: 0; width: 1px; height: 10px;
}

/* ============================================================================
   上面板 · 市场快讯 (.hlf2)
============================================================================ */
.hero-live-feed {
  /* 兼容旧外层 className，让 App.js 不需要改 */
  width: 100%;
  flex-shrink: 0;
}
.hlf2 {
  --hud-edge: rgba(95, 223, 255, 0.55);
  position: relative;
  width: 100%;
  height: auto;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 极淡背景：让面板看起来"从大气层浮起"，而不是贴上去的盒子 */
  background:
    linear-gradient(180deg, rgba(10, 22, 44, 0.55) 0%, rgba(6, 14, 32, 0.42) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(95, 223, 255, 0.08), transparent 70%);
  border: 1px solid rgba(95, 223, 255, 0.10);
  border-radius: 4px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* 横向扫描光束 */
.hlf2::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 223, 255, 0.85), transparent);
  animation: hlf2-scan 3.6s linear infinite;
  z-index: 2;
}
@keyframes hlf2-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
/* 隐约横向网格 */
.hlf2::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(95, 223, 255, 0.04) 23px 24px),
    radial-gradient(80% 50% at 100% 100%, rgba(74, 158, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- 顶栏 ---- */
.hlf2-bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  position: relative;
  z-index: 1;
}
.hlf2-bar-tag {
  color: var(--accent-cyan);
  background: rgba(95, 223, 255, 0.08);
  border: 1px solid rgba(95, 223, 255, 0.25);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
}
.hlf2-bar-name {
  color: var(--text-1);
  font-family: var(--font-sans, inherit);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hlf2-bar-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 223, 255, 0.25), transparent);
}
.hlf2-bar-live {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--success);
  font-size: 9px; font-weight: 700;
  padding: 2px 6px;
  border: 1px solid rgba(92, 242, 164, 0.35);
  border-radius: 2px;
  background: rgba(92, 242, 164, 0.08);
}
.hlf2-bar-blip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---- 副标 ---- */
.hlf2-sub {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  position: relative;
  z-index: 1;
}
.hlf2-sub-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-4);
}
.hlf2-sub-bars {
  display: inline-flex; align-items: end; gap: 2px;
  height: 9px;
  margin-left: auto;
}
.hlf2-sub-bars i {
  display: block;
  width: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  opacity: 0.6;
  animation: hlf2-bar 1.2s ease-in-out infinite;
}
.hlf2-sub-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.hlf2-sub-bars i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.hlf2-sub-bars i:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.hlf2-sub-bars i:nth-child(4) { height: 90%; animation-delay: 0.45s; }
@keyframes hlf2-bar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ---- 列表 ---- */
.hlf2-list {
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  z-index: 1;
}
.hlf2-row {
  --rail: rgba(95, 223, 255, 0.6);
  display: grid;
  grid-template-columns: 3px 48px 1fr;
  gap: 10px;
  align-items: center;
  height: 36px;
  padding: 0 8px 0 0;
  position: relative;
  animation: hlf2-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes hlf2-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: var(--target-opacity, 1); transform: translateX(0); }
}
.hlf2-rail {
  width: 2px;
  height: 100%;
  background: var(--rail);
  box-shadow: 0 0 6px var(--rail);
  border-radius: 2px;
  align-self: stretch;
}
.hlf2-row.is-fresh {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rail) 14%, transparent), transparent 70%);
}
.hlf2-row.is-fresh::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rail) 18%, transparent), transparent);
  animation: hlf2-sweep 1.4s ease-out;
  pointer-events: none;
}
@keyframes hlf2-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hlf2-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  height: 22px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 40%, transparent);
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.hlf2-flag {
  width: 20px; height: 14px;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hlf2-cell {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.hlf2-country {
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-1);
  flex-shrink: 0;
  white-space: nowrap;
}
.hlf2-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-cn);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hlf2-time {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-4);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   下面板 · 动态数据 (.hds2)
============================================================================ */
.hero-data-stream {
  width: 100%;
  flex-shrink: 0;
}
.hds2 {
  --hud-edge: rgba(167, 139, 255, 0.55);
  position: relative;
  width: 100%;
  height: 310px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 12, 32, 0.55) 0%, rgba(8, 6, 20, 0.42) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(167, 139, 255, 0.08), transparent 70%);
  border: 1px solid rgba(167, 139, 255, 0.10);
  border-radius: 4px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hds2::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 255, 0.85), transparent);
  animation: hds2-scan 4.2s linear infinite;
  z-index: 2;
}
@keyframes hds2-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; } 80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.hds2::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(167, 139, 255, 0.04) 19px 20px);
  pointer-events: none;
  z-index: 0;
}

/* ---- 顶栏 ---- */
.hds2-bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  position: relative; z-index: 1;
}
.hds2-bar-tag {
  color: #c9b8ff;
  background: rgba(167, 139, 255, 0.10);
  border: 1px solid rgba(167, 139, 255, 0.30);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
}
.hds2-bar-name {
  color: var(--text-1);
  font-family: var(--font-sans, inherit);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hds2-bar-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 139, 255, 0.25), transparent);
}
.hds2-bar-id {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-cn);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hds2-id-flag {
  display: inline-flex;
  width: 16px; height: 12px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hds2-id-flag .flag,
.hds2-id-flag svg,
.hds2-id-flag img {
  width: 100% !important; height: 100% !important;
  display: block;
}
.hds2-bar-live {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--success);
  font-size: 9px; font-weight: 700;
  padding: 2px 6px;
  border: 1px solid rgba(92, 242, 164, 0.35);
  border-radius: 2px;
  background: rgba(92, 242, 164, 0.08);
}
.hds2-bar-blip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---- 副标：节点 + 信号条 ---- */
.hds2-sub {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  position: relative; z-index: 1;
}
.hds2-sub-bars {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.hds2-sub-bars i {
  display: block;
  width: 2px;
  background: linear-gradient(180deg, #c9b8ff, rgba(167, 139, 255, 0.5));
  box-shadow: 0 0 4px rgba(167, 139, 255, 0.6);
  border-radius: 1px;
  animation: hlf2-bar 1.2s ease-in-out infinite;
}
.hds2-sub-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.hds2-sub-bars i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.hds2-sub-bars i:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.hds2-sub-bars i:nth-child(4) { height: 90%; animation-delay: 0.45s; }
/* ---- 日志列表 ---- */
.hds2-list {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
}
.hds2-line {
  display: grid;
  grid-template-columns: 12px auto auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 2px 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.hds2-caret {
  color: rgba(167, 139, 255, 0.85);
  font-size: 10px;
  text-align: center;
}
.hds2-line.is-fresh .hds2-caret {
  animation: hds2-blink 0.7s ease-in-out infinite;
}
@keyframes hds2-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.hds2-ts {
  color: var(--text-4);
  font-size: 10px;
}
.hds2-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
}
.hds2-tag.UP   { color: var(--success);    border-color: rgba(92, 242, 164, 0.4); }
.hds2-tag.WARN { color: var(--warning);    border-color: rgba(251, 191, 36, 0.4); }
.hds2-tag.INFO { color: var(--brand-glow); border-color: rgba(74, 158, 255, 0.4); }
.hds2-tag.HOT  { color: var(--danger);     border-color: rgba(248, 113, 113, 0.4); }
.hds2-msg {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.hds2-line.is-fresh .hds2-msg {
  color: var(--text-1);
}

/* ---- 底栏 CTA · 进入驾驶舱按钮（居中） ---- */
.hds2-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(167, 139, 255, 0.18) 0%, rgba(95, 223, 255, 0.12) 100%),
    rgba(8, 6, 20, 0.55);
  border: 1px solid rgba(167, 139, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px -4px rgba(167, 139, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s, box-shadow 0.22s, background 0.22s;
  z-index: 1;
}
.hds2-cta-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%, transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%, transparent 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  pointer-events: none;
  transition: background-position 0.6s ease;
}
.hds2-cta-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hds2-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(167, 139, 255, 0.22);
  border: 1px solid rgba(167, 139, 255, 0.55);
  color: #c9b8ff;
  flex-shrink: 0;
  transition: transform 0.22s, background 0.22s, border-color 0.22s;
}
.hds2-cta-icon svg { width: 13px; height: 13px; display: block; }
.hds2-cta-label {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-1);
}
.hds2-cta:hover {
  transform: translateY(-1px);
  border-color: #c9b8ff;
  background:
    linear-gradient(135deg, rgba(167, 139, 255, 0.32) 0%, rgba(95, 223, 255, 0.20) 100%),
    rgba(8, 6, 20, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px -6px rgba(167, 139, 255, 0.55);
}
.hds2-cta:hover .hds2-cta-glow { background-position: 0 0; }
.hds2-cta:hover .hds2-cta-icon {
  transform: translateX(2px);
  background: rgba(167, 139, 255, 0.4);
  border-color: #c9b8ff;
  color: #fff;
}

@media (max-width: 1100px) {
  .hero-right-drawer { display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hud-grid { grid-template-columns: repeat(6, 1fr); }
  .col-3, .col-4 { grid-column: span 3; }
  .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav { padding: 14px 16px; }
  .nav-logo .brand { font-size: 14px; }
  .nav-logo .brand-cn { font-size: 11px; }
  .nav-cta { gap: 8px; }
  .btn { padding: 8px 14px; font-size: 12px; }
  .nav-links { display: none; }
  .hero-cinema { height: 100vh; height: 100dvh; min-height: 0; }
  .hero-overlay { grid-template-columns: 1fr; padding: 80px 20px 140px; gap: 16px; }
  .hero-overlay > .hero-text-block { align-self: start; margin-top: 0; }
  .hero-cinema h1 { font-size: clamp(34px, 9vw, 48px); margin-bottom: 16px; }
  .hero-cinema p.lead { font-size: 14px; margin-bottom: 20px; }
  .hero-eyebrow { margin-bottom: 16px; font-size: 11px; }
  .hero-cta .btn-lg { padding: 11px 18px; font-size: 13px; }
  .scroll-hint { display: none; }
  .country-picker { padding: 24px 16px 16px; }
  .country-picker-label { font-size: 10px; gap: 8px; }
  .country-pill { padding: 8px 14px; font-size: 13px; }
  .hud-wrap { padding: 40px 20px; }
  .hud-header { grid-template-columns: 1fr; gap: 14px; }
  .hud-summary-bar { padding: 0; border-left: none; border-top: 1px solid rgba(95, 223, 255, 0.15); padding-top: 12px; }
  .hud-time { text-align: left; }
  .hud-grid { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 2; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .opp-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 20px; }
  .capabilities { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 48px 24px; }
  .app-preview-wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone-stack { height: 540px; }
  .phone-1 { transform: translate(-70px, -10px) rotate(-5deg); }
  .phone-2 { transform: translate(70px, 30px) rotate(6deg); }
  .hud-flag { width: 56px; height: 40px; border-radius: 6px; }
  .hud-name { font-size: 32px; }
}


/* ============================================================================
   HUD v2 · 单屏驾驶舱（覆盖旧 .hud-section 的尺寸/网格）
   ============================================================================ */
.hud-section.v2 {
  position: relative;
  min-height: 100vh;
  height: auto;
  padding: 24px 36px 18px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(74,158,255,0.06), transparent 60%),
    linear-gradient(180deg, #050914 0%, #06091a 100%);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hud-section.v2::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(95,223,255,0.025) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(95,223,255,0.025) 39px 40px);
  pointer-events: none;
  mask-image: radial-gradient(80% 60% at 50% 50%, #000 40%, transparent 100%);
}
.hud-wrap.v2 {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  z-index: 1;
}

/* ----- 顶栏 ----- */
.hudv2-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.hudv2-top-l {
  display: flex; align-items: center; gap: 16px;
  min-width: 0; flex: 1;
}
.hudv2-flag {
  width: 56px; height: 40px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.hudv2-id .name {
  font-size: 26px; font-weight: 700; color: var(--text-1);
  letter-spacing: 0.02em;
}
.hudv2-id .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.hudv2-summary {
  border-left: 2px solid rgba(95,223,255,0.4);
  padding-left: 14px;
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 480px;
}
.hudv2-top-r {
  text-align: right;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.hudv2-top-r .stat {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--success);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
}
.hudv2-top-r .stat .blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.5s infinite;
}
.hudv2-top-r .tick {
  font-size: 10px; color: var(--text-3);
  letter-spacing: 0.14em;
  margin-top: 4px;
}

/* ----- KPI 带 ----- */
.hudv2-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hudv2-kpi {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,22,44,0.6), rgba(6,14,32,0.45)),
    radial-gradient(120% 80% at 50% 0%, rgba(95,223,255,0.08), transparent 70%);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 4px;
  padding: 12px 16px 0;
  height: 96px;
  overflow: hidden;
  color: #5fdfff;
  animation: hudv2-in 0.6s cubic-bezier(0.16,1,0.3,1) backwards;
}
.hudv2-kpi.accent-amber { color: #fbbf24; border-color: rgba(251,191,36,0.14); }
.hudv2-kpi.accent-green { color: #5cf2a4; border-color: rgba(92,242,164,0.14); }
.hudv2-kpi.accent-cyan  { color: #5fdfff; }
.hudv2-kpi-corner {
  position: absolute;
  width: 8px; height: 8px;
}
.hudv2-kpi-corner::before, .hudv2-kpi-corner::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: 0.7;
}
.hudv2-kpi-corner.tl { top: -1px; left: -1px; }
.hudv2-kpi-corner.br { bottom: -1px; right: -1px; transform: scale(-1,-1); }
.hudv2-kpi-corner::before { top: 0; left: 0; width: 8px; height: 1px; }
.hudv2-kpi-corner::after { top: 0; left: 0; width: 1px; height: 8px; }
.hudv2-kpi-row1 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}
.hudv2-kpi-row2 {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.hudv2-kpi-accent .hudv2-kpi-row2 { color: currentColor; }
.hudv2-kpi-row3 {
  font-family: var(--font-mono);
  font-size: 10px;
  color: currentColor;
  margin-top: 4px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.hudv2-kpi-spark {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 36px;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes hudv2-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- 主区 ----- */
.hudv2-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.4fr) minmax(280px, 1fr);
  gap: 12px;
  min-height: 0;
}
.hudv2-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,22,44,0.55), rgba(6,14,32,0.42));
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hudv2-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,223,255,0.4), transparent);
}
.hudv2-card-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.hudv2-card-h h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.hudv2-card-h .meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.ai-pill {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #0b1024;
  background: linear-gradient(90deg, #5fdfff, #a78bff);
  border-radius: 2px;
}

/* ----- 评分卡 ----- */
.scorev2-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
}
.scorev2-gauge {
  position: relative;
  width: 130px; height: 130px;
}
.scorev2-gauge svg { width: 100%; height: 100%; }
.scorev2-gauge .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.scorev2-gauge .v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 32px; font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.scorev2-gauge .l {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-3);
  letter-spacing: 0.18em;
  margin-top: 2px;
}
.scorev2-list {
  display: flex; flex-direction: column;
  gap: 4px;
}
.scorev2-list .row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(95,223,255,0.06);
}
.scorev2-list .row:last-child { border-bottom: none; }
.scorev2-list .k {
  font-size: 11px; color: var(--text-2);
}
.scorev2-list .dotline {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(95,223,255,0.2) 0 2px, transparent 2px 5px);
}
.scorev2-list .v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
  font-weight: 600;
}

/* ----- 雷达卡 ----- */
.radarv2-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 8px;
  align-items: center;
  min-height: 0;
}
.radarv2-svg {
  width: 100%; height: 100%;
  max-height: 280px;
}
.radarv2-svg .axName {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-2);
  letter-spacing: 0.06em;
}
.radarv2-svg .axVal {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-3);
}
.radarv2-legend {
  display: flex; flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
}
.radarv2-legend .lg {
  display: flex; align-items: center; gap: 6px;
}
.radarv2-legend .sw {
  width: 16px; height: 8px; border-radius: 2px;
}
.radarv2-legend .sw.cyan { background: linear-gradient(90deg, #5fdfff, #4a9eff); box-shadow: 0 0 6px rgba(95,223,255,0.5); }
.radarv2-legend .sw.purple { background: linear-gradient(90deg, #a78bff, #ff7be9); }
.radarv2-legend .delta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(95,223,255,0.15);
  display: flex; flex-direction: column; gap: 4px;
}
.radarv2-legend .delta span {
  font-size: 9px; letter-spacing: 0.14em; color: var(--text-3);
}
.radarv2-legend .delta b {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 22px;
  color: var(--success);
  letter-spacing: -0.01em;
}

/* ----- 机会矩阵 ----- */
.oppv2-list {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.oppv2-row {
  --c: #5fdfff;
  display: grid;
  grid-template-columns: 28px 1fr 32px 42px;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 5%, transparent), transparent);
  animation: hudv2-in 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
}
.oppv2-row .rk {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--c);
  letter-spacing: 0.04em;
}
.oppv2-row .main { min-width: 0; }
.oppv2-row .tag {
  font-size: 12px;
  color: var(--text-1);
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oppv2-row .bar {
  height: 3px;
  background: rgba(95,223,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.oppv2-row .bar .fill {
  height: 100%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
.oppv2-row .score {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 16px; font-weight: 700;
  color: var(--c);
  text-align: right;
  letter-spacing: -0.01em;
}
.oppv2-row .growth {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ----- 副区 ----- */
.hudv2-sub {
  display: grid;
  grid-template-columns: minmax(420px, 1.5fr) minmax(360px, 1fr);
  gap: 12px;
  min-height: 240px;
}

/* ----- 资金流粒子图 ----- */
.flowv2-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 200px;
}
.flowv2-canvas {
  width: 100%; height: 100%;
  display: block;
}
.flowv2-stat {
  position: absolute;
  font-family: var(--font-mono);
  pointer-events: none;
}
.flowv2-stat.tl { top: 6px; left: 8px; }
.flowv2-stat.br { bottom: 6px; right: 8px; text-align: right; }
.flowv2-stat .k {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.flowv2-stat .v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.flowv2-stat .v.cyan { color: #5fdfff; text-shadow: 0 0 8px rgba(95,223,255,0.4); }
.flowv2-stat .v.purple { color: #c9b8ff; text-shadow: 0 0 8px rgba(167,139,255,0.4); }
.flowv2-surplus {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid rgba(95,223,255,0.18);
  border-radius: 2px;
  background: rgba(8,16,32,0.6);
}
.flowv2-surplus b {
  color: var(--text-1);
  font-weight: 700;
  margin-left: 4px;
}

/* ----- AI Playbook ----- */
.playv2-list {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
}
.playv2-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 50px;
  gap: 12px;
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(95,223,255,0.06), transparent 70%);
  border: 1px solid rgba(95,223,255,0.12);
  border-radius: 3px;
  animation: hudv2-in 0.55s cubic-bezier(0.16,1,0.3,1) backwards;
}
.playv2-row .rk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.playv2-row .rk .n {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 22px; font-weight: 700;
  color: #5fdfff; letter-spacing: -0.02em;
  text-shadow: 0 0 8px rgba(95,223,255,0.4);
}
.playv2-row .rk .lb {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.playv2-row .main { min-width: 0; }
.playv2-row .tl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.playv2-row .ds {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 6px;
}
.playv2-row .tags {
  display: flex; flex-wrap: wrap;
  gap: 4px;
}
.playv2-row .tg {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #c9b8ff;
  padding: 1px 5px;
  border: 1px solid rgba(167,139,255,0.25);
  border-radius: 2px;
  background: rgba(167,139,255,0.06);
}
.playv2-row .conf {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.playv2-row .conf .ring {
  position: relative;
  width: 36px; height: 36px;
}
.playv2-row .conf .ring svg { width: 100%; height: 100%; }
.playv2-row .conf .ring .n {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #5fdfff;
}
.playv2-row .conf .lb {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

/* ----- 底部 marquee ----- */
.hudv2-marquee {
  display: flex; align-items: center; gap: 12px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(10,22,44,0.55), rgba(6,14,32,0.42));
  overflow: hidden;
  position: relative;
}
.hudv2-marquee-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--success);
  padding-right: 10px;
  border-right: 1px solid rgba(95,223,255,0.12);
  white-space: nowrap;
  flex-shrink: 0;
}
.hudv2-marquee-tag .blip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 1.4s infinite;
}
.hudv2-marquee-track {
  flex: 1;
  display: flex; gap: 24px;
  white-space: nowrap;
  animation: hudv2-marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hudv2-marquee-track .item {
  display: inline-flex; align-items: center; gap: 6px;
}
.hudv2-marquee-track .ts { color: var(--text-4); font-size: 10px; }
.hudv2-marquee-track .tag {
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 2px;
  letter-spacing: 0.06em;
}
.hudv2-marquee-track .tag.UP   { background: rgba(92,242,164,0.12);  color: var(--success); }
.hudv2-marquee-track .tag.WARN { background: rgba(251,191,36,0.12);  color: var(--warning); }
.hudv2-marquee-track .tag.INFO { background: rgba(74,158,255,0.12);  color: var(--brand-glow); }
.hudv2-marquee-track .tag.HOT  { background: rgba(248,113,113,0.12); color: var(--danger); }
.hudv2-marquee-track .msg { color: var(--text-2); }
@keyframes hudv2-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 尺寸适配：低于 1300px 改 2 列 */
@media (max-width: 1300px) {
  .hudv2-main { grid-template-columns: 1fr 1fr; }
  .hudv2-main .scoreCard { grid-column: 1 / 2; }
  .hudv2-main .radarCard { grid-column: 2 / 3; grid-row: 1 / 3; }
  .hudv2-main .oppCard { grid-column: 1 / 2; }
}


/* ============================================================================
   HUD v3 · 全屏驾驶舱 - 严格 100vh - 4 列主区 + 城市拓扑 + 神经脉冲
   ============================================================================ */
html { scroll-behavior: smooth; }

.hud-section.v3 {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 580px;
  max-height: calc(100vh - 70px);
  scroll-margin-top: 70px;
  scroll-snap-align: start;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(74,158,255,0.06), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(167,139,255,0.04), transparent 70%),
    #060912;
  display: flex; align-items: stretch; justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}
.hud-section.v3::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95,223,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,223,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hud-wrap.v3 {
  position: relative;
  width: 100%;
  max-width: 1840px;
  padding: 16px 20px 14px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  height: 100%;
}

/* ----- 顶栏（含内联 KPI，flex 布局让 KPI 贴右） ----- */
.hudv3-top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 80px;
  padding: 6px 0;
}
.hudv3-top-l {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.hudv3-flag { width: 42px; height: 30px; border-radius: 3px; box-shadow: 0 0 14px rgba(95,223,255,0.25), 0 0 0 1px rgba(95,223,255,0.25); flex-shrink: 0; }
.hudv3-id { min-width: 0; }
.hudv3-id .name { font-size: 20px; font-weight: 700; color: var(--text-1); letter-spacing: 0.02em; line-height: 1.1; }
.hudv3-id .meta { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.10em; text-transform: uppercase; margin-top: 2px; }
.hudv3-summary {
  border-left: 2px solid rgba(95,223,255,0.4);
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}
.hudv3-top-r { text-align: right; font-family: var(--font-mono); flex-shrink: 0; }
.hudv3-top-r .stat { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; }
.hudv3-top-r .stat .blip { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse 1.5s infinite; }
.hudv3-top-r .tick { font-size: 10.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.12em; margin-top: 3px; }

/* 窄屏（<1280px）顶栏空间不足时隐藏 summary */
@media (max-width: 1279px) {
  .hudv3-summary { display: none; }
}

/* ----- KPI 带（内联到顶栏，flex margin-left:auto 推到右侧） ----- */
.hudv3-kpis {
  display: grid;
  grid-template-columns: repeat(4, 170px);
  gap: 8px;
  height: 52px;
  margin-left: auto;
  flex-shrink: 0;
}
.hudv3-kpi {
  position: relative;
  background:
    linear-gradient(180deg, rgba(95,223,255,0.04), rgba(95,223,255,0.01)),
    rgba(8,16,32,0.5);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  padding: 6px 10px 0;
  overflow: hidden;
  color: #5fdfff;
  animation: hudv3-in 0.55s cubic-bezier(0.16,1,0.3,1) backwards;
}
.hudv3-kpi.accent-amber { color: #fbbf24; border-color: rgba(251,191,36,0.14); }
.hudv3-kpi.accent-green { color: #5cf2a4; border-color: rgba(92,242,164,0.14); }
.hudv3-kpi-corner { position: absolute; width: 6px; height: 6px; }
.hudv3-kpi-corner::before, .hudv3-kpi-corner::after { content: ""; position: absolute; background: currentColor; opacity: 0.7; }
.hudv3-kpi-corner.tl { top: -1px; left: -1px; }
.hudv3-kpi-corner.br { bottom: -1px; right: -1px; transform: scale(-1,-1); }
.hudv3-kpi-corner::before { top: 0; left: 0; width: 6px; height: 1px; }
.hudv3-kpi-corner::after { top: 0; left: 0; width: 1px; height: 6px; }
.hudv3-kpi-row1 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
  line-height: 1;
}
.hudv3-kpi-row2 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
  white-space: nowrap;
}
.hudv3-kpi-val {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 22px;
  font-weight: 700;
  color: currentColor;
  letter-spacing: 0.01em;
}
.hudv3-kpi-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: currentColor;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.hudv3-kpi-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22px; opacity: 0.85; }

@keyframes hudv3-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hudv3-flow {
  0% { stroke-dashoffset: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}
@keyframes neuralv3-flow {
  0% { stroke-dashoffset: 32; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -32; opacity: 0; }
}
@keyframes neuralv3-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes cityv3-pulse {
  0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; }
}

/* ----- 主区 4 列 ----- */
.hudv3-main {
  display: grid;
  grid-template-columns: minmax(240px,1.05fr) minmax(280px,1.15fr) minmax(280px,1.25fr) minmax(240px,1.05fr);
  gap: 10px;
  min-height: 0;
}
.hudv3-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,25,45,0.65), rgba(8,14,28,0.55));
  border: 1px solid rgba(95,223,255,0.12);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 0; min-height: 0;
}
.hudv3-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,223,255,0.4), transparent);
}
.hudv3-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-shrink: 0; }
.hudv3-card-h h4 { font-size: 12.5px; font-weight: 600; color: var(--text-1); letter-spacing: 0.02em; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.hudv3-card-h h4 .ai-pill { font-family: var(--font-mono); font-size: 8.5px; padding: 2px 5px; border-radius: 2px; background: linear-gradient(90deg, rgba(95,223,255,0.18), rgba(167,139,255,0.18)); color: #5fdfff; border: 1px solid rgba(95,223,255,0.3); letter-spacing: 0.12em; }
.hudv3-card-h .meta { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.10em; text-transform: uppercase; }

/* Score */
.scorev3-wrap { display: grid; grid-template-rows: 1fr auto; gap: 10px; flex: 1; min-height: 0; }
.scorev3-gauge { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.scorev3-gauge svg { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; }
.scorev3-gauge .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scorev3-gauge .center .v { font-family: var(--font-en, "Space Grotesk", system-ui); font-size: 36px; font-weight: 700; color: #5fdfff; line-height: 1; letter-spacing: -0.02em; }
.scorev3-gauge .center .l { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-3); letter-spacing: 0.18em; margin-top: 2px; }
.scorev3-list { display: grid; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; }
.scorev3-list .row { display: flex; align-items: center; gap: 6px; }
.scorev3-list .k { color: var(--text-2); flex-shrink: 0; font-weight: 500; }
.scorev3-list .dotline { flex: 1; border-bottom: 1px dotted rgba(95,223,255,0.25); margin: 0 2px; transform: translateY(-2px); }
.scorev3-list .v { color: var(--text-1); font-weight: 700; }

/* Radar */
.radarv3-body { display: grid; grid-template-rows: 1fr auto; gap: 6px; flex: 1; min-height: 0; place-items: center stretch; }
.radarv3-svg { width: auto; height: 100%; max-width: 100%; min-height: 0; aspect-ratio: 1; justify-self: center; }
.radarv3-svg .axName { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; fill: var(--text-1); letter-spacing: 0.04em; }
.radarv3-foot { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-2); }
.radarv3-foot .sw { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 4px; }
.radarv3-foot .sw.cyan { background: #5fdfff; }
.radarv3-foot .sw.purple { background: #a78bff; border-top: 1px dashed #a78bff; height: 0; border-bottom: 0; margin-top: 6px; }
.radarv3-foot .delta { margin-left: auto; color: var(--success); font-weight: 700; }

/* City quantum map */
.cityCard { padding-bottom: 8px; }
.cityv3-map {
  position: relative; flex: 1; min-height: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(74,158,255,0.10), transparent 70%),
    rgba(8,16,32,0.6);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  overflow: hidden;
}
.cityv3-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95,223,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,223,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 100%);
}
.cityv3-lines, .cityv3-pulses { position: absolute; inset: 0; width: 100%; height: 100%; }
.cityv3-pin { position: absolute; transform: translate(-50%,-50%); animation: hudv3-in 0.6s cubic-bezier(0.16,1,0.3,1) backwards; }
.cityv3-pin .ring { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(95,223,255,0.7); transform: translate(-50%,-50%); animation: cityv3-pulse 2.4s ease-out infinite; }
.cityv3-pin .dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #5fdfff; box-shadow: 0 0 8px #5fdfff, 0 0 16px rgba(95,223,255,0.6); transform: translate(-50%,-50%); }
.cityv3-pin .lbl { position: absolute; left: 12px; top: -12px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; line-height: 1.25; }
.cityv3-pin .lbl .n { display: block; color: var(--text-1); font-weight: 700; letter-spacing: 0.04em; }
.cityv3-pin .lbl .ty { display: block; color: var(--text-2); font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

/* Neural pulse */
.neuralv3-body { display: grid; grid-template-rows: 1fr auto; gap: 6px; flex: 1; min-height: 0; }
.neuralv3-svg { width: 100%; height: 100%; min-height: 0; }
.neuralv3-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.neuralv3-stats .stt {
  background: rgba(8,16,32,0.5);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  padding: 5px 8px;
}
.neuralv3-stats .k { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.12em; text-transform: uppercase; }
.neuralv3-stats .v { font-family: var(--font-en, "Space Grotesk", system-ui); font-size: 16px; font-weight: 700; line-height: 1.1; }
.neuralv3-stats .v.cyan { color: #5fdfff; }
.neuralv3-stats .v.purple { color: #a78bff; }
.neuralv3-stats .v span { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); margin-left: 3px; font-weight: 500; }

/* ----- 副区 ----- */
.hudv3-sub {
  display: grid;
  grid-template-columns: minmax(420px,1.5fr) minmax(360px,1fr);
  gap: 10px;
  height: 220px;
}

/* Capital flow */
.flowv3-canvas-wrap { position: relative; flex: 1; min-height: 0; border-radius: 3px; overflow: hidden; background: rgba(8,16,32,0.4); border: 1px solid rgba(95,223,255,0.08); }
.flowv3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flowv3-stat {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(8,16,32,0.78);
  border: 1px solid rgba(95,223,255,0.18);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.flowv3-stat.top { top: 10px; }
.flowv3-stat.bottom { bottom: 10px; }
.flowv3-stat .k {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.flowv3-stat .v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.flowv3-stat .v.cyan { color: #5fdfff; }
.flowv3-stat .v.purple { color: #a78bff; }
.flowv3-stat.bottom { border-color: rgba(167,139,255,0.22); }
.flowv3-surplus { position: absolute; top: 8px; right: 8px; padding: 3px 7px; font-family: var(--font-mono); font-size: 9px; color: var(--success); background: rgba(92,242,164,0.06); border: 1px solid rgba(92,242,164,0.2); border-radius: 2px; }
.flowv3-surplus b { color: var(--text-1); font-weight: 700; }

/* Playbook */
.playv3-list { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow: hidden; }
.playv3-row {
  display: grid; grid-template-columns: 56px 1fr 44px;
  gap: 10px; align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(95,223,255,0.12);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(95,223,255,0.04), transparent);
  animation: hudv3-in 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
  flex-shrink: 0;
}
.playv3-row .rk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.playv3-row .rk .n { font-family: var(--font-en); font-size: 18px; font-weight: 700; color: #5fdfff; line-height: 1; }
.playv3-row .rk .lb { font-family: var(--font-cn); font-size: 11px; font-weight: 600; color: var(--text-2); letter-spacing: 0.06em; line-height: 1; }
.playv3-row .main { min-width: 0; }
.playv3-row .tl { font-size: 12.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playv3-row .ds { font-size: 11.5px; color: var(--text-2); line-height: 1.35; margin-top: 2px; opacity: 0.95; }
.playv3-row .tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.playv3-row .tg { font-family: var(--font-cn); font-size: 9.5px; font-weight: 500; padding: 1px 6px; border-radius: 2px; background: rgba(95,223,255,0.10); border: 1px solid rgba(95,223,255,0.28); color: var(--accent-cyan); letter-spacing: 0.04em; white-space: nowrap; }
.playv3-row .conf { display: flex; align-items: center; justify-content: center; }
.playv3-row .conf .ring { position: relative; width: 36px; height: 36px; }
.playv3-row .conf .ring svg { width: 100%; height: 100%; }
.playv3-row .conf .ring .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 11px; font-weight: 700; color: #5fdfff; }

/* ----- Marquee ----- */
.hudv3-marquee {
  display: flex; align-items: center; gap: 0;
  height: 26px;
  padding: 0;
  margin-top: 6px;
  background: #060c1a;
  border: 1px solid rgba(95,223,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  box-shadow: 0 -8px 16px -8px rgba(2, 6, 15, 0.7);
}
.hudv3-marquee::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 110px;
  background: #060c1a;
  z-index: 2;
  pointer-events: none;
}
.hudv3-marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.14em;
  padding: 0 14px;
  height: 100%;
  background: #060c1a;
  border-right: 1px solid rgba(95, 223, 255, 0.30);
  box-shadow: 6px 0 10px -4px rgba(6, 12, 26, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  margin-left: 0;
}
.hudv3-marquee-tag .blip { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulse 1.4s infinite; }
.hudv3-marquee-track { flex: 1; min-width: 0; display: flex; gap: 22px; white-space: nowrap; animation: hudv3-marquee 38s linear infinite; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); overflow: hidden; padding: 0 14px 0 14px; mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); position: relative; z-index: 1; }
.hudv3-marquee-track .item { display: inline-flex; align-items: center; gap: 6px; }
.hudv3-marquee-track .ts { color: var(--text-3); font-size: 10.5px; font-weight: 500; }
.hudv3-marquee-track .tag { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 2px; letter-spacing: 0.06em; }
.hudv3-marquee-track .tag.UP   { background: rgba(92,242,164,0.12);  color: var(--success); }
.hudv3-marquee-track .tag.WARN { background: rgba(251,191,36,0.12);  color: var(--warning); }
.hudv3-marquee-track .tag.INFO { background: rgba(74,158,255,0.12);  color: var(--brand-glow); }
.hudv3-marquee-track .tag.HOT  { background: rgba(248,113,113,0.12); color: var(--danger); }
.hudv3-marquee-track .msg { color: var(--text-2); }
@keyframes hudv3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 适配窄屏 */
@media (max-width: 1400px) {
  .hudv3-main { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .hudv3-summary { display: none; }
}
@media (max-height: 800px) {
  .hud-wrap.v3 { padding: 8px 16px 8px; gap: 6px; }
  .hudv3-top { height: 70px; }
  .hudv3-kpis { height: 58px; }
}


/* ============================================================================
   HUD v3 patch · 缩矮主区高度 + 副区改 3 列 + 行业机会矩阵 + 城市距离
   ============================================================================ */
.hud-wrap.v3 {
  grid-template-rows: auto minmax(240px, 1.1fr) minmax(220px, 0.85fr) auto;
  gap: 6px;
  padding: 8px 14px 6px;
  height: 100%;
}
.hudv3-top { height: 80px; padding: 6px 0; }
.hudv3-id .name { font-size: 22px; }
.hudv3-kpis { height: 64px; gap: 6px; }
.hudv3-kpi { padding: 6px 11px 0; }
.hudv3-kpi-val { font-size: 18px; }
.hudv3-kpi-delta { font-size: 11px; }

/* 主区收紧 */
.hudv3-main { gap: 6px; min-height: 0; }
.hudv3-card { padding: 7px 10px; }
.hudv3-card-h { margin-bottom: 4px; }

/* 机会评分（Score 卡） */
.scorev3-wrap { gap: 8px; }
.scorev3-gauge .center .v { font-size: 30px; }
.scorev3-gauge .center .l { font-size: 9px; margin-top: 2px; }
.scorev3-list { gap: 3px; font-size: 11px; }

.cityv3-dist {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(200, 230, 255, 0.85);
  background: rgba(8,16,32,0.85);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid rgba(95,223,255,0.20);
  white-space: nowrap;
  pointer-events: none;
}

.neuralv3-stats .v { font-size: 14px; }
.neuralv3-stats .stt { padding: 5px 8px; }

/* 副区 3 列 */
.hudv3-sub {
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.4fr) minmax(300px, 1.1fr);
  min-height: 0;
  height: 100%;
  gap: 6px;
}

/* 行业机会矩阵 */
.oppv3-body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.oppv3-rows { display: flex; flex-direction: column; gap: 5px; }
.oppv3-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(95,223,255,0.05), transparent);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  animation: hudv3-in 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
}
.oppv3-row .rk {
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  color: #5fdfff; line-height: 1;
}
.oppv3-row .main { min-width: 0; }
.oppv3-row .tag {
  font-size: 11.5px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oppv3-row .bar {
  height: 3px; margin-top: 4px; border-radius: 2px;
  background: rgba(95,223,255,0.10); overflow: hidden;
}
.oppv3-row .bar-fill {
  height: 100%; background: linear-gradient(90deg, #5fdfff, #a78bff);
  box-shadow: 0 0 6px rgba(95,223,255,0.4);
  animation: hudv3-bar 0.9s cubic-bezier(0.16,1,0.3,1) backwards;
}
.oppv3-row .meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.oppv3-row .meta .sc {
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
  color: #5fdfff; line-height: 1;
}
.oppv3-row .meta .gr {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--success);
}
@keyframes hudv3-bar {
  from { width: 0 !important; }
}
.oppv3-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(95,223,255,0.14);
}
.oppv3-foot-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.oppv3-foot .k {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--text-2); letter-spacing: 0.10em;
  text-transform: uppercase; margin-bottom: 4px;
}
.oppv3-foot .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.oppv3-foot .chip {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(95,223,255,0.10);
  border: 1px solid rgba(95,223,255,0.28);
  border-radius: 2px;
  color: var(--text-1);
  white-space: nowrap;
}
.oppv3-foot .chip.ent-chip {
  background: rgba(167,139,255,0.08);
  border-color: rgba(167,139,255,0.28);
  color: #c9b8ff;
}
.oppv3-foot .ent {
  text-align: right;
  border-left: 1px solid rgba(95,223,255,0.10);
  padding-left: 10px;
  align-self: center;
}
.oppv3-foot .ent .v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 18px;
  font-weight: 700;
  color: #5cf2a4;
  line-height: 1;
}

/* Capital flow / Playbook 收紧 */
.flowv3-stat .v { font-size: 14px; }
.playv3-list { gap: 4px; }
.playv3-row { padding: 4px 8px; grid-template-columns: 40px 1fr 30px; gap: 8px; }
.playv3-row .rk .n { font-size: 14px; }
.playv3-row .rk .lb { font-size: 11px; }
.playv3-row .tl { font-size: 12.5px; }
.playv3-row .ds { font-size: 11.5px; line-height: 1.4; color: var(--text-2); margin-top: 3px; }
.playv3-row .tags { margin-top: 4px; }
.playv3-row .tg { font-size: 10px; padding: 1px 6px; }
.playv3-row .conf .ring { width: 28px; height: 28px; }
.playv3-row .conf .ring .n { font-size: 9.5px; }
/* Opp 行紧凑 */
.oppv3-rows { gap: 4px; }
.oppv3-row { padding: 4px 7px; }

/* 副区窄屏堆叠 */
@media (max-width: 1500px) {
  .hudv3-sub { grid-template-columns: 1fr 1fr; }
  .hudv3-sub .oppCard { grid-column: 1 / 3; }
}


/* ============================================================================
   HUD v3 · AI 决策溯因图（替代神经脉冲）
   ============================================================================ */
.attribv3-body { display: grid; grid-template-rows: 1fr auto; gap: 6px; flex: 1; min-height: 0; }
.attribv3-svg { width: 100%; height: 100%; min-height: 0; }
.attribv3-stats .stt { padding: 5px 8px; }
.attribv3-stats .v { font-size: 14px; }
.attribv3-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attribv3-stats .stt {
  background: rgba(8,16,32,0.5);
  border: 1px solid rgba(95,223,255,0.10);
  border-radius: 3px;
  padding: 5px 8px;
}
.attribv3-stats .k { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0.12em; text-transform: uppercase; }
.attribv3-stats .v { font-family: var(--font-en, "Space Grotesk", system-ui); font-size: 13px; font-weight: 700; line-height: 1.15; }
.attribv3-stats .v.cyan { color: #5fdfff; }
.attribv3-stats .v.purple { color: #a78bff; }
.attribv3-stats .v span { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-left: 4px; font-weight: 500; }
@keyframes attribv3-flow {
  0% { stroke-dashoffset: 80; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -80; opacity: 0; }
}


/* ============================================================================
   核心能力卡 · 科幻 HUD 改造
   ============================================================================ */
.capabilities {
  position: relative;
}
.capabilities::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(95,223,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(167,139,255,0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.cap-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,25,45,0.7), rgba(8,14,28,0.6)) !important;
  border: 1px solid rgba(95,223,255,0.10) !important;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
  --cap-accent: #5fdfff;
}
.cap-card:nth-child(1) { --cap-accent: #5fdfff; }
.cap-card:nth-child(2) { --cap-accent: #5cf2a4; }
.cap-card:nth-child(3) { --cap-accent: #f87171; }
.cap-card:nth-child(4) { --cap-accent: #a78bff; }
.cap-card:nth-child(5) { --cap-accent: #fbbf24; }
.cap-card:nth-child(6) { --cap-accent: #5fdfff; }

/* 顶部扫描带 + 角标 */
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* 4 个角标 */
    linear-gradient(90deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(180deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(270deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(0deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(90deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(180deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(270deg, var(--cap-accent) 0 14px, transparent 14px),
    linear-gradient(0deg, var(--cap-accent) 0 14px, transparent 14px);
  background-size:
    14px 1px, 1px 14px,
    14px 1px, 1px 14px,
    14px 1px, 1px 14px,
    14px 1px, 1px 14px;
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.3s;
}
/* 底层网格 + 顶部细扫描线 */
.cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cap-accent) 12%, transparent), transparent 4px),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--cap-accent) 12%, transparent), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(95,223,255,0.025) 28px, rgba(95,223,255,0.025) 29px);
  pointer-events: none;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cap-accent) 35%, transparent) !important;
  box-shadow:
    0 14px 40px -16px color-mix(in srgb, var(--cap-accent) 30%, transparent),
    0 0 0 1px color-mix(in srgb, var(--cap-accent) 14%, transparent) inset;
}
.cap-card:hover::before { opacity: 1; }

/* 顶部状态条 — 永远跑的扫描光 */
.cap-card .glow {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--cap-accent), transparent) !important;
  opacity: 0.6 !important;
  filter: none !important;
  border-radius: 0 !important;
  animation: capv3-scan 4s linear infinite;
  background-size: 50% 100% !important;
  background-repeat: no-repeat !important;
}
@keyframes capv3-scan {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

/* 卡片角标新数据条：CAP-NN · STATUS LIVE */
.cap-card > h3 { position: relative; }
.cap-card > h3::before {
  content: counter(cap, decimal-leading-zero);
  counter-increment: cap;
  position: absolute;
  top: -22px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--cap-accent) 80%, white 0%);
  opacity: 0.85;
}
.cap-card > h3::after {
  content: "● LIVE";
  position: absolute;
  top: -22px;
  left: 38px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--success);
  opacity: 0.7;
  animation: capv3-pulse 1.6s ease-in-out infinite;
}
@keyframes capv3-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
.capabilities { counter-reset: cap; position: relative; z-index: 1; }

/* 图标重塑：方框 + 旋转环 + 掠光 */
.cap-icon {
  position: relative !important;
  width: 56px !important; height: 56px !important;
  border-radius: 4px !important;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--cap-accent) 16%, transparent), transparent 70%),
    rgba(8,16,32,0.55) !important;
  border: 1px solid color-mix(in srgb, var(--cap-accent) 30%, transparent) !important;
  color: var(--cap-accent) !important;
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--cap-accent) 10%, transparent),
    0 0 16px color-mix(in srgb, var(--cap-accent) 14%, transparent) !important;
}
.cap-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--cap-accent) 40%, transparent);
  opacity: 0.3;
  animation: capv3-rotate 18s linear infinite;
}
.cap-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--cap-accent) 25%, transparent) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.cap-card:hover .cap-icon::after { opacity: 0.8; animation: capv3-shine 1.4s ease-out; }
@keyframes capv3-rotate {
  to { transform: rotate(360deg); }
}
@keyframes capv3-shine {
  0% { transform: translateX(-30%) translateY(-30%); }
  100% { transform: translateX(30%) translateY(30%); }
}
.cap-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--cap-accent) 60%, transparent));
}

/* tag 改造：监督带渐变 + 顶部脉冲点 */
.cap-tag {
  position: absolute !important;
  top: 14px !important; right: 14px !important;
  background: rgba(8,16,32,0.7) !important;
  border: 1px solid color-mix(in srgb, var(--cap-accent) 40%, transparent) !important;
  color: var(--cap-accent) !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.14em !important;
  padding: 3px 8px !important;
  text-transform: uppercase;
}
.cap-tag::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cap-accent);
  margin-right: 5px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--cap-accent);
  animation: capv3-blink 1.2s ease-in-out infinite;
}
@keyframes capv3-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 标题渐变下划线 */
.cap-card h3 {
  position: relative;
  padding-bottom: 8px;
}
.cap-card h3::before { /* override above counter so positioning still works */ }

/* 描述更技术感 */
.cap-card p {
  position: relative;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--cap-accent) 25%, transparent);
}

/* 底部更换样式：分割线 + 数字高亮 */
.cap-foot {
  border-top: 1px dashed color-mix(in srgb, var(--cap-accent) 22%, transparent) !important;
  padding-top: 12px !important;
}
.cap-foot > span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.cap-foot .arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cap-accent) 30%, transparent);
  display: inline-flex !important;
  align-items: center; justify-content: center;
  background: rgba(8,16,32,0.6);
  color: var(--cap-accent) !important;
  font-size: 12px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.cap-card:hover .cap-foot .arrow {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--cap-accent) 16%, transparent);
  border-color: var(--cap-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cap-accent) 40%, transparent);
}


/* === Pulse Section · 实时脉搏 ====================================== */
.pulse-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 左侧：市场快讯 feed */
.pulse-feed {
  position: relative;
  background: linear-gradient(180deg, rgba(11,18,32,0.72), rgba(8,12,24,0.72));
  border: 1px solid rgba(95,223,255,0.14);
  border-radius: 18px;
  padding: 22px 24px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.pulse-feed::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,223,255,0.55), transparent);
  animation: pulseScan 4s linear infinite;
}
@keyframes pulseScan {
  0% { transform: translateX(-30%); opacity: 0; }
  20%,80% { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0; }
}

.pulse-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(95,223,255,0.14);
}
.pulse-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
.pulse-head .live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--success, #4ade80);
}
.pulse-head .live .blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success, #4ade80);
  box-shadow: 0 0 10px var(--success, #4ade80);
  animation: pulseBlip 1.6s ease-in-out infinite;
}
@keyframes pulseBlip { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.pulse-list {
  display: flex; flex-direction: column;
  gap: 2px;
}
.pulse-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 4px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.25s, transform 0.25s;
}
.pulse-item:last-child { border-bottom: none; }
.pulse-item::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(95,223,255,0.6), rgba(95,223,255,0.0));
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity 0.25s;
}
.pulse-item:hover {
  background: rgba(95,223,255,0.04);
}
.pulse-item:hover::before { opacity: 1; }

.pulse-item .pulse-flag {
  width: 28px; height: 20px; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.pulse-item .body { min-width: 0; }
.pulse-item .country {
  font-family: var(--font-en, "JetBrains Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3, #6b7a99);
  margin-bottom: 4px;
}
.pulse-item .title {
  font-size: 14px;
  color: var(--text-1, #e6ecf5);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-item .ts {
  font-family: var(--font-en, "JetBrains Mono", monospace);
  font-size: 11px;
  color: var(--text-3, #6b7a99);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 右侧 metric stack */
.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric-card {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, rgba(11,18,32,0.72), rgba(8,12,24,0.72));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 20px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 138px;
}
.metric-card::after {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.metric-card .num {
  font-family: var(--font-en, "JetBrains Mono", monospace);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--text-1, #e6ecf5);
  line-height: 1;
}
.metric-card .lbl {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2, #a4b1c7);
}
.metric-card .delta {
  margin-top: 4px;
  font-family: var(--font-en, "JetBrains Mono", monospace);
  font-size: 11px;
  color: var(--success, #4ade80);
  letter-spacing: 0.02em;
}
.metric-card .sparkline {
  margin-top: auto;
  width: 100%;
  height: 50px;
  display: block;
}

@media (max-width: 980px) {
  .pulse-section { grid-template-columns: 1fr; padding: 0 18px; }
  .metric-stack { flex-direction: row; flex-wrap: wrap; }
  .metric-card { min-width: 200px; }
}


/* ============================================================================
   ============  MOBILE RESPONSIVE  ============
   适配 ≤1024 (平板) / ≤720 (手机) / ≤480 (小屏手机)
   覆盖当前真正在用的 v3 选择器（旧 .hud-grid/.col-N/.hudv2 已废弃）
   ============================================================================ */

/* ---------- 中间段：Hero 文本居中、副 drawer 已隐藏 ---------- */
@media (max-width: 1100px) {
  .hero-overlay {
    grid-template-columns: 1fr;
    padding: 110px 40px 140px;
    justify-items: start;
  }
  .hero-text-block { max-width: 720px; }
}

/* ---------- 平板 ≤1024 ---------- */
@media (max-width: 1024px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 24px; }

  .section { padding: 80px 28px; }
  .section-head { margin-bottom: 40px; }

  .capabilities { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cap-card { padding: 24px; min-height: 230px; }

  .app-preview-wrap { gap: 56px; }
  .phone-stack { height: 560px; }
  .phone { width: 250px; height: 520px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 4; }

  /* HUD v3 - 释放高度锁定，让卡片自然堆叠 */
  .hud-section.v3 {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 24px 0;
  }
  .hud-wrap.v3 {
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    padding: 14px 20px;
    height: auto;
  }
  /* 移动/平板：顶栏拆回上下两段 —— 国家信息在上，KPI 单独一行 */
  .hudv3-top {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }
  .hudv3-top > .hudv3-kpis { flex-basis: 100%; order: 3; }
  .hudv3-main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .hudv3-card { min-height: 280px; }
  .hudv3-sub {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .hudv3-sub .oppCard { grid-column: 1 / 3; }
  .hudv3-summary { display: none; }
}

/* ---------- 手机横版 / 小平板 ≤860 ---------- */
@media (max-width: 860px) {
  .hudv3-kpis {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    grid-auto-rows: 72px;
  }
  .hudv3-main { grid-template-columns: 1fr; }
  .hudv3-sub { grid-template-columns: 1fr; }
  .hudv3-sub .oppCard { grid-column: auto; }
}

/* ---------- 手机 ≤720 ---------- */
@media (max-width: 720px) {
  /* === Nav === */
  .nav { padding: 12px 14px; }
  .nav-links { display: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12px; }
  .nav-logo { gap: 8px; }
  .nav-logo .logo-mark { width: 28px; height: 28px; }
  .nav-logo .logo-mark svg { width: 16px; height: 16px; }
  .nav-logo .brand { font-size: 14px; }
  .nav-logo .brand-cn { font-size: 11px; }

  /* === Hero === */
  .hero-cinema { min-height: 100vh; min-height: 100dvh; }
  .hero-overlay {
    padding: 22vh 18px 200px;   /* 文字下移：从 84px 顶部 → 22vh */
    gap: 18px;
    align-content: start;
  }
  .hero-text-block { max-width: 100%; }
  .hero-eyebrow {
    font-size: 11.5px;
    padding: 6px 13px;
    margin-bottom: 22px;
  }
  .hero-cinema h1 {
    font-size: clamp(42px, 11vw, 60px);   /* 字号显著增大 */
    line-height: 1.05;
    margin-bottom: 22px;
  }
  .hero-cinema p.lead {
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 28px;
  }
  .hero-cta { gap: 12px; width: 100%; }
  .hero-cta .btn-lg {
    padding: 13px 18px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
  }
  /* 联系纳睿（次按钮）边框增强 */
  .hero-cta .btn-ghost {
    border-color: var(--brand-glow);
    border-width: 1.5px;
    background: rgba(74, 158, 255, 0.10);
    color: var(--text-1);
    box-shadow: 0 0 0 1px rgba(107, 182, 255, 0.20) inset;
  }
  .hero-cta .btn-ghost:hover,
  .hero-cta .btn-ghost:active {
    background: rgba(74, 158, 255, 0.18);
    border-color: var(--accent-cyan);
  }
  .scroll-hint { display: none; }
  .hero-right-drawer { display: none !important; }

  /* === Country Picker === */
  .country-picker { padding: 36px 14px 14px; }
  .country-picker-label { font-size: 10px; gap: 8px; margin-bottom: 8px; }
  .country-picker-label::before,
  .country-picker-label::after { width: 14px; }
  .country-strip { gap: 8px; padding-bottom: 6px; }
  .country-pill {
    padding: 7px 12px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .country-pill .flag { width: 18px; height: 13px; }
  .country-pill .score-mini { font-size: 10px; padding: 1px 5px; }

  /* === HUD v3 === */
  .hud-section.v3 { padding: 12px 0; }
  .hud-wrap.v3 {
    padding: 10px 12px;
    gap: 10px;
  }

  .hudv3-top {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(95,223,255,0.10);
  }
  .hudv3-top-l { gap: 10px; flex: 1 1 auto; min-width: 0; }
  .hudv3-flag { width: 36px; height: 26px; }
  .hudv3-id .name { font-size: 17px; }
  .hudv3-id .meta { font-size: 8.5px; letter-spacing: 0.10em; }
  .hudv3-top-r { text-align: right; }
  .hudv3-top-r .stat { font-size: 9.5px; }
  .hudv3-top-r .tick { font-size: 8.5px; }

  .hudv3-kpis {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 64px;
    gap: 6px;
  }
  .hudv3-kpi { padding: 6px 9px 0; }
  .hudv3-kpi-row1 { font-size: 11px; letter-spacing: 0.10em; }
  .hudv3-kpi-val { font-size: 16px; }
  .hudv3-kpi-delta { font-size: 8.5px; }
  .hudv3-kpi-spark { height: 18px; }

  .hudv3-card {
    padding: 10px 11px;
    min-height: 240px;
  }
  .hudv3-card-h h4 { font-size: 12px; }
  .hudv3-card-h .meta { font-size: 8.5px; }

  /* Score */
  .scorev3-gauge svg { max-height: 110px; }
  .scorev3-gauge .center .v { font-size: 26px; }
  .scorev3-list { font-size: 9.5px; }

  /* Radar */
  .radarv3-svg { max-height: 180px; }
  .radarv3-foot { font-size: 9.5px; gap: 8px; flex-wrap: wrap; }

  /* City map - 给城市点的标签留余地，避免拥挤 */
  .cityv3-map { min-height: 200px; }
  .cityv3-pin .lbl { font-size: 8.5px; }
  .cityv3-pin .lbl .ty { font-size: 7.5px; }
  .cityv3-dist { font-size: 7.5px; padding: 1px 3px; }

  /* Attribution / Neural */
  .attribv3-svg { max-height: 180px; }
  .attribv3-stats .v { font-size: 12px; }
  .neuralv3-svg { max-height: 160px; }
  .neuralv3-stats .v { font-size: 13px; }

  /* Capital flow */
  .flowv3-canvas-wrap { min-height: 200px; }
  .flowv3-stat { padding: 4px 7px; }
  .flowv3-stat .k { font-size: 8px; letter-spacing: 0.10em; }
  .flowv3-stat .v { font-size: 12px; }
  .flowv3-surplus { font-size: 9px; padding: 4px 7px; }

  /* Playbook */
  .playv3-row {
    grid-template-columns: 36px 1fr 32px;
    gap: 8px;
    padding: 6px 8px;
  }
  .playv3-row .rk .n { font-size: 14px; }
  .playv3-row .rk .lb { font-size: 7.5px; }
  .playv3-row .tl { font-size: 11px; }
  .playv3-row .ds { font-size: 9.5px; }
  .playv3-row .tg { font-size: 8px; }
  .playv3-row .conf .ring { width: 28px; height: 28px; }
  .playv3-row .conf .ring .n { font-size: 9.5px; }

  /* Opp matrix */
  .oppv3-row { grid-template-columns: 22px 1fr 50px; gap: 6px; padding: 5px 7px; }
  .oppv3-row .rk { font-size: 12px; }
  .oppv3-row .tag { font-size: 11px; }
  .oppv3-row .meta .sc { font-size: 13px; }
  .oppv3-row .meta .gr { font-size: 8.5px; }
  .oppv3-foot { grid-template-columns: 1fr; }
  .oppv3-foot .ent { text-align: left; border-left: none; padding-left: 0; border-top: 1px dashed rgba(95,223,255,0.10); padding-top: 6px; }

  /* Marquee */
  .hudv3-marquee { padding: 0 8px; height: 24px; gap: 8px; }
  .hudv3-marquee-tag { font-size: 8.5px; padding-right: 8px; }
  .hudv3-marquee-track { font-size: 9.5px; gap: 16px; }

  /* === Sections === */
  .section { padding: 56px 18px; }
  .section-head { margin-bottom: 32px; }
  .section-eyebrow { font-size: 11px; margin-bottom: 10px; }
  .section-title { font-size: clamp(28px, 7vw, 38px); }
  .section-sub { font-size: 14px; }

  /* === Capabilities === */
  .capabilities { grid-template-columns: 1fr; gap: 14px; }
  .cap-card { padding: 20px; min-height: auto; }
  .cap-card h3 { font-size: 17px; }
  .cap-card p { font-size: 13px; }
  .cap-card > h3::before,
  .cap-card > h3::after { display: none; }

  /* === Pulse === */
  .pulse-section { padding: 0 14px; gap: 16px; }
  .pulse-feed { padding: 18px 16px 14px; border-radius: 14px; }
  .pulse-head h3 { font-size: 14px; }
  .pulse-item { gap: 10px; padding: 10px 4px 10px 10px; }
  .pulse-item .pulse-flag { width: 24px; height: 17px; }
  .pulse-item .title { font-size: 13px; }
  .pulse-item .ts { font-size: 10px; }
  .metric-stack { flex-direction: column; gap: 12px; }
  .metric-card { min-width: 0; min-height: 120px; padding: 16px 18px 12px; border-radius: 14px; }
  .metric-card .num { font-size: 30px; }
  .metric-card .lbl { font-size: 11.5px; }
  .metric-card .delta { font-size: 10.5px; }
  .metric-card .sparkline { height: 38px; }

  /* === App Preview === */
  .app-preview-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .app-preview-text > p { font-size: 14px; margin-bottom: 24px; }
  .feature-list { gap: 14px; margin-bottom: 24px; }
  .feature-list .ftxt strong { font-size: 13.5px; }
  .feature-list .ftxt span { font-size: 12.5px; }
  .download-row { gap: 10px; }
  .dl-btn { padding: 10px 14px; flex: 1; min-width: 140px; justify-content: center; }
  .dl-btn .dl-l1 { font-size: 13px; }
  .dl-btn svg { width: 20px; height: 20px; }
  .phone-stack { height: 480px; }
  .phone { width: 220px; height: 460px; padding: 10px; border-radius: 34px; }
  .phone .notch { width: 70px; height: 18px; top: 12px; }
  .phone-content { border-radius: 24px; }
  .phone-1 { transform: translate(-58px, -10px) rotate(-5deg); }
  .phone-2 { transform: translate(58px, 24px) rotate(6deg); }

  /* === CTA === */
  .cta-block { padding: 48px 24px; border-radius: 22px; }
  .cta-block .btn-row .btn-lg { padding: 11px 20px; font-size: 13px; }

  /* === Footer === */
  footer { padding: 36px 18px 22px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-brand { grid-column: span 2; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
}

/* ---------- 小屏手机 ≤480 ---------- */
@media (max-width: 480px) {
  .nav { padding: 10px 12px; }
  .nav-cta .btn-ghost { display: none; }

  .hero-overlay { padding: 22vh 14px 170px; gap: 16px; align-content: start; }
  .hero-cinema h1 { font-size: clamp(36px, 11vw, 52px); line-height: 1.05; margin-bottom: 18px; }
  .hero-cinema p.lead { font-size: 14.5px; line-height: 1.7; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn-lg { width: 100%; padding: 13px 16px; font-size: 14px; }
  /* 联系纳睿按钮在小屏更醒目 */
  .hero-cta .btn-ghost {
    border-color: var(--accent-cyan);
    border-width: 1.5px;
    background: rgba(95, 223, 255, 0.10);
    color: var(--text-1);
  }

  .country-picker { padding: 28px 12px 12px; }
  .country-pill { padding: 6px 10px; font-size: 12px; gap: 6px; }
  .country-pill > span:not(.score-mini) {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hud-wrap.v3 { padding: 8px 10px; gap: 8px; }
  .hudv3-kpis { grid-template-columns: 1fr 1fr; grid-auto-rows: 60px; gap: 5px; }
  .hudv3-kpi { padding: 5px 8px 0; }
  .hudv3-kpi-val { font-size: 15px; }
  .hudv3-card { min-height: 220px; padding: 9px 10px; }

  /* Marquee tag 在极窄屏隐藏，只留滚动文字 */
  .hudv3-marquee-tag { display: none; }
  .hudv3-marquee { padding: 0 6px; }

  .section { padding: 44px 14px; }
  .section-head { margin-bottom: 26px; }
  .section-title { font-size: clamp(24px, 7vw, 32px); }

  .cap-card { padding: 18px; }
  .cap-icon { width: 48px !important; height: 48px !important; }

  .app-preview-text h2 { font-size: clamp(28px, 8vw, 36px); }
  .phone-stack { height: 420px; }
  .phone { width: 190px; height: 400px; border-radius: 30px; }
  .phone .notch { width: 60px; height: 16px; }
  .phone-content { border-radius: 22px; }
  .phone-1 { transform: translate(-46px, -8px) rotate(-5deg); }
  .phone-2 { transform: translate(46px, 20px) rotate(6deg); }

  .cta-block { padding: 36px 18px; border-radius: 18px; }
  .cta-block h2 { font-size: clamp(26px, 7vw, 34px); }
  .cta-block .btn-row { flex-direction: column; }
  .cta-block .btn-row .btn-lg { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand { grid-column: auto; }
}

/* ---------- 触摸设备：去掉 hover 抬升以避免点击残留 ---------- */
@media (hover: none) {
  .cap-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .dl-btn:hover { transform: none; }
}

/* ---------- 安全区适配（带刘海手机） ---------- */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  footer {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* ============================================================================
   神经决策心跳条 .neural-heartbeat
   ============================================================================ */
.neural-heartbeat {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  background:
    linear-gradient(90deg, rgba(95,223,255,0.06) 0%, rgba(167,139,255,0.04) 100%),
    rgba(6, 12, 26, 0.92);
  border: 1px solid rgba(95,223,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  z-index: 4;
}
.nhb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  padding-right: 12px;
  border-right: 1px solid rgba(95,223,255,0.14);
  flex-shrink: 0;
}
.nhb-blip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 1.4s infinite;
}
.nhb-canvas {
  flex: 1;
  height: 100%;
  display: block;
  min-width: 0;
}
.nhb-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  flex-shrink: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(95,223,255,0.14);
}
.nhb-stat-k {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.nhb-stat-v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.nhb-stat-v i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  margin-left: 2px;
  font-weight: 500;
}
.nhb-stat-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.nhb-stat-bars i {
  display: block;
  width: 2px;
  background: linear-gradient(180deg, #5fdfff, rgba(95,223,255,0.4));
  border-radius: 1px;
  animation: hlf2-bar 1.0s ease-in-out infinite;
}
.nhb-stat-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.nhb-stat-bars i:nth-child(2) { height: 80%; animation-delay: 0.1s; }
.nhb-stat-bars i:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.nhb-stat-bars i:nth-child(4) { height: 100%; animation-delay: 0.3s; }


/* ============================================================================
   右侧浮动栈：单容器 · 左侧 tab 折叠 · TimeShift + Chat
   ============================================================================ */
.right-stack {
  position: fixed;
  right: 0;
  top: 90px;
  bottom: 18px;
  z-index: 80;
  width: 300px;
  display: flex;
  align-items: stretch;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.32s ease,
    visibility 0s linear 0.32s;
}
.right-stack > * { pointer-events: auto; }
.right-stack.collapsed { transform: translateX(calc(100% - 28px)); }

/* 不在 dashboard 视口内时淡出隐藏 */
.right-stack.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
}
.right-stack.visible {
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.32s ease,
    visibility 0s linear 0s;
}
.right-stack.collapsed.visible { transform: translateX(calc(100% - 28px)); }

.right-stack-tab {
  width: 28px;
  flex-shrink: 0;
  align-self: center;
  height: 96px;
  margin-right: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(8, 16, 36, 0.92), rgba(6, 12, 28, 0.85));
  border: 1px solid rgba(95, 223, 255, 0.22);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--brand-glow);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s, color 0.2s;
}
.right-stack-tab:hover {
  background: linear-gradient(180deg, rgba(28, 50, 95, 0.95), rgba(13, 27, 61, 0.85));
  color: var(--text-1);
}
.right-stack-tab svg { width: 12px; height: 12px; display: block; }
.right-stack-tab > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  margin-top: -0.16em;
}

.right-stack-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(11, 22, 44, 0.92) 0%, rgba(6, 12, 28, 0.92) 100%);
  border: 1px solid rgba(95, 223, 255, 0.22);
  border-radius: 6px 0 0 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(95, 223, 255, 0.04) inset;
  overflow: hidden;
}

/* ============================================================================
   时间穿梭 / What-If 区段（在 right-stack-body 内的上半段）
   ============================================================================ */
.tshift {
  width: 100%;
  font-family: var(--font-cn);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(95, 223, 255, 0.14);
  transition: box-shadow 0.3s;
}
.tshift-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(95, 223, 255, 0.04);
  border-bottom: 1px solid rgba(95, 223, 255, 0.10);
  color: var(--accent-cyan);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tshift-header svg { width: 14px; height: 14px; flex-shrink: 0; }
.tshift-body { padding: 10px 12px 12px; }

.tshift-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.tshift-tab {
  flex: 1;
  padding: 5px 6px;
  background: rgba(95, 223, 255, 0.04);
  border: 1px solid rgba(95, 223, 255, 0.14);
  border-radius: 3px;
  color: var(--text-3);
  font-family: var(--font-cn);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tshift-tab:hover { color: var(--text-1); }
.tshift-tab.active {
  background: linear-gradient(180deg, rgba(95, 223, 255, 0.20), rgba(95, 223, 255, 0.08));
  border-color: rgba(95, 223, 255, 0.45);
  color: var(--text-1);
  box-shadow: 0 0 12px rgba(95, 223, 255, 0.18) inset;
}
.tshift-reset {
  padding: 5px 8px;
  background: transparent;
  border: 1px solid rgba(167, 139, 255, 0.30);
  border-radius: 3px;
  color: #c9b8ff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s;
}
.tshift-reset:hover {
  background: rgba(167, 139, 255, 0.12);
  color: #fff;
}

.tshift-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === 时间穿梭 readout === */
.tshift-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 4px;
  background: rgba(8, 16, 32, 0.5);
  border-radius: 3px;
  border: 1px solid rgba(95, 223, 255, 0.10);
}
.tshift-readout-k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.20em;
  color: var(--text-3);
}
.tshift-readout-v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.tshift-readout-v.now { color: var(--accent-cyan); }
.tshift-readout-v.fwd { color: #c9b8ff; }
.tshift-readout-v.back { color: #fbbf24; }
.tshift-readout-d {
  font-family: var(--font-cn);
  font-size: 10px;
  color: var(--text-2);
}

/* === Slider === */
.tshift-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.4), rgba(95, 223, 255, 0.6) 50%, rgba(167, 139, 255, 0.6));
  border-radius: 2px;
  outline: none;
  margin: 6px 0;
  cursor: pointer;
}
.tshift-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid #fff;
  box-shadow: 0 0 10px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.15s;
}
.tshift-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.tshift-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid #fff;
  box-shadow: 0 0 10px var(--accent-cyan);
  cursor: pointer;
}
.tshift-slider.sm { height: 3px; margin: 4px 0; }
.tshift-slider.sm::-webkit-slider-thumb { width: 12px; height: 12px; }

.tshift-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--text-4);
  padding: 0 2px;
}

/* === What-If row === */
.tshift-wif-row {
  background: rgba(8, 16, 32, 0.4);
  border: 1px solid rgba(95, 223, 255, 0.10);
  border-radius: 3px;
  padding: 6px 8px;
}
.tshift-wif-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.tshift-wif-k {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-1);
}
.tshift-wif-v {
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tshift-wif-v.now { color: var(--text-3); }
.tshift-wif-v.fwd { color: #fbbf24; }
.tshift-wif-v.back { color: var(--success); }

.tshift-tip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  color: var(--text-3);
  text-align: center;
  padding-top: 4px;
}

/* === 涟漪闪光（注入到所有 hudv3-card / hudv3-kpi） === */
@keyframes quantum-ripple-anim {
  0% { box-shadow: 0 0 0 0 rgba(95, 223, 255, 0); }
  20% {
    box-shadow:
      0 0 18px 2px rgba(95, 223, 255, 0.55),
      inset 0 0 18px rgba(95, 223, 255, 0.15);
  }
  100% { box-shadow: 0 0 0 0 rgba(95, 223, 255, 0); }
}
.quantum-ripple {
  animation: quantum-ripple-anim 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tshift.rippling {
  border-color: rgba(95, 223, 255, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(95, 223, 255, 0.35);
}

/* ============================================================================
   多国对比模式 .cmp-*
   ============================================================================ */
.cmp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(2, 6, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cmd-fade 0.2s ease-out;
}
.cmp-modal {
  width: min(1100px, 96vw);
  max-height: 90vh;
  background:
    linear-gradient(180deg, rgba(11, 22, 44, 0.96) 0%, rgba(6, 12, 28, 0.96) 100%);
  border: 1px solid rgba(95, 223, 255, 0.32);
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(74, 158, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cmd-slide 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(95, 223, 255, 0.16);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.cmp-bar-tag {
  color: var(--accent-cyan);
  background: rgba(95, 223, 255, 0.10);
  border: 1px solid rgba(95, 223, 255, 0.30);
  padding: 3px 7px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.cmp-bar-name {
  font-family: var(--font-cn);
  color: var(--text-1);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.cmp-bar-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 223, 255, 0.25), transparent);
}
.cmp-bar-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.cmp-close {
  background: transparent;
  border: 1px solid rgba(95, 223, 255, 0.30);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 4px 9px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cmp-close:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

.cmp-body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 16px;
  padding: 18px;
  overflow: auto;
  min-height: 0;
}

/* 雷达区 */
.cmp-radar-wrap {
  background: rgba(8, 16, 32, 0.4);
  border: 1px solid rgba(95, 223, 255, 0.10);
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmp-radar { width: 100%; height: auto; aspect-ratio: 1; }
.cmp-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed rgba(95, 223, 255, 0.14);
  padding-top: 10px;
}
.cmp-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cn);
  font-size: 12px;
  color: var(--text-1);
}
.cmp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cmp-legend-flag {
  width: 18px;
  height: 13px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* 对比表 */
.cmp-table-wrap {
  background: rgba(8, 16, 32, 0.4);
  border: 1px solid rgba(95, 223, 255, 0.10);
  border-radius: 4px;
  padding: 4px;
  overflow: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-cn);
}
.cmp-table th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(95, 223, 255, 0.14);
  white-space: nowrap;
}
.cmp-table th:first-child {
  text-align: left;
  font-family: var(--font-cn);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.cmp-th-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.cmp-table td {
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(95, 223, 255, 0.06);
  text-align: right;
  font-family: var(--font-en, "Space Grotesk", system-ui);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .cmp-td-k {
  text-align: left;
  font-family: var(--font-cn);
  font-weight: 500;
  color: var(--text-1);
  font-size: 12px;
}
.cmp-table .cmp-td-v.best {
  color: var(--success);
  background: rgba(92, 242, 164, 0.08);
  position: relative;
}
.cmp-table .cmp-td-v.best::before {
  content: "▲";
  font-size: 8px;
  margin-right: 3px;
  vertical-align: middle;
}
.cmp-table .cmp-td-v.worst {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.06);
}
.cmp-table .cmp-td-v.worst::before {
  content: "▼";
  font-size: 8px;
  margin-right: 3px;
  vertical-align: middle;
}

/* 移动端 */
@media (max-width: 768px) {
  .cmp-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   与纳睿探讨 .chat-panel（在 right-stack-body 内的下半段）
   ============================================================================ */
.chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-cn);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(95, 223, 255, 0.04);
  border-bottom: 1px solid rgba(95, 223, 255, 0.10);
  color: var(--accent-cyan);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.chat-header svg { width: 14px; height: 14px; flex-shrink: 0; }
.chat-header-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--success);
}
.chat-blip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 1.4s infinite;
}

.chat-ctx {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px dashed rgba(95, 223, 255, 0.10);
  font-size: 10.5px;
  color: var(--text-3);
  flex-shrink: 0;
  background: rgba(8, 16, 32, 0.4);
}
.chat-ctx-flag {
  width: 18px; height: 13px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.chat-ctx-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chat-ctx-name {
  font-weight: 600;
  color: var(--text-1);
  margin-left: auto;
  font-size: 12px;
}

.chat-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(95, 223, 255, 0.18); border-radius: 4px; }

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: hudv3-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-msg-user { flex-direction: row-reverse; }

.chat-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid;
}
.chat-msg-ai .chat-avatar {
  background: radial-gradient(circle at 35% 35%, rgba(95,223,255,0.25), rgba(74,158,255,0.10));
  border-color: rgba(95, 223, 255, 0.45);
  color: var(--accent-cyan);
}
.chat-msg-user .chat-avatar {
  background: rgba(167, 139, 255, 0.14);
  border-color: rgba(167, 139, 255, 0.45);
  color: #c9b8ff;
}
.chat-avatar svg { width: 12px; height: 12px; }

.chat-bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg-ai .chat-bubble {
  background: linear-gradient(180deg, rgba(95, 223, 255, 0.10), rgba(95, 223, 255, 0.04));
  border: 1px solid rgba(95, 223, 255, 0.18);
  border-top-left-radius: 2px;
  color: var(--text-1);
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(180deg, rgba(167, 139, 255, 0.18), rgba(167, 139, 255, 0.08));
  border: 1px solid rgba(167, 139, 255, 0.28);
  border-top-right-radius: 2px;
  color: var(--text-1);
}
/* 锁定引导消息（gate）：琥珀警示，无头像，整宽显示 */
.chat-msg-gate {
  align-items: stretch;
}
.chat-msg-gate .chat-avatar {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.50);
  color: #fbbf24;
}
.chat-msg-gate .chat-avatar::before {
  content: "🔒";
  font-size: 11px;
  filter: grayscale(0.2);
}
.chat-msg-gate .chat-avatar svg { display: none; }
.chat-msg-gate .chat-bubble {
  max-width: 100%;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.40);
  border-top-left-radius: 2px;
  color: var(--text-1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.chat-msg-gate .chat-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%, transparent 35%,
    rgba(251, 191, 36, 0.10) 50%,
    transparent 65%, transparent 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  animation: chat-tip-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.chat-thinking span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.4;
  animation: chat-dot 1.2s infinite;
}
.chat-thinking span:nth-child(2) { animation-delay: 0.15s; }
.chat-thinking span:nth-child(3) { animation-delay: 0.30s; }
@keyframes chat-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  flex-shrink: 0;
}
.chat-quick-btn {
  padding: 4px 10px;
  background: rgba(95, 223, 255, 0.06);
  border: 1px solid rgba(95, 223, 255, 0.22);
  border-radius: 999px;
  color: var(--accent-cyan);
  font-family: var(--font-cn);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-quick-btn:hover {
  background: rgba(95, 223, 255, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-1);
}

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(95, 223, 255, 0.12);
  background: rgba(4, 10, 24, 0.5);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 16, 32, 0.6);
  border: 1px solid rgba(95, 223, 255, 0.18);
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--text-1);
  font-family: var(--font-cn);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input::placeholder { color: var(--text-4); }
.chat-input:focus {
  border-color: rgba(95, 223, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(95, 223, 255, 0.10);
}
.chat-input:disabled { opacity: 0.5; }
.chat-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(95, 223, 255, 0.30), rgba(167, 139, 255, 0.20));
  border: 1px solid rgba(95, 223, 255, 0.45);
  border-radius: 4px;
  color: var(--text-1);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}
.chat-send svg { width: 14px; height: 14px; }
.chat-send:hover:not(:disabled) {
  transform: translateX(2px);
  box-shadow: 0 0 12px rgba(95, 223, 255, 0.45);
}
.chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* === 永久锁定状态：可点（触发引导）但视觉禁用 === */
.chat-send.gated {
  background: linear-gradient(135deg, rgba(120, 130, 160, 0.18), rgba(80, 90, 120, 0.10));
  border-color: rgba(120, 140, 175, 0.35);
  color: var(--text-3);
  cursor: pointer;
}
.chat-send.gated:hover {
  background: linear-gradient(135deg, rgba(167, 139, 255, 0.20), rgba(95, 223, 255, 0.14));
  border-color: rgba(167, 139, 255, 0.55);
  color: #c9b8ff;
  transform: none;
  box-shadow: 0 0 14px rgba(167, 139, 255, 0.35);
}
.chat-send.gated::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(251, 191, 36, 0.6);
}

/* === 注册提示气泡 === */
.chat-send { position: relative; overflow: visible; }
.chat-send-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: -4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  white-space: nowrap;
  background: #0a1530;
  border: 1px solid rgba(95, 223, 255, 0.55);
  border-radius: 5px;
  color: var(--text-1);
  font-family: var(--font-cn);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(95, 223, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
.chat-send-tip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  pointer-events: none;
  background: linear-gradient(110deg,
    transparent 0%, transparent 35%,
    rgba(255, 255, 255, 0.10) 50%,
    transparent 65%, transparent 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  animation: chat-tip-shine 2.4s ease-in-out infinite;
}
@keyframes chat-tip-shine {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: -20% 0; }
}
/* 下方小箭头 */
.chat-send-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(135deg, rgba(95,223,255,0.18), rgba(167,139,255,0.14)),
    rgba(6, 12, 28, 0.96);
  border-right: 1px solid rgba(95, 223, 255, 0.55);
  border-bottom: 1px solid rgba(95, 223, 255, 0.55);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.chat-send-tip-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(95, 223, 255, 0.22);
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.chat-send-tip-icon svg { width: 12px; height: 12px; display: block; }
.chat-send-tip-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.chat-send-tip-text b {
  font-weight: 700;
  color: var(--text-1);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.chat-send-tip-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.10em;
}
.chat-send:hover .chat-send-tip,
.chat-send:focus-visible .chat-send-tip {
  opacity: 1;
  pointer-events: none;
  transform: translateY(0) scale(1);
}

/* 移动端：完全隐藏右侧栈（侧边栏）—— TimeShift / Chat 不在小屏出现 */
@media (max-width: 860px) {
  .right-stack { display: none !important; }
}

/* ============================================================================
 * Accessibility · visually-hidden 工具类
 * ----------------------------------------------------------------------------
 * 用于：视觉上不显示但要保留在 DOM 里给屏幕阅读器 + 搜索引擎爬虫读到的内容。
 * 比如 dashboard section 的 h2 / p —— HUD 仪表盘自己有 UI，文字只为 SEO。
 * 推荐方案（WAI ARIA Authoring Practices）—— 比 display:none 友好（display:none
 * 会让屏幕阅读器跳过；visually-hidden 仍然能被读）。
 * ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
 * 性能优化（保留视觉，降低渲染压力）
 * ----------------------------------------------------------------------------
 * 1. content-visibility: 浏览器把视口外的 section 跳过布局 + 绘制，等滚近才算
 *    （能显著降低 long-page 的 paint 时间，Chrome 85+ / Edge / Safari 18+ 支持）
 * 2. contain: 告诉浏览器某 section 内的 layout/paint 不会影响外部
 * 3. prefers-reduced-motion: 尊重系统"减少动画"偏好（无障碍 + 低端机省电）
 * ========================================================================== */

/* 视口外懒渲染：dashboard / features / pulse / app / cta section 滚到才计算 */
#dashboard,
#features,
#pulse,
#app,
#cta,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;  /* 占位高度，避免滚动条跳 */
}

/* Hero 不加 content-visibility（首屏需立刻渲染），但给一个 paint 隔离 */
.hero-cinema {
  contain: layout paint;
}

/* 重型独立区块用 layout 容器化，避免一处变动触发全页 reflow */
.capabilities,
.pulse-section,
.app-preview-wrap {
  contain: layout style;
}

/* 用户在系统/浏览器开了"减少动画"：尊重它，停掉所有持续动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
 * FAQ section · cinematic 暗色风格，搭配 head 里的 FAQPage JSON-LD
 * ============================================================================ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.faq-item:hover {
  border-color: var(--glass-border-strong);
  background: var(--glass-strong);
}
.faq-item[open] {
  border-color: rgba(95, 223, 255, 0.4);
  background: linear-gradient(135deg, rgba(95, 223, 255, 0.08), rgba(74, 158, 255, 0.05));
  box-shadow: 0 0 32px rgba(95, 223, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding-right: 28px;
}
/* 隐藏默认箭头（webkit / firefox 各一份） */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
/* 自定义 + / × 切换图标，CSS-only，零 JS */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  color: var(--brand-glow);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s, border-color 0.25s;
}
.faq-item[open] summary::after {
  content: "×";
  transform: translateY(-50%) rotate(180deg);
  background: rgba(95, 223, 255, 0.18);
  border-color: rgba(95, 223, 255, 0.6);
  color: var(--accent-cyan);
}
.faq-item summary:hover { color: var(--accent-cyan); }
.faq-item > div {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 170, 255, 0.1);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  animation: faq-in 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .faq-item { padding: 16px 18px; }
  .faq-item summary { font-size: 15px; }
  .faq-item > div { font-size: 14px; }
}
