.hero-slider {
  position: relative;
  overflow: hidden;

  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  padding: 100px 0 128px;
  display: flex;
  align-items: center;
}

.hero-slider .container { width: min(1520px, 96%); }

.hero-bgs {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  background-image:
    linear-gradient(90deg, rgba(4, 11, 20, .34) 0%, rgba(4, 11, 20, .16) 30%, rgba(4, 11, 20, 0) 56%),
    linear-gradient(180deg, rgba(5, 13, 22, .12) 0%, rgba(5, 13, 22, .36) 100%),
    radial-gradient(900px 520px at 78% 10%, hsl(var(--hue) 94% 62% / .55), transparent 62%),
    radial-gradient(720px 440px at 10% 90%, hsl(var(--hue) 94% 58% / .36), transparent 66%),
    var(--slide-img, none),
    linear-gradient(
      160deg,
      hsl(var(--hue) 72% 22%) 0%,
      hsl(var(--hue) 62% 11%) 58%,
      #040a11 100%
    );
  background-size: cover, cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center, center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 195, 245, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 195, 245, .075) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 42%, #000 28%, transparent 100%);
  mask-image: radial-gradient(72% 72% at 50% 42%, #000 28%, transparent 100%);
  opacity: 0;
}

.hero-bg.is-active { opacity: 1; }

.hero-bg--1 { --hue: 197; --slide-img: url("../assets/img/hero-1.jpg"); }
.hero-bg--2 { --hue: 212; --slide-img: url("../assets/img/hero-2.jpg"); }
.hero-bg--3 { --hue: 190; --slide-img: url("../assets/img/hero-3.jpg"); }
.hero-bg--4 { --hue: 205; --slide-img: url("../assets/img/hero-4.jpg"); }

/* photographic slides: an extra left-hand scrim per slide so the white
   headline block stays readable over the photo's own bright areas. */
.hero-bg--1::before,
.hero-bg--2::before,
.hero-bg--3::before,
.hero-bg--4::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg--1::before {
  background: linear-gradient(90deg, rgba(4, 11, 20, .46) 0%, rgba(4, 11, 20, .26) 34%, rgba(4, 11, 20, .05) 62%, rgba(4, 11, 20, 0) 80%);
}
.hero-bg--2::before {
  background: linear-gradient(90deg, rgba(4, 11, 20, .24) 0%, rgba(4, 11, 20, .12) 34%, rgba(4, 11, 20, .02) 62%, rgba(4, 11, 20, 0) 80%);
}
.hero-bg--3::before {
  background: linear-gradient(90deg, rgba(4, 11, 20, .52) 0%, rgba(4, 11, 20, .30) 34%, rgba(4, 11, 20, .06) 62%, rgba(4, 11, 20, 0) 80%);
}
.hero-bg--4::before {
  background: linear-gradient(90deg, rgba(4, 11, 20, .34) 0%, rgba(4, 11, 20, .18) 34%, rgba(4, 11, 20, .03) 62%, rgba(4, 11, 20, 0) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-brandband {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-slider .hero-logo {
  width: 88px;
  margin: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4));
}

.hero-brandband__body { min-width: 0; }

.hero-slider .hero-brand {
  font-size: clamp(1.5rem, 2.7vw, 2.45rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.hero-tagline {
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  margin: 0;
  max-width: 920px;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, .18);
  margin: 46px 0 40px;
}

.hero-rotator {
  display: grid;
  align-content: center;
  min-height: 250px;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.hero-slide h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 18px;

}

.hero-slide p {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.85;

  text-wrap: pretty;
  color: rgba(255, 255, 255, .84);
}

.hero-slider .hero-actions {
  margin-top: 38px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: none;
}
.hero-slider .hero-actions .btn {
  text-align: center;
  padding: 14px 34px;
  font-size: 1rem;
}

.hero-slider .btn-primary {
  background: #00B0F0;
  color: #06222E;
  box-shadow: 0 8px 24px rgba(0, 176, 240, .3);
}
.hero-slider .btn-primary:hover { background: #26BCF4; color: #06222E; }

.hero-slider .btn-ghost {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  background: rgba(4, 12, 20, .42);
}
.hero-slider .btn-ghost:hover { background: rgba(255, 255, 255, .20); }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero-dot {
  width: 40px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, .5); }

.hero-dot.is-active {
  width: 62px;
  background: #00B0F0;
}

.hero-dot:focus-visible {
  outline: 2px solid #00B0F0;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .hero-slider {
    padding: 52px 0 92px;
    min-height: 0;
  }
  .hero-slider .container { width: auto; }

  .hero-brandband {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-slider .hero-logo { width: 56px; }
  .hero-slider .hero-brand { letter-spacing: .01em; margin-bottom: 10px; }
  .hero-tagline { font-size: .9rem; }

  .hero-divider { margin: 30px 0 26px; }

  .hero-rotator { min-height: 190px; }
  .hero-slide p { font-size: .93rem; line-height: 1.72; }
  .hero-slider .hero-actions { margin-top: 26px; }

  .hero-dots { bottom: 24px; }
  .hero-dot { width: 26px; }
  .hero-dot.is-active { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-slide {
    transition-duration: .01ms;
  }
  .hero-slide { transform: none; }
}

/* 首页页头浮在首屏上，首屏需占满整屏 */
body[data-page="index"] .hero.hero-slider {
  min-height: 100vh;
  min-height: 100dvh;
}
