/* ============================================
   动画样式
   ============================================ */

/* Hero Canvas 容器 */
#heroCanvas {
  display: block;
}

/* 数字闪烁 - 已使用 keyframes */

/* 链接悬停下划线动画 */
@keyframes underlineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 数字计数 */
@keyframes countUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.stat-num.counting {
  animation: countUp 0.8s var(--ease-out);
}

/* 数字滚动指示器 */
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* 卡片浮动 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* 渐变流光 */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200, 162, 110, 0.3) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* 旋转光环 */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-animation {
  animation: rotate 20s linear infinite;
}

/* 脉动光晕 */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 110, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(200, 162, 110, 0); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* 文字逐字显示 */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 错落入场 */
.stagger-children > *:nth-child(1) { --reveal-delay: 0s; }
.stagger-children > *:nth-child(2) { --reveal-delay: 0.05s; }
.stagger-children > *:nth-child(3) { --reveal-delay: 0.1s; }
.stagger-children > *:nth-child(4) { --reveal-delay: 0.15s; }
.stagger-children > *:nth-child(5) { --reveal-delay: 0.2s; }
.stagger-children > *:nth-child(6) { --reveal-delay: 0.25s; }
.stagger-children > *:nth-child(7) { --reveal-delay: 0.3s; }
.stagger-children > *:nth-child(8) { --reveal-delay: 0.35s; }
.stagger-children > *:nth-child(9) { --reveal-delay: 0.4s; }
.stagger-children > *:nth-child(10) { --reveal-delay: 0.45s; }
.stagger-children > *:nth-child(11) { --reveal-delay: 0.5s; }
.stagger-children > *:nth-child(12) { --reveal-delay: 0.55s; }

/* 减弱动画 - 适配用户偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
