/* ============================================================
   YZF · 远舟交互与视觉技能库 2.0（2026-11-04）
   12 项能力：三维倾斜 / 聚光灯 / 磁吸按钮 / 光标拖尾
              毛玻璃 / 便当盒 / 极光背景 / 新拟态
              流光边框 / 乱码解码 / 卡片翻转 / 点击涟漪
   纯原生 CSS，无依赖；与 yz-motion.css（YZM 六件套）并存不冲突。
   主题：html[data-fx-theme="light|dark"] 由 yz-fx.js 自动判定。
   原则：全站默认「克制版」；极光 / 新拟态 / 乱码解码默认只在
        动效实验室开启，避免破坏已定版的潮牌扁平视觉。
   ============================================================ */
:root{
  --fx-accent:#c15a24;
  --fx-accent-2:#e08a4a;
  --fx-gold:#f5c518;
  --fx-ease:cubic-bezier(.22,1,.36,1);
  --fx-glass-bg:rgba(255,255,255,.55);
  --fx-glass-line:rgba(22,21,19,.10);
  --fx-glass-shadow:0 8px 30px rgba(22,21,19,.10);
  --fx-spot:rgba(193,90,36,.16);
  --fx-spot-blend:multiply;
  --fx-neu-bg:#eceae4;
  --fx-neu-hi:rgba(255,255,255,.92);
  --fx-neu-lo:rgba(22,21,19,.13);
  --fx-ripple:rgba(193,90,36,.30);
  --fx-ink:#161513;
}
html[data-fx-theme="dark"]{
  --fx-accent:#e08a4a;
  --fx-glass-bg:rgba(24,22,20,.58);
  --fx-glass-line:rgba(255,255,255,.13);
  --fx-glass-shadow:0 10px 34px rgba(0,0,0,.42);
  --fx-spot:rgba(224,138,74,.20);
  --fx-spot-blend:screen;
  --fx-neu-bg:#221f1c;
  --fx-neu-hi:rgba(255,255,255,.09);
  --fx-neu-lo:rgba(0,0,0,.55);
  --fx-ripple:rgba(224,138,74,.32);
  --fx-ink:#efe9de;
}

/* ---------- 01 三维倾斜（rotateX / rotateY 随光标，回正 ease-out） ----------
   .fx-tilting 用 important 卸掉页面自带的 reveal 入场动画（动画已播放完毕，
   卸掉后仍保持 opacity:1），否则 animation-fill-mode:forwards 会一直压住 transform。 */
.fx-tilting{
  animation:none !important;
  opacity:1 !important;
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform .5s var(--fx-ease),box-shadow .4s ease,border-color .4s ease;
}
.fx-tilting.fx-live{transition:transform .07s linear,box-shadow .3s ease,border-color .3s ease}

/* ---------- 02 聚光灯（radial-gradient 跟随鼠标，半径 200px，移开淡出） ---------- */
.fx-spot-host{position:relative}
.fx-spot-layer{
  position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
  opacity:0;mix-blend-mode:var(--fx-spot-blend,screen);
  background:radial-gradient(var(--fx-sr,200px) circle at var(--fx-sx,50%) var(--fx-sy,50%),
             var(--fx-spot) 0%,transparent 72%);
  transition:opacity .45s ease;
}
.fx-spot-on > .fx-spot-layer{opacity:1}

/* ---------- 03 磁吸按钮（靠近自动吸附，transform 随光标微调） ---------- */
.fx-magnet{
  transition:transform .22s var(--fx-ease),box-shadow .3s ease,background .3s ease,border-color .3s ease;
  will-change:transform;
}
.fx-magnet.fx-pulled{box-shadow:0 14px 34px rgba(193,90,36,.30)}

/* ---------- 04 光标拖尾（渐变光尾，trail 元素跟随 cursor） ---------- */
.fx-trail{
  position:fixed;left:0;top:0;border-radius:50%;pointer-events:none;z-index:9998;
  transform:translate(-50%,-50%);mix-blend-mode:screen;will-change:transform,opacity;
}

/* ---------- 05 毛玻璃（blur(10px) + 半透明白 overlay） ---------- */
.fx-glass{
  background:var(--fx-glass-bg) !important;
  -webkit-backdrop-filter:blur(10px) saturate(1.25);
  backdrop-filter:blur(10px) saturate(1.25);
  border:1px solid var(--fx-glass-line);
  box-shadow:var(--fx-glass-shadow);
}

/* ---------- 06 便当盒布局 ----------
   -eq：只补齐「等宽等高 / gap 均匀」，不改已有列数，安全套在旧网格上 */
.fx-bento-eq{grid-auto-rows:1fr;align-items:stretch}
.fx-bento-eq > *{min-width:0}
.fx-bento{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  grid-auto-rows:1fr;gap:16px;align-items:stretch;
}
.fx-bento > *{min-width:0}
@media(max-width:560px){.fx-bento{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}}

/* ---------- 07 极光背景（多色 radial-gradient 交织，缓慢流动） ---------- */
.fx-aurora{position:relative;overflow:hidden;isolation:isolate}
.fx-aurora-layer{
  position:absolute;inset:-25%;z-index:-1;pointer-events:none;opacity:.55;
  background:
    radial-gradient(38% 46% at 18% 26%,rgba(193,90,36,.42),transparent 70%),
    radial-gradient(34% 42% at 76% 20%,rgba(140,47,27,.36),transparent 72%),
    radial-gradient(42% 48% at 62% 78%,rgba(245,197,24,.22),transparent 70%),
    radial-gradient(36% 40% at 24% 82%,rgba(125,122,117,.28),transparent 72%);
  background-size:180% 180%,200% 200%,170% 170%,190% 190%;
  animation:fxAurora 22s ease-in-out infinite alternate;
  filter:blur(28px);
}
@keyframes fxAurora{
  0%{background-position:0% 0%,100% 10%,20% 100%,80% 80%;transform:scale(1)}
  50%{background-position:35% 40%,60% 55%,75% 35%,25% 25%;transform:scale(1.08)}
  100%{background-position:100% 100%,0% 80%,100% 0%,0% 20%;transform:scale(1)}
}

/* ---------- 08 新拟态（柔和阴影 + 微凸起，大圆角，浅色底） ---------- */
.fx-neu{
  background:var(--fx-neu-bg) !important;
  border:1px solid transparent;
  border-radius:26px;
  box-shadow:10px 10px 24px var(--fx-neu-lo),-10px -10px 24px var(--fx-neu-hi);
  transition:box-shadow .3s ease,transform .3s var(--fx-ease);
}
.fx-neu:hover{box-shadow:14px 14px 30px var(--fx-neu-lo),-14px -14px 30px var(--fx-neu-hi)}
.fx-neu:active{box-shadow:inset 6px 6px 14px var(--fx-neu-lo),inset -6px -6px 14px var(--fx-neu-hi)}

/* ---------- 09 流光边框（linear-gradient + background-size 控制流动） ---------- */
.fx-flow-host{position:relative}
.fx-flow-layer{
  position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;
  padding:1.5px;opacity:0;transition:opacity .35s ease;
  background:linear-gradient(115deg,transparent 18%,var(--fx-accent) 42%,
             var(--fx-gold) 50%,var(--fx-accent-2) 58%,transparent 82%);
  background-size:300% 300%;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  animation:fxFlow 3.2s linear infinite;
}
.fx-flow-host:hover > .fx-flow-layer,.fx-flow-on > .fx-flow-layer{opacity:.9}
@keyframes fxFlow{0%{background-position:0% 50%}100%{background-position:300% 50%}}

/* ---------- 10 乱码解码（文字逐位还原，字符替换动画） ---------- */
.fx-decode{font-variant-numeric:tabular-nums;white-space:pre-wrap}
.fx-decode.fx-decoding{color:var(--fx-accent)}

/* ---------- 11 卡片翻转（绕 Y 轴 180 度展示背面） ---------- */
.fx-flip{perspective:1000px;cursor:pointer;position:relative}
.fx-flip-in{
  position:relative;width:100%;height:100%;transform-style:preserve-3d;
  transition:transform .7s var(--fx-ease);
}
.fx-flip.fx-flipped .fx-flip-in{transform:rotateY(180deg)}
.fx-flip-face,.fx-flip-back{
  position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  border-radius:inherit;overflow:hidden;
}
.fx-flip-back{transform:rotateY(180deg)}

/* ---------- 12 点击涟漪（点击位置水波纹扩散，pointer-events:none） ---------- */
.fx-ripple-host{position:relative}
.fx-ripple{
  position:absolute;border-radius:50%;pointer-events:none;z-index:6;
  background:radial-gradient(circle,var(--fx-ripple) 0%,transparent 70%);
  transform:translate(-50%,-50%) scale(0);opacity:.9;
  animation:fxRipple .62s var(--fx-ease) forwards;
}
@keyframes fxRipple{
  0%{transform:translate(-50%,-50%) scale(0);opacity:.9}
  100%{transform:translate(-50%,-50%) scale(1);opacity:0}
}

/* ============================================================
   YZF 3.0 · 十二项文字与视觉冲击（2026-11-05，编号 13–24）
   业务页默认只开 15 色彩流动 / 20 荧光笔 / 21 手绘下划线；
   其余 9 项由 yz-fx.js 的 fx3All 开关控制，只在动效实验室全开。
   ============================================================ */
:root{--fx-hl:rgba(193,90,36,.30)}
html[data-fx-theme="dark"]{--fx-hl:rgba(224,138,74,.38)}

/* 13 霓虹灯：多层 text-shadow 发光，随机闪两下后常亮 */
.fx-neon{color:#fff;transition:text-shadow .28s ease,opacity .1s ease}
.fx-neon.fx-neon-flick{opacity:.34;text-shadow:none}
.fx-neon.fx-neon-on{
  text-shadow:0 0 4px rgba(255,255,255,.95),0 0 12px var(--fx-accent-2),
              0 0 28px var(--fx-accent),0 0 56px rgba(193,90,36,.62),
              0 0 92px rgba(245,197,24,.26);
  animation:fxNeonBreath 3.6s ease-in-out infinite;
}
@keyframes fxNeonBreath{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.16)}
}

/* 14 故障文字：红蓝残影叠加 + 随机水平切片错位（独立 span，不占伪元素） */
.fx-glitch{position:relative;display:inline-block}
.fx-glitch-layer{
  position:absolute;left:0;top:0;pointer-events:none;opacity:0;white-space:pre;
  overflow:hidden;mix-blend-mode:screen;
}
.fx-glitch-red{color:#ff3b4e;transform:translateX(var(--fx-gx,3px));
  clip-path:inset(var(--fx-gt1,12%) 0 var(--fx-gb1,70%) 0)}
.fx-glitch-blue{color:#26b6ff;transform:translateX(calc(-1 * var(--fx-gx,3px)));
  clip-path:inset(var(--fx-gt2,58%) 0 var(--fx-gb2,14%) 0)}
.fx-glitch.fx-glitch-on{animation:fxGlitchShake .3s steps(2,end) both}
.fx-glitch.fx-glitch-on .fx-glitch-layer{opacity:.88;animation:fxGlitchSlice .3s steps(3,end) both}
@keyframes fxGlitchShake{
  0%{transform:translate(0,0)}25%{transform:translate(-2px,1px)}
  50%{transform:translate(3px,-1px)}75%{transform:translate(-1px,0)}100%{transform:translate(0,0)}
}
@keyframes fxGlitchSlice{
  0%{clip-path:inset(8% 0 74% 0)}33%{clip-path:inset(46% 0 38% 0)}
  66%{clip-path:inset(72% 0 12% 0)}100%{clip-path:inset(20% 0 62% 0)}
}

/* 15 色彩流动：多色渐变 background-position 循环移动 */
.fx-colorflow{
  background-image:linear-gradient(90deg,var(--fx-accent),var(--fx-gold),var(--fx-accent-2),var(--fx-accent));
  background-size:300% 100%;background-position:0% 50%;
  animation:fxColorFlow 8s linear infinite;
}
.fx-colorflow-text{
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
@keyframes fxColorFlow{0%{background-position:0% 50%}100%{background-position:300% 50%}}

/* 16 逐字弹跳：从 translateY(-60px) 落下，easeOutBounce 多段，间隔 60ms */
.fx-bounce-ch,.fx-wordfade-ch,.fx-weightwave-ch{display:inline-block;white-space:pre}
.fx-bounce-ch{opacity:0;transform:translateY(-60px)}
.fx-bounce.fx-play .fx-bounce-ch{animation:fxBounce .82s ease-out both;animation-delay:var(--fx-d,0ms)}
@keyframes fxBounce{
  0%{opacity:0;transform:translateY(-60px)}2%{opacity:1}
  58%{transform:translateY(0)}70%{transform:translateY(-13px)}
  82%{transform:translateY(0)}91%{transform:translateY(-5px)}100%{opacity:1;transform:translateY(0)}
}

/* 17 逐词浮现：blur(8px)+opacity0 → 清晰，间隔 120ms */
.fx-wordfade-ch{opacity:0;filter:blur(8px);transform:translateY(6px)}
.fx-wordfade.fx-play .fx-wordfade-ch{animation:fxWordFade .7s var(--fx-ease) both;animation-delay:var(--fx-d,0ms)}
@keyframes fxWordFade{to{opacity:1;filter:blur(0);transform:none}}

/* 18 分屏滑入：上下半 clip-path 裁切后从左右合拢 */
.fx-split{position:relative;display:inline-block}
.fx-split-half{display:block;white-space:pre}
.fx-split-top{clip-path:inset(0 0 50% 0)}
.fx-split-bottom{position:absolute;left:0;top:0;clip-path:inset(50% 0 0 0)}
.fx-split.fx-play .fx-split-top{animation:fxSplitL .9s var(--fx-ease) both}
.fx-split.fx-play .fx-split-bottom{animation:fxSplitR .9s var(--fx-ease) both}
@keyframes fxSplitL{from{transform:translateX(-60px);opacity:.15}to{transform:none;opacity:1}}
@keyframes fxSplitR{from{transform:translateX(60px);opacity:.15}to{transform:none;opacity:1}}

/* 19 路径文字：SVG textPath，startOffset 由 JS 滑动 */
.fx-textpath{display:block;width:100%}
.fx-textpath svg{display:block;width:100%;height:auto;overflow:visible}
.fx-textpath text{font:700 26px var(--m-display,"Space Grotesk",sans-serif);
  fill:var(--fx-accent-2);letter-spacing:.06em}
.fx-textpath path{fill:none;stroke:transparent}

/* 20 荧光笔：linear-gradient 色块 background-size 0% → 100% */
.fx-mark{
  background-image:linear-gradient(transparent 52%,var(--fx-hl) 52%);
  background-repeat:no-repeat;background-size:0% 100%;background-position:0 0;
}
.fx-mark.fx-mark-on{animation:fxHighlight .8s ease-out forwards}
@keyframes fxHighlight{to{background-size:100% 100%}}

/* 21 手绘下划线：SVG 曲线 stroke-dashoffset 全长 → 0 */
.fx-handline{position:relative;display:inline-block}
.fx-handline-svg{position:absolute;left:0;bottom:-.18em;width:100%;height:.6em;overflow:visible;pointer-events:none}
.fx-handline-svg path{fill:none;stroke:var(--fx-accent);stroke-width:3;stroke-linecap:round}

/* 22 描边填充：先只显示描边，填充色 clip-path 从下往上灌满 */
.fx-strokefill{position:relative;display:inline-block}
.fx-strokefill-base{-webkit-text-stroke:1.5px var(--fx-accent);color:transparent}
.fx-strokefill-fill{position:absolute;left:0;top:0;white-space:pre;color:var(--fx-accent-2);
  clip-path:inset(100% 0 0 0)}
.fx-strokefill.fx-play .fx-strokefill-fill{animation:fxFillUp 1.1s var(--fx-ease) forwards}
@keyframes fxFillUp{to{clip-path:inset(0 0 0 0)}}

/* 23 词语轮换：旧词上滑出、新词下滑入 */
.fx-rotate{display:inline-block;position:relative;overflow:hidden;vertical-align:bottom}
.fx-rotate-word{display:block;white-space:nowrap}
.fx-rotate.fx-rotate-out .fx-rotate-word{animation:fxWordOut .34s ease-in both}
.fx-rotate-word.fx-rotate-in{animation:fxWordIn .34s var(--fx-ease) both}
@keyframes fxWordOut{to{transform:translateY(-110%);opacity:0}}
@keyframes fxWordIn{from{transform:translateY(110%);opacity:0}to{transform:none;opacity:1}}

/* 24 可变字重：wght 200→900→200，按字依次延迟 */
.fx-weightwave-ch{font-weight:400;font-variation-settings:"wght" 400}
.fx-weightwave.fx-play .fx-weightwave-ch{animation:fxWeight 2.4s ease-in-out infinite;animation-delay:var(--fx-d,0ms)}
@keyframes fxWeight{
  0%,100%{font-weight:200;font-variation-settings:"wght" 200}
  50%{font-weight:900;font-variation-settings:"wght" 900}
}

/* ---------- 实验室专用陈列 ---------- */
.yzf-lab-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}
.yzf-demo{
  position:relative;min-height:160px;border-radius:18px;padding:24px;
  display:flex;flex-direction:column;justify-content:center;gap:8px;
  background:linear-gradient(160deg,rgba(193,90,36,.10),rgba(255,255,255,.03));
  border:1px solid rgba(193,90,36,.28);
}
.yzf-demo .k{font:600 11px/1 var(--m-display,"Space Grotesk",sans-serif);letter-spacing:.24em;color:var(--fx-accent-2);text-transform:uppercase}
.yzf-demo .t{font:600 20px/1.3 var(--m-sans,"Outfit",sans-serif);color:var(--fx-ink)}
.yzf-demo .x{font:400 13px/1.6 var(--m-sans,"Outfit",sans-serif);opacity:.65}
.yzf-demo .btnx{
  align-self:flex-start;margin-top:8px;padding:10px 22px;border-radius:999px;
  background:linear-gradient(145deg,var(--fx-accent-2),var(--fx-accent));
  color:#fff;border:0;cursor:pointer;font:600 13px/1 var(--m-sans,"Outfit",sans-serif);
}
.yzf-lab-note{font:400 12.5px/1.7 var(--m-sans,"Outfit",sans-serif);opacity:.5;margin-top:14px}

/* 降级：尊重系统「减少动态效果」，触屏设备关闭鼠标类效果 */
@media (prefers-reduced-motion: reduce){
  .fx-spot-layer,.fx-flow-layer,.fx-aurora-layer,.fx-ripple,.fx-trail{display:none !important}
  .fx-tilting,.fx-magnet,.fx-flip-in,.fx-neu{transition:none !important;animation:none !important}
  .fx-neon.fx-neon-on,.fx-colorflow,.fx-weightwave-ch{animation:none !important}
  .fx-glitch-layer{display:none !important}
  .fx-bounce-ch,.fx-wordfade-ch,.fx-split-half,.fx-strokefill-fill,.fx-rotate-word{
    animation:none !important;opacity:1 !important;transform:none !important;
    filter:none !important;clip-path:none !important;
  }
  .fx-mark{background-size:100% 100% !important;animation:none !important}
}

/* ---------- 实验室 · YZF 3.0 陈列辅助 ---------- */
.yzf-demo.fx3-dark{background:linear-gradient(160deg,#171310,#241a14);border-color:rgba(224,138,74,.34)}
.yzf-demo.fx3-dark .x{color:#d8cec1}
.fx3-big{font:700 clamp(22px,3vw,30px)/1.25 var(--m-display,"Space Grotesk",sans-serif);color:var(--fx-ink)}
.fx3-bar{height:8px;border-radius:999px;opacity:.9}
.fx3-note{font:400 12px/1.6 var(--m-sans,"Outfit",sans-serif);opacity:.55}
.yzf-lab-grid .yzf-demo .fx3-replay{
  align-self:flex-start;margin-top:10px;padding:7px 16px;border-radius:999px;
  background:transparent;border:1px solid rgba(224,138,74,.5);color:var(--fx-accent-2);
  cursor:pointer;font:600 12px/1 var(--m-sans,"Outfit",sans-serif);
}
@media(max-width:560px){
  .yzf-lab-grid{grid-template-columns:1fr}
  .fx-textpath text{font-size:20px}
}

/* ============================================================
   YZF 4.0 · 角色导览 8 项（25–32）+ 滚动入场 12 项（33–44）
   ============================================================ */

/* 25 角色导览 */
.fx-guide-host{position:relative}
.fx-guide-actor{
  position:absolute;left:0;top:0;width:16px;height:20px;margin:-10px 0 0 -8px;
  z-index:6;pointer-events:none;border-radius:3px 3px 2px 2px;
  background:var(--fx-accent-2);box-shadow:0 0 0 2px rgba(0,0,0,.22),0 6px 14px rgba(0,0,0,.3);
  image-rendering:pixelated;
}
.fx-guide-actor i{position:absolute;top:5px;width:3px;height:3px;background:#1A1A1A}
.fx-guide-actor i:first-child{left:3px}
.fx-guide-actor i:last-child{right:3px}
.fx4-guide-row{display:flex;gap:10px;margin-top:16px;min-height:64px;align-items:flex-end}
.fx-guide-card{
  flex:1;height:48px;border-radius:10px;text-align:center;
  background:rgba(224,138,74,.13);border:1px solid rgba(224,138,74,.34);
  font:600 12px/48px var(--m-sans,"Outfit",sans-serif);color:var(--fx-ink);
  transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease;
}
.fx-guide-card.fx-guide-active{border-color:var(--fx-accent-2)!important;
  box-shadow:0 0 0 2px rgba(224,138,74,.35);transform:translateY(-3px)}

/* 26 像素逐帧（真 sprite + steps） */
.fx-sprite{
  width:48px;height:24px;background-repeat:no-repeat;background-size:200% 100%;
  background-position:0 0;image-rendering:pixelated;
  animation:fxSpriteWalk var(--fx-sprite-dur,.34s) steps(2,end) infinite;
}
@keyframes fxSpriteWalk{from{background-position:0 0}to{background-position:200% 0}}

/* 27 焦点高亮 */
.fx-focus-host{display:flex;gap:10px;margin-top:12px}
.fx-focus-item{flex:1;transition:transform .3s ease,opacity .3s ease,box-shadow .3s ease,border-color .3s ease}
.fx-focus-item.fx-focus-dim{opacity:.4}
.fx-focus-item.fx-focus-on{opacity:1;transform:scale(1.04);
  box-shadow:0 0 0 2px var(--fx-accent-2);border-color:var(--fx-accent-2)!important}

/* 28 全景聚焦 */
.fx-pan-host{position:relative;overflow:hidden;isolation:isolate;margin-top:12px;display:flex;gap:10px}
.fx-pan-item{flex:1;height:52px;border-radius:10px;background:rgba(224,138,74,.14);
  border:1px solid rgba(224,138,74,.32);display:flex;align-items:center;justify-content:center;
  font:600 12px/1 var(--m-sans);color:var(--fx-ink)}
.fx-pan-hole{position:absolute;z-index:5;pointer-events:none;border-radius:10px;
  box-shadow:0 0 0 9999px rgba(12,10,8,.62);
  transition:left .5s ease,top .5s ease,width .5s ease,height .5s ease}

/* 29 卡片微动效 */
.fx-micro-spin{animation:fxMicroSpin 2s ease-in-out infinite}
.fx-micro-pulse{animation:fxMicroPulse 2s ease-in-out infinite}
.fx-micro-bob{animation:fxMicroBob 2s ease-in-out infinite}
@keyframes fxMicroSpin{0%,100%{transform:rotate(0)}50%{transform:rotate(180deg)}}
@keyframes fxMicroPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes fxMicroBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* 30 / 31 曲线 */
.fx-curve-svg{display:block;width:100%;height:76px;overflow:visible}
.fx-dash-path{fill:none;stroke:var(--fx-accent-2);stroke-width:2.5;stroke-linecap:round;
  stroke-dasharray:10 8;animation:fxDashFlow 1.6s linear infinite}
@keyframes fxDashFlow{from{stroke-dashoffset:var(--fx-dash-len,300)}to{stroke-dashoffset:0}}
.fx-draw-path{fill:none;stroke:var(--fx-accent-2);stroke-width:3;stroke-linecap:round}
.fx-curvedraw.fx-play .fx-draw-path{animation:fxDraw 1.8s cubic-bezier(.22,1,.36,1) forwards}
@keyframes fxDraw{to{stroke-dashoffset:0}}
.fx-draw-dot{fill:var(--fx-accent);stroke:#fff;stroke-width:1.5}

/* 32 条形增长 */
.fx-bargrow{display:flex;align-items:flex-end;gap:12px;height:90px;margin-top:12px}
.fx-bar{flex:1;height:var(--fx-h,60%);border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg,var(--fx-accent-2),var(--fx-accent));
  transform-origin:bottom;transform:scaleY(0)}
.fx-bargrow.fx-play .fx-bar{animation:fxBarGrow .7s cubic-bezier(.22,1,.36,1) both}
@keyframes fxBarGrow{to{transform:scaleY(1)}}

/* 33 滑入 */
.fx-slide{opacity:0;transform:translateX(-60px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1)}
.fx-slide[data-fx-dir="right"]{transform:translateX(60px)}
.fx-slide.fx-in{opacity:1;transform:none}

/* 34 视差滚动 */
.fx-parallax{overflow:hidden}
.fx-parallax-layer{will-change:transform}
.fx4-demo.fx-parallax .fx-parallax-layer{animation:fxParallaxDemo 4s ease-in-out infinite}
@keyframes fxParallaxDemo{0%,100%{transform:translateY(-14px)}50%{transform:translateY(14px)}}

/* 35 固定擦除 */
.fx-wipe{position:relative;height:88px;overflow:hidden;border-radius:10px;background:rgba(224,138,74,.12)}
.fx-wipe-base,.fx-wipe-cover{position:absolute;inset:0;display:flex;align-items:center;
  justify-content:center;font-weight:700}
.fx-wipe-base{color:var(--fx-ink)}
.fx-wipe-cover{background:linear-gradient(120deg,#241a14,#3a2418);color:#d8cec1;
  clip-path:inset(0 0 0 var(--fx-wipe,0%))}

/* 36 文字上翻 */
.fx-flipup{perspective:600px}
.fx-flipup-ch{display:inline-block;white-space:pre;transform-origin:50% 100%;
  transform:rotateX(-90deg) translateY(20px);opacity:0}
.fx-flipup.fx-play .fx-flipup-ch{animation:fxFlipUp .7s cubic-bezier(.22,1,.36,1) both;
  animation-delay:var(--fx-d,0ms)}
@keyframes fxFlipUp{to{transform:none;opacity:1}}

/* 37 序列帧 */
.fx-seq{perspective:800px}
.fx-seq-card{transform-style:preserve-3d;transition:transform .12s linear}
.fx-seq-badge{font:600 13px/1 var(--m-display,"Space Grotesk",sans-serif);
  letter-spacing:.14em;color:var(--fx-accent-2)}

/* 38 卡片堆叠 */
.fx-stack{position:relative;height:112px;margin-top:10px}
.fx-stack-item{position:absolute;left:0;top:calc(var(--fx-i,0) * 12px);width:100%;height:60px;
  border-radius:12px;padding:0 16px;display:flex;align-items:center;
  background:linear-gradient(140deg,rgba(224,138,74,.22),rgba(193,90,36,.10));
  border:1px solid rgba(224,138,74,.34);color:var(--fx-ink);font-weight:600;
  opacity:0;transform:translateY(70px) rotate(-6deg)}
.fx-stack.fx-play .fx-stack-item{animation:fxStackIn .6s cubic-bezier(.22,1,.36,1) both}
@keyframes fxStackIn{to{opacity:1;transform:none}}

/* 39 模糊淡入 */
.fx-blurin{filter:blur(12px);opacity:0;transform:translateY(12px);
  transition:filter .9s ease,opacity .9s ease,transform .9s cubic-bezier(.22,1,.36,1)}
.fx-blurin.fx-in{filter:none;opacity:1;transform:none}

/* 40 文字填充 */
.fx-textfill{background-image:linear-gradient(90deg,var(--fx-accent-2),var(--fx-accent));
  background-repeat:no-repeat;background-size:0% 100%;background-position:0 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent}
.fx-textfill.fx-in{animation:fxTextFill 1.1s cubic-bezier(.22,1,.36,1) forwards}
@keyframes fxTextFill{to{background-size:100% 100%}}

/* 41 横向滚动 */
.fx-hscroll{overflow:hidden}
.fx-hscroll-track{display:flex;gap:12px;width:max-content;will-change:transform}
.fx-hscroll-cell{flex:0 0 auto;width:118px;height:56px;border-radius:10px;
  background:rgba(224,138,74,.14);border:1px solid rgba(224,138,74,.3);
  display:flex;align-items:center;justify-content:center;font-weight:600;color:var(--fx-ink)}

/* 42 数字滚动 */
.fx-countup{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}

/* 43 跑马灯 */
.fx-marquee-on{display:flex;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.fx-marquee-track{display:flex;width:max-content;
  animation:fxMarquee var(--fx-marquee-dur,14s) linear infinite}
.fx-marquee-on:hover .fx-marquee-track{animation-play-state:paused}
.fx-marquee-inner{display:flex;flex:0 0 auto;gap:28px;padding-right:28px;white-space:nowrap}
@keyframes fxMarquee{to{transform:translateX(-50%)}}

/* 44 滚动监听 */
.fx-spy-bar{height:4px;width:0;border-radius:999px;
  background:linear-gradient(90deg,var(--fx-accent),var(--fx-accent-2));transition:width .08s linear}

/* ---------- 实验室 · YZF 4.0 陈列辅助 ---------- */
.fx4-row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.fx4-mini{flex:1;min-width:56px;height:44px;border-radius:10px;
  background:rgba(224,138,74,.12);border:1px solid rgba(224,138,74,.3);
  display:flex;align-items:center;justify-content:center;
  font:600 12px/1 var(--m-sans,"Outfit",sans-serif);color:var(--fx-ink)}
.fx4-track{height:8px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:12px}
.yzf-demo.fx4-dark{background:linear-gradient(160deg,#171310,#241a14);border-color:rgba(224,138,74,.34)}
.yzf-demo.fx4-dark .x{color:#d8cec1}
.fx4-note{font:400 12px/1.6 var(--m-sans,"Outfit",sans-serif);opacity:.55}
.fx4-big{font:700 clamp(22px,3vw,30px)/1.25 var(--m-display,"Space Grotesk",sans-serif);color:var(--fx-ink)}

/* 降级：4.0 全部落终态 */
@media (prefers-reduced-motion: reduce){
  .fx-guide-actor,.fx-sprite,.fx-micro-spin,.fx-micro-pulse,.fx-micro-bob,
  .fx-dash-path,.fx-draw-path,.fx-bar,.fx-stack-item,.fx-marquee-track,
  .fx4-demo.fx-parallax .fx-parallax-layer,.fx-textfill{animation:none!important}
  .fx-focus-item,.fx-slide,.fx-blurin,.fx-flipup-ch,.fx-pan-hole,.fx-guide-card{
    transition:none!important}
  .fx-slide,.fx-blurin,.fx-flipup-ch,.fx-stack-item{opacity:1!important;transform:none!important;filter:none!important}
  .fx-bar{transform:scaleY(1)!important}
  .fx-textfill{background-size:100% 100%!important}
  .fx-wipe-cover{clip-path:inset(0 0 0 100%)!important}
}
