/* 高亮文字 */
@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);
  }
}

.banner {
  /* border-radius: 0 0 3rem 3rem; */
  overflow: hidden;
  background-color: #e6f2f8;
}

/* 基础样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #e6f2f8;
}

.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 img,
.carousel-slide .bg video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.carousel-slide .mask {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 50%;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );
}
/* 控制按钮样式 */
.carousel-controls {
  position: absolute;
  right: 5%;
  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: #67bd8e;
  border: 1px solid #67bd8e;
}

/* 指示器样式 */
.carousel-indicators {
  width: 90%;
  position: absolute;
  bottom: 3.5rem;
  /* left: 0; */
  right: 5%;
  display: flex;
  justify-content: flex-start;
  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 .w90 {
  overflow: visible;
}
.carousel-slide .c_box .w90 .txt h3 {
  width: 100%;
  font-size: 4rem;
  color: #fff;
  line-height: 1;

  /* font-weight: 600; */
  text-align: left;
  margin-bottom: 2rem;
  transform: translateY(5rem);
  opacity: 0;
  letter-spacing: 2px;
  font-family: "myFont";
  text-transform: uppercase;
  text-shadow: 1px 1px 1px #333;
}
.carousel-slide .c_box .w90 .txt p {
  width: 80%;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
  font-weight: 400;
  text-align: left;
  letter-spacing: 2px;
  transform: translateY(5rem);
  opacity: 0;
  font-family: "myFontLight";
  text-shadow: 1px 1px 1px #333;
  position: relative;
}
.carousel-slide .c_box .w90 .txt p::after {
  display: block;
  content: "";
  width: 11rem;
  height: 10px;
  background-color: #299f00;
  position: absolute;
  left: 0;
  bottom: -4px;
  z-index: -1;
}
.carousel-slide .c_box .w90 .more {
  margin-top: 6rem;
  transform: translateY(5rem);
  opacity: 0;
  text-align: center;
}
.carousel-slide.active .c_box .w90 .txt h3 {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.7s;
  position: relative;
}
.carousel-slide.active .c_box .w90 .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 .w90 .txt p {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.8s;
}
.carousel-slide.active .c_box .w90 .more {
  transform: translateY(0);
  opacity: 1;
  transition: all 1.5s ease 0.9s;
}
.carousel-container .scrollDown {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  right: 5%;
  bottom: 3.5rem;
  z-index: 3;
}
.carousel-container .scrollDown h3 {
  font-size: 1.125rem;
  color: #fff;
  line-height: 1;
  font-weight: 600;
}
.carousel-container .scrollDown i {
  font-size: 16px;
  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 .w90 .txt h3 {
    font-size: 4.2rem;
  }
  .carousel-slide .c_box .w90 .txt p {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 992px) {
  .banner {
    margin-top: 3.125rem;
    border-radius: 0 0 1rem 1rem;
  }
  .carousel-container {
    height: 26vh;
  }
  .carousel-indicator {
    width: 1.5rem;
    height: 2px;
  }
  .carousel-controls {
    display: none;
  }
  .carousel-slide .c_box .w90 .txt p {
    display: block;
  }
  .carousel-slide .c_box .w90 .txt h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .carousel-slide .c_box .w90 .more {
    display: none;
  }
  .carousel-container .scrollDown {
    bottom: 1rem;
    left: 5%;
  }
  .carousel-container .scrollDown h3 {
    font-size: 12px;
  }
  .carousel-indicators {
    bottom: 1.5rem;
    right: 5%;
  }
  .carousel-slide .bg img,
  .carousel-slide .bg video {
    width: 110%;
  }
  .carousel-slide .c_box {
    top: 40%;
  }
  .carousel-slide .c_box .w90 .txt p {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.3;
  }
  .carousel-slide .c_box .w90 .txt p::after {
    width: 3rem;
    height: 8px;
    bottom: 0;
  }
}
