/* =========================================================
   【首屏 · Banner 轮播】home-hero-banner.css
   页面最上方大图轮播：.v4-hero
   搜索：.v4-hero  .v4-hero__slide  .v4-hero__arrow  .v4-hero__dot
   结构 HTML：src/modules/local/content/home/home-v4-screens.html
   ========================================================= */

@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-Bold.ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/Manrope-ExtraBold.ttf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --v4-navy: #102a43;
  --v4-blue: #1769e0;
  /* 与首页版心一致：.source-migrated-home .container */
  --layout-width: min(85%, calc(100% - 48px));
  --layout-max: min(85%, calc(100% - 48px));
}

.home-v4 .v4-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 920px);
  padding-bottom: 0;
  border-bottom: 0;
  background: #1a2a3a;
  overflow: hidden;
}
.home-v4 .v4-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-v4 .v4-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: opacity, transform;
  pointer-events: none;
}
.home-v4 .v4-hero__slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 1;
  pointer-events: auto;
}
.home-v4 .v4-hero__slide.is-enter-from-right {
  opacity: 0;
  transform: translate3d(4%, 0, 0) scale(1.02);
}
.home-v4 .v4-hero__slide.is-enter-from-left {
  opacity: 0;
  transform: translate3d(-4%, 0, 0) scale(1.02);
}
.home-v4 .v4-hero__slide.is-leave-to-left {
  opacity: 0;
  transform: translate3d(-4%, 0, 0) scale(1.02);
  z-index: 0;
}
.home-v4 .v4-hero__slide.is-leave-to-right {
  opacity: 0;
  transform: translate3d(4%, 0, 0) scale(1.02);
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .home-v4 .v4-hero__slide {
    transition: opacity 0.25s ease;
    transform: none !important;
  }
}
.home-v4 .v4-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 31, 56, 0.28);
}
.home-v4 .v4-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}
.home-v4 .v4-hero__arrow:hover,
.home-v4 .v4-hero__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}
.home-v4 .v4-hero__arrow img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.home-v4 .v4-hero__arrow--prev {
  left: 18px;
}
.home-v4 .v4-hero__arrow--next {
  right: 18px;
}

.home-v4 .v4-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  pointer-events: none;
}
.home-v4 .v4-hero__stage > * {
  pointer-events: auto;
}
.home-v4 .v4-hero__social {
  position: absolute;
  left: max(16px, calc((100% - var(--layout-max)) / 2));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.6vw, 16px);
  z-index: 4;
}
.home-v4 .v4-hero__social-link {
  width: clamp(40px, 2.083vw, 64px);
  height: clamp(40px, 2.083vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.home-v4 .v4-hero__social-link svg {
  width: clamp(16px, 1vw, 22px);
  height: clamp(16px, 1vw, 22px);
}
.home-v4 .v4-hero__social-link:hover,
.home-v4 .v4-hero__social-link:focus-visible {
  background: #fff;
  outline: none;
}
.home-v4 .v4-hero__social-link:hover svg path,
.home-v4 .v4-hero__social-link:focus-visible svg path {
  fill: var(--v4-blue, #1769e0);
}
.home-v4 .v4-hero__block {
  position: absolute;
  left: max(
    24px,
    calc((100% - var(--layout-width)) / 2 + 80px)
  );
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: min(68%, 880px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 3;
  opacity: 0.75;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.home-v4 .v4-hero__block.is-caption-out {
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
}
.home-v4 .v4-hero__title {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: max-content;
  pointer-events: none;
}
.home-v4 .v4-hero__title h1,
.home-v4 .v4-hero__stroke-text {
  margin: 0;
  max-width: none;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(24px, 3.6vw, 72px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: left;
}
.home-v4 .v4-hero__line {
  display: block;
  white-space: nowrap;
}
.home-v4 .v4-hero__stroke-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.12vw, 2px) #fff;
  paint-order: stroke fill;
}
.home-v4 .v4-hero__scroll {
  position: absolute;
  right: max(16px, calc((100% - var(--layout-max)) / 2));
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(10px, 0.8vw, 22px);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  text-decoration: none;
  z-index: 4;
  transition: color 0.25s ease;
}
.home-v4 .v4-hero__scroll-text {
  flex-shrink: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.home-v4 .v4-hero__scroll-line svg {
  display: block;
  width: clamp(56px, 5vw, 96px);
  height: auto;
}
.home-v4 .v4-hero__scroll-line svg path {
  transition: stroke 0.25s ease;
}
.home-v4 .v4-hero__scroll:hover .v4-hero__scroll-text,
.home-v4 .v4-hero__scroll:focus-visible .v4-hero__scroll-text {
  color: #9ec5ff;
}
.home-v4 .v4-hero__scroll:hover .v4-hero__scroll-line svg path,
.home-v4 .v4-hero__scroll:focus-visible .v4-hero__scroll-line svg path {
  stroke: #9ec5ff;
}
.home-v4 .v4-hero__scroll:focus-visible {
  outline: none;
}

.home-v4 .v4-hero__pager {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.2vh, 36px);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: auto;
}
.home-v4 .v4-hero__dot {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.home-v4 .v4-hero__dot:hover,
.home-v4 .v4-hero__dot:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}
.home-v4 .v4-hero__dot.is-active {
  width: 8px;
  height: 8px;
  background: #fff;
}

@media (max-width: 960px) {
  .home-v4 .v4-hero__social {
    display: none;
  }
  .home-v4 .v4-hero__scroll {
    display: none;
  }
  .home-v4 .v4-hero__arrow--prev {
    left: 10px;
  }
  .home-v4 .v4-hero__arrow--next {
    right: 10px;
  }
  .home-v4 .v4-hero__title h1,
  .home-v4 .v4-hero__stroke-text {
    font-size: clamp(20px, 5.4vw, 40px);
    letter-spacing: 0;
  }
  .home-v4 .v4-hero__stroke-text {
    -webkit-text-stroke: 1.5px #fff;
  }
  .home-v4 .v4-hero__block {
    left: max(16px, calc((100% - var(--layout-width)) / 2));
    max-width: min(88%, 520px);
  }
}
@media (max-width: 680px) {
  .home-v4 .v4-hero {
    min-height: clamp(420px, 70vh, 640px);
  }
  .home-v4 .v4-hero__arrow {
    width: 40px;
    height: 40px;
  }
}
