/* ==========================================================
   fx-v3.css — 项目页 SVG 演示动画（与 fx-v3.js 配套）
   结构：figure.fx > .fx__head + .fx__stage(svg) + figcaption.fx__cap
   ========================================================== */

.fx {
    position: relative;
    margin: 56px 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.fx.is-in { opacity: 1; transform: none; }

.fx__head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 12px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.fx__no { color: var(--signal); white-space: nowrap; }
.fx__title { color: var(--paper); text-transform: none; letter-spacing: 0.01em; font-size: 0.86rem; }
.fx__tc { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx__tc i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; animation: fxBlink 1.2s steps(1) infinite; }
@keyframes fxBlink { 50% { opacity: 0.15; } }

.fx__stage {
    position: relative;
    overflow: hidden;
    background-color: var(--ink-2);
    background-image: radial-gradient(rgba(236, 232, 225, 0.07) 1px, transparent 1.3px);
    background-size: 22px 22px;
    border: 1px solid var(--line);
}
.fx__stage svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.fx__stage::before, .fx__stage::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
    border: 0 solid var(--paper); opacity: 0.5;
}
.fx__stage::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.fx__stage::after { right: 8px; bottom: 8px; border-right-width: 1px; border-bottom-width: 1px; }
.fx--press .fx__stage { cursor: pointer; }

.fx__cap {
    margin-top: 12px;
    font-size: 0.84rem;
    line-height: 1.75;
    color: var(--faint);
}
.fx__cap b { color: var(--mute); font-weight: 500; }

/* ---------- SVG 内部样式 ---------- */
.fx text { font-family: var(--f-sans); }
.fx .fx-m { font-family: var(--f-mono); }
.fx-t   { fill: var(--paper); font-size: 22px; font-weight: 500; }
.fx-tb  { fill: var(--paper); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.fx-m   { fill: var(--faint); font-size: 14px; letter-spacing: 0.08em; }
.fx-ms  { fill: var(--signal); font-size: 14px; letter-spacing: 0.08em; }
.fx-big { fill: var(--signal); font-size: 72px; font-weight: 700; letter-spacing: -0.04em; }

.fx-ln   { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.fx-lnf  { fill: none; stroke: var(--line); stroke-width: 1; }
.fx-ink  { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fx-sig  { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fx-guide { fill: none; stroke: rgba(236, 232, 225, 0.28); stroke-width: 1; }
.fx-dash { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 6; }
.fx-flow { fill: none; stroke: rgba(236, 232, 225, 0.38); stroke-width: 1.5; stroke-dasharray: 2 10; animation: fxFlow 1.4s linear infinite; }
@keyframes fxFlow { to { stroke-dashoffset: -24; } }
.fx-prog { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.fx-pts  { fill: none; stroke: var(--paper); stroke-linecap: round; }
.fx-pts--sig { stroke: var(--signal); }

/* 流程节点 */
.fx-node circle.ring { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.4s, fill 0.4s; }
.fx-node circle.spin { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 22 200; opacity: 0; }
.fx-node .idx { fill: var(--faint); font-size: 15px; transition: fill 0.4s; }
.fx-node .tt { opacity: 0.4; transition: opacity 0.5s; }
.fx-node .ss { opacity: 0.4; transition: opacity 0.5s; }
.fx-node.is-on circle.ring { stroke: var(--signal); fill: #2b1913; }
.fx-node.is-on .idx { fill: var(--paper); }
.fx-node.is-on .tt, .fx-node.is-on .ss { opacity: 1; }
.fx-node.is-busy circle.spin { opacity: 1; }

/* 关键帧 */
.fx-kf { fill: var(--ink-2); stroke: var(--faint); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transition: fill 0.25s, stroke 0.25s, transform 0.25s; }
.fx-kf.is-hit { fill: var(--signal); stroke: var(--signal); transform: scale(1.5); }

@media (max-width: 760px) {
    .fx { margin: 40px 0; }
    .fx__head { gap: 10px; font-size: 0.62rem; }
    .fx__title { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fx { opacity: 1; transform: none; transition: none; }
    .fx-flow { animation: none; }
}

/* 琵琶 / 顽石页：独立区块 */
.fx-solo { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
