/* 第一区域视频背景样式 */
.section1 {
  position: relative;
  overflow: hidden;
}

/* 轮播图容器样式 */
.section1-swiper-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section1-swiper-container .swiper,
.section1-swiper-container .section1-swiper {
  width: 100%;
  height: 100%;
}

.section1-swiper-container .swiper-wrapper {
  height: 100%;
}

.section1-swiper-container .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section1-swiper-container .section1-swiper-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section1-swiper-container .section1-swiper {
  cursor: grab;
}

.section1-swiper-container .section1-swiper:active {
  cursor: grabbing;
}

.xsb-box {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  font-size: 0.16rem;
}

.section1-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 视频遮罩层 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.video-overlay-bot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2rem;
  background: linear-gradient(
    180deg,
    rgba(16, 24, 40, 0) 0%,
    rgba(6, 10, 47, 0.5) 100%
  );
  z-index: 2;
}

/* 确保内容在视频和遮罩之上 */
.section1 .section-content {
  position: relative;
  z-index: 3;
}

/* 第一区域内容对齐样式 */
.section1 .section-content {
  text-align: left;
  width: 83.3%;
}

.section1 .section-title {
  font-size: 0.56rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.section1 .section-subtitle {
  font-size: 0.22rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.section1-br {
  margin-top: 0.4rem;
  height: auto;
  width: 0.47rem;
}

/* 初始状态 - 隐藏在左侧 */
.section1 .section-title,
.section1 .section-subtitle,
.section1 .section1-br {
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* 确保在页面加载时立即隐藏 */
  visibility: hidden;
}

/* 页面加载完成后显示元素 */
.section1.active .section-title,
.section1.active .section-subtitle,
.section1.active .section1-br {
  visibility: visible;
}

/* 激活状态 - 滑入动画 */
.section1.active .section-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.section1.active .section-subtitle {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.section1.active .section1-br {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

/* 右下角菜单样式 */
.section1-menu {
  position: absolute;
  bottom: 0.4rem;
  right: 0;
  display: flex;
  gap: 0.3rem;
  z-index: 3;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 进度圈样式 */
.progress-circle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0;
  top: 0;
}

.progress-ring-background {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.02rem;
}

.progress-ring-progress {
  fill: none;
  stroke: #d20029;
  stroke-width: 0.02rem;
  stroke-linecap: round;
  stroke-dasharray: 100.5; /* 2 * π * 16 = 100.5 */
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 0.3s ease;
}

/* 活跃状态的圈圈背景变为白色 */
.menu-item.active .progress-ring-background {
  stroke: white;
}

/* 圈圈中间的图标容器 */
.menu-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.3rem;
  height: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 菜单文字样式 */
.menu-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.2rem;
  font-weight: 500;
  white-space: nowrap;
}

.menu-item.active .menu-text {
  color: white;
}

/* 进度动画 */
@keyframes progressAnimation {
  from {
    stroke-dashoffset: 100.5;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.menu-item.playing .progress-ring-progress {
  animation: none;
  transition: stroke-dashoffset 0.1s linear;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .section1 .section-content {
    left: 0.2rem;
    width: calc(100% - 0.4rem);
  }

  .section1 .section-subtitle {
    font-size: 0.18rem;
  }

  .section1-br {
    max-width: 2.5rem;
  }

  .section1-menu {
    bottom: 0.2rem;
    right: 0.4rem;
    gap: 0.2rem;
  }

  .menu-item {
    gap: 0.1rem;
  }

  .progress-circle {
    width: 40px;
    height: 40px;
  }

  .progress-ring {
    width: 40px;
    height: 40px;
  }

  .progress-ring-background,
  .progress-ring-progress {
    stroke-dasharray: 84.4; /* 2 * π * 13.5 = 84.4 */
  }

  .progress-ring-progress {
    stroke-dashoffset: 84.4;
  }

  .menu-icon {
    width: 0.25rem;
    height: 0.25rem;
  }

  .menu-text {
    font-size: 0.16rem;
  }
}

@media (max-width: 480px) {
  .section1 .section-content {
    left: 0.2rem;
    width: calc(100% - 0.4rem);
  }

  .section1 .section-subtitle {
    font-size: 0.16rem;
  }

  .section1-br {
    max-width: 2rem;
    margin-top: 0.3rem;
  }

  .section1-menu {
    bottom: 0.2rem;
    right: 0.2rem;
    gap: 0.15rem;
  }

  .menu-item {
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
  }

  .menu-text {
    font-size: 0.14rem;
    text-align: center;
  }
}
