> ruixin-website-react@1.0.0-phase1 check:motion > tsx scripts/utils/check-motion-constraints.ts 🎬 动效契约检查(时长档位 + 缓动曲线) 契约:入场 180–280ms · 反馈 100ms · 上限 700ms · ease-ink [0.22, 1, 0.36, 1] 出处:CONTEXT.md:76 / :77 / :82(N-29:此前无任何脚本约束) 令牌层允许曲线:[0.000, 0.000, 0.200, 1.000] [0.220, 1.000, 0.360, 1.000] [0.400, 0.000, 0.200, 1.000] [0.400, 0.000, 1.000, 1.000] [0.650, 0.000, 0.350, 1.000] ❌ [easing-palette] src/app/(marketing)/news/[slug]/NewsDetailClient.tsx:14 const EASE = [0.25, 1, 0.5, 1] 曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/app/(marketing)/template.tsx:16 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/app/(marketing)/template.tsx:24 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [entrance-cap] src/app/globals.css:268 1000ms --transition-gentle = 1000ms 超过 700ms 入场硬上限 ❌ [css-transition-token] src/app/globals.css:1457 0.6s transition 写了裸时长字面量,应改用 var(--transition-*) ❌ [easing-palette] src/components/sections/challenge-section.tsx:43 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/cta-section.tsx:44 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/hero-section-v2.tsx:13 const EASE = [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/methodology-section.tsx:22 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/product-matrix-section.tsx:20 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/social-proof-section.tsx:43 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/social-proof-section.tsx:59 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/social-proof-section.tsx:70 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/social-proof-section.tsx:98 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/why-us-section.tsx:62 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/why-us-section.tsx:86 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/why-us-section.tsx:137 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/sections/why-us-section.tsx:154 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/ui/brand-visuals.tsx:66 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/ui/brand-visuals.tsx:95 ease: [0.16, 1, 0.3, 1] 曲线 [0.160, 1.000, 0.300, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/ui/page-transition.tsx:20 ease: [0.25, 1, 0.5, 1] 曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [easing-palette] src/components/ui/page-transition.tsx:76 ease: [0.25, 1, 0.5, 1] 曲线 [0.250, 1.000, 0.500, 1.000] 不在令牌层 --ease-* 允许集合内(默认应为 ease-ink [0.220, 1.000, 0.360, 1.000]) ❌ [css-transition-token] src/lib/constants/design-system.ts:76 0.3s 内联 transition 串写了裸时长字面量,CSS 变量在 style 串里同样可用:var(--transition-*) 📊 检查摘要 扫描源码文件: 264(.ts/.tsx,已排除测试与 _archive) 扫描令牌/配置: CSS 1 · config 1 判定分母: CSS 声明 46 · 时长字面量 290 · 贝塞尔字面量 66 · --transition-* 令牌 6 · --ease-* 令牌 6 违规处数: 23 📋 分规则计数 token-band: 0 —— R1 令牌时长带:instant==100ms、fast/normal ∈ 180–280ms(CONTEXT.md:76) entrance-cap: 1 —— R2 时长硬上限:任何动效时长不得超过 700ms(infinite 循环动画除外)(CONTEXT.md:82) css-transition-token: 2 —— R3 令牌间接层:transition 声明的时长必须走 var(--transition-*)(CONTEXT.md:76(令牌层是时长的唯一事实来源)) easing-palette: 20 —— R4 缓动曲线:写死的 cubic-bezier 必须等于 --ease-* 令牌集,且 --ease-ink 必须是 [0.22,1,0.36,1](CONTEXT.md:77) 修复方向示例(easing-palette):改用 var(--ease-*) / ease-* 类,或把曲线值改回令牌层已声明的那条 ❌ 存在动效契约违反!