/* ============================================================
   首页视频主图区
   替换原 #header-carousel 两张轮播图
   默认播放视频；移动端 / 减少动效 / 省流量时退化为海报图
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f0d0c;
  isolation: isolate;
}

.hero__video,
.hero__fallback {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  object-fit: cover;
  border: 0;
}

.hero__video {
  background: #0f0d0c;
}

.hero__fallback {
  display: none;
}

/* 文字层 */
.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 76px 24px 48px;
  text-align: center;
  pointer-events: none;
}

.hero__caption > * {
  pointer-events: auto;
}

.hero__icon {
  margin-bottom: 18px;
  color: #FD5D14;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
  /* 无蒙版时靠文字阴影保证亮镜头下的可读性 */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .55),
    0 2px 10px rgba(0, 0, 0, .45),
    0 6px 28px rgba(0, 0, 0, .38);
}

.hero__cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .06em;
}

.hero__cta .bi {
  transition: transform .2s ease;
}

.hero__cta:hover .bi {
  transform: translateX(4px);
}

/* 静态模式：不使用视频时显示海报图 */
.hero-static .hero__video {
  display: none;
}

.hero-static .hero__fallback {
  display: block;
}

@media (max-width: 767.98px) {
  .hero__video,
  .hero__fallback {
    aspect-ratio: 4 / 5;
    max-height: 78vh;
  }

  .hero__caption {
    padding: 64px 20px 40px;
  }

  .hero__icon {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .hero__cta {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta .bi {
    transition: none;
  }
}
