/* 非关键CSS样式 */
/* 可以包含动画、过渡效果等不影响首屏渲染的样式 */

/* 背景动画泡泡样式 */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  animation: float 15s infinite ease-in-out;
  transform: translateZ(0);
  will-change: transform;
}

/* 浮动动画关键帧 */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(10px, 20px) scale(1.05);
  }
}

/* 轮播图指示器样式 */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* 滑动显示动画 */
.slide-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 为不同元素设置不同的延迟 */
.slide-fade-up:nth-child(2) {
  transition-delay: 0.2s;
}

.slide-fade-up:nth-child(3) {
  transition-delay: 0.4s;
}

.slide-fade-up:nth-child(4) {
  transition-delay: 0.6s;
}

/* 优化动画性能 */
.partner-card,
.bg-icon,
.bubble,
.slide-fade-up {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 优化过渡效果 */
.partner-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化背景动画 */
.bubble {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化滚动性能 */
.background-animation {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 减少重绘区域 */
.partner-name {
  transform: translateZ(0);
}
