/* Swiper 轮播样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-carousel {
  width: 100%;
  height: 100%;
}

.main-carousel .swiper-slide {
  position: relative;
  overflow: hidden;
}

.main-carousel .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

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

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.main-carousel .swiper-slide:hover .carousel-overlay {
  transform: translateY(0);
}

.carousel-overlay h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: bold;
}

.carousel-overlay p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Swiper 分页器样式 */
.main-carousel .swiper-pagination {
  bottom: 15px !important;
}

.main-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: background 0.3s ease;
}

.main-carousel .swiper-pagination-bullet-active {
  background: white;
}

.main-carousel .swiper-pagination-bullet:hover {
  background: rgba(255,255,255,0.8);
}

/* Swiper 导航按钮样式 */
.main-carousel .swiper-button-next,
.main-carousel .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  color: white;
  transition: background 0.3s ease;
}

.main-carousel .swiper-button-next:hover,
.main-carousel .swiper-button-prev:hover {
  background: rgba(0,0,0,0.7);
}

.main-carousel .swiper-button-next:after,
.main-carousel .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.main-carousel .swiper-button-prev {
  left: 15px;
}

.main-carousel .swiper-button-next {
  right: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .carousel-container {
      height: 300px;
  }
}

@media (max-width: 768px) {
  .carousel-container {
      height: 200px;
  }
  
  .carousel-overlay h3 {
      font-size: 16px;
  }
  
  .carousel-overlay p {
      font-size: 12px;
  }
  
  .carousel-prev,
  .carousel-next {
      width: 35px;
      height: 35px;
      font-size: 18px;
  }
}
