/* ===== Banner Carousel - H5首页轮播图组件 ===== */
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 2 / 1;
}

.banner-carousel .banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.banner-carousel .banner-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.banner-carousel .banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

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

.banner-carousel .banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
}

.banner-carousel .banner-overlay h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner-carousel .banner-overlay p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 指示器 */
.banner-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dots .dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* 当无轮播图时隐藏 */
.banner-carousel:empty,
.banner-carousel.banner-empty {
  display: none;
}
