/* 灵魂伴侣等待页的合盘演算舞台（static/js/hepan_flow.js）。
   线宽、圆点、胶囊、状态点照 uiarc「Multi-region failover」与「Data flow」两个演示的样式量（Pro 组件，只量不抄）：
   平台三面＋1px 描边，地上虚线 2/4，路线 1px，请求点白描边 1.5，刻度环 2.5，分流条 4px，
   Data flow 的连线 1.25、空心点描边 1.5、尾巴 2、点划虚线圈 1.5/5。
   演示的强调色＝站内枣红 --primary，成功＝--success，出错＝--danger。
   演示是浅灰台底＋白台面＋灰描边；这里台底用粉白、台面雪白，描边与侧面用灰蓝 --text-muted 叠透明度（742 色只叠透明度，不另调色）。
   舞台不垫底卡、直接铺在背景上（用户 2026-10-16「为什么还是有方框 直接嵌入背景啊」）：点「立即合盘」后背景已换成纯纸色
   （soulmate.css .hp-bg.is-away），当初垫卡是因为背后是两条彩色光轨、标签小字压上去看不清，现在不需要了。 */
.hp-calc{margin:14px auto 0;max-width:460px}
.hfs{--hfs-top:var(--surface);--hfs-left:color-mix(in srgb,var(--line-muted) 9%,var(--surface));
  --hfs-right:color-mix(in srgb,var(--line-muted) 17%,var(--surface));--hfs-edge:color-mix(in srgb,var(--line-muted) 48%,transparent);
  --hfs-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  padding:16px 10px 18px}
.hfs-stage{position:relative;width:100%}
/* 取景框（见 hepan_flow.js 的 fit／pan）：自己能滚（减弱动效时停在最后一截，往上滚看得到前面），滚动条藏起；装不下时上下各 20px 淡出 */
.hfs-cam{position:relative;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}
.hfs-cam::-webkit-scrollbar{display:none}
.hfs-cam[data-clip]{-webkit-mask-image:linear-gradient(transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(transparent,#000 20px,#000 calc(100% - 20px),transparent)}
.hfs-svg{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}

/* —— 上半段：2.5D 舞台 —— */
.hfs-l,.hfs-r,.hfs-t{stroke:var(--hfs-edge);stroke-width:1;stroke-linejoin:round}
.hfs-t{fill:var(--hfs-top)}
.hfs-l{fill:var(--hfs-left)}
.hfs-r{fill:var(--hfs-right)}
.hfs-floorline{fill:none;stroke:color-mix(in srgb,var(--line-muted) 30%,transparent);stroke-width:1;stroke-dasharray:2 4}
.hfs-edge{--lit:.6;fill:none;stroke:var(--text-soft);stroke-opacity:calc(.25 + .5 * var(--lit));stroke-width:1}
.hfs-dev-base{fill:var(--surface-2);stroke:var(--hfs-edge);stroke-width:1}
.hfs-dev{fill:var(--primary);fill-opacity:0;transition:fill-opacity .3s}
.hfs-dev.on{fill-opacity:1}
.hfs-dial-track{fill:none;stroke:color-mix(in srgb,var(--line-muted) 22%,transparent);stroke-width:2.5}
.hfs-dial-a{fill:none;stroke:var(--primary);stroke-width:2.5}
.hfs-dial-b{fill:none;stroke:color-mix(in srgb,var(--primary) 42%,var(--surface));stroke-width:2.5}
.hfs-cube :is(.hfs-t,.hfs-l,.hfs-r){transition:fill .3s,stroke .3s}
.hfs-cube[data-state="load"] .hfs-t{fill:color-mix(in srgb,var(--primary) 16%,var(--hfs-top))}
.hfs-cube[data-state="hit"] .hfs-t{fill:color-mix(in srgb,var(--primary) 55%,var(--hfs-top));stroke:color-mix(in srgb,var(--primary) 70%,var(--hfs-edge))}
.hfs-cube[data-state="down"] .hfs-t{fill:color-mix(in srgb,var(--danger) 16%,var(--hfs-top));stroke:color-mix(in srgb,var(--danger) 70%,var(--hfs-edge))}
.hfs-cube[data-state="down"] :is(.hfs-l,.hfs-r){stroke:color-mix(in srgb,var(--danger) 45%,var(--hfs-edge))}
.hfs-cube[data-state="down"] .hfs-l{fill:color-mix(in srgb,var(--danger) 8%,var(--hfs-left))}
.hfs-cube[data-state="down"] .hfs-r{fill:color-mix(in srgb,var(--danger) 10%,var(--hfs-right))}
.hfs-packet{fill:var(--primary);stroke:var(--surface);stroke-width:1.5}
.hfs-packet[data-kind="probe"]{fill:var(--surface);stroke:var(--text-soft)}
.hfs-shadow{fill:var(--text);fill-opacity:.12}

/* —— 下半段：Data flow —— */
.hfs-path{fill:none;stroke:var(--hfs-edge);stroke-width:1.25}
.hfs-core-box{fill:var(--surface);stroke:var(--hfs-edge);stroke-width:1.25}
.hfs-ring{fill:none;stroke:var(--line-muted);stroke-width:1.25;stroke-dasharray:1.5 5;stroke-linecap:round}
.hfs-core-dot{fill:var(--primary)}
.hfs-pulse{fill:none;stroke:var(--primary);stroke-width:1.25;opacity:0}
.hfs-dst{--hit:0}
.hfs-dst-box{fill:var(--surface);stroke:color-mix(in srgb,var(--primary) calc(var(--hit) * 55%),var(--hfs-edge));stroke-width:1}
.hfs-port{fill:var(--surface);stroke:var(--hfs-edge);stroke-width:1.25}
.hfs-port-hit{fill:var(--primary);opacity:0}
.hfs-trail{fill:none;stroke-width:2;stroke-linecap:round}
.hfs-rec.raw .hfs-trail{stroke:var(--line-muted);stroke-opacity:.45}
.hfs-rec.done .hfs-trail{stroke:var(--primary);stroke-opacity:.5}
.hfs-raw{fill:var(--surface);stroke:var(--text-soft);stroke-width:1.5}
.hfs-done{fill:var(--primary)}

/* —— 标签（failover 的 label：名字、等宽小字、状态胶囊、指标；归纳台另有分流条） —— */
.hfs-label{position:absolute;z-index:1;display:grid;justify-items:center;width:max-content;max-width:12rem;
  transform:translateX(-50%);text-align:center;pointer-events:none}
.hfs-label[data-above]{transform:translate(-50%,-100%)}
.hfs-l-core{transform:translateY(-50%);justify-items:start;text-align:left}
.hfs-name{font-family:var(--sans);font-size:13px;font-weight:500;line-height:1.45;color:var(--text);white-space:nowrap}
.hfs-meta{font-family:var(--hfs-mono);font-size:13px;line-height:1.5;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.hfs-status{display:inline-flex;align-items:center;gap:5px;margin-top:4px;padding:1px 8px 1px 7px;border:1px solid var(--border);
  border-radius:999px;background:var(--surface);font-family:var(--sans);font-size:11px;line-height:1.5;color:var(--text-soft);
  white-space:nowrap;font-variant-numeric:tabular-nums;transition:border-color .25s}
.hfs-dot{flex:none;width:6px;height:6px;border:1.25px solid var(--border-strong);border-radius:50%;box-sizing:border-box;transition:background-color .25s,border-color .25s}
.hfs-status[data-state="busy"] .hfs-dot{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 35%,transparent)}
.hfs-status[data-state="done"]{color:var(--text)}
.hfs-status[data-state="done"] .hfs-dot{border-color:var(--success);background:var(--success)}
.hfs-metric{margin-top:4px;font-family:var(--sans);font-size:11px;line-height:1.5;color:var(--text-soft);white-space:pre-line;font-variant-numeric:tabular-nums}
.hfs-weights{display:grid;gap:4px;width:11.5rem;max-width:100%;margin-top:8px}
.hfs-bar{position:relative;display:block;height:4px;overflow:hidden;border-radius:2px;background:var(--border)}
.hfs-bar-a,.hfs-bar-b{position:absolute;inset:0;border-radius:inherit}
.hfs-bar-a{background:var(--primary);transform-origin:0 50%}
.hfs-bar-b{background:color-mix(in srgb,var(--primary) 42%,var(--surface));transform-origin:100% 50%}
.hfs-split{display:flex;justify-content:space-between;gap:8px}
.hfs-side{display:inline-flex;align-items:baseline;gap:4px;min-width:0;font-family:var(--sans);font-size:11px;line-height:1.4}
.hfs-side-n{font-size:13px;color:var(--text-muted);white-space:nowrap}
.hfs-side-p{min-width:4ch;color:var(--text);font-weight:500;font-variant-numeric:tabular-nums}
.hfs-side[data-end] .hfs-side-p{text-align:right}
.hfs-l-dst .hfs-name{font-size:12px}
.hfs-l-dst .hfs-meta{font-size:13px}   /* 10-29 小灰字最小 13（原 10.5） */

/* 探测小胶囊（failover 的 msg：100ms 淡入、停约 3 秒、100ms 淡出；pass 绿框、fail 红框红字） */
.hfs-msg{position:absolute;z-index:2;padding:1px 7px;border:1px solid var(--border);border-radius:999px;background:var(--surface);
  font-family:var(--hfs-mono);font-size:11px;line-height:1.5;color:var(--text-soft);white-space:nowrap;
  transform:translate(-50%,-100%);opacity:0;pointer-events:none}
.hfs-msg.on{animation:hfsMsg 3.2s linear both}
@keyframes hfsMsg{0%{opacity:0}3%,97%{opacity:1}100%{opacity:0}}
.hfs-msg[data-kind="fail"]{border-color:color-mix(in srgb,var(--danger) 45%,var(--border));color:var(--danger)}
.hfs-msg[data-kind="pass"]{border-color:color-mix(in srgb,var(--success) 45%,var(--border));color:var(--text)}
/* 说明小签（failover 的 tag：墨底白字，弹出来） */
.hfs-tag{position:absolute;z-index:3;padding:3px 9px;border-radius:999px;background:var(--text);color:var(--surface);
  font-family:var(--sans);font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;pointer-events:none;
  opacity:0;transform:translate(-50%,0) scale(.9);transition:opacity .2s,transform .35s cubic-bezier(.34,1.45,.64,1)}
.hfs-tag.on{opacity:1;transform:translate(-50%,0)}

/* —— 分段进度条＋说明（failover 的 controls 与 caption） ——
   段名 10-29 随「小灰字最小 13」由 11 放到 13，行高同时由 1.3 收到 1（单行两个字），这一行反而矮 1.3px：
   不收的话 320×568 上说明下沿压进屏底模糊带 2px（verify_hepan_flow 量的） */
.hfs-ctl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 6px 0}
.hfs-seg{display:grid;gap:7px;padding-top:4px;font-family:var(--sans);font-size:13px;line-height:1;color:var(--text-muted);transition:color .2s}
.hfs-seg[data-current="true"]{color:var(--text)}
.hfs-track{display:block;height:3px;overflow:hidden;border-radius:2px;background:var(--border)}
.hfs-fill{display:block;height:100%;border-radius:inherit;background:var(--primary);transform:scaleX(0);transform-origin:0 50%}
.hfs-cap{display:grid;justify-items:center;gap:2px;margin:12px 8px 0;text-align:center}
.hfs-cap-t{font-family:var(--sans);font-size:14px;font-weight:500;color:var(--text)}
.hfs-cap-x{font-family:var(--sans);font-size:13px;color:var(--text-soft)}

/* —— 2026-10-29 叠加的五件（见 hepan_flow.js 开头）：颜色只用站里的变量 —— */
/* 立方抬起（affectUI layer-stack：抬落 560ms cubic-bezier(.65,0,.25,1)，css:194、:207；光＝强调色 .28、420ms ease，css:183、:208-213）。
   原件薄片抬 34（边长 104 的 1/3），这里立方边长 10.8，照比例只抬 3.5、手机上 3px 看不出，抬 6（约立方高的 6 成） */
.hfs-cube{transition:transform 560ms cubic-bezier(.65,0,.25,1)}
.hfs-cube[data-lift]{transform:translateY(-6px)}
.hfs-cube[data-lift] .hfs-t{stroke:color-mix(in srgb,var(--primary) 70%,var(--hfs-edge))}
.hfs-cube-glow{fill:color-mix(in srgb,var(--primary) 28%,transparent);opacity:0;transition:opacity 420ms ease}
.hfs-cube-glow[data-on]{opacity:1}
/* 核心外两圈与彗星（affectUI enrichment-orbit：7 秒一圈、匀速、两圈反向，css:142-146；环描边 1.2、彗星 1.6）。环色同地上虚线，细一些不跟流线抢 */
.hfs-orbit{opacity:0;transition:opacity 420ms ease}
.hfs-orbit.on{opacity:1}
.hfs-orbit-ring{fill:none;stroke:color-mix(in srgb,var(--line-muted) 34%,transparent);stroke-width:1.2}
.hfs-comet{fill:none;stroke-width:1.6;stroke-linecap:round}
.hfs-orbit-spin{animation:hfsOrbit 7s linear infinite paused}
.hfs-orbit.on .hfs-orbit-spin{animation-play-state:running}
.hfs-orbit[data-still] .hfs-orbit-spin{animation-play-state:paused}
.hfs-orbit-spin.rev{animation-direction:reverse}
@keyframes hfsOrbit{to{transform:rotate(360deg)}}
/* 滚动计数器（VFArc.animatedCounter）放进这里的小字：字号、字体、字色都跟所在那行，不用它自带的大号展示字 */
.hfs .arc-animated-counter{font:inherit;color:inherit;letter-spacing:inherit;line-height:1}   /* 行高 1：数字轮一格＝1em（animated-counter.js paint） */
.hfs .arc-animated-counter-symbol{white-space:pre}   /* 「交涉 」「 处」里的空格是字的一部分，行内块会把尾巴上的空格吞掉 */
.hfs-metric-hl{display:block}
.hfs-metric-hl:empty{display:none}
/* 说明那句的扫光（uiarc text-shimmer）：亮带墨色、底色次级字色——原件的底色偏烟青，那句淡下来不够 4.5:1 */
.hfs-cap-x{--text-shimmer-highlight:var(--text);--text-shimmer-base:var(--text-soft)}

@media (prefers-reduced-motion:reduce){
  .hfs *{transition:none!important;animation:none!important}
}
