/* 首页 · 一屏一分区 + 滚动吸附 */

.page-home {
  scroll-snap-type: y proximity;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home {
    scroll-snap-type: y mandatory;
  }
}

.page-home .home-screen {
  min-height: 100svh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(0.75rem, 2vh, 1.25rem));
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.page-home .home-screen__inner {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--layout-pad);
  box-sizing: border-box;
}

/* 首屏：沿用 hero 自有布局 */
.page-home #home-hero.home-screen {
  justify-content: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

/* 会员福利 */
.page-home #site-promo.home-screen {
  align-items: center;
}

.page-home #site-promo.home-screen > .wrap {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.page-home #site-promo .site-promo-section__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* 为什么选 */
.page-home #section-value.home-screen {
  padding-inline: var(--layout-pad);
}

.page-home #section-value.home-screen .home-value__head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home #section-value.home-screen .home-value__audience {
  margin-top: 0;
}

.page-home #section-value.home-screen .home-value__pain {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

/* 行业应用 */
.page-home #section-industries.home-screen {
  justify-content: center;
  padding-inline: 0;
}

.page-home #section-industries .home-industries__inner {
  width: 100%;
}

.page-home #section-industries .home-industries__head {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.page-home #section-industries .industry-apps {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.page-home #section-industries .home-industries__foot {
  margin-top: clamp(1rem, 2vw, 1.25rem);
}

.page-home #section-industries .industry-apps__stage {
  max-height: min(46vh, 26rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* 核心能力（首页精简版） */
.page-home #section-capabilities.home-screen {
  padding-inline: var(--layout-pad);
}

.page-home #section-capabilities .strengths__header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-home #section-capabilities .strengths__pillars {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home #section-capabilities .strengths__cta {
  margin-top: 0;
}

/* 产品 */
.page-home #section-product.home-screen {
  padding-inline: var(--layout-pad);
}

.page-home #section-product .section-head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-home #section-product .app-shot-preview {
  max-height: min(52vh, 28rem);
}

.page-home #section-product .app-shot-preview img {
  object-fit: contain;
  object-position: top center;
}

/* 下载 */
.page-home #section-download.home-screen .section-head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home #section-download .card-grid--downloads {
  max-width: min(100%, 48rem);
}

.page-home #section-download .section.glass {
  margin-top: clamp(1rem, 2vw, 1.25rem) !important;
  max-width: 40rem;
  margin-inline: auto;
}

/* 订购 */
.page-home #section-order.home-screen {
  justify-content: center;
  padding-top: calc(var(--header-h) + 1rem);
}

.page-home #section-order .home-convert__lead {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

@media (max-height: 780px) {
  .page-home .home-screen {
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 0.5rem);
    padding-bottom: 1.25rem;
  }

  .page-home #section-industries .industry-apps__stage {
    max-height: min(40vh, 20rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home {
    scroll-snap-type: none;
  }

  .page-home .home-screen {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}
