@charset "utf-8";

/* ============================================================
   index.css — 首页样式（对齐设计图）
   ============================================================ */

.page-home {
  --section-gap: 120px;
}

/* ---------- Hero 轮播 ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-banner--desktop { display: block; }
.hero-banner--mobile { display: none; }

.hero-banner__viewport {
  width: 100%;
}

.hero-banner__track {
  display: flex;
  transition: transform .85s var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.hero-banner__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
}

.hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner__video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner__content {
  position: absolute;
  top: 30%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 90%;
  max-width: 900px;
  text-align: center;
}

.hero-banner__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}

.hero-banner__link:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
  color: var(--c-primary);
  transform: translateY(-3px);
}

/* 文案：设计图偏上居中 */
.hero-banner__caption {
  color: #fff;
  pointer-events: none;
}

.hero-banner__caption p {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 4px;
  white-space: pre-line;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

/* 轮播圆点 */
.hero-banner__dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.hero-banner__dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}

/* ---------- 产品分类 ---------- */
.home-products {
  padding: var(--section-gap) 0 0;
  background: #fff;
}

/* 头部排版：说明与主标题「改变，势在必行」顶对齐 */
.home-products__head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    "eyebrow ."
    "heading desc";
  column-gap: clamp(72px, 11vw, 168px);
  row-gap: 0;
  align-items: start;
  margin-bottom: 52px;
}

.home-products__eyebrow {
  grid-area: eyebrow;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
}

.home-products__heading {
  grid-area: heading;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.26;
  color: #000;
}

.home-products__desc {
  grid-area: desc;
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.home-products__desc p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #666;
  text-align: left;
}

/* 三列卡片 */
.home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.home-products__card {
  position: relative;
  width: 100%;
  height: 621px;
  background: #f8f8f8;
  overflow: hidden;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}

.home-products__card-head {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 2.8vw, 38px) clamp(24px, 2.4vw, 32px) 0;
}

.home-products__card-head h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 700;
  color: #004098;
  line-height: 1.3;
  transition: color .35s var(--ease);
}

.home-products__card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  color: #222;
  line-height: 1.6;
  text-decoration: none;
  transition: color .35s var(--ease);
}

.home-products__card-more .iconfont {
  font-size: 12px;
  line-height: 1;
  transition: transform .35s var(--ease);
}

/* 产品图靠右展示约五分之四，超出卡片右侧隐藏 */
.home-products__card-pic {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-products__card-pic img {
  position: absolute;
  right: 0;
  bottom: clamp(24px, 7%, 48px);
  width: auto;
  height: clamp(280px, 58%, 360px);
  max-width: none;
  display: block;
  transform: translateX(15%);
  transform-origin: right bottom;
  transition: transform .6s var(--ease);
}

.home-products__card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-products__card:hover {
  background: #f2f4f7;
  box-shadow: 0 16px 48px rgba(0, 64, 152, .1);
}

.home-products__card:hover .home-products__card-pic img {
  transform: translateX(10%) scale(1.05);
}

.home-products__card:hover .home-products__card-more {
  color: #004098;
  text-decoration: none;
}

.home-products__card:hover .home-products__card-more .iconfont {
  transform: translateX(4px);
}

/* ---------- 品牌特色横幅（整屏 sticky 叠层 + 滚动视差） ---------- */
.home-features {
  position: relative;
  width: 100%;
  padding-top: var(--section-gap);
}

.home-features__pin {
  position: relative;
}

.home-features__item {
  position: sticky;
  top: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.home-features__item:nth-child(1) { z-index: 1; }
.home-features__item:nth-child(2) { z-index: 2; }
.home-features__item:nth-child(3) { z-index: 3; }

.home-features__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  will-change: opacity;
  transform-origin: center center;
  background: transparent;
}

.home-features__bg {
  position: absolute;
  inset: 0;
  background-image: var(--feature-bg);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

.home-features__body {
  position: absolute;
  z-index: 2;
  top: clamp(40px, 8vw, 88px);
  left: 0;
  right: 0;
}

.home-features__index {
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .72);
  line-height: 1;
}

.home-features__index span {
  display: inline-block;
  transform: translate3d(0, 12px, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.home-features__text {
  max-width: 620px;
}

.home-features__heading {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}

.home-features__line {
  display: block;
  overflow: hidden;
  padding: .06em 0;
}

.home-features__line-inner {
  display: block;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .32);
  transform: translate3d(0, 112%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

/* 右侧章节指示器 */
.home-features__nav {
  position: fixed;
  right: max(12px, calc(var(--site-gutter) * 0.55));
  top: 50%;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(12px, -50%, 0);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  pointer-events: none;
}

.home-features.is-active .home-features__nav {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  pointer-events: auto;
}

.home-features__nav-dot {
  width: 2px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: height .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}

.home-features__nav-dot.is-active {
  height: 44px;
  background: #fff;
  transform: scaleX(1.4);
}

.home-features__nav-dot:hover {
  background: rgba(255, 255, 255, .75);
}

@media (max-width: 960px) {
  .home-features__nav { display: none; }

  .home-features__item {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }

  .home-features__bg {
    background-image: var(--feature-bg-mb, var(--feature-bg));
    background-size: 100% 100%;
    background-position: center center;
  }

  .home-features__body {
    position: absolute;
    top: clamp(28px, 6.5vw, 44px);
    left: 0;
    right: 0;
    width: var(--site-width-pct);
    margin-inline: auto;
  }

  .home-features__index {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .home-features__text {
    max-width: none;
  }

  .home-features__heading {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.38;
  }

  .home-features__line {
    padding: .04em 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-features__item { position: relative; }

  .home-features__bg {
    inset: 0;
    transform: none !important;
  }

  .home-features__media {
    transform: none !important;
    opacity: 1 !important;
  }

  .home-features__index span,
  .home-features__line-inner {
    opacity: 1 !important;
    transform: none !important;
  }

  .home-products__card,
  .home-products__card-pic img,
  .home-products__card-more,
  .home-products__card-more .iconfont,
  .home-products__card-head h3 {
    transition: none !important;
  }

  .home-products__card:hover .home-products__card-pic img {
    transform: translateX(15%);
  }
}

/* ---------- 服务展示 ---------- */
.home-service {
  padding: var(--section-gap) 0 0;
  background: #fff;
  overflow: hidden;
}

.home-service__head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.home-service__eyebrow {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 400;
  line-height: 1.6;
  color: #222;
}

.home-service__head h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.home-service__head h2 span {
  font-weight: 400;
}

/* 三块内容各自独立一行：74% 居右 / 50% 居左 / 40% 居右并上移 50% */
.home-service__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(36px, 4.5vw, 56px);
}

.home-service__block {
  width: 100%;
  max-width: 100%;
}

.home-service__block--banner {
  width: min(74%, 100%);
  margin-left: auto;
}

.home-service__block--left {
  width: min(50%, 100%);
  margin-right: auto;
}

.home-service__block--right {
  width: min(40%, 100%);
  margin-left: auto;
  margin-top: calc(-1 * clamp(36px, 4.5vw, 56px));
  transform: translateY(-50%);
  /* 上移 50% 后文档流仍占满高度：先按图宽估算，JS 加载后会精确设为 -offsetHeight/2 */
  margin-bottom: calc(-0.5 * (min(33.6vw, 576px) * 0.583 + clamp(37px, 2.8vw, 52px)));
  will-change: transform;
}

.home-service__pic {
  overflow: hidden;
  line-height: 0;
  border-radius: 2px;
}

.home-service__pic img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.15s cubic-bezier(.33, 1, .68, 1), transform 1.35s cubic-bezier(.33, 1, .68, 1);
}

.home-service__block.reveal.is-visible .home-service__pic img {
  opacity: 1;
  transform: scale(1);
}

.home-service__block--banner.reveal.is-visible .home-service__pic img {
  transition-delay: .06s;
}

.home-service__block--left.reveal.is-visible .home-service__pic img {
  transition-delay: .14s;
}

.home-service__block--right.reveal.is-visible .home-service__pic img {
  transition-delay: .22s;
}

.home-service__block.reveal.is-visible:hover .home-service__pic img {
  transform: scale(1.02);
}

.home-service__cap {
  margin-top: clamp(14px, 1.6vw, 20px);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  color: #222;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s cubic-bezier(.33, 1, .68, 1), transform .9s cubic-bezier(.33, 1, .68, 1), color .35s var(--ease);
}

.home-service__block.reveal.is-visible .home-service__cap {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .32s;
}

.home-service__block--left.reveal.is-visible .home-service__cap {
  transition-delay: .4s;
}

.home-service__block--right.reveal.is-visible .home-service__cap {
  transition-delay: .48s;
}

.home-service__block:hover .home-service__cap {
  color: #004098;
}

/* 服务区块：轻量淡入 + 微位移 */
.home-service__block.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.33, 1, .68, 1), transform 1.1s cubic-bezier(.33, 1, .68, 1);
}

.home-service__block--banner.reveal {
  transform: translate3d(20px, 12px, 0);
}

.home-service__block--banner.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-service__block--left.reveal {
  transform: translate3d(-20px, 12px, 0);
}

.home-service__block--left.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-service__block--right.reveal {
  transform: translate3d(20px, calc(-50% + 16px), 0);
}

.home-service__block--right.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .home-service__block--right {
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
  }

  .home-service__block--right.reveal,
  .home-service__block--right.reveal.is-visible {
    transform: none;
  }

  .home-service__pic img {
    transform: none;
    opacity: 1;
  }

  .home-service__block.reveal,
  .home-service__block--banner.reveal,
  .home-service__block--left.reveal,
  .home-service__block--right.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-service__pic {
    transition: none;
  }

  .home-service__cap {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-about__btn:hover {
    transform: none;
  }
}

/* ---------- 关于我们 ---------- */
.home-about {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--section-gap);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 961px) {
  .home-about {
    min-height: 100vh;
    min-height: 100svh;
  }
}

.home-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.home-about__inner {
  position: relative;
  z-index: 2;
  width: min(92%, 720px);
  padding: clamp(48px, 8vw, 72px) 20px;
  color: #fff;
}

.home-about__inner h2 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
}

.home-about__lead,
.home-about__sub {
  margin: 0;
  font-size: 24px;
  line-height: 1.75;
  opacity: .95;
}

.home-about__lead {
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

.home-about__sub {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
}

.home-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(148px, 18vw, 176px);
  padding: clamp(10px, 1.2vw, 12px) clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  font-size: clamp(13px, 1.2vw, 14px);
  color: #fff;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}

.home-about__btn:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .home-products__head {
    column-gap: 48px;
  }

  .home-products__card {
    height: clamp(480px, 52vw, 621px);
  }
}

@media (max-width: 960px) {
  .page-home {
    --section-gap: clamp(56px, 14vw, 80px);
  }

  .hero-banner--desktop { display: none; }
  .hero-banner--mobile { display: block; }

  .hero-banner__content { top: 28%; }
  .hero-banner__caption p { letter-spacing: 2px; }

  .home-products { padding-top: var(--section-gap); }
  .home-products__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 40px;
  }
  .home-products__eyebrow {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
  }
  .home-products__heading {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.28;
  }
  .home-products__desc {
    justify-self: start;
    max-width: none;
  }
  .home-products__desc p { font-size: 15px; line-height: 1.75; }
  .home-products__grid { grid-template-columns: 1fr; }
  .home-products__card {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
  }
  .home-products__card-head {
    flex: 0 0 auto;
    padding-bottom: clamp(16px, 4vw, 24px);
  }
  .home-products__card-pic {
    position: relative;
    flex: 0 0 auto;
    inset: auto;
    overflow: visible;
    padding: 0 clamp(16px, 4vw, 24px) clamp(20px, 5vw, 32px);
  }
  .home-products__card-pic img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    transform-origin: center center;
    object-fit: contain;
  }
  .home-products__card:hover .home-products__card-pic img {
    transform: scale(1.03);
  }

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

  .home-service__block--right {
    margin-bottom: 0 !important;
  }

  .home-about {
    margin-top: var(--section-gap);
  }

  .home-service__head {
    margin-bottom: 32px;
  }

  .home-service__head h2 {
    font-size: 32px;
  }

  .home-service__eyebrow {
    margin-bottom: 10px;
  }

  .home-service__layout {
    gap: clamp(28px, 6vw, 40px);
  }

  .home-service__block--banner,
  .home-service__block--left,
  .home-service__block--right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: none;
  }

  .home-service__block--right.reveal,
  .home-service__block--right.reveal.is-visible {
    transform: none;
  }

  .home-service__pic img {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .home-service__cap {
    margin-top: 12px;
    font-size: clamp(16px, 4.2vw, 22px);
    line-height: 1.7;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-service__block.reveal,
  .home-service__block--banner.reveal,
  .home-service__block--left.reveal,
  .home-service__block--right.reveal,
  .home-service__block--banner.reveal.is-visible,
  .home-service__block--left.reveal.is-visible,
  .home-service__block--right.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-service__pic {
    transition: none;
  }

  .home-about {
    min-height: auto;
    height: auto;
    padding: 0;
  }

  .home-about__inner {
    padding: clamp(56px, 14vw, 72px) 20px;
  }

  .home-about__inner h2 {
    font-size: 32px;
  }

  .home-about__lead,
  .home-about__sub {
    font-size: clamp(16px, 4.2vw, 22px);
  }

  .home-about__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-about__btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .hero-banner__caption p { font-size: 26px; }

  .home-features__body {
    top: clamp(24px, 5.5vw, 36px);
  }

  .home-features__heading {
    font-size: clamp(18px, 4.8vw, 24px);
    line-height: 1.35;
  }

  .home-products__eyebrow {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .home-products__heading {
    margin-bottom: 12px;
    font-size: 32px;
  }

  .home-service__head h2 {
    font-size: 32px;
  }

  .home-about__inner h2 {
    font-size: 32px;
  }

  .page-home {
    --section-gap: 56px;
  }
}

/* 首页 → 页脚：与模块间距一致 */
.page-home .site-footer__main {
  padding-top: var(--section-gap);
}
