/* 基础动画样式优化 */
[class*="-animation"], .fade-in {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 特定元素延迟调整 */
.logo-animation {
  transition-delay: 0.1s;
}

.heading-animation {
  transition-delay: 0.2s;
  transform: translateY(40px);
}

.subheading-animation {
  transition-delay: 0.3s;
}

.illustration-animation {
  transition-delay: 0.4s;
}

.button-animation {
  transition-delay: 0.5s;
}

/* 激活状态 */
[class*="-animation"].active, .fade-in.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 缩放动画优化 */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-scale {
  animation: fadeInScale 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 减少运动偏好设置 */
@media (prefers-reduced-motion: reduce) {
  [class*="-animation"], .fade-in, .fade-in-scale {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
