/* 首页海报轮播 */
.hero {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-warm);
}

.page-home .hero {
  margin-top: 0;
  position: relative;
}

.hero-swiper {
  width: 100%;
  aspect-ratio: var(--banner-aspect);
  overflow: hidden;
}

.hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swiper__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
}

.hero-swiper__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-family);
  font-size: clamp(22px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
  /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); */
}

.hero-swiper__pagination {
  bottom: 28px !important;
  z-index: 3;
}

.hero-swiper__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
}

.hero-swiper__prev,
.hero-swiper__next {
  width: 48px;
  height: 48px;
  margin-top: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.hero-swiper__prev {
  left: 24px;
}

.hero-swiper__next {
  right: 24px;
}

.hero-swiper__prev::after,
.hero-swiper__next::after {
  font-size: 18px;
  font-weight: 700;
}

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

/* 轮播海报（内页保留） */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 919px;
  overflow: hidden;
}

.banner__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner__slide.active {
  opacity: 1;
  z-index: 1;
}

.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
}

.banner__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-text-white);
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.banner__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner__subtitle {
  font-size: 20px;
  letter-spacing: 4px;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.banner__dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.banner__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.banner__dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.2);
}

.banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}

.banner__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner__arrow--prev {
  left: 30px;
}

.banner__arrow--next {
  right: 30px;
}
