html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#section1 {
  position: relative;
  height: 100vh;
  overflow: hidden;
}



.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  z-index: 1;
}

.bg1 {
  background-image: url('/images/bg1.png');
  opacity: 1;
}

.bg2 {
  background-image: url('/images/图层 642@2x.png');
  opacity: 0;
}

/* 文本层 */
.text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  transition: opacity 1s ease;
  z-index: 2;
  max-width: 80%;
}

.text1 {
  opacity: 1;
}

.text2 {
  opacity: 0;
}

/* 鼠标移至右侧时 section1 添加 .active 类触发切换 */
#section1.active .bg1 {
  opacity: 0;
}

#section1.active .bg2 {
  opacity: 1;
}

#section1.active .text1 {
  opacity: 0;
}

#section1.active .text2 {
  opacity: 1;
}

/* 字体样式 */
.large-text {
  margin-top: 0.375rem;
  font-size: 1.125rem;
  font-weight: 1000;
}

.large-text2 {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 1000;
}



.medium-text {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 900;
}

.medium-text2 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}

.small-text {
  margin-top: 1.25rem;
  font-size: 0.375rem;
  width: 9.375rem;
  word-wrap: break-word;
  word-break: break-word;
}

.small-text2 {
  margin-top: 1.25rem;
  font-size: 0.375rem;
  width: 9.375rem;
  word-wrap: break-word;
  word-break: break-word;
}

/* 按钮样式 */
.learn-more-button {
  margin-top: 0.75rem;
  padding: 0.15rem 0.375rem;
  font-size: 0.225rem;
  color: #fff;
  background-color: transparent;
  border: 0.025rem solid #fff;
  border-radius: 0.0625rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learn-more-button2 {
  margin-top: 1.4rem;
  padding: 0.15rem 0.375rem;
  font-size: 0.225rem;
  color: #fff;
  background-color: transparent;
  border: 0.025rem solid #fff;
  border-radius: 0.0625rem;
  cursor: pointer;
  transition: all 0.3s ease;
}



.learn-more-button:hover {
  background-color: #fff;
  color: #3c75e5;
  transform: scale(1.05);
}



.carousel-indicators {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.15rem;
  z-index: 10;
}

.indicator {
  width: 0.875rem;
  height: 0.075rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0.0375rem;
  cursor: pointer;
}

.indicator.active {
  background-color: #fff;
}


@media (max-width: 9.6rem) {
  .large-text {
    font-size: 0.5rem;
  }

  .medium-text {
    font-size: 0.375rem;
    margin-top: 0.75rem;
  }

  .small-text {
    font-size: 0.2rem;
    margin-top: 0.5rem;
    width: 100%;
  }

  .learn-more-button {
    font-size: 0.2rem;
    padding: 0.125rem 0.3rem;
    margin-top: 0.5rem;
  }
}