@charset "UTF-8";
.banner {
  position: relative;
}
.banner img {
  width: 100%;
  height: 25vw;
  object-fit: cover;
}
.banner .text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  color: #fff;
  text-transform: capitalize;
  line-height: 1.2;
}

.indexbanner {
  width: 100%;
  height: 100vh;
}
@media (max-width:768px) {
  .indexbanner {
    height: auto;
  }
}
.indexbanner .swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  /* 基础分页样式 */
  /* 普通分页条样式 */
  /* 激活状态的分页条容器 */
  /* 倒计时效果（关键部分） */
}
.indexbanner .swiper-container:hover .prev,
.indexbanner .swiper-container:hover .next {
  opacity: 1;
}
.indexbanner .swiper-container .prev {
  position: absolute;
  left: 8.3333333333vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: all 600ms;
  cursor: pointer;
  height: 2.6041666667vw;
  width: 2.6041666667vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.indexbanner .swiper-container .prev:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 2px 0 4px 0 rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(10px);
}
.indexbanner .swiper-container .next {
  position: absolute;
  right: 8.3333333333vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: all 600ms;
  cursor: pointer;
  height: 2.6041666667vw;
  width: 2.6041666667vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.indexbanner .swiper-container .next:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 2px 0 4px 0 rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(10px);
}
.indexbanner .swiper-container .swiper-slide.swiper-slide-active .text h1,
.indexbanner .swiper-container .swiper-slide.swiper-slide-active .text p {
  opacity: 1;
  transform: translateY(0);
}
.indexbanner .swiper-container .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
}
.indexbanner .swiper-container .swiper-slide .text {
  position: absolute;
  top: 13.125vw;
}
.indexbanner .swiper-container .swiper-slide h1 {
  margin-bottom: 10px;
}
.indexbanner .swiper-container .swiper-slide h1,
.indexbanner .swiper-container .swiper-slide p {
  color: #fff;
  transform: translateY(130px);
  opacity: 0;
  text-align: center;
  transition: all 0.6s;
}
.indexbanner .swiper-container .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  /* 确保图片在文字下方 */
  transition: 1s linear 2s;
  transform: scale(1.1, 1.1);
}
.indexbanner .swiper-container .swiper-slide-active img,
.indexbanner .swiper-container .swiper-slide-duplicate-active img {
  transition: 6s linear;
  transform: scale(1, 1);
}
.indexbanner .swiper-container .swiper-pagination {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: 8px;
  /* 调整间距 */
  bottom: 60px;
}
.indexbanner .swiper-container .swiper-pagination-bullet-custom {
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  /* 未激活状态颜色 */
  opacity: 1;
  transition: all 0.6s;
  margin: 0;
}
.indexbanner .swiper-container .swiper-pagination-bullet-active {
  position: relative;
  width: 50px;
  background: transparent !important;
}
.indexbanner .swiper-container .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: white;
  /* 激活状态颜色 */
  border-radius: 4px;
  /* 左侧圆角 */
  animation: countdown 3.5s linear forwards;
  transform-origin: left center;
}
@keyframes countdown {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.indexbanner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .banner {
    margin-top: 60px;
  }
  .banner img {
    height: 200px;
  }
  .banner .text {
    padding: 0 5%;
  }
  .indexbanner {
    margin-top: 60px !important;
  }
  .indexbanner .swiper-container .swiper-slide .text {
    width: 90%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    top: 20%;
  }
  .indexbanner .swiper-container .swiper-slide h1 {
    margin-bottom: 0 !important;
    text-align: center;
  }
  .indexbanner .swiper-container .swiper-slide p {
    text-align: center;
  }
  .indexbanner .swiper-container .swiper-pagination {
    bottom: 20px !important;
  }
}

/*# sourceMappingURL=banner.css.map */
