/* 通用的swiper */
.swiper {
  width: 100%;
  height: 100%;   
  overflow: hidden;
}
.swiper .swiper-slide img{
  width: 100%;
  height: 100%;
}
.common-swiper{
  width: 100%;
  overflow: hidden;
  height: 100%;
  position: relative;
}
.common-swiper .swiper-pagination{
  bottom: 10px;
  left: 0;
  right: 0;
}
.common-swiper .swiper-scrollbar{
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 99;
}
.common-swiper .swiper-pagination .swiper-pagination-bullet{
  margin: 0 4px;
}
.slides-view-item{
  width: 100%;
  height: 100%;  
}
.slides-per-view{
  height: 200px;
}

/* 2. 确保在图片未加载时，预加载器能居中显示 */
.swiper-lazy-preloader {
  /* Swiper 会自动控制这个元素的显示/隐藏 */
  /* border-color: #333;  */
}

/* 3. 确保图片在未加载完成前不会显示破碎图标 */
.swiper-lazy:not([src]) {
  /* 针对没有 src 属性的懒加载图片 */
  visibility: hidden; /* 隐藏破碎图标，让背景占位符显示 */
}



/* 异形的slide */
.slides-scale{
  height: 500px;
}
.slides-scale .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
transition: 300ms;
transform: scale(0.8);
}
.slides-scale .swiper-slide-active,
.slides-scale .swiper-slide-duplicate-active{
  transform: scale(1);
}


/* .scale-carousel 连在一起的 */
.scale-carousel {
  position: relative;
}
.scale-carousel .swiper-slide {
  width: 680px;
  height: 453px;
}
.scale-carousel .item-swiper-slide{
  width: 100%;
  height: 100%;
  position: relative;
}
.scale-carousel .swiper-slide .picture{
  width: 100%;
  height: 100%;
}
.scale-carousel .swiper-slide  .picture img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.scale-carousel .swiper-button-prev{
  left: 0;
}
.scale-carousel .swiper-button-next{
  right: 0;
}


/* slides-per-column */
.slides-per-column .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  height: calc((100% - 30px) / 2);

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}





/* 交错的swiper */
.interlaced-swiper .swiper-slide{
  position: relative;
  box-sizing: border-box;
}
.interlaced-swiper .swiper-slide{
  text-align: center;
  font-size: 18px;
  background: #fff;
  height: calc((100% - 30px) / 2);

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.interlaced-swiper  img {
  width: 100%;
  height: 100%;
  border-top: 1px;
}
.interlaced-swiper .swiper-slide:nth-child(even) {
  margin-left: -10px !important;
} 
.interlaced-swiper .swiper-button-next ,
.interlaced-swiper .swiper-button-prev{
  width: 1.2rem;
  height: 0.9rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  top: 50%;
  margin-top: 0;
}
.interlaced-swiper .swiper-button-next:after,
.interlaced-swiper .swiper-button-prev:after{
  display: none;
}
.interlaced-swiper .swiper-button-prev {
  background-image: url("https://res.variflight.com/carnoc/hz/2019QSLT/img/button_L.png");
  left: 10%;
}
.interlaced-swiper .swiper-button-next {
  background-image: url("https://res.variflight.com/carnoc/hz/2019QSLT/img/button_R.png");
  right: 10% ;
}
@media only screen and (min-width: 992px) {
  .interlaced-swiper .swiper-button-next, 
  .interlaced-swiper .swiper-button-prev{
    width: 60px;
    height: 40px;
  }
}
@media only screen and (min-width: 1200px) {
  .interlaced-swiper .swiper-button-next, 
  .interlaced-swiper .swiper-button-prev{
    width: 80px;
    height: 50px;
  }
}



/* ------------  大图 + 缩略图 （竖向布局）基础样式 ------------------- */
.common-thumbs-gallery-swiper{
  width: 100%;
  overflow: hidden;
}
.common-thumbs-gallery-swiper .swiper-gallery-main{
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.common-thumbs-gallery-swiper .swiper-gallery-main .swiper{
  width: 100%;
  height: 100%;
}
.common-thumbs-gallery-swiper .swiper-gallery-main .swiper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.common-thumbs-gallery-swiper .swiper-gallery-main .swiper-button-next, 
.common-thumbs-gallery-swiper .swiper-gallery-main .swiper-button-prev {
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.common-thumbs-gallery-swiper .swiper-thumbs .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}
.common-thumbs-gallery-swiper .swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  box-sizing: border-box;
  border:2px solid #366cff
}
.common-thumbs-gallery-swiper .swiper-thumbs  .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 大图 + 缩略图 （竖向布局） */
.swiper-thumbs-container{
  height: 200px;
  position: relative;
}
.thumbs-slide-active {
  border: 2px solid #1890ff;
  opacity: 1;
  transform: scale(1.05);
}
.swiper-thumbs .swiper-slide {
  opacity: 0.6;
  transition: all 0.3s;
}



/*   媒体大图+缩略图 
---- media-thumbs-gallery  （公共）
---- media-thumbs-gallery--horizontal 水平
---- media-thumbs-gallery--vertical  垂直
 */
.media-thumbs-gallery .media-thumbs-gallery-media-wrap, 
.media-thumbs-gallery .media-thumbs-gallery-media{
  position: relative;
  width: 100%;
  height: 100%;
}
.media-thumbs-gallery .media-thumbs-gallery-media-wrap picture{
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}
.media-thumbs-gallery .media-thumbs-gallery-media-wrap picture img{ 
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* 可选 */
}
.media-thumbs-gallery .media-gallery-video{
  background-color: #000;
}
.media-thumbs-gallery .media-gallery-video,
.media-thumbs-gallery .media-gallery-video video,
.media-thumbs-gallery .media-gallery-picture,
.media-thumbs-gallery .swiper-slide-item{
  width: 100%;
  height: 100%;
}
/* 水平 布局 */
.media-thumbs-gallery--horizontal{
  display: flex;
  height: 505px;
}
.media-thumbs-gallery--horizontal .media-thumbs-gallery-main{
  width: 75%;
  height: 100%;
}
.media-thumbs-gallery--horizontal .media-thumbs-gallery-thumbs{
  flex: 1;
  padding-left: 20px;
  height: 100%;;
}
.media-thumbs-gallery--horizontal .media-thumbs-gallery-thumbs .thumbs-gallery-swiper{
  padding: 30px 0;
  box-sizing: border-box;
}
.media-thumbs-gallery--horizontal .media-thumbs-gallery-thumbs-swiper{
  height: 100%;
}
.media-thumbs-gallery--horizontal .swiper-slide-item,
.media-thumbs-gallery--horizontal .media-thumbs-gallery-thumbs img{
  width: 100%;
  height: 100%;
}
.media-thumbs-gallery--horizontal .media-thumbs-gallery-thumbs .active{
  border:2px solid #366cff;
  box-sizing: border-box;
}

.media-thumbs-gallery--horizontal .swiper-button-prev,
.media-thumbs-gallery--horizontal .swiper-button-next{
  margin-top: 0;
  left: 50%;
  height: 25px;
  font-size: 23px;
  width: 44px;
  margin-left: -22px;;
}
.media-thumbs-gallery--horizontal .swiper-button-prev:after,
.media-thumbs-gallery--horizontal .swiper-button-next:after{
  font-size: 30px;
}
.media-thumbs-gallery--horizontal .swiper-button-prev{
  top: 0;
  transform: rotateZ(90deg);
}
.media-thumbs-gallery--horizontal .swiper-button-next{
  bottom:0;
  top:auto;
  transform: rotateZ(90deg);
}
/* 竖向布局 */
.media-thumbs-gallery--vertical .media-thumbs-gallery-main{
  width: 100%;
  height: 605px;
}
.media-thumbs-gallery--vertical .media-thumbs-gallery-thumbs{
  margin-top: 20px;
}
.media-thumbs-gallery--vertical .media-thumbs-gallery-thumbs .thumbs-gallery-swiper{
  padding: 0 30px;
  position: relative;
  width: auto;
  height: 180px;
}
.media-thumbs-gallery--vertical .swiper-button-prev{
  left: 0;
}
.media-thumbs-gallery--vertical .swiper-button-next{
  right: 0;
}
.media-thumbs-gallery--vertical .media-thumbs-gallery-thumbs .active{
  border:2px solid #366cff;
  box-sizing: border-box;
}











