/* ============================================================
   Hero Banner — 全屏沉浸式轮播 v3.0
   移动端触摸滑动 + 视差背景 + 内容渐入
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--color-black);
}

.hero__slides { width: 100%; height: 100%; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slide--active { opacity: 1; z-index: 1; }

.hero__slide-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s var(--ease-out-expo);
}

.hero__slide--active .hero__slide-bg { transform: scale(1); }

.hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.55) 100%);
}

/* Decorative gradient orbs */
.hero__slide::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero__slide:nth-child(1)::before {
  background: radial-gradient(circle, #2563eb, transparent);
  top: -100px; right: -100px;
}

.hero__slide:nth-child(2)::before {
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 50%; left: -100px;
}

.hero__slide:nth-child(3)::before {
  background: radial-gradient(circle, #c9a94e, transparent);
  bottom: -100px; right: -100px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 720px;
  padding: 0 28px;
  animation: slideUpScale 1s var(--ease-spring) both;
}

.hero__slide--active .hero__content {
  animation-delay: 0.25s;
}

/* Hero 内容入场：大位移 + 缩放 + 模糊 */
@keyframes slideUpScale {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.88);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero__subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  animation: fadeSlideUp 0.7s ease 0.15s both;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 180;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

.hero__desc {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 48px;
  line-height: 1.85;
  font-weight: 300;
  animation: fadeSlideUp 0.8s ease 0.45s both;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  transition: all 0.45s var(--ease-out-quart);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: fadeSlideUp 0.8s ease 0.6s both;
}

/* 子元素阶梯渐入 */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero__btn:active {
  transform: translateY(0) scale(0.96);
  transition: all 0.12s ease;
}

/* Arrows */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out-quart);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.3rem;
  -webkit-tap-highlight-color: transparent;
}

.hero__arrow:hover {
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.1);
}

.hero__arrow--left { left: 32px; }
.hero__arrow--right { right: 32px; }

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.45s var(--ease-out-quart);
  padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.5);
}

.hero__dot--active {
  background: rgba(255, 255, 255, 0.88);
  width: 28px;
  border-radius: 4px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fadeIn 1.5s ease 1.5s both;
}

.hero__scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: bounce-down 2s ease infinite;
}

/* ========== 移动端优化 ========== */
@media (max-width: 768px) {
  .hero {
    height: 92vh;
    height: 92dvh;
    min-height: 520px;
    max-height: 860px;
  }

  .hero__title {
    font-size: 1.9rem;
    font-weight: 220;
    line-height: 1.1;
  }

  .hero__subtitle {
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    margin-bottom: 22px;
  }

  .hero__desc {
    font-size: 0.82rem;
    margin-bottom: 32px;
    line-height: 1.7;
  }

  .hero__btn {
    padding: 13px 32px;
    font-size: 0.82rem;
  }

  .hero__arrow {
    width: 38px; height: 38px;
    font-size: 1.1rem;
  }

  .hero__arrow--left { left: 10px; }
  .hero__arrow--right { right: 10px; }

  .hero__dots { bottom: 28px; gap: 10px; }

  .hero__scroll-indicator { display: none; }

  .hero__content {
    padding: 0 20px;
    animation: slideUp 0.6s var(--ease-out-expo) both;
  }

  /* 移动端装饰球缩小 */
  .hero__slide::before {
    width: 300px; height: 300px;
    filter: blur(80px);
    opacity: 0.12;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 90vh;
    height: 90dvh;
    min-height: 480px;
    max-height: 750px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__desc {
    font-size: 0.78rem;
    margin-bottom: 28px;
  }

  .hero__btn {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  .hero__arrow {
    display: none;
  }
}
