/* R3-1 微交互铺量（无门控层，纯 CSS 渐进增强；spec: docs/R3-动效交互设计规范-20261117.md §5 R3-1）
   - 零 JS、不藏内容（JS-off 最坏=无动效静态页）；旧引擎忽略即降级
   - 用独立属性 scale（非 transform）：与既有 transform（tilt/hover 位移）自然叠加，
     且不受 html.reveal-on .is-in{transform:none!important} 压制影响（C2/C3 级联教训）
   - reduced-motion 全包裹（规范 §1.4）；动画属性白名单=scale/opacity（合成器通道） */
:root{
  --r3-spring-soft: linear(0, 0.029 4.2%, 0.1 8.3%, 0.194 12.5%, 0.296 16.7%, 0.398 20.8%, 0.494 25%, 0.582 29.2%, 0.659 33.3%, 0.726 37.5%, 0.783 41.7%, 0.83 45.8%, 0.868 50%, 0.9 54.2%, 0.925 58.3%, 0.944 62.5%, 0.96 66.7%, 0.971 70.8%, 0.98 75%, 0.987 79.2%, 0.992 83.3%, 0.995 87.5%, 0.998 91.7%, 0.999 95.8%, 1);
  --r3-spring-standard: linear(0, 0.027 3.6%, 0.095 7.1%, 0.19 10.7%, 0.3 14.3%, 0.413 17.9%, 0.525 21.4%, 0.629 25%, 0.722 28.6%, 0.803 32.1%, 0.871 35.7%, 0.926 39.3%, 0.97 42.9%, 1.002 46.4%, 1.026 50%, 1.041 53.6%, 1.05 57.1%, 1.054 60.7%, 1.054 64.3%, 1.051 67.9%, 1.047 71.4%, 1.041 75%, 1.035 78.6%, 1.029 82.1%, 1.023 85.7%, 1.018 89.3%, 1.013 92.9%, 1.009 96.4%, 1);
  --r3-spring-bouncy: linear(0, 0.027 3.1%, 0.1 6.3%, 0.205 9.4%, 0.331 12.5%, 0.468 15.6%, 0.606 18.8%, 0.737 21.9%, 0.856 25%, 0.96 28.1%, 1.045 31.3%, 1.112 34.4%, 1.159 37.5%, 1.189 40.6%, 1.203 43.8%, 1.204 46.9%, 1.194 50%, 1.176 53.1%, 1.152 56.3%, 1.125 59.4%, 1.097 62.5%, 1.069 65.6%, 1.043 68.8%, 1.02 71.9%, 1 75%, 0.984 78.1%, 0.972 81.3%, 0.964 84.4%, 0.959 87.5%, 0.958 90.6%, 0.959 93.8%, 0.962 96.9%, 1);
  --r3-dur-fast: 200ms;
  --r3-dur-base: 480ms;
  --r3-ease: cubic-bezier(.22,1,.36,1);
}

/* ── 按压回弹（:active）────────────────────────────
   按下 90ms 收（快出）；scale 独立属性：与既有 transform/tilt 叠加，
   且不受 html.reveal-on .is-in{transform:none!important} 压制影响。
   纪律：基础态【不】写 transition——transition 简写会整体覆盖站点按钮
   既有过渡（回归风险）；按压态内声明只影响按压期间。
   回弹（bouncy 回程）只发给已核无冲突、用"原值照抄+追加 scale 项"
   组合的 chip/pill 家族（.lf-chip/.lm-pill 原值见 a3107 chunk） */
@media (prefers-reduced-motion: no-preference){
  button:active:not([disabled]):not(.afx-tilt),
  [role="button"]:active:not([disabled]):not(.afx-tilt){
    scale: .968;
    transition: scale 90ms cubic-bezier(.4,0,1,1);
  }
  /* chip/pill：原 transition 逐项保留 + scale 追加 bouncy 回程 */
  .lf-chip{transition:color var(--transition-fast),background var(--transition-fast),border-color var(--transition-fast),scale 300ms var(--r3-spring-bouncy)}
  .lf-chip:active{scale:.955}
  .lm-pill{transition:background .18s ease,color .18s ease,scale 300ms var(--r3-spring-bouncy)}
  .lm-pill:active{scale:.965}
}

/* ── 跨文档 View Transitions（本站主通道）────────
   SSG 整页硬导航生效；Firefox 稳定版无 → 瞬时切换（可接受 PE）；
   reduced-motion 完全关闭（纯 CSS 合规路径） */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto}
  /* root 快照默认 crossfade 收紧到 240ms（仅改时长，不动 root 命名——整页光栅化红线） */
  ::view-transition-old(root),::view-transition-new(root){
    animation-duration: 240ms;
    animation-timing-function: var(--r3-ease);
  }
}

/* ── @starting-style 弹层入场（display 切换类弹层）────
   仅挂 dialog/popover 通用形态（当前站内暂未发现该形态弹层——规则处于待命，
   不盲目套未知 toggle 机制的站点 overlay 类，避免与既有 opacity/visibility
   过渡打架；站点 overlay 类的 @starting-style 改造随 R3-2 逐个核实后挂） */
@media (prefers-reduced-motion: no-preference){
  dialog[open]{
    opacity:1;translate:0 0;
    transition:opacity .24s var(--r3-ease),translate .24s var(--r3-ease);
    transition:opacity .24s var(--r3-ease),translate .24s var(--r3-ease),overlay .24s allow-discrete,display .24s allow-discrete;
  }
  @starting-style{
    dialog[open]{opacity:0;translate:0 10px}
  }
  [popover]:popover-open{
    opacity:1;translate:0 0;
    transition:opacity .2s var(--r3-ease),translate .2s var(--r3-ease);
    transition:opacity .2s var(--r3-ease),translate .2s var(--r3-ease),overlay .2s allow-discrete,display .2s allow-discrete;
  }
  @starting-style{
    [popover]:popover-open{opacity:0;translate:0 8px}
  }
}

/* ══ R3-2 首项：docs article reveal 改造（全站最大单点 + docs LCP 治理）══
   原规则：0dc2e2ac/live a947278f chunk（两代逐字节一致，一份 override 通吃）
   1) clarity sweep：keyframe 同名重声明整体替换（keyframes 不合并、后者胜），
      去 backdrop-filter 动画（每帧重处理 backdrop 的重绘炸弹）；sweep 移动
      本身会迫使 backdrop 重采样，故 ::after 静态 blur 一并去除——1.6px blur
      在近白底上近乎不可见，主视觉=移动纱带（纯合成器：缓存梯度层位移+淡出）
   2) docs-pane-in/docs-layer-in 入场动画族退役：冷载每次硬导航都跑 .68-.72s
      入场（MPA 形态），页间过渡手感已由 R3-1 跨文档 VT crossfade 接管，架构
      上冗余；对齐站点自有 reduced-motion 模板的 animation:none!important 形态
   3) 容器 will-change:opacity,transform 随动画退役一并清除（无动画=纯层税）
   级联推广令（coordinator 2026-11-17）：与 reveal 系统交互的新动效优先用
   独立属性 scale/rotate/translate 而非 transform 简写（绕开 .is-in 压制） */
@keyframes docs-clarity-sweep{
  0%{opacity:.46;transform:translateY(-24%)}
  58%{opacity:.24}
  to{opacity:0;transform:translateY(106%)}
}
.docs-new-ui .doc-article-content:after{backdrop-filter:none;-webkit-backdrop-filter:none}
.docs-new-ui .doc-article-content,
.docs-new-ui .doc-article-content .docs-body>div>:nth-child(-n+6),
.docs-new-ui .doc-article-content .ti-head,
.docs-new-ui .doc-bottom-row,
.docs-new-ui .doc-pager{
  animation:none!important;
}
.docs-new-ui .doc-article-content{will-change:auto}

/* ══ R3-2 第二项：indicator 家族 + fc-float transform 化（R3-0 P0-A 落地）══
   分级处理：
   A) JS 写 transform 变量的（dashboard-menu-indicator/quote-indicator）= 半合成器化：
      transition 保留 transform/opacity、剔除 height/width（该维变化=单帧布局写）
   B) JS 写 left/width 的（c2c-tab-indicator）= 单帧化：transition:none（布局一次写、
      即时定位）；真合成器需 JS 改写 transform——JS 配合项登记部署线
   C) fc-float 贴纸（拍板方案）：top→translate 语义等价（translate 百分比=自身高，
      与原 top calc 同基准）+ will-change 改 :hover/:active 态作用域挂载
      （CSS 版"动画前挂动画后删"）+ top 过渡连带 drop-shadow 逐帧重绘一并消除
   D) 登记降级（低频交互/需 JS/父级相对位移）：btn-primary .knob（hover 目标父级
      相对，translate 自身百分比无法表达）、brand-name/nav-pill/toc/integ-item/
      item-desc/video_dock（菜单开合类）、dashboard-cost-donut:after（inset 状态
      单帧化处理见下）、rkv-share .fl（归 R3-4 排行榜批） */
.c2c-tab-indicator{transition:none;will-change:auto}
.dashboard-menu-indicator{transition:transform .26s cubic-bezier(.22,1,.36,1),opacity .16s ease;will-change:transform}
.dashboard-cost-donut:after{transition:none}
.enterprise-quote-table_indicator__CJ0_T{transition:transform .24s cubic-bezier(.22,1,.36,1),opacity .16s cubic-bezier(.22,1,.36,1)}
/* fc-float：translate 等价（base/hover/active 三态；含 scoped+generic 双形式，取高特定性） */
.site-foot--app .fc-float .stk-flap,.fc-float .stk-flap{
  top:0;
  translate:0 calc(-100% - var(--stk-p) - var(--stk-p));
  transition:clip-path .45s ease-out,translate .45s ease-out;
}
.site-foot--app .fc-float:hover .stk-flap,.fc-float:hover .stk-flap{
  top:0;
  translate:0 calc(-100% + 2 * var(--stk-peel) - 1px);
}
.site-foot--app .fc-float:active .stk-flap,.fc-float:active .stk-flap{
  top:0;
  translate:0 calc(-100% + 2 * var(--stk-peel-active) - 1px);
}
.site-foot--app .fc-float .stk-flap,.fc-float .stk-flap,
.site-foot--app .fc-float .stk-main,.fc-float .stk-main{will-change:auto}
.site-foot--app .fc-float:hover .stk-flap,.fc-float:hover .stk-flap,
.site-foot--app .fc-float:active .stk-flap,.fc-float:active .stk-flap,
.site-foot--app .fc-float:hover .stk-main,.fc-float:hover .stk-main,
.site-foot--app .fc-float:active .stk-main,.fc-float:active .stk-main{will-change:clip-path}

/* ══ R3-2 第三项：动画 filter/bgp/box-shadow/conic 族（R3-0 P0-B 余量）══
   审计违例 8 组的落地甄别（审计计数=声明存在，落地前逐组核实实际状态）：
   ①home-api-manual filter×9=keyframe 真 blur(4px→0)（0.18s 一次性）→keyframe
     重声明去 filter；②enterprise-shine/hero .grad bgp×6=background-clip:text
   的逐帧字形重绘（无法 transform 化）→定格中位静态化——业主可见设计变化，
   回退=摘除对应两行，游走质感保留方案（canvas/JS）需预算与业主确认；③
   live-badge livePulse=keyframe 全 none 无操作动画→零操作登记；④eyebrow-dot
   真脉冲→伪元素 opacity/scale 等价（合成器）；⑤launch-ring conic=一次性 1s
   →白名单例外登记（rdg 同口径）；⑥rdg clip/stroke×7=一次性 0.32s 入场→
   白名单例外登记；⑦video_chipSk shimmer=上游已无条件 kill→零操作登记 */
@keyframes home-api-manual-value-in{
  0%{opacity:0;transform:translateY(2px)}
  to{opacity:1;transform:translateY(0)}
}
.enterprise-shine{animation:none;background-position:50% 0}
.hero .grad{animation:none;background-position:50% 50%,0 0}
.home-hero-eyebrow-dot{animation:none;position:relative}
.home-hero-eyebrow-dot::after{
  content:"";position:absolute;inset:0;border-radius:999px;
  box-shadow:0 0 0 6px rgba(61,90,254,.35);opacity:0;
}
@media (prefers-reduced-motion: no-preference){
  .home-hero-eyebrow-dot::after{animation:r3-pulse-ring 2.4s ease-out infinite}
}
@keyframes r3-pulse-ring{
  0%{opacity:.7;scale:.2}
  70%{opacity:0;scale:2}
  to{opacity:0;scale:2}
}
