/* 首页单页 · 锚点导航与分区 */

:root {
  --header-h: 4.25rem;
}

.page-home {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

.page-home [id].home-anchor-target {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.site-header--scrolled {
  background: rgba(5, 7, 10, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-nav--spa {
  gap: 0.1rem;
}

.site-nav--spa a[data-nav-anchor] {
  position: relative;
  white-space: nowrap;
}

.site-nav--spa a[data-nav-anchor].active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav--spa a[data-nav-anchor].active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 1rem;
  height: 2px;
  margin-left: -0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-nav--spa a.nav-cta.active::after {
  display: none;
}

/* 首屏视差层 */
.hero-v2--parallax .hero-v2__copy,
.hero-v2--parallax .hero-v2__visual {
  will-change: transform;
}

.hero-v2--parallax .hero-v2__grid {
  will-change: transform;
}

.hero-v2--parallax .hero-v2__ambient {
  will-change: opacity, transform;
}

@media (max-width: 1100px) {
  .site-nav--spa {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: min(58vw, 22rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .site-nav--spa::-webkit-scrollbar {
    display: none;
  }

  .site-nav--spa a[data-nav-anchor] {
    font-size: 0.82rem;
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 900px) {
  .brand__wordmark {
    font-size: 1.02rem;
    letter-spacing: 0.06em;
  }

  .brand__mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
  }

  .brand-logo--mark {
    width: 2.05rem;
    height: 2.05rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 3.75rem;
  }

  .page-home .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav--spa {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    mask-image: none;
    justify-content: flex-start;
  }

  .site-nav--spa a[data-nav-anchor] {
    font-size: 0.8rem;
  }
}

.home-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-section.home-screen {
  padding-top: calc(var(--header-h) + clamp(0.75rem, 2vh, 1.25rem));
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.home-section__more {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  text-align: center;
  font-size: var(--text-sm);
}

.home-section__more a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 179, 255, 0.28);
}

.home-section__more a:hover {
  color: var(--accent);
}

.home-section--tight-top {
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* 底部转化区见 home-convert.css */
