/* 轮播图容器 */
.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  opacity: 0;
  animation: sliderFadeIn 1.2s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
}

@keyframes sliderFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s cubic-bezier(0.4,0,0.2,1);
}
.slide.active .slide-bg { transform: scale(1); }

/* 遮罩 */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.28) 50%,
    rgba(0,0,0,0.55) 100%
  );
}

/* 轮播文字 */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-bottom: 80px;
}

.slide-tag {
  display: inline-block;
  padding: 5px 18px;
  background: rgba(240,184,72,0.75);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.6s 0.1s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s 0.1s cubic-bezier(0.4,0,0.2,1);
}
.slide.active .slide-tag {
  opacity: 1;
  transform: translateY(0);
}

.slide-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-32px);
  transition: opacity 0.7s 0.22s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s 0.22s cubic-bezier(0.4,0,0.2,1);
}
.slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}

.slide-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.7s 0.36s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s 0.36s cubic-bezier(0.4,0,0.2,1);
}
.slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
}

.slide-btn {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s 0.5s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s 0.5s cubic-bezier(0.4,0,0.2,1);
}
.slide.active .slide-btn {
  opacity: 1;
  transform: translateY(0);
}

/* 底部进度条 */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 3px;
  background: rgba(255,255,255,0.2);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 5s linear;
}
.slider-progress-bar.running { width: 100%; }

/* 指示点 */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* 左右箭头 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.32); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

@media (max-width: 600px) {
  .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .slider-section { height: 100svh; }
}
