.page-home {
  --num-large: clamp(120px, 24vw, 300px);
  --num-medium: clamp(64px, 14vw, 108px);
}

.page-home {
  background: var(--space-blue);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 64px;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.page-home .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 29, 58, 0.94) 0%, rgba(20, 51, 90, 0.78) 50%, rgba(11, 29, 58, 0.5) 100%);
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 58%;
  width: 1px;
  height: 120%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3), transparent);
  transform: rotate(22deg);
  transform-origin: top center;
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .hero-topline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.page-home .breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  font-size: 13px;
}

.page-home .breadcrumb li::before {
  content: '/';
  margin-right: 8px;
  color: var(--rock-gray);
}

.page-home .breadcrumb li:first-child::before {
  content: none;
}

.page-home .breadcrumb span[aria-current='page'] {
  color: var(--text-dim);
  font-family: var(--mono-font);
  letter-spacing: 0.02em;
}

.page-home .hero-eyebrow {
  margin: 0;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .hero-title {
  margin: 0 0 20px;
  font-family: var(--header-font);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}

.page-home .hero-lead {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .hero-actions .btn {
  justify-content: center;
  width: 100%;
}

.page-home .hero-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .hero-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  user-select: none;
}

.page-home .hero-num {
  font-family: var(--mono-font);
  font-weight: 100;
  font-size: var(--num-large);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--cream);
  text-shadow: 0 0 80px rgba(255, 215, 0, 0.18), 0 0 24px rgba(11, 29, 58, 0.9);
}

.page-home .hero-num-label {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 10px;
  border-left: 2px solid var(--gold);
}

/* ===== 数据仪表板 ===== */
.page-home .home-dashboard {
  position: relative;
}

.page-home .block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .head-copy {
  flex: 1 1 260px;
}

.page-home .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(57, 255, 20, 0.32);
  border-radius: 999px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lime);
  background: rgba(11, 29, 58, 0.55);
}

.page-home .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
}

.page-home .dashboard-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .dashboard-grid::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .dash-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.page-home .dash-card:hover,
.page-home .dash-card:focus-visible {
  border-color: var(--hairline-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 215, 0, 0.12);
}

.page-home .dash-unit {
  font-size: 0.42em;
  font-weight: 400;
  margin-left: 2px;
  color: var(--text-dim);
}

.page-home .dash-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-home .dash-more {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--gold);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity var(--t-fast), max-height var(--t-base);
}

.page-home .dash-card:hover .dash-more,
.page-home .dash-card:focus-visible .dash-more,
.page-home .dash-card:focus-within .dash-more {
  max-height: 64px;
  opacity: 1;
}

.page-home .dash-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--space-lift);
  aspect-ratio: 3 / 2;
}

.page-home .dash-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .dash-footnote {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

/* ===== 核心功能索引 ===== */
.page-home .home-features {
  padding-bottom: 28px;
}

.page-home .split-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.page-home .features-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  transform: rotate(1.6deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.page-home .features-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.35) transparent;
  padding: 0 20px 12px;
}

.page-home .feature-band {
  position: relative;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  min-height: 320px;
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.page-home .feature-band:hover,
.page-home .feature-band:focus-within {
  transform: translateY(-4px);
  border-color: var(--hairline-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-home .feature-index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 68px;
  font-weight: 200;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.4);
  pointer-events: none;
}

.page-home .feature-band--score {
  border-top: 3px solid rgba(255, 215, 0, 0.55);
}

.page-home .feature-band--score .feature-index {
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.55);
}

.page-home .feature-band--standing {
  border-top: 3px solid rgba(57, 255, 20, 0.45);
}

.page-home .feature-band--standing .feature-index {
  -webkit-text-stroke: 1px rgba(57, 255, 20, 0.5);
}

.page-home .feature-band--report {
  border-top: 3px solid rgba(138, 154, 91, 0.6);
}

.page-home .feature-band--report .feature-index {
  -webkit-text-stroke: 1px rgba(138, 154, 91, 0.65);
}

.page-home .feature-band--tutorial {
  border-top: 3px solid rgba(193, 112, 77, 0.65);
}

.page-home .feature-band--tutorial .feature-index {
  -webkit-text-stroke: 1px rgba(193, 112, 77, 0.65);
}

.page-home .feature-band h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-right: 56px;
  font-size: 21px;
  line-height: 1.3;
}

.page-home .feature-band p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.page-home .link-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--t-base) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-home .link-more:hover::after,
.page-home .link-more:focus-visible::after {
  width: 100%;
}

.page-home .scroll-hint {
  margin: 16px 20px 0;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rock-gray);
}

/* ===== 最新动态 ===== */
.page-home .home-news {
  color: var(--ink);
}

.page-home .home-news .section-label {
  color: var(--terra);
}

.page-home .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .news-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .news-head .section-desc {
  margin: 0;
  color: var(--rock-gray);
}

.page-home .news-head .link-more {
  color: var(--ink);
}

.page-home .news-head .link-more:hover {
  color: var(--terra);
}

.page-home .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .news-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(10, 14, 26, 0.12);
}

.page-home .news-item:last-child {
  border-bottom: none;
}

.page-home .news-tag {
  display: inline-block;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(193, 112, 77, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.page-home .news-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .news-item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #3A4150;
}

.page-home .news-item .link-more {
  color: var(--terra);
  font-size: 13px;
}

.page-home .news-item .link-more:hover {
  color: var(--ink);
}

/* ===== 延伸链接 ===== */
.page-home .home-bridge {
  position: relative;
}

.page-home .bridge-head {
  margin-bottom: 24px;
}

.page-home .bridge-head .heading-md {
  margin: 4px 0 0;
}

.page-home .bridge-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .bridge-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 58, 110, 0.55), rgba(11, 29, 58, 0.92));
  text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.page-home .bridge-link:hover,
.page-home .bridge-link:focus-visible {
  border-color: var(--hairline-gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.page-home .bridge-label {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .bridge-title {
  font-family: var(--header-font);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: var(--cream);
}

.page-home .bridge-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .bridge-link .link-more {
  color: var(--cream);
}

.page-home .bridge-link .link-more:hover {
  color: var(--gold);
}

/* ===== 行动召唤 ===== */
.page-home .home-cta {
  position: relative;
  overflow: hidden;
  background: var(--space-blue);
}

.page-home .home-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 50%, transparent 100%);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

.page-home .cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-home .cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 56px 0 72px;
}

.page-home .cta-content h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  color: var(--cream);
  line-height: 1.1;
}

.page-home .cta-desc {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}

.page-home .cta-actions .btn {
  justify-content: center;
  width: 100%;
}

.page-home .cta-note {
  margin: 8px 0 0;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ===== 桌面端 ===== */
@media (min-width: 600px) {
  .page-home .hero-actions,
  .page-home .cta-actions {
    flex-direction: row;
    width: auto;
  }

  .page-home .hero-actions .btn,
  .page-home .cta-actions .btn {
    width: auto;
    min-width: 180px;
  }

  .page-home .dashboard-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .dash-card {
    grid-column: span 2;
  }

  .page-home .dash-visual {
    grid-column: span 3;
    aspect-ratio: 3 / 2;
  }

  .page-home .bridge-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .cta-content {
    padding: 72px 0 88px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 48px 0 88px;
  }

  .page-home .hero-topline {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .page-home .hero-number {
    align-items: flex-end;
    text-align: right;
  }

  .page-home .hero-num-label {
    padding-left: 0;
    padding-right: 10px;
    border-left: none;
    border-right: 2px solid var(--gold);
  }

  .page-home .dashboard-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .page-home .dash-card {
    grid-column: span 2;
  }

  .page-home .dash-card:nth-child(5) {
    grid-column: span 5;
  }

  .page-home .dash-visual {
    grid-column: span 3;
  }

  .page-home .features-img {
    max-width: 400px;
  }

  .page-home .features-scroll {
    padding-left: calc((100vw - var(--container-max)) / 2);
    padding-right: calc((100vw - var(--container-max)) / 2);
  }

  .page-home .scroll-hint {
    margin-left: calc((100vw - var(--container-max)) / 2);
  }

  .page-home .news-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: 48px;
  }

  .page-home .news-item {
    padding: 28px 0;
  }
}

@media (min-width: 1340px) {
  .page-home .features-scroll {
    padding-left: calc((100vw - var(--container-max)) / 2);
    padding-right: calc((100vw - var(--container-max)) / 2);
  }

  .page-home .scroll-hint {
    margin-left: calc((100vw - var(--container-max)) / 2);
  }
}
