/* ============================================
   湖北盛科律师事务所 - 首页轮播
   纯色背景 | 简约克制 | 无复杂装饰
   ============================================ */

/* ===== 轮播容器 ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== 三套主题背景（纯色克制风） ===== */
.slide-theme-1 {
  background: var(--color-primary-dark);
}
.slide-theme-2 {
  background: var(--color-primary);
}
.slide-theme-3 {
  background: var(--color-primary-dark);
}

/* 移除所有几何装饰层 */
.slide-geo-decor {
  display: none;
}

/* ===== 遮罩层 ===== */
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(16, 24, 32, 0.3);
  pointer-events: none;
}

/* ===== 内容层 ===== */
.carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 32px;
}

/* 标签 */
.carousel-content .slide-tag {
  display: inline-block;
  padding: 9px 28px;
  border: 1px solid rgba(148, 120, 73, 0.5);
  color: var(--color-gold-light);
  background: rgba(0, 0, 0, 0.45);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

/* 标题 */
.carousel-content h2 {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* 副标题 */
.carousel-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮 — 去发光，纯色 */
.carousel-content .btn-glow {
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 40px;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  letter-spacing: 0.04em;
}

.carousel-content .btn-glow:hover {
  background: var(--color-gold-light);
  color: #fff;
}

/* ===== 左右箭头 ===== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  font-size: 1.25rem;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-gold);
}

.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ===== 指示器 ===== */
.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-dots .dot.active {
  background: var(--color-gold);
  width: 28px;
  border-radius: 5px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-carousel {
    height: 520px;
  }
  .carousel-content h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 420px;
  }

  .carousel-content {
    padding: 0 20px;
  }

  .carousel-content h2 {
    font-size: 1.75rem;
  }

  .carousel-content p {
    font-size: 0.95rem;
  }

  .carousel-content .btn-glow {
    padding: 13px 32px;
    font-size: 0.9rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-arrow.prev { left: 12px; }
  .carousel-arrow.next { right: 12px; }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 320px;   /* 手机端轮播高度加大，保证文字完整显示（王总） */
  }

  .carousel-content h2 {
    font-size: 1.4rem;
  }

  .carousel-content p {
    font-size: 0.85rem;
  }

  .carousel-content .slide-tag {
    font-size: 0.9rem;
    padding: 6px 20px;
  }
}
