/* Swiper自定义样式 */

/* 导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 100px;
  /* background-color: rgba(255, 255, 255, 0.9); */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  margin-top: -50px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 30px;
  color: #fff;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

/* 分页器样式 */
.swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
  margin: 0 6px;
}

.swiper-pagination-bullet-active {
  background-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 动态分页器样式 */
.swiper-pagination-bullets-dynamic {
  overflow: hidden;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transform: scale(0.8);
  opacity: 0.5;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
  transform: scale(1);
  opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }
  
  .swiper-button-next {
    right: 10px;
  }
  
  .swiper-button-prev {
    left: 10px;
  }
  
  .swiper-pagination {
    bottom: 15px !important;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* 悬停时暂停动画提示 */
.banner:hover .swiper-container::before {
 
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
}

.banner:hover .swiper-container::before {
  opacity: 1;
}

/* 加载状态 */
.swiper-container {
  position: relative;
}

.swiper-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.swiper-container.swiper-initialized::after {
  display: none;
}