/* ========== 轮播图 ========== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  box-shadow: 0 8px 28px var(--navy-deep-18);
  transition: box-shadow 0.4s ease;
}

.carousel:hover {
  box-shadow: 0 12px 40px var(--navy-deep-26);
}

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

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  width: 100%;
}

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

/* 小圆点 */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* 箭头：默认隐藏，hover 显示 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--navy-deep-45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.3s ease, transform 0.3s ease;
}

.carousel:hover .carousel-arrow {
  opacity: 1;
}

/* 触屏设备没有 hover，箭头常显 */
@media (hover: none) {
  .carousel-arrow {
    opacity: 1;
  }
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-arrow:hover {
  background: var(--navy-deep-70);
  transform: translateY(-50%) scale(1.08);
}