/* 资金可视化 · 首页 V3.3 视觉回归 — 嵌入 desktop-shell，仅右侧内容 */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg-0: #050b16;
  --bg-1: #071426;
  --line: rgba(130, 160, 210, 0.16);
  --line-strong: rgba(130, 160, 210, 0.28);
  --text: #e8eef8;
  --text-muted: #8fa3be;
  --text-dim: #647794;
  /* A股：红涨绿跌 */
  --up: #E64545;
  --up-soft: rgba(230, 69, 69, 0.16);
  --dn: #12B886;
  --dn-soft: rgba(18, 184, 134, 0.14);
  /* 科技蓝主色 */
  --blue: #1677FF;
  --blue-2: #00A8FF;
  --blue-soft: rgba(22, 119, 255, 0.16);
  --purple: #8B5CF6;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --accent-warm: #d4a574;
  --radius: 14px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --font-display: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Manrope", system-ui, sans-serif;
  /* 对齐 desktop-main 内容区内边距 */
  --pad: 24px;
  --hn-tab-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hn22-content {
  color: var(--text);
  font-family: var(--font-body);
  background: transparent;
}

/* 嵌入 shell：保持科技深色，禁止透出白色默认底 */
body.has-desktop-shell {
  background: var(--bg-0) !important;
}

body.has-desktop-shell .desktop-main {
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 94, 156, 0.28), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(11, 51, 93, 0.32), transparent 30%),
    linear-gradient(180deg, #030c16 0%, #071426 52%, #050b16 100%) !important;
  color: #ffffff;
}

body.has-desktop-shell .hn22-content {
  background: transparent;
  min-height: 0;
}

/* 去掉与 Hero 重复的 shell 页头（仅首页内容存在时） */
body.has-desktop-shell:has(.hn22-content) .desktop-page-head {
  display: none !important;
}

body.has-desktop-shell .hn22-bg {
  display: none;
}

/* 桌面内容区恢复产品官网排版宽度（对齐 shell .content ≈1180） */
@media (min-width: 768px) {
  body.has-desktop-shell .hn22-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 12px 0 36px;
    gap: 22px;
  }

  body.has-desktop-shell .hn22-wrap {
    padding-inline: 24px;
  }
}

a { color: inherit; text-decoration: none; }

.hn22-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--pad);
}

.hn22-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 48% at 10% -6%, rgba(22, 119, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 4%, rgba(0, 168, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
}

.hn22-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(130, 160, 210, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 160, 210, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 10%, transparent 70%);
}

.hn22-bg__orb {
  position: absolute;
  width: 34vw;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  animation: hn22-drift 16s ease-in-out infinite alternate;
}

.hn22-bg__orb--a { top: 4%; left: -10%; background: rgba(22, 119, 255, 0.28); }
.hn22-bg__orb--b { top: 8%; right: -12%; background: rgba(0, 168, 255, 0.18); animation-delay: -5s; }

@keyframes hn22-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.05); }
}

.hn22-page {
  position: relative;
  z-index: 1;
  padding: 8px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.up { color: var(--up) !important; }
.dn { color: var(--dn) !important; }

.hn22-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hn22-sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.hn22-sec-link {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
}

.hn22-sec-link:hover { color: #7dd3ff; }

.hn22-hero__logo {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  background: linear-gradient(135deg, #4cf0ff 0%, #5167ff 45%, #8f63ff 100%);
  box-shadow: 0 0 18px rgba(83, 190, 255, 0.45);
}

/* ---------- 产品预览 / 驾驶舱大卡 ---------- */
.hn22-preview {
  padding: 0;
}

.hn22-preview .hn22-term {
  height: 300px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

.hn22-preview .hn22-term__main {
  flex: 1;
  min-height: 0;
}

/* 高级产品面板（Hero + 驾驶舱共用） */
.hn22-panel {
  border-radius: 16px;
  border: 1px solid rgba(0, 168, 255, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(ellipse 80% 55% at 8% -10%, rgba(0, 168, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 92% 100%, rgba(22, 119, 255, 0.12), transparent 45%),
    linear-gradient(165deg, rgba(12, 24, 42, 0.92), rgba(5, 10, 20, 0.96));
  box-shadow:
    0 0 0 1px rgba(0, 168, 255, 0.08),
    0 0 32px rgba(0, 168, 255, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: hn22-rise 0.55s ease-out both;
}

.hn22-panel__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 168, 255, 0.22);
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.1), rgba(0, 0, 0, 0.28));
}

.hn22-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 10px rgba(230, 69, 69, 0.75);
  flex-shrink: 0;
}

.hn22-panel__title {
  flex: 1;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hn22-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 69, 69, 0.45);
  background: rgba(230, 69, 69, 0.12);
  color: #ffb4b4;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hn22-panel__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  animation: hn22-blink 1.6s ease-out infinite;
}

.hn22-panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(0, 168, 255, 0.18);
  background: rgba(0, 20, 40, 0.35);
}

.hn22-panel__stat {
  padding: 8px 12px;
  border-right: 1px solid rgba(0, 168, 255, 0.14);
}

.hn22-panel__stat:last-child { border-right: 0; }

.hn22-panel__stat em {
  display: block;
  margin-bottom: 2px;
  font-style: normal;
  color: var(--text-dim);
  font-size: 11px;
}

.hn22-panel__stat strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.hn22-panel__pane-label {
  margin-bottom: 6px;
  color: var(--blue-2);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hn22-panel__foot {
  padding: 6px 12px;
  border-top: 1px solid rgba(0, 168, 255, 0.2);
  background: rgba(0, 40, 80, 0.22);
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hn22-panel--cockpit .hn22-panel__kpis {
  background: rgba(0, 24, 48, 0.4);
}

.hn22-panel--cockpit .hn22-kpi {
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.06), transparent);
}

.hn22-panel--cockpit .hn22-term__chart,
.hn22-panel--cockpit .hn22-term__rank,
.hn22-panel--cockpit .hn22-term__etf {
  background: rgba(0, 12, 28, 0.25);
}

.hn22-term {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.96), rgba(7, 11, 20, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: hn22-rise 0.55s ease-out both;
}

@keyframes hn22-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hn22-term__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.hn22-term__dots { display: inline-flex; gap: 5px; }

.hn22-term__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 176, 204, 0.35);
}

.hn22-term__dots i:nth-child(1) { background: #E64545; }
.hn22-term__dots i:nth-child(2) { background: #d4a574; }
.hn22-term__dots i:nth-child(3) { background: #12B886; }

.hn22-term__path {
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}

.hn22-term__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.4);
  background: rgba(22, 119, 255, 0.1);
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hn22-term__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(230, 69, 69, 0.5);
  animation: hn22-blink 1.6s ease-out infinite;
}

.hn22-term__live--sm { padding: 2px 7px; font-size: 9px; }

@keyframes hn22-blink {
  0% { box-shadow: 0 0 0 0 rgba(230, 69, 69, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(230, 69, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 69, 69, 0); }
}

.hn22-term__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(0, 168, 255, 0.18);
}

.hn22-kpi {
  padding: 8px 12px;
  border-right: 1px solid rgba(0, 168, 255, 0.14);
}

.hn22-kpi:last-child { border-right: 0; }

.hn22-kpi span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  margin-bottom: 3px;
}

.hn22-kpi strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.hn22-term__main {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 0.85fr;
  min-height: 0;
}

.hn22-term__chart,
.hn22-term__rank,
.hn22-term__etf {
  padding: 8px 10px 8px;
  min-height: 0;
  overflow: hidden;
}

.hn22-term__chart,
.hn22-term__rank { border-right: 1px solid rgba(0, 168, 255, 0.16); }

.hn22-term__label {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hn22-term__chart svg {
  width: 100%;
  height: auto;
  max-height: 118px;
  display: block;
}

.hn22-rank,
.hn22-etf,
.hn22-shot__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 168, 255, 0.08);
  font-size: 12px;
}

.hn22-rank:last-child,
.hn22-etf:last-child,
.hn22-shot__row:last-child { border-bottom: 0; }

.hn22-rank span {
  width: 16px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
}

.hn22-rank b,
.hn22-etf b {
  flex: 1;
  font-weight: 600;
  color: var(--text-muted);
}

.hn22-rank em,
.hn22-etf em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
}

.hn22-anim-line {
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  animation: hn22-draw 1.6s ease-out forwards;
}

.hn22-anim-line2 {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: hn22-draw 1.8s ease-out 0.15s forwards;
}

.hn22-anim-fill {
  opacity: 0;
  animation: hn22-fade 0.8s ease-out 0.5s forwards;
}

.hn22-anim-fill--blue {
  animation-delay: 0.65s;
}

.hn22-chart-now {
  filter: drop-shadow(0 0 6px rgba(230, 69, 69, 0.85));
}

.hn22-chart-now-ring {
  animation: hn22-ring 1.8s ease-out infinite;
}

@keyframes hn22-ring {
  0% { opacity: 0.55; }
  70% { opacity: 0.12; }
  100% { opacity: 0.55; }
}

@keyframes hn22-draw { to { stroke-dashoffset: 0; } }
@keyframes hn22-fade { to { opacity: 1; } }

.hn22-pulse { animation: hn22-dot 1.8s ease-in-out infinite; }

@keyframes hn22-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Hero ---------- */
.hn22-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  min-height: 320px;
  padding: 18px 0 12px;
}

.hn22-hero__copy { animation: hn22-rise 0.6s ease-out 0.05s both; }

.hn22-hero__brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f4f8fc 10%, #8ec8ff 55%, #1677FF 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hn22-hero__tag {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
}

.hn22-hero__sub {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.hn22-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hn22-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hn22-btn:hover { transform: translateY(-1px); }

.hn22-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #00A8FF, #1677FF 60%, #1260d8);
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.38);
}

.hn22-btn--primary:hover {
  box-shadow: 0 14px 34px rgba(22, 119, 255, 0.48);
}

.hn22-btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(130, 160, 210, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hn22-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 168, 255, 0.45);
}

.hn22-hero__shot { margin: 0; animation: hn22-rise 0.65s ease-out 0.1s both; }

.hn22-shot {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.hn22-shot.hn22-panel {
  /* 尺寸由 Hero 网格约束，不额外拉高页面 */
}

.hn22-shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.hn22-shot__title {
  flex: 1;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 600;
}

.hn22-shot__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 11px;
}

.hn22-shot__stats b { font-family: var(--font-display); }

.hn22-shot__body {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  flex: 1;
  min-height: 0;
}

.hn22-shot__chart {
  padding: 6px 8px 4px;
  border-right: 1px solid rgba(0, 168, 255, 0.16);
  background: rgba(0, 16, 36, 0.35);
}

.hn22-shot__chart svg {
  width: 100%;
  height: auto;
  max-height: 132px;
  display: block;
}

.hn22-shot__side {
  padding: 6px 10px 8px;
  background: rgba(0, 12, 28, 0.3);
}

.hn22-shot__row span { flex: 1; color: var(--text-muted); }
.hn22-shot__row b { font-family: var(--font-display); font-weight: 700; font-size: 12px; }

/* ---------- 核心能力 ---------- */
.hn22-caps {
  padding: 2px 0 4px;
}

.hn22-caps__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hn22-caps__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.hn22-caps__all {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
}

.hn22-caps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hn22-caps__grid--v3 {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hn22-caps__hint {
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-display);
}

.hn22-cap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 128px;
  min-height: 128px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 168, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(22, 119, 255, 0.1), transparent 48%),
    linear-gradient(165deg, rgba(18, 32, 54, 0.96), rgba(8, 12, 22, 0.9));
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.06), 0 0 20px rgba(0, 168, 255, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.hn22-cap:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.18), 0 0 28px rgba(0, 168, 255, 0.28);
}

.hn22-cap__kicker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hn22-cap h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.hn22-cap p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* 模块主题色 */
.hn22-cap--trend {
  border-color: rgba(230, 69, 69, 0.42);
  box-shadow: 0 0 0 1px rgba(230, 69, 69, 0.08), 0 0 20px rgba(230, 69, 69, 0.08);
  background:
    linear-gradient(145deg, rgba(230, 69, 69, 0.12), transparent 48%),
    linear-gradient(165deg, rgba(28, 16, 24, 0.96), rgba(8, 12, 22, 0.9));
}

.hn22-cap--trend .hn22-cap__kicker { color: var(--up); }
.hn22-cap--trend:hover {
  border-color: rgba(230, 69, 69, 0.7);
  box-shadow: 0 0 0 1px rgba(230, 69, 69, 0.16), 0 0 28px rgba(230, 69, 69, 0.28);
  background: linear-gradient(165deg, rgba(48, 18, 24, 0.65), rgba(8, 12, 22, 0.9));
}

.hn22-cap--radar {
  border-color: rgba(0, 168, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.1), 0 0 20px rgba(0, 168, 255, 0.1);
}

.hn22-cap--radar .hn22-cap__kicker { color: var(--blue-2); }
.hn22-cap--radar:hover {
  border-color: rgba(0, 168, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.2), 0 0 28px rgba(0, 168, 255, 0.3);
  background: linear-gradient(165deg, rgba(14, 32, 64, 0.75), rgba(8, 12, 22, 0.9));
}

.hn22-cap--portrait {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1), 0 0 20px rgba(139, 92, 246, 0.1);
}

.hn22-cap--portrait .hn22-cap__kicker { color: var(--purple); }
.hn22-cap--portrait:hover {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 0 28px rgba(139, 92, 246, 0.28);
  background: linear-gradient(165deg, rgba(36, 22, 64, 0.65), rgba(8, 12, 22, 0.9));
}

.hn22-cap--stock {
  border-color: rgba(0, 168, 255, 0.4);
}
.hn22-cap--stock .hn22-cap__kicker { color: var(--blue-2); }
.hn22-cap--stock:hover {
  border-color: rgba(0, 168, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.18), 0 0 28px rgba(0, 168, 255, 0.28);
}

.hn22-cap--etf {
  border-color: rgba(22, 119, 255, 0.42);
}
.hn22-cap--etf .hn22-cap__kicker { color: #7dd3ff; }
.hn22-cap--etf:hover {
  border-color: rgba(22, 119, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.18), 0 0 28px rgba(22, 119, 255, 0.26);
}

.hn22-cap--theme {
  border-color: rgba(139, 92, 246, 0.42);
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.1), transparent 48%),
    linear-gradient(165deg, rgba(22, 18, 42, 0.96), rgba(8, 12, 22, 0.9));
}
.hn22-cap--theme .hn22-cap__kicker { color: var(--purple); }
.hn22-cap--theme:hover {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 0 28px rgba(139, 92, 246, 0.28);
}

.hn22-cap--auction {
  border-color: rgba(212, 165, 116, 0.42);
  background:
    linear-gradient(145deg, rgba(212, 165, 116, 0.1), transparent 48%),
    linear-gradient(165deg, rgba(32, 24, 16, 0.96), rgba(8, 12, 22, 0.9));
}
.hn22-cap--auction .hn22-cap__kicker { color: var(--accent-warm); }
.hn22-cap--auction:hover {
  border-color: rgba(212, 165, 116, 0.75);
  box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.16), 0 0 28px rgba(212, 165, 116, 0.24);
}

.hn22-cap--news {
  border-color: rgba(18, 184, 134, 0.4);
  background:
    linear-gradient(145deg, rgba(18, 184, 134, 0.1), transparent 48%),
    linear-gradient(165deg, rgba(12, 28, 24, 0.96), rgba(8, 12, 22, 0.9));
}
.hn22-cap--news .hn22-cap__kicker { color: var(--dn); }
.hn22-cap--news:hover {
  border-color: rgba(18, 184, 134, 0.7);
  box-shadow: 0 0 0 1px rgba(18, 184, 134, 0.16), 0 0 28px rgba(18, 184, 134, 0.24);
}

.hn22-cap--dash {
  border-color: rgba(230, 69, 69, 0.38);
  background:
    linear-gradient(145deg, rgba(230, 69, 69, 0.1), transparent 48%),
    linear-gradient(165deg, rgba(28, 16, 22, 0.96), rgba(8, 12, 22, 0.9));
}
.hn22-cap--dash .hn22-cap__kicker { color: #fca5a5; }
.hn22-cap--dash:hover {
  border-color: rgba(230, 69, 69, 0.7);
  box-shadow: 0 0 0 1px rgba(230, 69, 69, 0.16), 0 0 28px rgba(230, 69, 69, 0.26);
}

.hn22-cta--section {
  margin-top: 16px;
}

.hn22-cta--mobile-extra {
  display: none;
}

.hn22-vid--placeholder {
  cursor: default;
  opacity: 0.85;
}

.hn22-vid--placeholder small {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
}

.hn22-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hn22-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hn22-chip span {
  color: var(--blue-2);
  font-size: 13px;
}

.hn22-chip:hover {
  border-color: rgba(0, 168, 255, 0.4);
  color: var(--text);
  background: rgba(22, 119, 255, 0.06);
}

/* ---------- 使用说明 ---------- */
.hn22-guides { padding: 0 0 18px; }

.hn22-guides__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hn22-guides__title-link {
  color: inherit;
}

.hn22-guides__title-link:hover {
  color: var(--blue-2);
}

.hn22-guides__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hn22-guide-block {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 168, 255, 0.35);
  background:
    linear-gradient(120deg, rgba(22, 119, 255, 0.09), transparent 55%),
    linear-gradient(165deg, rgba(16, 28, 48, 0.94), rgba(8, 12, 20, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.06), 0 0 24px rgba(0, 168, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hn22-guide-block:hover {
  border-color: rgba(0, 168, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.18), 0 0 28px rgba(0, 168, 255, 0.22);
}

.hn22-guide-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.hn22-guide-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.hn22-guide-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 168, 255, 0.18);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  transition: background 0.12s ease;
}

.hn22-guide-link:last-child {
  border-bottom: 0;
}

.hn22-guide-link em {
  font-style: normal;
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 700;
}

.hn22-guide-link:hover {
  background: rgba(22, 119, 255, 0.12);
  border-color: rgba(0, 168, 255, 0.18);
}

.hn22-vids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hn22-vid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 168, 255, 0.28);
  background:
    radial-gradient(circle at 50% 35%, rgba(22, 119, 255, 0.16), transparent 55%),
    rgba(0, 0, 0, 0.28);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 0 18px rgba(0, 168, 255, 0.06);
}

.hn22-vid:hover {
  border-color: rgba(0, 168, 255, 0.8);
  box-shadow: 0 0 22px rgba(0, 168, 255, 0.18);
}

.hn22-vid__play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 255, 0.5);
  color: var(--blue-2);
  font-size: 12px;
}

.hn22-vid--soon {
  cursor: default;
  opacity: 0.88;
}

.hn22-vid--soon:hover {
  border-color: rgba(0, 168, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 168, 255, 0.06);
}

.hn22-vid--soon em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- 底部：会员 / 客服大入口 ---------- */
.hn22-foot-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 0 16px;
}

.hn22-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 90px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 168, 255, 0.35);
  background:
    linear-gradient(120deg, rgba(22, 119, 255, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(16, 28, 48, 0.94), rgba(8, 12, 20, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.06), 0 0 24px rgba(0, 168, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hn22-cta-card:hover {
  border-color: rgba(0, 168, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.18), 0 0 28px rgba(0, 168, 255, 0.22);
  transform: translateY(-1px);
}

.hn22-cta-card strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.hn22-cta-card span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.hn22-cta-card--member {
  border-color: rgba(0, 168, 255, 0.4);
}

.hn22-cta-card--support {
  border-color: rgba(45, 212, 168, 0.4);
  background:
    linear-gradient(120deg, rgba(45, 212, 168, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(12, 28, 32, 0.94), rgba(8, 14, 18, 0.92));
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.06), 0 0 24px rgba(45, 212, 168, 0.08);
}

.hn22-cta-card--support:hover {
  border-color: rgba(45, 212, 168, 0.85);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.16), 0 0 28px rgba(45, 212, 168, 0.2);
}

/* 兼容旧 mini 类（若其他入口仍引用） */
.hn22-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 28, 48, 0.88), rgba(8, 12, 20, 0.85));
}

.hn22-mini strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.hn22-mini span {
  color: var(--text-dim);
  font-size: 11px;
}

.hn22-mini--warm {
  border-color: rgba(212, 165, 116, 0.28);
  background: linear-gradient(160deg, rgba(40, 30, 20, 0.88), rgba(14, 12, 10, 0.85));
}

.hn22-mini--soft { border-color: rgba(0, 168, 255, 0.25); }

.hn22-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
}

.hn22-footer a:hover { color: var(--text-muted); }

/* ---------- 现网手机底栏样式（与旧 HOME_PAGE 对齐；桌面由 shell 隐藏）---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hn-tab-h);
  background: rgba(13, 29, 46, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 30;
}

.tab {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  min-width: 80px;
  font-weight: 600;
}

.tab.active { color: #45cfff; }

.tab-ico {
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(69, 207, 255, 0.45);
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hn22-caps__grid--v3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hn22-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .hn22-term__main { grid-template-columns: 1.3fr 1fr; }

  .hn22-term__etf {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 8px;
  }

  .hn22-term__etf .hn22-term__label { grid-column: 1 / -1; }

  .hn22-caps__grid--v3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 手机 App 首页（<=768）V3.4 视觉收紧 ---------- */
@media (max-width: 768px) {
  /* 主容器左右呼吸：16px（不超过 20）；避免与 wrap 双重叠加 */
  .hn22-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(var(--hn-tab-h) + 12px);
    background: transparent;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hn22-wrap {
    padding-inline: 0;
  }

  body.has-desktop-shell,
  body.has-desktop-shell .desktop-main,
  body {
    background: var(--bg-0) !important;
  }

  body.has-desktop-shell .desktop-main {
    background:
      radial-gradient(ellipse 80% 40% at 50% -10%, rgba(22, 119, 255, 0.12), transparent 50%),
      linear-gradient(180deg, #050b16 0%, #071426 55%, #050b16 100%) !important;
  }

  .hn22-page {
    gap: 14px;
    padding: 10px 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hero：上下 16px；左右由父容器控制；不缩小标题 */
  .hn22-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 0;
    min-height: 0;
    align-content: start;
  }

  .hn22-hero__shot { display: none; }

  .hn22-hero__logo {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 20px;
  }

  .hn22-hero__brand {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .hn22-hero__tag {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .hn22-hero__sub {
    margin-bottom: 14px;
    font-size: 13px;
  }

  /* 按钮在内容区内拉满（已含左右留白） */
  .hn22-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
  }

  .hn22-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: 15px;
    min-height: 48px;
  }

  .hn22-sec-head { margin-bottom: 8px; }
  .hn22-sec-head h2 { font-size: 16px; }

  /* 驾驶舱：手机端突出动态资金曲线（桌面布局不变） */
  .hn22-preview {
    margin-left: 0;
    margin-right: 0;
  }

  .hn22-preview .hn22-term {
    margin-left: 0;
    margin-right: 0;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  /* 仅保留主力净流入 KPI */
  .hn22-preview .hn22-kpi--soft {
    display: none;
  }

  .hn22-preview .hn22-term__kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex-shrink: 0;
  }

  .hn22-preview .hn22-kpi--hero {
    border-right: 0;
    border-bottom: 0;
    padding: 12px 14px 10px;
    background:
      linear-gradient(120deg, rgba(230, 69, 69, 0.12), transparent 55%),
      linear-gradient(180deg, rgba(0, 168, 255, 0.06), transparent);
  }

  .hn22-preview .hn22-kpi--hero span {
    color: rgba(210, 224, 242, 0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .hn22-preview .hn22-kpi--hero strong,
  .hn22-preview .hn22-kpi--hero strong.up {
    font-size: 24px;
    font-weight: 800;
    color: #ff5a5a !important;
    letter-spacing: -0.01em;
    text-shadow: 0 0 18px rgba(230, 69, 69, 0.45);
  }

  .hn22-preview .hn22-term__main {
    flex: none;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .hn22-preview .hn22-term__chart {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    padding: 10px 12px 14px;
    flex: none;
  }

  .hn22-preview .hn22-term__chart .hn22-panel__pane-label {
    margin-bottom: 8px;
    font-size: 12px;
  }

  /* 曲线区域 180–220px，视觉第一重点 */
  .hn22-preview .hn22-fund-svg {
    width: 100%;
    height: 200px;
    max-height: 220px;
    min-height: 180px;
    display: block;
  }

  .hn22-preview .hn22-anim-line {
    stroke-width: 3.2;
  }

  .hn22-preview .hn22-anim-line2 {
    stroke-width: 2.4;
    opacity: 1;
  }

  /* TOP 资金方向：次于曲线与数字 */
  .hn22-preview .hn22-term__rank {
    border-right: 0;
    border-bottom: 0;
    padding: 8px 12px 10px;
    flex-shrink: 0;
    opacity: 0.92;
  }

  .hn22-preview .hn22-term__rank .hn22-panel__pane-label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .hn22-preview .hn22-rank {
    padding: 3px 0;
    font-size: 12px;
  }

  .hn22-preview .hn22-rank:nth-child(n+5) {
    display: none;
  }

  .hn22-preview .hn22-term__etf {
    display: none;
  }

  /* 核心功能：2 列保持；略收字号适配窄屏 */
  .hn22-caps__grid,
  .hn22-caps__grid--v3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hn22-cap--desk { display: none; }

  .hn22-cap {
    height: auto;
    min-height: 118px;
    padding: 14px 12px;
    gap: 6px;
  }

  .hn22-cap__kicker { font-size: 12px; }
  .hn22-cap h3 { font-size: 16px; }
  .hn22-cap p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 说明书 / 会员同步左右留白；只调字号与间距，不拉高整页 */
  .hn22-guides,
  .hn22-foot-cards,
  .hn22-footer {
    margin-left: 0;
    margin-right: 0;
  }

  .hn22-guides {
    padding-bottom: 14px;
  }

  .hn22-guides__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .hn22-guides__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hn22-guide-block {
    padding: 12px;
  }

  .hn22-guide-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .hn22-guide-link {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 15px;
  }

  .hn22-guide-link em {
    font-size: 14px;
  }

  .hn22-vids {
    gap: 8px;
  }

  .hn22-vid {
    min-height: 72px;
    padding: 10px 8px;
    font-size: 14px;
  }

  .hn22-vid__play {
    width: 28px;
    height: 28px;
  }

  .hn22-vid--soon em {
    font-size: 11px;
  }

  .hn22-foot-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 12px;
  }

  .hn22-cta-card {
    min-height: 72px;
    padding: 12px 12px;
    gap: 4px;
  }

  .hn22-cta-card strong {
    font-size: 15px;
  }

  .hn22-cta-card span {
    font-size: 11px;
  }

  .hn22-footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hn22-anim-line,
  .hn22-anim-line2 {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .hn22-anim-fill { opacity: 1; }
}
