/* ===== banner.css - 轮播图专用样式 ===== */

.banner-carousel {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 5;
}
@media (max-width: 599px) {
  .banner-carousel {
    aspect-ratio: 4 / 3;
  }
}

/* 滚动轨道 */
.banner-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}
.banner-slide {
  flex: 0 0 100%;
  display: block;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 圆点指示器 */
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active {
  background: #fff;
}

/* 左右箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 2vw;
  height: 2vw;
  border-radius: 50%;
  font-size: 1.5vw;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.5); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
@media (max-width: 599px) {
  .banner-arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}
