/* 轮播 */
#home-carousel {
  aspect-ratio: 1920/800;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
}
.carousel-item img {
  width: 100%;
  height: 100%;
}
.markBox {
  width: 100%;
  aspect-ratio: 1920/250;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.90) 100%);
  position: absolute;
  bottom: 0;
}
.swiperBannerBox {
  position: relative;
}
.swiper-main {
  width: 100%;
  aspect-ratio: 1920/800;
  position: relative;
  z-index: 2 !important;
}
.swiper-main .swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.swiper-main .title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}
.swiper-main .subtitle {
  font-size: 24px;
  margin-bottom: 40px;
}
.swiper-main .play-btn {
  /* background: rgba(255, 255, 0, 0.8); */
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
}
.swiper-wrapper-main {
  width: 100%;
  height: 100%;
}
.mainSwiperImg {
  width: 100%;
  height: 100%;
}
.swiper-thumbs-box {
  width: 33.33%;
  aspect-ratio: 640/173;
  background: url("../../static/images/home-indbg.png") center / contain
    repeat;
  position: absolute;
  bottom: 18px;
  /* right: 100px; */
  right: 7.2%;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-thumbs {
  width: 78.75%;
  height: 65.7%;
  background: rgba(0, 0, 0, 0);
  position: relative;
}
.swiper-thumbs .swiper-slide {
  width: 100%;
  height: 100%;
  /* opacity: 0.4; */
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.thumbs-swiper-mark {
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.5;
}
.swiper-thumbs .swiper-slide-thumb-active .thumbs-swiper-mark {
  opacity: 0;
  /* opacity: 1; */
  /* transform: scale(1.1);
  border: 4px solid #ff0; */
}
.swiper-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs-prev {
  position: absolute;
  left: 2.65%;
  top: 50%;
  transform: translateY(-50%);
  height: 65.7%;
  width: 6.25%;
  background: url("../../static/images/home-left.png");
  background-size: 100% 100%;
}
.thumbs-next {
  position: absolute;
  right: 2.65%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  height: 65.7%;
  width: 6.25%;
  background: url("../../static/images/home-left.png");
  background-size: 100% 100%;
  /* transform: rotate(180deg); */
}
.bannerMarkBox {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1920/250;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}
.start-btn {
  width: 11.45%;
  height: 7.5%;
  /* aspect-ratio: 1920/60; */
  background: url("../../static/images/home-play.png");
  background-size: 100% 100%;
  position: absolute;
  bottom: 28.88%;
  right: 7.2%;
  z-index: 3;
}
.swiper-pagination {
  left: auto !important;
  right: 20px !important;
  bottom: 10px !important; /* 距离底部距离 */
  width: fit-content !important;
  z-index: 2;
  text-align: center;
}
.swiper-pagination-bullet {
  width: 6px !important;
  height: 6px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  margin: 0 6px;
  transition: all 0.3s;
}
.swiper-pagination-bullet-active {
  width: 12px !important;
  background: #fff !important;
  transform: scale(1.3);
}
.swiper-pagination {
  display: inline-block;
}

/* .carousel-inner *:first-child .carousel-item {
  display: block;
} */

@media screen and (max-width: 824px) {
  .carousel-item__texts {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.80) 100%);
  }

  .carousel-item__texts h2 {
    font-size: 16px;
    color: #fff;
    line-height: 22px;
  }

  .carousel-item__texts p {
    margin-top: 2px;
    font-size: 12px;
    color: #BDBDBD;
    line-height: 18px;
  }

  .carousel-indicators {
    bottom: 10px;
    left: unset;
    right: 16px;
    margin: 0;
  }

  .carousel-indicators [data-bs-target] {
    margin: 0 2px;
    border: none;
    width: 6px;
    height: 6px;
    border-radius: 3px;
  }

  .carousel-indicators .active {
    width: 12px;
  }
  .swiper-pagination {
    display: inline-block;
  }
}

@media screen and (min-width: 825px) {
  /* .start-btn {
    cursor: pointer;
    position: absolute;
    right: 100px;
    bottom: 183px;
    width: 220px;
    height: 60px;
    background: url('../../static/images/home-play.png') center / contain no-repeat;
  } */

  .carousel-indicators {
    position: absolute;
    margin: 0;
    left: unset;
    right: 100px;
    bottom: 18px;
    /* width: 640px; */
    height: 137px;
    background: url('../../static/images/home-indbg.png') center / contain repeat;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .carousel-indicators button[data-bs-target] {
    width: 160px;
    height: 90px;
    background-color: transparent;
    opacity: 1;
  }

  .carousel-indicators button[data-bs-target] .carousel-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #0008;
  }

  .carousel-indicators button[data-bs-target].active .carousel-indicator::after {
    background-color: transparent;
  }

  .carousel-indicator {
    border-radius: 6px;
    overflow: hidden;
  }

  .carousel-indicator img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .carousel-indicators button div {
    width: 100%;
    height: 100%;
  }

  .carousel-indicators button[data-bs-target].prev,
  .carousel-indicators button[data-bs-target].next {
    flex: unset;
    width: 40px;
    height: 90px;
    background: url('../../static/images/home-left.png') center / contain no-repeat;
    opacity: 1;
  }

  .carousel-indicators button[data-bs-target].next {
    transform: rotate(180deg);
  }
  .swiper-pagination {
    display: none;
  }
}