/* 高亮文字 */
@keyframes highlightSlide {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* 向下循环 */
@keyframes arrowAnimation {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: translateY(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* 基础样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-slide .bg video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.carousel-slide .bg img {
  width: 100%;
  /* height: 0;
  padding-bottom: 100vh; */
}
.carousel-slide .mask {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 15, 65, 0.4),
    rgba(0, 15, 65, 0)
  );
}
/* 控制按钮样式 */
.carousel-controls {
  position: absolute;
  right: 10%;
  top: 50%;
  width: 3.125rem;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 3.125rem;
  height: 3.125rem;
  cursor: pointer;
  font-size: 1.125rem;
  border-radius: 0%;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.carousel-control:nth-last-of-type(1) {
  margin-top: 0.875rem;
}
.carousel-control:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #001f83;
  border: 1px solid #3464ff;
}

/* 指示器样式 */
.carousel-indicators {
  width: 80%;
  position: absolute;
  bottom: 3.5rem;
  /* left: 0; */
  right: 10%;
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  z-index: 10;
}

.carousel-indicator {
  width: 2.875rem;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.carousel-slide .c_box {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.carousel-slide .c_box .w80 {
  overflow: visible;
}
.carousel-slide .c_box .w80 .txt h3 {
  width: 100%;
  font-size: 4rem;
  color: #0131ce;
  line-height: 1;
  font-weight: 600;
  text-align: left;
  margin-bottom: 1.875rem;
  transform: translateY(5rem);
  opacity: 0;
  letter-spacing: 2px;
  font-family: "Impact";
  text-transform: uppercase;
  /* text-shadow: 1px 1px 1px #333; */
}
.carousel-slide .c_box .w80 .txt p {
  width: 80%;
  font-size: 2rem;
  color: #fff;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  letter-spacing: 1px;
  transform: translateY(5rem);
  opacity: 0;
}
.carousel-slide .c_box .w80 .more {
  margin-top: 6rem;
  transform: translateY(5rem);
  opacity: 0;
  text-align: center;
}
.carousel-slide.active .c_box .w80 .txt h3 {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.7s;
  position: relative;
}
.carousel-slide.active .c_box .w80 .txt h3::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  letter-spacing: 2px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 1) 20%,
    rgba(255, 255, 255, 1) 30%,
    transparent 50%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: highlightSlide 4s linear infinite;
}
.carousel-slide.active .c_box .w80 .txt p {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.8s;
}
.carousel-slide.active .c_box .w80 .more {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.9s;
}
.carousel-container .scrollDown {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  left: 10%;
  bottom: 3.5rem;
  z-index: 3;
}
.carousel-container .scrollDown h3 {
  font-size: 14px;
  color: #fff;
  line-height: 1;
  font-weight: 100;
  letter-spacing: 0.125rem;
}
.carousel-container .scrollDown i {
  font-size: 14px;
  color: #fff;
  line-height: 1;
  margin-left: 10px;
  /* 动画设置 */
  animation: arrowAnimation 1.2s infinite ease-in-out;
  opacity: 0;
  transform: translateY(0);
}
@media screen and (max-width: 1440px) {
  .carousel-slide .c_box .w80 .txt h3 {
    font-size: 4.2rem;
  }
  .carousel-slide .c_box .w80 .txt p {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 992px) {
  .banner {
    margin-top: 3.125rem;
  }
  .carousel-container {
    height: 26vh;
  }
  .carousel-indicator {
    width: 1.5rem;
    height: 2px;
  }
  .carousel-controls {
    display: none;
  }
  .carousel-slide .c_box .w80 .txt p {
    display: none;
  }
  .carousel-slide .c_box .w80 .txt h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .carousel-slide .c_box .w80 .more {
    display: none;
  }
  .carousel-container .scrollDown {
    bottom: 1rem;
    left: 5%;
  }
  .carousel-container .scrollDown h3 {
    font-size: 14px;
  }
  .carousel-indicators {
    bottom: 1.5rem;
    right: 5%;
  }
  .carousel-slide .bg img,
  .carousel-slide .bg video {
    width: 140%;
  }
  .carousel-container {
    height: 34vh;
  }
}
