/* Demo 3.0 · 建档页动效方案：原版三段 / A 并行扫描 / E 识别 HUD / F 环绕标注 */
.arch-fx-sel{max-width:186px !important;font-weight:700;}

/* A 并行扫描：视频框清爽 + 框外科技标注面板（引线连接） */
.arch-fx-live{width:100%;height:100%;display:flex;align-items:stretch;justify-content:center;min-height:0;}
.arch-fx-live-stage{
  position:relative;width:100%;height:100%;min-height:0;
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(140px,1.15fr);gap:6px 14px;align-items:stretch;
}
.arch-fx-live-wires{
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible;
}
.arch-fx-wire{
  fill:none;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:4 5;opacity:.9;
  animation:archFxWireDash 1.1s linear infinite;
  filter:drop-shadow(0 0 3px rgba(74,144,226,.45));
}
.arch-fx-wire.kind-face{stroke:#ff8fab;}
.arch-fx-wire.kind-voice{stroke:#5ecfbf;}
.arch-fx-wire.kind-intro{stroke:#a78bfa;}
.arch-fx-wire.kind-merge{stroke:#4A90E2;}
.arch-fx-wire-anchor{fill:#fff;stroke-width:1.5;}
.arch-fx-wire-anchor.kind-face{stroke:#ff8fab;fill:#ffd0dc;}
.arch-fx-wire-anchor.kind-voice{stroke:#5ecfbf;fill:#c8f3ec;}
.arch-fx-wire-anchor.kind-intro{stroke:#a78bfa;fill:#e4d9ff;}
.arch-fx-wire-anchor.kind-merge{stroke:#4A90E2;fill:#d6e9ff;}
@keyframes archFxWireDash{to{stroke-dashoffset:-18}}
.arch-fx-live-frame{
  position:relative;z-index:2;width:100%;height:100%;max-height:100%;aspect-ratio:1;max-width:100%;
  justify-self:center;align-self:center;border-radius:16px;overflow:hidden;
  border:1px solid rgba(74,144,226,.35);
  box-shadow:0 10px 24px rgba(74,144,226,.14),inset 0 0 0 1px rgba(255,255,255,.55);
  background:#0b1220;
}
.arch-fx-live{
  --arch-reveal-video:2.4s;
  --arch-reveal-blank:1.93s;
  --arch-reveal-hud:2.17s;
  --arch-reveal-done:1.13s;
}
.arch-fx-live-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
  z-index:0;opacity:0;
  transition:opacity var(--arch-reveal-video) cubic-bezier(.22,1,.36,1);
}
.arch-fx-live.is-video-revealed .arch-fx-live-video,
.arch-fx-live.is-done-phase .arch-fx-live-video,
.arch-fx-live.is-done .arch-fx-live-video{opacity:1;}
.arch-fx-live-veil{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(180deg,rgba(8,16,32,.06) 0%,transparent 42%,rgba(8,16,32,.18) 100%);
}
.arch-fx-live-scanbeam{
  position:absolute;left:8%;right:8%;height:2px;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(154,206,255,.95),transparent);
  box-shadow:0 0 12px rgba(74,144,226,.65);
  animation:archFxScanBeam 2.2s ease-in-out infinite;
}
@keyframes archFxScanBeam{0%,100%{top:14%;opacity:.35}50%{top:78%;opacity:1}}
.arch-fx-live-corners{position:absolute;inset:0;z-index:3;pointer-events:none;}
.arch-fx-live-corners span{
  position:absolute;width:16px;height:16px;border:2px solid rgba(154,206,255,.95);
  box-shadow:0 0 8px rgba(74,144,226,.4);
}
.arch-fx-live-corners .c1{left:8px;top:8px;border-right:0;border-bottom:0}
.arch-fx-live-corners .c2{right:8px;top:8px;border-left:0;border-bottom:0}
.arch-fx-live-corners .c3{left:8px;bottom:8px;border-right:0;border-top:0}
.arch-fx-live-corners .c4{right:8px;bottom:8px;border-left:0;border-top:0}
.arch-fx-live-panel{
  position:relative;z-index:5;min-width:0;height:100%;
  display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;
  gap:8px;padding:2px 2px 2px 6px;pointer-events:none;
}
/* 父级总状态：右侧标注区顶部的"章节 header"（一句话说明这一步在做什么） */
.arch-fx-panel-title{
  flex:none;
  display:flex;align-items:center;gap:6px;
  padding:0 0 8px;
  border-bottom:1px dashed rgba(74,144,226,.28);
  margin-bottom:4px;
}
.arch-fx-panel-title-dot{
  flex:none;width:6px;height:6px;border-radius:50%;
  background:linear-gradient(135deg,#7ec8ff,#4A90E2);
  box-shadow:0 0 8px rgba(74,144,226,.55);
  animation:archFxTitleDot 1.6s ease-in-out infinite;
}
@keyframes archFxTitleDot{
  0%,100%{opacity:.55;transform:scale(.85);}
  50%{opacity:1;transform:scale(1);}
}
.arch-fx-panel-title-text{
  font-size:12.5px;font-weight:800;color:rgba(26,26,26,.82);
  letter-spacing:.02em;line-height:1.3;
}
.arch-fx-live-tags{display:none;}
.arch-fx-live-tags .tag{
  font-size:9px;font-weight:800;letter-spacing:.04em;padding:2px 6px;border-radius:6px;
  color:rgba(26,26,26,.42);background:rgba(74,144,226,.08);border:1px solid rgba(74,144,226,.18);
  transition:color .25s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.arch-fx-live-tags .tag.is-on{
  color:#2f6fae;background:rgba(74,144,226,.14);border-color:rgba(74,144,226,.35);
}
.arch-fx-live-tags .tag.is-pulse{
  color:#1a4f8a;background:rgba(74,144,226,.22);border-color:rgba(74,144,226,.55);
  box-shadow:0 0 0 3px rgba(74,144,226,.12);
}
.arch-fx-callouts{
  position:relative;flex:0 1 auto;min-height:0;width:100%;
}
/* 瀑布流：容器固定高度（3 行 slot），子级用 data-slot 绝对定位到对应槽位，
   位置永远不动 —— 追加时只切换 slot 属性和 opacity，无位移 */
.arch-fx-callouts.is-waterfall{
  display:block;position:relative;height:96px;flex:none;overflow:hidden;
}
.arch-fx-callouts.is-waterfall .arch-fx-callout{
  position:absolute;left:0;right:0;width:100%;height:28px;
  display:flex;align-items:center;gap:5px;
  transition:top .38s cubic-bezier(.22,1,.36,1),opacity .34s ease;
}
.arch-fx-callouts.is-waterfall .arch-fx-callout[data-row="1"]{top:0;}
.arch-fx-callouts.is-waterfall .arch-fx-callout[data-row="2"]{top:34px;}
.arch-fx-callouts.is-waterfall .arch-fx-callout[data-row="3"]{top:68px;}
.arch-fx-callouts.is-waterfall .arch-fx-callout[data-row="0"]{top:-34px;opacity:0;}
/* 等待状态：三点渐显渐隐 —— 与父级 title dot 同频，作为"下一条思考中"暗示 */
.arch-fx-pending{
  flex:none;display:flex;align-items:center;gap:5px;padding:4px 2px 2px 4px;
  opacity:.85;transition:opacity .32s ease;
}
.arch-fx-pending i{
  width:5px;height:5px;border-radius:50%;
  background:rgba(74,144,226,.55);
  animation:archFxPendingDot 1.35s ease-in-out infinite;
}
.arch-fx-pending i:nth-child(2){animation-delay:.18s;}
.arch-fx-pending i:nth-child(3){animation-delay:.36s;}
@keyframes archFxPendingDot{
  0%,80%,100%{opacity:.2;}
  40%{opacity:1;}
}
.arch-fx-callout{
  position:absolute;left:0;right:0;max-width:100%;display:flex;align-items:center;gap:5px;
  opacity:0;transition:opacity .34s ease;
  pointer-events:none;
}
.arch-fx-callout.slot-r1{top:2%;}
.arch-fx-callout.slot-r2{top:26%;}
.arch-fx-callout.slot-r3{top:50%;}
.arch-fx-callout.slot-r4{top:74%;}
.arch-fx-callout.is-in{opacity:1;}
.arch-fx-callout.is-in.is-stale{opacity:.55;}
.arch-fx-callout.is-in.is-stale.is-older{opacity:.32;}
.arch-fx-callout.is-out{opacity:0 !important;}
.arch-fx-callout-dot{
  flex:none;width:5px;height:5px;border-radius:50%;
  background:#4A90E2;box-shadow:0 0 0 2px rgba(74,144,226,.15);
}
.arch-fx-callout.kind-face .arch-fx-callout-dot{background:#ff8fab;box-shadow:0 0 0 2px rgba(255,143,171,.18);}
.arch-fx-callout.kind-voice .arch-fx-callout-dot{background:#5ecfbf;box-shadow:0 0 0 2px rgba(94,207,191,.18);}
.arch-fx-callout.kind-intro .arch-fx-callout-dot{background:#a78bfa;box-shadow:0 0 0 2px rgba(167,139,250,.18);}
.arch-fx-callout-body{
  min-width:0;padding:4px 8px;border-radius:8px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(74,144,226,.22);
  box-shadow:0 2px 6px rgba(74,144,226,.06);
  font-size:10.5px;font-weight:600;line-height:1.35;color:rgba(26,26,26,.72);
  display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 5px;
}
.arch-fx-callout-k{
  display:inline-block;font-size:8px;font-weight:800;letter-spacing:.08em;
  color:#2f6fae;opacity:.85;
}
.arch-fx-callout.kind-face .arch-fx-callout-k{color:#c44f72;}
.arch-fx-callout.kind-voice .arch-fx-callout-k{color:#1f8a7a;}
.arch-fx-callout.kind-intro .arch-fx-callout-k{color:#6b4fc4;}
.arch-fx-stream-text{white-space:normal;overflow:visible;max-width:none;word-break:break-word;}
.arch-fx-stream-caret{
  display:inline-block;width:5px;height:1em;margin-left:1px;border-radius:1px;
  background:rgba(47,111,174,.85);animation:archFxCaret .8s steps(1) infinite;vertical-align:-2px;
}
.arch-fx-callout.is-typed .arch-fx-stream-caret{opacity:0;animation:none;}
@keyframes archFxCaret{0%,49%{opacity:1}50%,100%{opacity:0}}
.arch-fx-callout.kind-face .arch-fx-callout-body{border-color:rgba(255,143,171,.45);}
.arch-fx-callout.kind-voice .arch-fx-callout-body{border-color:rgba(94,207,191,.45);}
.arch-fx-callout.kind-intro .arch-fx-callout-body{border-color:rgba(167,139,250,.45);}
.arch-fx-callout.kind-merge .arch-fx-callout-body{border-color:rgba(74,144,226,.4);}
.arch-fx-live.is-finishing{opacity:.55;filter:saturate(.85);transition:opacity .3s ease,filter .3s ease;}
.arch-fx-parallel-note{
  text-align:center;font-size:11px;font-weight:700;color:rgba(26,26,26,.5);
  padding:2px 4px 0;letter-spacing:.02em;
}
.arch-fx-parallel-note.is-done{color:#1f6b4a;}

.arch-fx-callouts.is-waterfall .arch-fx-callout-body{
  flex:1 1 auto;
}
.arch-fx-callouts.is-waterfall .arch-fx-callout.is-in{transform:none;}
.arch-fx-callouts.is-waterfall .arch-fx-callout.is-out{transform:translateY(6px);}

/* —— E 识别 HUD：视频保持清亮，HUD 环叠在画面上，标注在框外瀑布流 —— */
.arch-fx-live.is-hud .arch-fx-live-frame.is-hud-frame{
  border-radius:14px;border:1px solid rgba(74,144,226,.38);
  box-shadow:0 10px 24px rgba(74,144,226,.14),inset 0 0 0 1px rgba(255,255,255,.65);
  background:#f6f8fb;
}
.arch-fx-live.is-hud:not(.is-orbit) .arch-fx-hud-ring{opacity:.55;}
.arch-fx-live.is-hud:not(.is-orbit) .arch-fx-hud-grid{opacity:.22;}
.arch-fx-hud-overlay{
  position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;
  transition:opacity .65s cubic-bezier(.22,1,.36,1);
}
.arch-fx-hud-grid{
  position:absolute;inset:10%;border-radius:50%;
  background:
    linear-gradient(rgba(154,216,255,.12) 1px,transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg,rgba(154,216,255,.12) 1px,transparent 1px) 0 0 / 14px 14px;
  mask-image:radial-gradient(circle at 50% 50%,#000 42%,transparent 72%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 42%,transparent 72%);
  opacity:.55;
}

.arch-fx-hud-ring{
  position:absolute;left:50%;top:50%;width:92%;height:92%;transform:translate(-50%,-50%);
  filter:drop-shadow(0 0 6px rgba(120,200,255,.55));
}
.arch-fx-hud-ring .hud-spin-cw{transform-origin:100px 100px;animation:archHudSpinCw 18s linear infinite;}
.arch-fx-hud-ring .hud-spin-ccw{transform-origin:100px 100px;animation:archHudSpinCcw 12s linear infinite;}
@keyframes archHudSpinCw{to{transform:rotate(360deg)}}
@keyframes archHudSpinCcw{to{transform:rotate(-360deg)}}
.arch-fx-hud-scan{
  position:absolute;left:8%;right:8%;height:5px;border-radius:3px;z-index:4;
  background:linear-gradient(90deg,transparent,rgba(120,220,255,.35),#7ef0ff 42%,#ffffff 50%,#7ef0ff 58%,rgba(120,220,255,.35),transparent);
  box-shadow:
    0 0 18px rgba(120,230,255,1),
    0 0 36px rgba(74,160,255,.8),
    0 0 56px rgba(74,144,226,.5);
  animation:archHudScanY 2.4s ease-in-out infinite;
}
.arch-fx-hud-scan::before,
.arch-fx-hud-scan::after{
  content:"";position:absolute;left:0;right:0;pointer-events:none;
}
.arch-fx-hud-scan::before{
  top:-22px;height:22px;
  background:linear-gradient(180deg,transparent,rgba(120,220,255,.28));
  filter:blur(2px);
}
.arch-fx-hud-scan::after{
  top:5px;height:26px;
  background:linear-gradient(180deg,rgba(120,220,255,.32),transparent);
  filter:blur(2px);
}
@keyframes archHudScanY{
  0%,100%{top:22%;opacity:.55}
  50%{top:72%;opacity:1}
}
.arch-fx-hud-brackets{position:absolute;inset:6%;z-index:2;}
.arch-fx-hud-brackets .b{
  position:absolute;width:22px;height:22px;border:1.6px solid rgba(220,240,255,.85);
  box-shadow:0 0 8px rgba(120,200,255,.35);
}
.arch-fx-hud-brackets .tl{left:0;top:0;border-right:0;border-bottom:0}
.arch-fx-hud-brackets .tr{right:0;top:0;border-left:0;border-bottom:0}
.arch-fx-hud-brackets .bl{left:0;bottom:0;border-right:0;border-top:0}
.arch-fx-hud-brackets .br{right:0;bottom:0;border-left:0;border-top:0}
.arch-fx-hud-chevs{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  display:flex;gap:3px;align-items:center;
}
.arch-fx-hud-chevs.left{left:4px;flex-direction:row-reverse;}
.arch-fx-hud-chevs.right{right:4px;}
.arch-fx-hud-chevs i{
  display:block;width:0;height:0;
  border-top:5px solid transparent;border-bottom:5px solid transparent;
  opacity:.35;animation:archHudChev 1.2s ease-in-out infinite;
}
.arch-fx-hud-chevs.right i{border-left:7px solid #7ec8ff;}
.arch-fx-hud-chevs.left i{border-right:7px solid #7ec8ff;}
.arch-fx-hud-chevs i:nth-child(2){animation-delay:.15s;opacity:.55}
.arch-fx-hud-chevs i:nth-child(3){animation-delay:.3s;opacity:.85}
@keyframes archHudChev{
  0%,100%{opacity:.25;transform:translateX(0)}
  50%{opacity:1;transform:translateX(2px)}
}
.arch-fx-hud-chevs.left i{animation-name:archHudChevL;}
@keyframes archHudChevL{
  0%,100%{opacity:.25;transform:translateX(0)}
  50%{opacity:1;transform:translateX(-2px)}
}
.arch-fx-hud-badge{
  position:absolute;left:8px;top:8px;z-index:5;padding:3px 8px;
  background:rgba(11,26,51,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  border-radius:6px;
  box-shadow:inset 0 0 0 1px rgba(154,216,255,.35);
  font-family:ui-sans-serif,system-ui,"PingFang SC","Helvetica Neue",sans-serif;
  display:flex;align-items:baseline;gap:6px;
}
.arch-fx-hud-badge .cn{font-size:9.5px;font-weight:800;color:#e6f4ff;letter-spacing:.06em;line-height:1.25;}
.arch-fx-hud-badge .en{font-size:7.5px;font-weight:700;color:rgba(154,216,255,.85);letter-spacing:.1em;}
.arch-fx-hud-badge .tri{display:none;}
.arch-fx-live.is-hud .arch-fx-wire{filter:drop-shadow(0 0 4px rgba(100,200,255,.65));}

/* —— A/F 环绕构图：方形识别框居中，四角对称提示 + 引线从框边拉出 —— */
.arch-fx-live.is-orbit{
  background:transparent;
}
.arch-fx-live.is-orbit .arch-fx-live-stage{
  display:block;
  position:relative;
}
.arch-fx-live.is-orbit .arch-fx-live-frame.is-orbit-frame{
  position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);
  width:min(58%,148px);height:auto;aspect-ratio:1;max-width:none;max-height:none;
  border-radius:14px;overflow:hidden;z-index:2;justify-self:auto;align-self:auto;
  border:1px solid rgba(74,144,226,.38);
  background:#f6f8fb;
  box-shadow:0 10px 24px rgba(74,144,226,.14),inset 0 0 0 1px rgba(255,255,255,.65);
}
.arch-fx-live.is-orbit .arch-fx-live-video{
  border-radius:14px;object-fit:cover;
}
.arch-fx-live.is-orbit .arch-fx-hud-grid{
  inset:7%;border-radius:8px;opacity:.2;
  mask-image:none;-webkit-mask-image:none;
}
.arch-fx-live.is-orbit .arch-fx-hud-ring{opacity:.48;}
.arch-fx-hud-badge--orbit{
  left:50%;top:4px;right:auto;transform:translateX(-50%);z-index:6;
  white-space:nowrap;
}
.arch-fx-orbit-chevs{
  position:absolute;top:56%;transform:translateY(-50%);z-index:3;
  display:flex;gap:3px;align-items:center;pointer-events:none;
}
.arch-fx-orbit-chevs.left{left:10%;flex-direction:row-reverse;}
.arch-fx-orbit-chevs.right{right:10%;}
.arch-fx-orbit-chevs i{
  display:block;width:0;height:0;
  border-top:4px solid transparent;border-bottom:4px solid transparent;
  opacity:.35;animation:archHudChev 1.2s ease-in-out infinite;
}
.arch-fx-orbit-chevs.right i{border-left:6px solid #7ec8ff;}
.arch-fx-orbit-chevs.left i{border-right:6px solid #7ec8ff;animation-name:archHudChevL;}
.arch-fx-orbit-chevs i:nth-child(2){animation-delay:.15s;opacity:.55}
.arch-fx-orbit-chevs i:nth-child(3){animation-delay:.3s;opacity:.85}
.arch-fx-live.is-orbit .arch-fx-callouts.is-orbit{
  position:absolute;inset:0;z-index:5;pointer-events:none;
}
.arch-fx-live.is-orbit .arch-fx-callout{
  left:auto;right:auto;width:auto;max-width:48%;
}
.arch-fx-live.is-orbit .arch-fx-callout.slot-tl{
  top:18%;left:0;flex-direction:row-reverse;
}
.arch-fx-live.is-orbit .arch-fx-callout.slot-tr{
  top:18%;right:0;
}
.arch-fx-live.is-orbit .arch-fx-callout.slot-bl{
  top:auto;bottom:8%;left:0;flex-direction:row-reverse;
}
.arch-fx-live.is-orbit .arch-fx-callout.slot-br{
  top:auto;bottom:8%;right:0;
}
.arch-fx-live.is-orbit .arch-fx-callout.slot-tl .arch-fx-callout-body,
.arch-fx-live.is-orbit .arch-fx-callout.slot-bl .arch-fx-callout-body{
  text-align:right;
}
.arch-fx-live.is-orbit .arch-fx-stream-text{max-width:none;}

/* 监测就绪：空白识别框呼吸动效 + 右侧准备提示；切采集时交叉渐隐 */
.arch-fx-live.is-awaiting .arch-fx-live-video{opacity:0;}
.arch-fx-frame-blank{
  position:absolute;inset:0;z-index:1;overflow:hidden;
  background:linear-gradient(165deg,#f8fafc 0%,#eef3f8 48%,#e8eef5 100%);
  opacity:1;
  transition:opacity .58s cubic-bezier(.22,1,.36,1);
}
.arch-fx-frame-blank.is-fading-out{
  opacity:0;pointer-events:none;
}
.arch-fx-blank-ring{
  position:absolute;inset:14%;border-radius:12px;
  border:1px solid rgba(74,144,226,.22);
  box-shadow:0 0 0 0 rgba(74,144,226,.12);
  animation:archBlankRing 2.6s ease-in-out infinite;
}
.arch-fx-blank-scan{
  position:absolute;left:12%;right:12%;height:2px;z-index:2;
  background:linear-gradient(90deg,transparent,rgba(126,200,255,.75),transparent);
  box-shadow:0 0 10px rgba(74,144,226,.35);
  animation:archBlankScan 2.8s ease-in-out infinite;
}
@keyframes archBlankRing{
  0%,100%{box-shadow:0 0 0 0 rgba(74,144,226,.08);opacity:.55;}
  50%{box-shadow:0 0 0 6px rgba(74,144,226,.12);opacity:1;}
}
@keyframes archBlankScan{
  0%,100%{top:22%;opacity:.25;}
  50%{top:72%;opacity:.95;}
}
.arch-fx-live.is-awaiting .arch-fx-hud-overlay{opacity:.18;}
.arch-fx-live.is-collecting.is-video-revealed .arch-fx-hud-overlay{opacity:.72;}
.arch-fx-live.is-done-phase .arch-fx-hud-overlay,
.arch-fx-live.is-done .arch-fx-hud-overlay{opacity:.42;}
.arch-fx-live.is-awaiting .arch-fx-orbit-chevs,
.arch-fx-live.is-awaiting .arch-fx-hud-chevs{opacity:.18;}
.arch-fx-live.is-collecting.is-video-revealed .arch-fx-orbit-chevs,
.arch-fx-live.is-collecting.is-video-revealed .arch-fx-hud-chevs{opacity:.55;}
.arch-fx-live.is-awaiting .arch-fx-hud-scan,
.arch-fx-live.is-awaiting .arch-fx-live-scanbeam{animation:none !important;opacity:0 !important;}
.arch-fx-live.is-collecting.is-video-revealed .arch-fx-hud-scan{opacity:1 !important;animation:archHudScanY 2.4s ease-in-out infinite !important;}
.arch-fx-callouts.is-prep,
.arch-fx-callouts.is-stream{
  position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:10px;
  min-height:0;overflow:visible;
}
/* 等待态：三条准备提示相对左侧视频框垂直居中 */
.arch-fx-live.is-awaiting .arch-fx-callouts.is-prep{
  justify-content:center;
}
.arch-fx-callouts.is-prep.is-waterfall,
.arch-fx-callouts.is-stream.is-waterfall{height:auto;min-height:0;flex:1 1 auto;}
.arch-fx-side-stack{
  display:flex;flex-direction:column;justify-content:space-between;
  gap:6px;height:100%;min-height:0;width:100%;
}
.arch-fx-live.is-awaiting .arch-fx-side-stack{
  justify-content:center;height:auto;align-self:center;
}
/* 等待态入场：左框先出，右侧三条注意依次出现 */
.arch-fx-live.is-awaiting{
  --arch-wait-frame-dur:.52s;
  --arch-wait-prep-step:.46s;
  --arch-wait-prep-lag:.62s;
}
.arch-fx-live.is-awaiting .arch-fx-frame-blank{
  opacity:0;
  animation:archFxWaitFrameIn var(--arch-wait-frame-dur) cubic-bezier(.22,1,.36,1) forwards;
}
.arch-fx-prep-panel{display:flex;flex-direction:column;gap:10px;width:100%;}
.arch-fx-prep-row{
  display:flex;align-items:center;gap:6px;width:100%;
  opacity:0;animation:archFxPrepIn .4s cubic-bezier(.22,1,.36,1) forwards;
}
.arch-fx-prep-row[data-i="0"]{animation-delay:var(--arch-wait-prep-lag);}
.arch-fx-prep-row[data-i="1"]{animation-delay:calc(var(--arch-wait-prep-lag) + var(--arch-wait-prep-step));}
.arch-fx-prep-row[data-i="2"]{animation-delay:calc(var(--arch-wait-prep-lag) + var(--arch-wait-prep-step) * 2);}
@keyframes archFxWaitFrameIn{
  from{opacity:0;transform:scale(.96);}
  to{opacity:1;transform:scale(1);}
}
@keyframes archFxPrepIn{
  from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:translateY(0);}
}
.arch-fx-prep-row .arch-fx-callout-dot.kind-prep{
  flex:none;align-self:center;margin-top:0;
}
.arch-fx-prep-body{padding:5px 8px;font-size:10.5px;line-height:1.38;}
.arch-fx-prep-sub{display:block;margin-top:2px;font-weight:550;color:rgba(26,26,26,.52);font-size:10px;}
.arch-fx-callout-dot.kind-prep{background:#7ec8ff;box-shadow:0 0 0 2px rgba(126,200,255,.22);}
/* 环绕方案 · 等待/采集/完成：框左、提示右 */
.arch-fx-live.is-orbit.is-awaiting .arch-fx-live-stage,
.arch-fx-live.is-orbit.is-collecting .arch-fx-live-stage,
.arch-fx-live.is-orbit.is-done-phase .arch-fx-live-stage,
.arch-fx-live.is-orbit.is-done .arch-fx-live-stage{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(108px,1.18fr);gap:8px 10px;
  align-items:stretch;height:100%;
}
.arch-fx-live.is-orbit.is-awaiting .arch-fx-live-stage,
.arch-fx-live.is-orbit.is-done-phase .arch-fx-live-stage,
.arch-fx-live.is-orbit.is-done .arch-fx-live-stage{
  align-items:center;
}
.arch-fx-live.is-orbit.is-awaiting .arch-fx-live-frame.is-orbit-frame,
.arch-fx-live.is-orbit.is-collecting .arch-fx-live-frame.is-orbit-frame,
.arch-fx-live.is-orbit.is-done-phase .arch-fx-live-frame.is-orbit-frame,
.arch-fx-live.is-orbit.is-done .arch-fx-live-frame.is-orbit-frame{
  position:relative;left:auto;top:auto;transform:none;
  width:100%;max-width:148px;margin:0 auto;align-self:center;
}
.arch-fx-live.is-orbit.is-awaiting .arch-fx-orbit-chevs,
.arch-fx-live.is-orbit.is-collecting .arch-fx-orbit-chevs,
.arch-fx-live.is-orbit.is-done-phase .arch-fx-orbit-chevs,
.arch-fx-live.is-orbit.is-done .arch-fx-orbit-chevs{display:none;}
.arch-fx-live.is-orbit.is-collecting .arch-fx-callouts.is-orbit{position:relative;inset:auto;}
/* 采集态 · 右侧上提示下 ASR 波纹 */
.arch-fx-live-panel,
.arch-fx-side-stack{display:flex;flex-direction:column;min-height:0;height:100%;}
.arch-fx-live.is-awaiting .arch-fx-live-panel,
.arch-fx-live.is-done-phase .arch-fx-live-panel,
.arch-fx-live.is-done .arch-fx-live-panel{justify-content:center;}
.arch-fx-live.is-collecting .arch-fx-live-panel{justify-content:space-between;}
.arch-fx-asr-slot{
  flex:none;height:34px;min-height:34px;width:100%;
  opacity:0;transform:translateY(4px);pointer-events:none;
  transition:opacity .32s ease,transform .32s ease;
}
.arch-fx-live.is-collecting .arch-fx-asr-slot{
  opacity:1;transform:translateY(0);
}
.arch-fx-asr-slot .arch-asr-canvas{display:block;width:100%;height:100%;}
/* 档案写入 · 右侧依次打勾：相对左侧识别框上下居中、三项均分 */
.arch-fx-live.is-done-phase .arch-fx-side-stack,
.arch-fx-live.is-done .arch-fx-side-stack{
  justify-content:center;height:min(148px,100%);align-self:center;
}
.arch-fx-live.is-done-phase .arch-fx-asr-slot,
.arch-fx-live.is-done .arch-fx-asr-slot{
  display:none;height:0;min-height:0;opacity:0;
}
.arch-fx-done-panel{
  display:flex;flex-direction:column;justify-content:space-evenly;
  gap:12px;width:100%;height:100%;padding:0;
}
.arch-fx-done-row{
  display:flex;align-items:center;gap:8px;
  opacity:.42;transform:translateX(4px);
  transition:opacity .057s ease,transform .057s cubic-bezier(.22,1,.36,1);
}
.arch-fx-done-row.is-checked{opacity:1;transform:translateX(0);}
.arch-fx-done-icon{
  flex:none;width:16px;height:16px;border-radius:999px;
  border:1.5px solid rgba(74,144,226,.28);background:rgba(255,255,255,.85);
  position:relative;transition:all .053s cubic-bezier(.34,1.4,.64,1);
}
.arch-fx-done-row.is-checked .arch-fx-done-icon{
  border-color:transparent;
  background:linear-gradient(145deg,#FF8FAB,#4A90E2);
  box-shadow:0 0 0 3px rgba(255,255,255,.85),0 0 10px rgba(74,144,226,.28);
}
.arch-fx-done-row.is-checked .arch-fx-done-icon::after{
  content:"✓";position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:9px;font-weight:900;line-height:1;
}
.arch-fx-done-text{font-size:11px;font-weight:650;color:rgba(26,26,26,.78);line-height:1.35;}
.arch-fx-callouts.is-done-checks{
  height:100%;min-height:0;flex:1 1 auto;
  display:flex;flex-direction:column;justify-content:center;
}
/* 档案生成完成：右侧打勾清单保留至最后一帧（与左侧识别成功并存） */
.arch-fx-live.is-done .arch-fx-callouts.is-done-checks,
.arch-fx-live.is-done-phase .arch-fx-callouts.is-done-checks{
  opacity:1;visibility:visible;
}
.arch-fx-live.is-done .arch-fx-done-panel,
.arch-fx-live.is-done-phase .arch-fx-done-panel{display:flex;}

/* 识别成功 —— 方形识别框内印章勾（对齐原版 video-slot） */
.arch-fx-live-frame .fs-success{
  position:absolute;inset:0;border-radius:inherit;
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;opacity:0;z-index:8;
}
.arch-fx-live-frame .fs-flash{
  position:absolute;inset:0;border-radius:inherit;
  background:radial-gradient(circle at center,rgba(120,240,170,.55) 0%,rgba(120,240,170,.12) 45%,transparent 72%);
  opacity:0;mix-blend-mode:screen;
}
.arch-fx-live-frame .fs-ring{
  position:absolute;top:50%;left:50%;width:78px;height:78px;margin:-39px 0 0 -39px;
  border-radius:50%;box-shadow:0 0 0 0 rgba(120,240,170,.85);opacity:0;
}
.arch-fx-live-frame .fs-badge{
  position:relative;width:96px;height:96px;
  display:flex;align-items:center;justify-content:center;
  filter:drop-shadow(0 4px 18px rgba(0,0,0,.28)) drop-shadow(0 0 22px rgba(80,220,140,.6));
  transform:scale(.55) rotate(-14deg);opacity:0;
}
.arch-fx-live-frame .fs-badge svg{width:100%;height:100%;display:block;overflow:visible;}
.arch-fx-live-frame .fs-badge .fs-badge-ring{
  fill:rgba(255,255,255,.08);stroke:#4ade9a;stroke-width:5;stroke-linecap:round;
  stroke-dasharray:264;stroke-dashoffset:264;transform:rotate(-90deg);transform-origin:50% 50%;
  filter:drop-shadow(0 0 10px rgba(110,231,183,.75));
}
.arch-fx-live-frame .fs-badge .fs-check{
  fill:none;stroke:#ffffff;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:80;stroke-dashoffset:80;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35)) drop-shadow(0 0 6px rgba(110,231,183,.9));
}
.arch-fx-live-frame .fs-badge-label{
  position:absolute;left:50%;top:calc(50% + 62px);transform:translate(-50%,4px);
  padding:3px 12px;border-radius:999px;background:rgba(255,255,255,.94);color:#15803d;
  font-size:11px;font-weight:900;letter-spacing:.14em;opacity:0;
  box-shadow:0 4px 14px rgba(80,220,140,.35);white-space:nowrap;
}
.arch-fx-live-frame.is-success .fs-success{opacity:1;}
.arch-fx-live-frame.is-success .fs-flash{animation:archFsFlash .55s ease-out both;}
.arch-fx-live-frame.is-success .fs-ring{animation:archFsRing .8s cubic-bezier(.2,.7,.3,1) both;}
.arch-fx-live-frame.is-success .fs-badge{animation:archFsStampIn .55s cubic-bezier(.34,1.5,.5,1) both;}
.arch-fx-live-frame.is-success .fs-badge .fs-badge-ring{animation:archFsRingDraw .5s .12s cubic-bezier(.5,.1,.3,1) forwards;}
.arch-fx-live-frame.is-success .fs-badge .fs-check{animation:archFsCheckDraw .55s .42s cubic-bezier(.55,.1,.35,1) forwards;}
.arch-fx-live-frame.is-success .fs-badge-label{animation:archFsLabelIn .38s .62s cubic-bezier(.34,1.4,.5,1) forwards;}
.arch-fx-live-frame.is-success .arch-fx-hud-overlay,
.arch-fx-live-frame.is-success .arch-fx-live-scanbeam,
.arch-fx-live-frame.is-success .arch-fx-live-corners{opacity:0;transition:opacity .18s ease;}
@keyframes archFsFlash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
@keyframes archFsRing{0%{opacity:1;transform:scale(.3)}100%{opacity:0;transform:scale(1.35)}}
@keyframes archFsStampIn{0%{opacity:0;transform:scale(.55) rotate(-14deg)}100%{opacity:1;transform:scale(1) rotate(-6deg)}}
@keyframes archFsRingDraw{to{stroke-dashoffset:0}}
@keyframes archFsCheckDraw{to{stroke-dashoffset:0}}
@keyframes archFsLabelIn{0%{opacity:0;transform:translate(-50%,12px)}100%{opacity:1;transform:translate(-50%,0)}}

/* 窄对话框：A/E 标注改纵向；F 保持四角环绕 */
@media (max-width: 420px){
  .arch-fx-live:not(.is-orbit) .arch-fx-live-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;}
  .arch-fx-live:not(.is-orbit) .arch-fx-live-frame{max-height:128px;}
  .arch-fx-live:not(.is-orbit) .arch-fx-callouts{position:relative;min-height:auto;display:flex;flex-direction:column;gap:4px;}
  .arch-fx-live:not(.is-orbit) .arch-fx-callout{position:relative;top:auto !important;left:auto !important;right:auto !important;}
  .arch-fx-live:not(.is-orbit) .arch-fx-live-wires{display:none;}
  .arch-fx-hud-badge:not(.arch-fx-hud-badge--orbit){transform:scale(.9);transform-origin:left top;}
  .arch-fx-live.is-orbit .arch-fx-live-frame.is-orbit-frame{width:min(54%,136px);}
}

/* 完成档案卡（弱姓名） */
.arch-fx-card{
  width:100%;max-width:280px;margin:0 auto;padding:14px 16px;border-radius:16px;position:relative;overflow:hidden;
  background:linear-gradient(155deg,rgba(255,255,255,.94),rgba(236,244,255,.92));
  border:1px solid rgba(255,255,255,.9);box-shadow:0 12px 28px rgba(74,144,226,.14);
}
.arch-fx-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#FF8FAB,#4A90E2);border-radius:16px 0 0 16px;}
.arch-fx-card .title{font-size:13px;font-weight:800;color:rgba(26,26,26,.86);margin:0 0 6px;}
.arch-fx-card .row{font-size:12px;color:rgba(26,26,26,.62);padding:3px 0;}
.arch-fx-card .row b{color:#1f8a58;}
.arch-fx-card .draft{color:rgba(26,26,26,.4);font-style:italic;}
.arch-fx-card .seal{
  display:inline-block;margin-top:8px;padding:3px 8px;border-radius:8px;font-size:10px;font-weight:800;
  color:#1f6b4a;background:rgba(110,207,154,.18);border:1px solid rgba(110,207,154,.35);
}

.arch-fx-progress-root{
  margin-top:0;padding:4px 0 0;
  background:transparent;border:none;box-shadow:none;
}
.arch-fx-sel{border-color:rgba(74,144,226,.35)!important;background:rgba(74,144,226,.06)!important;}
