.page-home {
  --hm-panel-bg: rgba(13, 23, 48, 0.82);
  --hm-line-soft: rgba(53, 224, 230, 0.22);
  display: block;
  background:
    radial-gradient(72% 46% at 80% 2%, rgba(53, 224, 230, 0.10), transparent 62%),
    radial-gradient(58% 42% at 4% 12%, rgba(255, 106, 43, 0.09), transparent 66%);
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(18px, 3.4vw, 38px) clamp(40px, 6vw, 80px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(138, 151, 180, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 151, 180, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(86% 72% at 50% 26%, #000 38%, transparent 100%);
  mask-image: radial-gradient(86% 72% at 50% 26%, #000 38%, transparent 100%);
  pointer-events: none;
}

.page-home .hero-frame {
  position: relative;
  z-index: 1;
  border: 1px dashed var(--hm-line-soft);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3.4vw, 48px);
  background: linear-gradient(158deg, rgba(13, 23, 48, 0.88), rgba(7, 14, 28, 0.62));
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) left top / 26px 2px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) left top / 2px 26px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) right top / 26px 2px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) right top / 2px 26px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) left bottom / 26px 2px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) left bottom / 2px 26px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--electric-cyan), var(--electric-cyan)) right bottom / 2px 26px no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.page-home .hero-inner {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

.page-home .hero-eyebrow {
  margin: 0;
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 7.4vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero-title .hl {
  background: linear-gradient(96deg, var(--neon-orange), var(--warm-gold) 56%, var(--electric-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-lede {
  margin: 0;
  max-width: 56ch;
}

.page-home .hero-actions {
  margin-top: 4px;
}

.page-home .hero-facts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.page-home .hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14px;
  color: var(--slate-400);
}

.page-home .hero-facts .mono {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--electric-cyan);
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
  box-shadow: var(--shadow-lift);
  transform: rotate(-2.2deg);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: brightness(0.86) saturate(1.06);
}

.page-home .hero-tag {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(7, 14, 28, 0.84);
  border: 1px solid rgba(232, 183, 92, 0.42);
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.5;
}

.page-home .quick-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: clamp(18px, 2.6vw, 30px);
}

.page-home .quick-nav-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--slate-400);
}

/* ---------- 板块推荐 ---------- */
.page-home .scene-section {
  position: relative;
}

.page-home .scene-head {
  max-width: 62ch;
}

.page-home .scene-grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(24px, 3.4vw, 42px);
}

.page-home .scene-figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
}

.page-home .scene-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.04);
}

.page-home .scene-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(7, 14, 28, 0.95);
}

.page-home .home-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-700);
  background: rgba(13, 23, 48, 0.78);
}

.page-home .home-tab {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--slate-400);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.page-home .home-tab:hover {
  color: var(--paper);
}

.page-home .home-tab:focus-visible {
  outline: 2px solid var(--electric-cyan);
  outline-offset: 2px;
}

.page-home .home-tab[aria-selected="true"] {
  background: var(--neon-orange);
  color: #101a2e;
  font-weight: 800;
}

.page-home .home-panels {
  margin-top: 16px;
}

.page-home .home-tabs.js-ready .home-panel {
  display: none;
}

.page-home .home-tabs.js-ready .home-panel.is-active {
  display: block;
}

.page-home .home-panel:focus-visible {
  outline: 2px solid var(--electric-cyan);
  outline-offset: 3px;
  border-radius: var(--r-md);
}

.page-home .cmp {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--hm-panel-bg), rgba(7, 14, 28, 0.6));
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .cmp + .cmp {
  margin-top: 12px;
}

.page-home .cmp:hover {
  transform: translateY(-3px);
  border-color: var(--electric-cyan);
}

.page-home .cmp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .cmp-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .cmp-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--slate-400);
}

.page-home .cmp-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--ink-700);
  overflow: hidden;
}

.page-home .cmp-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--electric-cyan), var(--neon-orange));
}

.page-home .scene-note {
  margin-top: 16px;
}

/* ---------- 三步流程 ---------- */
.page-home .flow-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-home .flow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.9);
  z-index: 0;
  pointer-events: none;
}

.page-home .flow-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--ink-900) 0%, rgba(7, 14, 28, 0.7) 34%, rgba(7, 14, 28, 0.9) 100%);
  pointer-events: none;
}

.page-home .flow-section .container {
  position: relative;
  z-index: 2;
}

.page-home .flow-head {
  max-width: 58ch;
}

.page-home .flow {
  list-style: none;
  margin: clamp(26px, 3.6vw, 46px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .flow-step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: rgba(13, 23, 48, 0.9);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .flow-step:hover,
.page-home .flow-step:focus-within,
.page-home .flow-step:focus {
  transform: translateY(-4px);
  border-color: var(--electric-cyan);
}

.page-home .flow-step:focus-visible {
  outline: 2px solid var(--electric-cyan);
  outline-offset: 3px;
}

.page-home .flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #101a2e;
  background: linear-gradient(135deg, var(--neon-orange), var(--warm-gold));
}

.page-home .flow-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .flow-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate-400);
}

.page-home .flow-more {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--slate-400);
  border-left: 2px solid rgba(53, 224, 230, 0.5);
  padding-left: 12px;
}

/* ---------- 记录查询 ---------- */
.page-home .rec-grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

.page-home .rec-main {
  display: flex;
  flex-direction: column;
}

.page-home .rec-title {
  margin-top: 10px;
}

.page-home .rec-text {
  margin: 14px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate-400);
}

.page-home .rec-stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-home .rec-stat {
  padding: 15px 16px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: rgba(7, 14, 28, 0.72);
}

.page-home .rec-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--electric-cyan);
}

.page-home .rec-stat--gold b {
  color: var(--warm-gold);
}

.page-home .rec-stat span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--slate-400);
}

.page-home .rec-spark {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  color: var(--electric-cyan);
  opacity: 0.85;
}

.page-home .rec-spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .rec-actions {
  margin-top: 20px;
}

.page-home .rec-media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
}

.page-home .rec-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: brightness(0.88) saturate(1.05);
}

/* ---------- 额度变动 ---------- */
.page-home .ledger-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 48px);
}

.page-home .ledger-lede {
  margin: 14px 0 0;
  max-width: 46ch;
}

.page-home .ledger-actions {
  margin-top: 22px;
}

.page-home .ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .ledger-item {
  padding: 18px 20px;
  border: 1px solid var(--ink-700);
  border-left: 3px solid var(--neon-orange);
  border-radius: var(--r-md);
  background: rgba(13, 23, 48, 0.72);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .ledger-item:hover {
  border-left-color: var(--electric-cyan);
  transform: translateX(3px);
}

.page-home .ledger-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--electric-cyan);
  margin-bottom: 8px;
}

.page-home .ledger-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate-400);
}

/* ---------- 客服与备案 ---------- */
.page-home .support-band {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(22px, 3.2vw, 40px);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  background:
    linear-gradient(140deg, rgba(13, 23, 48, 0.94), rgba(7, 14, 28, 0.72)),
    radial-gradient(60% 80% at 92% 12%, rgba(255, 106, 43, 0.16), transparent 70%);
}

.page-home .support-title {
  margin-top: 10px;
}

.page-home .support-text {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate-400);
}

.page-home .support-link {
  display: inline-block;
  margin-top: 18px;
}

.page-home .support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .support-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 13px 16px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: rgba(7, 14, 28, 0.66);
}

.page-home .support-key {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--slate-400);
}

.page-home .support-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  word-break: break-word;
}

.page-home .support-val.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}

.page-home .support-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-400);
}

.page-home .legal-mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--warm-gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 880px) {
  .page-home .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    position: relative;
  }

  .page-home .flow::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 45px;
    height: 1px;
    background: linear-gradient(90deg, var(--electric-cyan), var(--neon-orange));
    opacity: 0.45;
    z-index: -1;
  }

  .page-home .flow-step {
    z-index: 1;
  }

  .page-home .ledger-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .support-band {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: 1.06fr 0.94fr;
  }

  .page-home .scene-grid {
    grid-template-columns: 0.84fr 1.16fr;
    align-items: start;
  }

  .page-home .rec-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 620px) {
  .page-home .rec-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (hover: hover) and (min-width: 880px) {
  .page-home .flow-more {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.38s var(--ease), opacity 0.3s var(--ease), margin-top 0.38s var(--ease);
  }

  .page-home .flow-step:hover .flow-more,
  .page-home .flow-step:focus-within .flow-more {
    max-height: 240px;
    margin-top: 14px;
    opacity: 1;
  }
}

@media (max-width: 719px) {
  .page-home .home-tablist {
    border-radius: var(--r-lg);
  }

  .page-home .home-tab {
    flex: 1 1 calc(50% - 6px);
  }

  .page-home .hero-visual {
    transform: rotate(-1.2deg);
  }

  .page-home .support-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-visual,
  .page-home .cmp,
  .page-home .flow-step,
  .page-home .ledger-item {
    transform: none !important;
    transition: none !important;
  }

  .page-home .flow-more {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 14px !important;
  }
}
