.swiper {
      width: 100%;
      padding-top: 50px;
      padding-bottom: 50px;
    }

    .swiper-slide {
      background-position: center;
      background-size: cover;
      width: 500px;
      /*height: 300px;*/
    }

    .swiper-slide img {
      display: block;
      width: 100%;
    }
    
    .swiper-wrapper{
        display: flex;
    align-items: center;
    }
    
    

.img-preview {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-preview img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.img-preview .btn {
  position: absolute;
  background: rgba(255,255,255,1);
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  line-height: 28px !important;
  padding: 0 !important;
}

.img-preview .btn:hover {
  background: rgba(255,255,255,0.5);
}

.img-preview .prev,
.img-preview .next,
.img-preview .close {
    opacity: 1;
  position: absolute;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,1);
  color: #000;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.img-preview .prev:hover,
.img-preview .next:hover,
.img-preview .close:hover {
  background: rgba(255,255,255,1);
  /* transform: scale(1.1);  <-- 移除位移/缩放 */
}

/* 位置 */
.img-preview .prev { left: 20px; top: 50%;  }
.img-preview .next { right: 20px; top: 50%;}
.img-preview .close { top: 20px; right: 20px; font-size: 24px; }




@media (max-width: 991.89px) {
    .swiper-pagination{
        display:none;
    }
    .swiper-slide{
        width:80% !important;
    }
}