/* 首页轮播图 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: min(72vh, 560px);
  min-height: 400px;
  overflow: hidden;
  background: #1e3a5f;
}

.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}

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

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.35) 55%,
    transparent 100%
  );
  display: flex;
  align-items: center;
}

.hero-carousel__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  color: #fff;
  max-width: 640px;
  margin-left: max(24px, calc((100% - 1200px) / 2 + 24px));
}

.hero-carousel__content h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-carousel__content p {
  margin: 0 0 24px;
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.95;
  line-height: 1.6;
}

.hero-carousel__btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.hero-carousel__btn:hover {
  background: #dbb84a;
  transform: translateY(-2px);
}

.hero-carousel__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover {
  background: #fff;
  transform: scale(1.15);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-carousel__arrow--prev {
  left: 24px;
}

.hero-carousel__arrow--next {
  right: 24px;
}

@media (max-width: 640px) {
  .hero-carousel__content {
    padding: 0 24px;
    margin-left: 0;
  }

  .hero-carousel__arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* 首屏轮播高级视觉升级 */
.hero-carousel {
  height: min(78vh, 680px);
  min-height: 520px;
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 164, 93, 0.26), transparent 28%),
    linear-gradient(135deg, #08142b 0%, #102a5c 60%, #1f4e9e 100%);
}

.hero-carousel__slide img {
  transform: scale(1.02);
  filter: saturate(0.88) contrast(1.06);
}

.hero-carousel__overlay {
  background:
    radial-gradient(circle at 18% 28%, rgba(200, 164, 93, 0.26), transparent 22%),
    linear-gradient(90deg, rgba(8, 20, 43, 0.88) 0%, rgba(16, 42, 92, 0.64) 46%, rgba(8, 20, 43, 0.14) 100%);
}

.hero-carousel__content {
  position: relative;
  z-index: 6;
  max-width: 720px;
}

.hero-carousel__content::before {
  content: "优师·师元";
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(200, 164, 93, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #f2d79a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  backdrop-filter: blur(10px);
}

.hero-carousel__content h2 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.hero-carousel__content p {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.82);
}

.hero-carousel__btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #f2d79a 0%, #c8a45d 100%);
  color: #08142b;
  box-shadow: 0 18px 36px rgba(200, 164, 93, 0.28);
}

.hero-carousel__btn:hover {
  background: linear-gradient(135deg, #ffe6a8 0%, #d7b66f 100%);
  transform: translateY(-3px);
}

.hero-carousel__arrow {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-carousel__dot {
  width: 28px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover {
  background: #f2d79a;
  transform: scaleX(1.15);
}

@media (max-width: 640px) {
  .hero-carousel {
    min-height: 460px;
  }

  .hero-carousel__content h2 {
    font-size: 34px;
  }
}
