/* ========================================
   女王AI获客工作室 - 动画与过渡效果
   渐显 / 数字滚动 / 微交互
   ======================================== */

/* === 滚动渐显动画 === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左侧渐显 */
.animate-on-scroll--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右侧渐显 */
.animate-on-scroll--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 缩放渐显 */
.animate-on-scroll--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* === 延迟动画（配合渐显） === */
.animate-delay-1 { transition-delay: 100ms; }
.animate-delay-2 { transition-delay: 200ms; }
.animate-delay-3 { transition-delay: 300ms; }
.animate-delay-4 { transition-delay: 400ms; }

/* === Hero文字动画 === */
.hero__title,
.hero__subtitle {
  animation: fadeInUp 0.8s ease both;
}

.hero__subtitle {
  animation-delay: 0.2s;
}

.hero__actions {
  animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 页面Hero文字动画 === */
.page-hero__title {
  animation: fadeInUp 0.6s ease both;
}

.page-hero__subtitle {
  animation: fadeInUp 0.6s ease 0.15s both;
}

/* === 悬浮按钮脉冲 === */
.float-cta__trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(183, 110, 121, 0.4);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(183, 110, 121, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(183, 110, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 110, 121, 0); }
}

/* === 数字计数动画 === */
.stat-card__number.counting {
  transition: none;
}
