/* 首页特定样式 - 仅包含首页独有的样式 */

/* 针对首页的特殊overflow设置 */
* {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

nav,
swiper-slide {
  overflow: visible;
}

/* 主要内容区域 */
.main-content {
  margin-top: 0;
}

/* 全屏区域通用样式 */
.section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.section-content {
  text-align: center;
  z-index: 2;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
}

.section-title {
  font-size: 0.48rem;
  font-family: 'Source Han Sans SC', sans-serif;
  margin-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.8s ease;
}

.section-subtitle {
  font-size: 0.18rem;
  color: #666;
  margin-bottom: 0.3rem;
  opacity: 0;
  transform: translateY(0.3rem);
  transition: all 0.8s ease 0.2s;
}

.section.active .section-title,
.section.active .section-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* 各区域的背景色 */
.section1,
.section2,
.section3,
.section4,
.section5,
.section6 {
  color: white;
}

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  height: 4.98rem;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.26);
  justify-content: space-between;
}

.indicator-dot {
  width: 0.02rem;
  height: 0.57rem;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  position: relative;
}

.indicator-dot.active {
  transform: scale(1.2);
  opacity: 1;
  background: #fff;
}

.indicator-dot-text {
  position: absolute;
  top: 0;
  right: -0.18rem;
  font-size: 0.14rem;
  color: #fff;
  font-family: 'Source Han Sans SC', sans-serif;
  writing-mode: vertical-lr;
  height: 100%;
  text-align: center;
}

/* 悬浮图片样式 */
.floating-image {
  position: absolute;
  z-index: 5;
  width: 1.2rem;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.floating-image:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* 悬浮动画 */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.1rem);
  }
}

/* 各个悬浮图片的具体定位 */
.floating-s1 {
  left: 0;
  top: 1.5rem;
  transform: translateY(-50%);
}

.floating-s2 {
  right: 0;
  top: 1.5rem;
  transform: translateY(-50%);
}

.floating-s3 {
  left: 0;
  top: 16%;
}

.floating-s4 {
  top: 16%;
  right: 0.5rem;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
  .section-title {
    font-size: 0.36rem;
  }

  .scroll-indicator {
    right: 0.2rem;
  }
}

