/* ===========================================================
   首屏动效（2026-11-13 v3.9.138）
   ① 首屏 hero 入场：左栏文案/按钮/信任条 + 右栏监护屏
      依次淡入位移（错峰 0.08s 阶梯），强化 rtstudy 独有辨识度
   ② 监护屏关键数值呼吸式脉动：模拟「读数活着」的实时监护质感
   纯 CSS 驱动、失败安全（opacity:0 仅置于 keyframe from，
   元素默认仍可见，CSS 加载即自动播放并停在终态）。
   尊重 prefers-reduced-motion：全部静态。
   不动 gate-monitor.js 核心波形引擎、不动其余样式表。
   =========================================================== */

/* ---- 入场 keyframe（from 才隐藏，终态保持可见） ---- */
@keyframes heroRise{
  from{ opacity:0; transform:translateY(16px); }
  to  { opacity:1; transform:none; }
}

/* 仅在容器带 .hero-anim 时启用；默认不挂动画，内容恒可见 */
.g-hero.hero-anim .g-eyebrow,
.g-hero.hero-anim .gate-h1,
.g-hero.hero-anim .gate-sub,
.g-hero.hero-anim .gate-cta,
.g-hero.hero-anim .g-trust,
.g-hero.hero-anim .g-hero-r{
  animation:heroRise .58s cubic-bezier(.2,.7,.3,1) both;
  will-change:transform,opacity;
}
.g-hero.hero-anim .g-eyebrow{ animation-delay:.04s; }
.g-hero.hero-anim .gate-h1  { animation-delay:.12s; }
.g-hero.hero-anim .gate-sub { animation-delay:.20s; }
.g-hero.hero-anim .gate-cta { animation-delay:.28s; }
.g-hero.hero-anim .g-trust  { animation-delay:.36s; }
.g-hero.hero-anim .g-hero-r { animation-delay:.44s; }

/* ---- 监护屏数值呼吸脉动 ---- */
@keyframes numPulse{
  0%,100%{ opacity:.80; transform:scale(1); }
  50%    { opacity:1;   transform:scale(1.045); }
}
.gm-read i{
  display:inline-block;            /* transform 生效需 inline-block */
  animation:numPulse 5s ease-in-out infinite;
  transform-origin:center bottom;
}
/* 不同读数轻微错峰，避免整齐划一的机械感 */
.gm-read span:nth-child(2) i{ animation-delay:.6s; }
.gm-read span:nth-child(3) i{ animation-delay:1.2s; }
.gm-read span:nth-child(4) i{ animation-delay:1.8s; }

/* ---- 无障碍：降低动效时全部静态 ---- */
@media (prefers-reduced-motion:reduce){
  .g-hero.hero-anim .g-eyebrow,
  .g-hero.hero-anim .gate-h1,
  .g-hero.hero-anim .gate-sub,
  .g-hero.hero-anim .gate-cta,
  .g-hero.hero-anim .g-trust,
  .g-hero.hero-anim .g-hero-r{
    animation:none!important;
    opacity:1!important; transform:none!important;
  }
  .gm-read i{ animation:none!important; opacity:1!important; transform:none!important; }
}
