/* 首页专用：纵向 Swiper 主视觉 + 区块高级感（覆盖 index.html 内联旧样式） */
body.hzbgs-home.hzbgs-site {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 140, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

body.hzbgs-home .page-main-wrap {
  max-width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* —— 纵向主视觉 —— */
body.hzbgs-home .hz-hero-v-wrap {
  margin-top: 88px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(210, 210, 215, 0.85);
  background: rgba(245, 245, 247, 0.5);
  box-shadow: var(--shadow-md);
  /* 回退高度：防止部分浏览器对 min() 支持不足导致塌陷 */
  min-height: 560px;
  height: 740px;
  min-height: min(72vh, 820px);
  height: min(72vh, 820px);
}

body.hzbgs-home .hz-hero-swiper {
  width: 100%;
  height: 100%;
  position: relative;
  --swiper-navigation-size: 0;
  --swiper-theme-color: #0071e3;
}

body.hzbgs-home .hz-hero-swiper .swiper-slide {
  height: 100%;
  position: relative;
  overflow: hidden;
  flex: 0 0 100%;
  width: 100%;
}

/* 淡入淡出：将各屏绝对叠放，切换时仅改 opacity/轻微位移 */
body.hzbgs-home .hz-hero-swiper .swiper-wrapper {
  height: 100%;
  position: relative;
}

body.hzbgs-home .hz-hero-swiper .swiper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body.hzbgs-home .hz-hero-swiper .swiper-slide-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.hzbgs-home .hz-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* 增强背景图亮度，避免“整屏太灰太暗” */
  filter: brightness(1.18) saturate(1.03);
  transform: scale(1.02);
  transition: transform 8s ease;
}

body.hzbgs-home .swiper-slide-active .hz-hero-bg {
  transform: scale(1.06);
}

body.hzbgs-home .hz-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.22) 100%),
    radial-gradient(80% 60% at 20% 30%, rgba(0, 113, 227, 0.08), transparent 70%);
  pointer-events: none;
}

body.hzbgs-home .hz-hero-inner {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: auto;
  bottom: 18px;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 460px;

  /* 磨砂小框：只让文案区域半透明 + 模糊，避免全屏过暗 */
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

body.hzbgs-home .hz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.hzbgs-home .hz-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.30);
}

body.hzbgs-home .hz-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.20);
}

body.hzbgs-home .hz-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 15px;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.98), rgba(0, 98, 204, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 113, 227, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.hzbgs-home .hz-cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 24px 70px rgba(0, 113, 227, 0.45);
}

/* 右侧：上下翻页 + 分页 */
body.hzbgs-home .hz-hero-side {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.hzbgs-home .hz-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.hzbgs-home .hz-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: scale(1.04);
}

body.hzbgs-home .hz-hero-pagination {
  position: static;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

body.hzbgs-home .hz-hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

body.hzbgs-home .hz-hero-swiper .swiper-pagination-bullet-active {
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  body.hzbgs-home .hz-hero-v-wrap {
    margin-top: 72px;
    min-height: 520px;
    height: 62vh;
    border-radius: 20px;
  }

  body.hzbgs-home .hz-hero-inner {
    left: 18px;
    right: auto;
    bottom: 14px;
    padding: 16px 16px 18px;
    max-width: 370px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
  }

  body.hzbgs-home .hz-hero-inner {
    border-radius: 18px;
  }

  body.hzbgs-home .hz-hero-scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.10) 55%, rgba(0, 0, 0, 0.18) 100%),
      radial-gradient(80% 60% at 20% 30%, rgba(0, 113, 227, 0.06), transparent 70%);
  }

  body.hzbgs-home .hz-hero-side {
    right: 10px;
    gap: 8px;
  }

  body.hzbgs-home .hz-nav {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  body.hzbgs-home .hz-kicker {
    font-size: 11px;
    padding: 7px 12px;
  }

  body.hzbgs-home .hz-title {
    font-size: 1.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26);
  }

  body.hzbgs-home .hz-desc {
    font-size: 13px;
    max-width: 42ch;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
  }

  body.hzbgs-home .hz-cta {
    font-size: 14px;
    padding: 10px 16px;
    box-shadow: 0 14px 42px rgba(0, 113, 227, 0.28);
  }
}

/* —— 区块标题与卡片 —— */
body.hzbgs-home .features-section,
body.hzbgs-home .project-section,
body.hzbgs-home .support-section {
  margin-top: 48px !important;
  padding: 8px 0 24px !important;
}

/* 覆盖内联里过大的 section 上边距 */
body.hzbgs-home .features-section {
  margin: 48px auto 0 !important;
}

body.hzbgs-home .features-section h2::before,
body.hzbgs-home .project-section h2::before,
body.hzbgs-home .support-section h2::before {
  display: none !important;
}

body.hzbgs-home .features-section h2,
body.hzbgs-home .project-section h2,
body.hzbgs-home .support-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 28px !important;
  background: linear-gradient(135deg, #0a0a0c 0%, #3a3a3f 55%, #0071e3 160%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  position: relative;
  display: inline-block;
}

body.hzbgs-home .features-section h2::after,
body.hzbgs-home .project-section h2::after,
body.hzbgs-home .support-section h2::after {
  content: '';
  display: block;
  margin-top: 12px;
  height: 3px;
  width: 56px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0071e3, #2f8cff);
}

body.hzbgs-home .feature-item,
body.hzbgs-home .support-item,
body.hzbgs-home .project-item {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(210, 210, 215, 0.75) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08) !important;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.hzbgs-home .feature-item:hover,
body.hzbgs-home .support-item:hover,
body.hzbgs-home .project-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.12) !important;
}

body.hzbgs-home .feature-item h3,
body.hzbgs-home .support-item h3,
body.hzbgs-home .project-item h3 {
  color: var(--text0) !important;
  font-weight: 700 !important;
}

body.hzbgs-home footer {
  margin-top: 64px !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid rgba(210, 210, 215, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 245, 247, 0.92)) !important;
}

/* —— 首页：与多页一致，删除“浅色高级风” —— */
body.hzbgs-home footer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg1) !important;
}

