/* =========================================================
   ui09 Prototype｜互動動態操作版（2026-11-13）
   mo- 開頭：互動示範元件（手機、Figma 面板、觸發卡、動作堆疊、轉場比較、曲線實驗室、拾器實作圖解）
   沿用 ui09-agent.css 的 --u-* 變數
   ========================================================= */
.ui09-page { --fig-blue:#0D99FF; --fig-ui:#2C2C2C; --pk-brand:#173F3A; --pk-accent:#C97950; --pk-bg:#F4F0E7; }

/* ---------- 區塊外框 ---------- */
.mo-sec { padding: 72px 0 24px; scroll-margin-top: 140px; }
.mo-head { display:grid; grid-template-columns:auto 1fr; gap:6px 22px; align-items:end; margin-bottom:26px; }
.mo-head .no { grid-row:span 2; font:900 72px/0.9 var(--u-font-display); color:var(--u-brand); }
.mo-head h3 { font-size:clamp(26px,3.2vw,36px); line-height:1.3; margin:0; color:var(--u-ink); font-weight:900; }
.mo-head p { margin:0; max-width:820px; }
.mo-mean { background:var(--u-paper); border:1px solid var(--u-line); border-left:6px solid var(--u-brand); border-radius:14px; padding:16px 20px; margin:0 0 22px; }
.mo-mean b { color:var(--u-brand-strong); }
.mo-mean p { margin:0; color:var(--u-ink); }
.mo-howto { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:14px; color:var(--u-ink-2); margin:0 0 16px; }
.mo-howto span { display:inline-flex; align-items:center; gap:6px; }
.mo-howto i.k { font-style:normal; display:inline-grid; place-items:center; min-width:26px; height:26px; padding:0 6px; border-radius:8px; background:#FFF4D6; color:#9A6400; font-weight:800; font-size:13px; }
.mo-card { background:var(--u-paper); border:1px solid var(--u-line); border-radius:var(--r); padding:22px; box-shadow:0 10px 30px rgba(6,122,118,.06); }

/* ---------- 手機 ---------- */
.mo-phone { width:100%; max-width:280px; margin:0 auto; border-radius:34px; padding:9px; background:#1E2321; box-shadow:0 18px 40px rgba(0,0,0,.18); }
.mo-phone.sm { max-width:180px; border-radius:24px; padding:6px; }
.mo-scr { position:relative; aspect-ratio:393/852; border-radius:26px; overflow:hidden; background:var(--pk-bg); isolation:isolate; }
.mo-phone.sm .mo-scr { border-radius:19px; }
.mo-layer { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; background:var(--pk-bg); will-change:transform,opacity; }
.mo-hot { position:absolute; z-index:20; border-radius:10px; cursor:pointer; outline:2.5px dashed rgba(13,153,255,.0); transition:outline-color .2s, background .2s; touch-action:none; }
.mo-hot.show, .mo-hot:hover { outline-color:var(--fig-blue); background:rgba(13,153,255,.12); }
.mo-hot.pulse::after { content:""; position:absolute; left:50%; top:50%; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%; background:rgba(13,153,255,.35); animation:moPulse 1.4s ease-out infinite; pointer-events:none; }
@keyframes moPulse { 0%{transform:scale(.5);opacity:1} 100%{transform:scale(2.2);opacity:0} }
.mo-ring { position:absolute; z-index:30; left:50%; bottom:14%; transform:translateX(-50%); background:rgba(23,63,58,.9); color:#fff; font:700 13px var(--u-font-mono); padding:6px 12px; border-radius:999px; pointer-events:none; }
.mo-tapdot { position:absolute; z-index:40; width:28px; height:28px; margin:-14px 0 0 -14px; border-radius:50%; background:rgba(255,140,40,.45); border:3px solid #FF8A1F; pointer-events:none; animation:moTap .6s ease-out forwards; }
@keyframes moTap { 0%{transform:scale(.6);opacity:1} 100%{transform:scale(1.8);opacity:0} }

/* ---------- 01 互動組裝台 ---------- */
.mo-builder { display:grid; grid-template-columns:280px 310px 1fr; gap:26px; align-items:start; }
.mo-scen { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.mo-scen button, .mo-seg button { all:unset; cursor:pointer; font:700 14px "Noto Sans TC",sans-serif; padding:8px 14px; border-radius:999px; background:var(--u-paper); border:1.5px solid var(--u-line); color:var(--u-ink-2); }
.mo-scen button[aria-pressed="true"], .mo-seg button[aria-pressed="true"] { background:var(--u-ink); border-color:var(--u-ink); color:#fff; }
.mo-ctrl { display:flex; gap:8px; justify-content:center; margin-top:12px; flex-wrap:wrap; }
.mo-btn { all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font:700 14px "Noto Sans TC",sans-serif; padding:9px 16px; border-radius:12px; background:var(--u-brand); color:#fff; }
.mo-btn.ghost { background:var(--u-paper); color:var(--u-ink); border:1.5px solid var(--u-line); }
.mo-btn:focus-visible { outline:3px solid var(--fig-blue); }

/* Figma 互動面板（仿 Figma UI3） */
.fg-panel { background:#fff; border:1px solid #E6E6E6; border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.08); font:500 13px/1.4 "Inter","Noto Sans TC",system-ui,sans-serif; color:#1E1E1E; overflow:hidden; }
.fg-panel .fg-top { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #EEE; font-weight:700; }
.fg-panel .fg-top .tabs { margin-left:auto; display:flex; gap:2px; background:#F2F2F2; border-radius:8px; padding:2px; font-size:12px; }
.fg-panel .fg-top .tabs span { padding:3px 9px; border-radius:6px; color:#777; }
.fg-panel .fg-top .tabs span.on { background:#fff; color:#1E1E1E; box-shadow:0 1px 2px rgba(0,0,0,.1); }
.fg-sec { padding:10px 12px; border-bottom:1px solid #F0F0F0; }
.fg-sec:last-child { border-bottom:0; }
.fg-sec > label, .fg-lb { display:block; font-size:11px; color:#888; font-weight:600; margin-bottom:5px; letter-spacing:.02em; }
.fg-row { display:flex; gap:6px; align-items:center; }
.fg-sel { appearance:none; width:100%; font:600 13px "Inter","Noto Sans TC",sans-serif; color:#1E1E1E; background:#F5F5F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center; border:1px solid transparent; border-radius:7px; padding:7px 26px 7px 9px; cursor:pointer; }
.fg-sel:hover, .fg-sel:focus { border-color:var(--fig-blue); outline:0; }
.fg-dirs { display:flex; gap:4px; margin-top:6px; }
.fg-dirs button { all:unset; cursor:pointer; width:30px; height:28px; display:grid; place-items:center; border-radius:6px; background:#F5F5F5; font-size:14px; color:#555; }
.fg-dirs button[aria-pressed="true"] { background:var(--fig-blue); color:#fff; }
.fg-dirs.off { opacity:.3; pointer-events:none; }
.fg-num { display:flex; align-items:center; gap:8px; }
.fg-num input[type=range] { flex:1; accent-color:var(--fig-blue); }
.fg-num output { font:700 12px var(--u-font-mono); min-width:52px; text-align:right; }
.fg-chip { display:inline-flex; align-items:center; gap:6px; font-weight:700; background:#F5F5F5; border-radius:7px; padding:6px 9px; }
.fg-chip .dot { width:14px; height:14px; border-radius:4px; background:var(--fig-blue); }
.fg-curve { width:42px; height:22px; flex:none; }
.fg-dest { display:flex; align-items:center; gap:6px; background:#F5F5F5; border-radius:7px; padding:7px 9px; font-weight:600; }
.fg-dest::before { content:"▢"; color:#999; font-size:12px; }

.mo-read { display:grid; gap:14px; }
.mo-sentence { background:var(--u-ink); color:#fff; border-radius:16px; padding:18px 20px; font-size:18px; line-height:1.9; }
.mo-sentence b { display:inline-block; padding:0 8px; border-radius:6px; margin:0 2px; line-height:1.6; }
.mo-sentence .t { background:#FFB020; color:#3A2600; }
.mo-sentence .a { background:#4FD1C5; color:#0B302D; }
.mo-sentence .n { background:#A78BFA; color:#1F1240; }
.mo-sentence .e { background:#F9A8D4; color:#4A0D2C; }
.mo-sentence small { display:block; font-size:12px; color:#9FB0AE; margin-top:4px; letter-spacing:.06em; }
.mo-judge { display:grid; gap:8px; }
.mo-judge div { display:flex; gap:10px; align-items:flex-start; background:var(--u-paper); border:1px solid var(--u-line); border-radius:12px; padding:10px 14px; font-size:14.5px; line-height:1.6; color:var(--u-ink); }
.mo-judge i { font-style:normal; flex:none; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:13px; color:#fff; }
.mo-judge .ok i { background:var(--u-good); }
.mo-judge .mid i { background:#D98F00; }
.mo-judge .bad i { background:var(--u-warn); }
.mo-legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; color:var(--u-ink-2); }
.mo-legend b { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:5px; vertical-align:-1px; }

/* ---------- 02 觸發卡 ---------- */
.mo-trig-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.mo-trig { background:var(--u-paper); border:1px solid var(--u-line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; }
.mo-trig .tstage { position:relative; height:190px; background:var(--pk-bg); display:grid; place-items:center; overflow:hidden; border-bottom:1px solid var(--u-line); user-select:none; -webkit-user-select:none; }
.mo-trig .hint { position:absolute; left:10px; top:10px; font:700 12px "Noto Sans TC",sans-serif; background:#FFF4D6; color:#9A6400; padding:3px 9px; border-radius:999px; }
.mo-trig .fired { position:absolute; right:10px; top:10px; font:700 11px var(--u-font-mono); background:var(--fig-blue); color:#fff; padding:3px 9px; border-radius:999px; opacity:0; transform:translateY(-4px); transition:.25s; }
.mo-trig .fired.on { opacity:1; transform:none; }
.mo-trig .body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:6px; }
.mo-trig .nm { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mo-trig .nm code { font:700 13px var(--u-font-mono); background:#E8F4FF; color:#0A6CC2; padding:2px 8px; border-radius:6px; }
.mo-trig .nm b { font-size:18px; color:var(--u-ink); font-family:var(--u-font-display); }
.mo-trig p { margin:0; font-size:14.5px; line-height:1.7; }
.mo-trig .where { font-size:13.5px; color:var(--u-brand-strong); }
.mo-trig .warn { font-size:13px; color:#9A4A1E; }
/* 各觸發的道具 */
.pk-heart { all:unset; cursor:pointer; width:64px; height:64px; border-radius:50%; background:#fff; display:grid; place-items:center; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.pk-heart svg { width:30px; height:30px; fill:none; stroke:var(--pk-brand); stroke-width:2; transition:fill .2s; }
.pk-heart.on svg { fill:var(--pk-accent); stroke:var(--pk-accent); }
.pk-btn { all:unset; cursor:pointer; font:700 16px "Noto Sans TC",sans-serif; color:#fff; background:var(--pk-brand); padding:14px 34px; border-radius:12px; transition:transform .12s ease-out, background .12s ease-out, box-shadow .12s; box-shadow:0 6px 0 #0E2926; touch-action:none; }
.pk-btn.press { background:#0E2926; transform:translateY(4px) scale(.98); box-shadow:0 2px 0 #0E2926; }
.pk-tip { position:absolute; bottom:calc(50% + 40px); left:50%; transform:translate(-50%,6px); background:var(--u-ink); color:#fff; font-size:13px; padding:6px 12px; border-radius:8px; opacity:0; transition:.18s ease-out; pointer-events:none; white-space:nowrap; }
.pk-tip.on { opacity:1; transform:translate(-50%,0); }
.pk-track { width:200px; overflow:hidden; border-radius:16px; touch-action:pan-y; cursor:grab; }
.pk-track .rail { display:flex; transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.pk-track .rail.drag { transition:none; }
.pk-track .sl { flex:0 0 200px; height:118px; border-radius:16px; color:#fff; padding:14px; font:700 15px/1.4 "Noto Sans TC",sans-serif; }
.pk-dots { display:flex; gap:5px; justify-content:center; margin-top:10px; }
.pk-dots i { width:7px; height:7px; border-radius:4px; background:#C9D4CF; transition:width .25s; }
.pk-dots i.on { width:20px; background:var(--pk-accent); }
.pk-splash { width:120px; height:170px; border-radius:16px; background:var(--pk-brand); color:#fff; display:grid; place-items:center; text-align:center; font:900 16px var(--u-font-display); position:relative; overflow:hidden; }
.pk-splash .bar { position:absolute; left:0; bottom:0; height:5px; background:var(--pk-accent); width:0; }
.pk-splash.next { background:#fff; color:var(--pk-brand); border:2px solid var(--pk-brand); }
.pk-key { display:flex; flex-direction:column; gap:8px; width:230px; }
.pk-msgs { height:92px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; gap:5px; }
.pk-msgs span { align-self:flex-end; background:var(--pk-brand); color:#fff; font-size:13px; padding:5px 10px; border-radius:12px 12px 4px 12px; animation:moIn .3s ease-out; }
@keyframes moIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.pk-key input { font:500 14px "Noto Sans TC",sans-serif; padding:9px 12px; border-radius:10px; border:1.5px solid var(--u-line); width:100%; }
.pk-key input:focus { outline:2px solid var(--fig-blue); }
.pk-key kbd { font:700 11px var(--u-font-mono); background:#fff; border:1px solid #ccc; border-bottom-width:3px; border-radius:5px; padding:1px 6px; }

/* ---------- 03 動作：迷你 App＋堆疊 ---------- */
.mo-act { display:grid; grid-template-columns:280px 1fr; gap:30px; align-items:start; }
.mo-act-right { display:grid; grid-template-columns:1fr 230px; gap:20px; align-items:start; }
.app { position:absolute; inset:0; font-family:"Noto Sans TC",sans-serif; color:#2C3431; }
.app .pg { position:absolute; inset:0; background:var(--pk-bg); display:flex; flex-direction:column; }
.app .bar { display:flex; align-items:center; gap:8px; padding:30px 12px 8px; font:900 15px var(--u-font-display); color:var(--pk-brand); }
.app .bar .sp { flex:1; }
.app .ibtn { all:unset; cursor:pointer; font-size:12px; font-weight:700; padding:5px 9px; border-radius:8px; background:#fff; border:1px solid #D5DBD6; }
.app .list { flex:1; overflow:auto; padding:4px 12px 12px; display:flex; flex-direction:column; gap:8px; scrollbar-width:none; }
.app .row { all:unset; cursor:pointer; display:flex; gap:9px; align-items:center; background:#fff; border-radius:12px; padding:7px; }
.app .row img { width:50px; height:50px; border-radius:8px; object-fit:cover; }
.app .row b { display:block; font-size:12.5px; }
.app .row em { font-style:normal; font-size:12px; color:var(--pk-accent); font-weight:800; }
.app .hero { height:38%; background:#ddd center/cover; }
.app .dbody { padding:12px; display:flex; flex-direction:column; gap:8px; flex:1; }
.app .dbody h5 { margin:0; font:900 16px var(--u-font-display); }
.app .fav { all:unset; cursor:pointer; align-self:flex-start; font-size:12.5px; font-weight:700; padding:6px 12px; border-radius:999px; border:1.5px solid var(--pk-brand); color:var(--pk-brand); transition:.2s; }
.app .fav.on { background:var(--pk-accent); border-color:var(--pk-accent); color:#fff; }
.app .cta { all:unset; cursor:pointer; margin-top:auto; text-align:center; background:var(--pk-brand); color:#fff; font-weight:700; font-size:13px; padding:11px; border-radius:10px; }
.app .scrim { position:absolute; inset:0; background:rgba(0,0,0,.35); }
.app .sheet { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:18px 18px 0 0; padding:14px 14px 18px; display:flex; flex-direction:column; gap:8px; }
.app .sheet h6 { margin:0; font:900 15px var(--u-font-display); display:flex; align-items:center; }
.app .sheet h6 .x { all:unset; cursor:pointer; margin-left:auto; width:26px; height:26px; border-radius:50%; background:#F1F1F1; display:grid; place-items:center; font-size:13px; }
.app .sheet .opt { font-size:12.5px; padding:8px 10px; border-radius:9px; background:#F4F0E7; }
.app .sheet .swap { all:unset; cursor:pointer; font-size:12.5px; font-weight:700; color:#0A6CC2; }
.app [data-act]:not(.scrim) { position:relative; }
.app .glow { box-shadow:0 0 0 3px var(--fig-blue), 0 0 0 7px rgba(13,153,255,.25) !important; animation:moGlow 1s ease-in-out 2; }
@keyframes moGlow { 50%{ box-shadow:0 0 0 3px var(--fig-blue), 0 0 0 12px rgba(13,153,255,.12) } }
.mo-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.mo-chips button { all:unset; cursor:pointer; font:700 13px var(--u-font-mono); padding:7px 12px; border-radius:9px; background:#E8F4FF; color:#0A6CC2; border:1.5px solid transparent; }
.mo-chips button.cur { border-color:#0A6CC2; background:#fff; }
.mo-log { background:var(--u-paper); border:1px solid var(--u-line); border-radius:16px; padding:16px 18px; min-height:150px; }
.mo-log .ttl { font:800 13px var(--u-font-mono); color:#0A6CC2; }
.mo-log h4 { margin:4px 0 6px; font-size:20px; }
.mo-log p { margin:0; font-size:15px; color:var(--u-ink); }
.mo-log .eg { margin-top:8px; font-size:13.5px; color:var(--u-ink-2); }
.mo-stack { background:#1E2321; border-radius:16px; padding:14px; color:#fff; min-height:300px; display:flex; flex-direction:column; }
.mo-stack .lb { font:700 11px var(--u-font-mono); letter-spacing:.1em; color:#8FA5A0; margin-bottom:8px; }
.mo-stack .ov { min-height:54px; border:1.5px dashed #6B7F7A; border-radius:10px; display:flex; flex-direction:column; justify-content:flex-end; gap:5px; padding:6px; margin-bottom:12px; }
.mo-stack .ov:empty::after { content:"（沒有浮層）"; color:#6B7F7A; font-size:12px; text-align:center; }
.mo-stack .pages { flex:1; display:flex; flex-direction:column-reverse; justify-content:flex-start; gap:5px; }
.mo-stack .it { border-radius:8px; padding:7px 10px; font-size:13px; font-weight:700; animation:moIn .3s ease-out; }
.mo-stack .pages .it { background:#33403C; color:#C9D8D3; }
.mo-stack .pages .it:first-child { background:var(--u-brand); color:#06302E; }
.mo-stack .ov .it { background:#A78BFA; color:#1F1240; }
.mo-stack .note { font-size:11.5px; color:#8FA5A0; margin-top:8px; line-height:1.5; }

/* ---------- 04 轉場比較 ---------- */
.mo-tr-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.mo-tr { background:var(--u-paper); border:1px solid var(--u-line); border-radius:var(--r); padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px; cursor:pointer; }
.mo-tr:hover { border-color:var(--fig-blue); }
.mo-tr .nm { display:flex; align-items:center; gap:8px; }
.mo-tr .nm code { font:700 13px var(--u-font-mono); color:#0A6CC2; }
.mo-tr .nm b { font-size:16px; font-family:var(--u-font-display); }
.mo-tr p { margin:0; font-size:13.5px; line-height:1.65; }
.mo-tr .sp { display:flex; gap:6px; align-items:center; font-size:12px; color:var(--u-ink-2); }
.mo-space { width:58px; height:34px; position:relative; flex:none; }
.mo-space i { position:absolute; width:22px; height:30px; border-radius:4px; top:2px; }
.mo-space .a { left:4px; background:#C9D4CF; }
.mo-space .b { left:30px; background:var(--u-brand); }
.mo-sa { display:grid; grid-template-columns:1fr 1fr 280px; gap:22px; align-items:center; }
.mo-sa-frame { background:var(--u-paper); border:1px solid var(--u-line); border-radius:16px; padding:12px; }
.mo-sa-frame .lb { font:700 12px var(--u-font-mono); color:var(--u-ink-3); margin-bottom:6px; }
.mo-layers { list-style:none; margin:0; padding:0; font:600 13px "Inter","Noto Sans TC",sans-serif; }
.mo-layers li { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:7px; }
.mo-layers li::before { content:"▭"; color:#999; }
.mo-layers li.match { background:#E8F4FF; color:#0A6CC2; }
.mo-layers li.miss { background:#FDECEA; color:#B3261E; }
.mo-sa-stage { position:relative; aspect-ratio:393/600; border-radius:18px; overflow:hidden; background:var(--pk-bg); border:6px solid #1E2321; }
.mo-sa-stage .el { position:absolute; border-radius:10px; will-change:transform,opacity; }

/* ---------- 05 曲線實驗室 ---------- */
.mo-lab { display:grid; grid-template-columns:330px 1fr; gap:26px; align-items:start; }
.mo-presets { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.mo-presets button { all:unset; cursor:pointer; display:flex; flex-direction:column; gap:1px; padding:9px 11px; border-radius:11px; background:var(--u-paper); border:1.5px solid var(--u-line); }
.mo-presets button b { font:700 13.5px "Inter","Noto Sans TC",sans-serif; color:var(--u-ink); }
.mo-presets button small { font-size:11.5px; color:var(--u-ink-3); line-height:1.4; }
.mo-presets button.a { border-color:var(--fig-blue); background:#E8F4FF; }
.mo-presets button.b { border-color:#E07A2E; background:#FFF1E6; }
.mo-presets .grp { grid-column:1/-1; font:700 11px var(--u-font-mono); color:var(--u-ink-3); letter-spacing:.1em; margin-top:6px; }
.mo-graph { background:#1E2321; border-radius:16px; padding:14px; }
.mo-graph svg { width:100%; height:auto; display:block; }
.mo-lanes { display:grid; gap:10px; margin-top:14px; }
.mo-lane { position:relative; height:54px; border-radius:12px; background:var(--u-paper); border:1px solid var(--u-line); }
.mo-lane .tag { position:absolute; left:10px; top:6px; font:700 11px var(--u-font-mono); }
.mo-lane .card { position:absolute; top:16px; left:10px; width:56px; height:30px; border-radius:8px; }
.mo-lane .goal { position:absolute; top:12px; bottom:6px; width:2px; background:repeating-linear-gradient(#999 0 4px,transparent 4px 8px); }
.mo-tips { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:20px; }
.mo-tips div { background:var(--u-paper); border:1px solid var(--u-line); border-radius:14px; padding:14px 16px; font-size:14px; line-height:1.65; color:var(--u-ink-2); }
.mo-tips b { display:block; color:var(--u-ink); font-size:15.5px; margin-bottom:4px; }
.mo-tips code { font:700 12.5px var(--u-font-mono); color:#0A6CC2; }

/* ---------- 06 拾器實作圖解 ---------- */
.mo-steps-nav { display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; margin-bottom:16px; scrollbar-width:thin; }
.mo-steps-nav button { all:unset; cursor:pointer; flex:none; display:flex; align-items:center; gap:8px; padding:8px 14px 8px 8px; border-radius:999px; background:var(--u-paper); border:1.5px solid var(--u-line); font:700 13.5px "Noto Sans TC",sans-serif; color:var(--u-ink-2); }
.mo-steps-nav button i { font-style:normal; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:var(--u-line); color:var(--u-ink); font:800 12px var(--u-font-mono); }
.mo-steps-nav button[aria-selected="true"] { background:var(--u-ink); color:#fff; border-color:var(--u-ink); }
.mo-steps-nav button[aria-selected="true"] i { background:var(--u-brand); }
.mo-step { display:grid; grid-template-columns:1fr 330px; gap:22px; align-items:start; }
.fg-canvas { position:relative; background:#E9E9E9; border-radius:18px; padding:46px 22px 22px; overflow:hidden; min-height:420px; }
.fg-canvas .fg-tb { position:absolute; left:0; right:0; top:0; height:34px; background:var(--fig-ui); display:flex; align-items:center; gap:10px; padding:0 12px; color:#ddd; font:600 12px "Inter",sans-serif; }
.fg-canvas .fg-tb .tabs { margin-left:auto; display:flex; gap:2px; background:#3a3a3a; border-radius:6px; padding:2px; }
.fg-canvas .fg-tb .tabs span { padding:2px 8px; border-radius:4px; color:#aaa; }
.fg-canvas .fg-tb .tabs span.on { background:#5a5a5a; color:#fff; }
.fg-canvas .fg-tb .play { background:var(--fig-blue); color:#fff; border-radius:5px; padding:2px 8px; }
.fg-frames { position:relative; display:flex; gap:7%; justify-content:center; align-items:flex-start; }
.fg-frame { position:relative; width:26%; max-width:190px; flex:none; }
.fg-frame .fn { font:600 11px "Inter","Noto Sans TC",sans-serif; color:#777; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fg-frame .fn .flow { display:inline-block; background:var(--fig-blue); color:#fff; border-radius:4px; padding:0 5px; margin-right:4px; font-weight:700; }
.fg-frame img { width:100%; border-radius:3px; box-shadow:0 2px 10px rgba(0,0,0,.12); background:#fff; }
.fg-frame.sel img { outline:2px solid var(--fig-blue); }
.fg-pick { position:absolute; border:2px solid var(--fig-blue); border-radius:3px; pointer-events:none; }
.fg-pick::after { content:""; position:absolute; right:-9px; top:50%; width:12px; height:12px; margin-top:-6px; border-radius:50%; background:#fff; border:2.5px solid var(--fig-blue); }
.fg-noodle { position:absolute; inset:0; pointer-events:none; overflow:visible; }
.fg-noodle path { fill:none; stroke:var(--fig-blue); stroke-width:2.5; stroke-dasharray:6 0; }
.fg-noodle .draw { stroke-dasharray:1000; stroke-dashoffset:1000; animation:fgDraw 1.2s ease-out forwards; }
@keyframes fgDraw { to { stroke-dashoffset:0 } }
.fg-call { position:absolute; z-index:3; width:24px; height:24px; border-radius:50%; background:#FF5A1F; color:#fff; font:800 12px var(--u-font-mono); display:grid; place-items:center; box-shadow:0 0 0 3px #fff; }
.fg-badge { position:absolute; z-index:3; background:#fff; border:1.5px solid var(--fig-blue); color:#0A6CC2; font:700 11px "Inter","Noto Sans TC",sans-serif; padding:3px 8px; border-radius:6px; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.mo-howlist { margin:14px 0 0; padding:0; list-style:none; counter-reset:h; }
.mo-howlist li { counter-increment:h; position:relative; padding:8px 0 8px 36px; font-size:15px; line-height:1.65; color:var(--u-ink); border-bottom:1px dashed var(--u-line); }
.mo-howlist li::before { content:counter(h); position:absolute; left:0; top:9px; width:24px; height:24px; border-radius:50%; background:#FF5A1F; color:#fff; font:800 12px var(--u-font-mono); display:grid; place-items:center; }
.mo-howlist kbd, .mo-step kbd { font:700 12px var(--u-font-mono); background:#fff; border:1px solid #ccc; border-bottom-width:2px; border-radius:5px; padding:0 5px; }
.mo-howlist code, .mo-step-side code { font:700 12.5px var(--u-font-mono); background:#E8F4FF; color:#0A6CC2; padding:1px 6px; border-radius:5px; }
.mo-step-side { display:flex; flex-direction:column; gap:14px; }
.mo-why { background:#FFF4D6; border-radius:12px; padding:12px 14px; font-size:14px; line-height:1.65; color:#5A4200; }
.mo-why b { color:#3A2600; }
.mo-err { background:#FDECEA; border-radius:12px; padding:12px 14px; font-size:14px; line-height:1.65; color:#7A1E17; }
.mo-mini { display:flex; gap:12px; align-items:center; }
.mo-mini .mm { width:150px; flex:none; }
/* 04 轉場：實際畫面＋色塊示意 */
.mo-tr .viz { display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:start; }
.mo-tr .viz .mo-phone.sm { max-width:none; padding:4px; border-radius:16px; }
.mo-tr .viz .mo-phone.sm .mo-scr { border-radius:12px; }
.mo-sch { border-radius:16px; padding:4px; background:#1E2321; }
.mo-sch .mo-scr { border-radius:12px; background:#fff; }
.mo-sch .sa { background:#D9E1DD; }
.mo-sch .sb { background:#173F3A; }
.mo-sch .tg { position:absolute; left:0; right:0; top:22%; text-align:center; font:900 34px/1 var(--u-font-display); color:#7C8E88; }
.mo-sch .tg small { display:block; font-size:12px; font-weight:800; margin-top:4px; }
.mo-sch .sb .tg { color:#fff; top:auto; bottom:22%; }
.mo-sch .ph1 { position:absolute; left:8%; top:46%; width:40%; height:14%; background:#E07A2E; border-radius:4px; }
.mo-sch .ph2 { position:absolute; left:0; top:0; width:100%; height:34%; background:#E07A2E; }
.mo-sch .ln { position:absolute; left:8%; width:70%; height:3.5%; border-radius:3px; background:rgba(0,0,0,.12); }
.mo-sch .sb .ln { background:rgba(255,255,255,.25); }
.mo-tr .vl { display:grid; grid-template-columns:1fr 1fr; gap:8px; text-align:center; font:700 11px "Noto Sans TC",sans-serif; color:var(--u-ink-3); margin-top:-4px; }
.mo-tr.playing { border-color:var(--fig-blue); box-shadow:0 0 0 3px rgba(13,153,255,.18); }
.mo-tr.dim { opacity:.35; }
.mo-tr:focus-visible { outline:3px solid var(--fig-blue); }
.mo-tr .ab { margin:2px 0 0; display:grid; gap:4px; font-size:13px; }
.mo-tr .ab div { display:flex; gap:8px; align-items:baseline; }
.mo-tr .ab dt { flex:none; font-size:11.5px; font-weight:800; border-radius:5px; padding:1px 6px; }
.mo-tr .ab dt.a { background:#D9E1DD; color:#4A5A55; }
.mo-tr .ab dt.b { background:#173F3A; color:#fff; }
.mo-tr .ab dd { margin:0; color:var(--u-ink); font-weight:600; }
.mo-tr .ab u { text-decoration:none; background:#FFF1DA; color:#8A4F00; padding:0 3px; border-radius:3px; }
.mo-tr-pairs { display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13.5px; }
.mo-tr-pairs .mo-btn { padding:6px 11px; font-size:13px; }
.mo-tr-sum { margin-top:16px; background:var(--u-paper); border:1px dashed var(--u-line); border-radius:12px; padding:12px 16px; font-size:15px; line-height:1.7; }
.sw { display:inline-flex; align-items:center; gap:4px; margin:0 6px 0 2px; font-weight:700; white-space:nowrap; }
.sw::before { content:""; width:12px; height:12px; border-radius:3px; }
.sw.a::before { background:#D9E1DD; border:1px solid #aab; } .sw.b::before { background:#173F3A; } .sw.c::before { background:#E07A2E; }
@media (min-width:1101px) { .mo-tr-grid { grid-template-columns:repeat(4,1fr); } }
@media (max-width:520px) { .mo-tr-grid { grid-template-columns:1fr; } .mo-tr .viz { max-width:300px; margin:0 auto; width:100%; } }

/* 03 任務清單 */
.mo-tasks-wrap { background:#FFF8EC; border:1.5px solid #F2C46D; border-radius:14px; padding:12px 16px; margin-bottom:16px; }
.mo-tasks-h { display:flex; justify-content:space-between; gap:10px; margin:0 0 8px; font-size:15px; color:#5A3A00; }
.mo-tasks-n { font:800 14px var(--u-font-mono); color:#B36B00; }
.mo-tasks { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; counter-reset:t; }
.mo-tasks li { counter-increment:t; position:relative; padding:4px 0 4px 30px; font-size:14px; font-weight:600; color:var(--u-ink); line-height:1.5; }
.mo-tasks li::before { content:counter(t); position:absolute; left:0; top:4px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#fff; border:1.5px solid #E3B866; color:#8A5A00; font:800 11.5px var(--u-font-mono); }
.mo-tasks li.done { color:#145C38; }
.mo-tasks li.done::before { content:"✓"; background:#1F9D61; border-color:#1F9D61; color:#fff; }
.mo-tasks code { font:700 11.5px var(--u-font-mono); background:#E8F4FF; color:#0A6CC2; padding:0 5px; border-radius:4px; }
.mo-tasks-tip { margin:8px 0 0; font-size:13px; color:#7A5A20; }
.mo-steps4.mo-lab-steps { grid-template-columns:1fr; gap:6px; margin-bottom:12px; }
.mo-lab-steps li { padding:7px 10px; font-size:13.5px; }
.mo-lab-steps b { width:24px; height:24px; font-size:12px; }
@media (max-width:520px) { .mo-tasks { grid-template-columns:1fr; } }

/* 01 任務引導 */
.mo-steps4 { list-style:none; margin:0 0 16px; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.mo-steps4 li { display:flex; align-items:center; gap:10px; background:var(--u-bg, #F6F8F7); border:1px solid var(--u-line); border-radius:12px; padding:10px 12px; font-size:14.5px; font-weight:700; color:var(--u-ink); line-height:1.45; }
.mo-steps4 b { flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--u-ink); color:#fff; font:800 14px var(--u-font-mono); }
.mo-steps4 em, .mo-status .nd, em.nd { font-style:normal; color:#B36B00; background:#FFF1DA; padding:0 5px; border-radius:5px; }
.mo-mission { display:flex; gap:12px; align-items:flex-start; background:#FFF8EC; border:1.5px solid #F2C46D; border-radius:14px; padding:12px 16px; margin-bottom:20px; }
.mo-mission .lb { flex:none; font:800 13px "Noto Sans TC",sans-serif; color:#fff; background:#D98F00; border-radius:8px; padding:3px 10px; margin-top:2px; }
.mo-mission p { margin:0; font-size:16px; font-weight:700; color:#5A3A00; line-height:1.6; }
.mo-status { border-radius:12px; padding:11px 14px; font-size:15px; font-weight:700; background:#FFF1DA; color:#7A4A00; }
.mo-status b { font-size:20px; color:#B36B00; }
.mo-status.done { background:#E3F6EC; color:#145C38; }
.fg-sec.need { background:#FFF4E2; box-shadow:inset 4px 0 0 #E38B00; }
.fg-sec.need > label::after { content:"要修"; margin-left:6px; font-size:10.5px; color:#fff; background:#E38B00; border-radius:4px; padding:1px 5px; }
@media (max-width:1100px) { .mo-steps4 { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .mo-steps4 { grid-template-columns:1fr; } }
.mo-vlink {display:flex; align-items:center; gap:6px; font-weight:800; font-size:14px; color:#0A6CC2; background:#E8F4FF; border-radius:12px; padding:10px 14px; text-decoration:none; }
.mo-vlink:hover { background:#D4EBFF; color:#0A6CC2; }
.ui09-page .mo-sec kbd { color:#1E2321; background:#fff; border:1px solid #ccc; border-bottom-width:2px; border-radius:5px; padding:0 5px; font:700 12px -apple-system,"Noto Sans TC",sans-serif; box-shadow:none; }
.mo-mini .mo-phone { margin:0; }
.mo-step-title { font:900 22px/1.4 var(--u-font-display); margin:0 0 4px; color:var(--u-ink); }
.mo-step-goal { margin:0; font-size:15px; }
.mo-step-nav2 { display:flex; justify-content:space-between; margin-top:16px; }

/* ---------- 開場說明 ---------- */
.mo-guide { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:22px; }
.mo-guide div { background:var(--u-paper); border:1px solid var(--u-line); border-radius:16px; padding:16px 18px; }
.mo-guide b { display:block; font-family:var(--u-font-display); font-size:17px; margin-bottom:4px; color:var(--u-ink); }
.mo-guide p { margin:0; font-size:14.5px; }
.mo-formula { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font:800 17px "Noto Sans TC",sans-serif; margin-top:6px; }
.mo-formula span { padding:6px 12px; border-radius:10px; }
.mo-formula .t { background:#FFB020; color:#3A2600; } .mo-formula .a { background:#4FD1C5; color:#0B302D; } .mo-formula .e { background:#F9A8D4; color:#4A0D2C; }

/* ---------- RWD ---------- */
@media (max-width:1100px) {
  .mo-builder { grid-template-columns:260px 1fr; }
  .mo-builder .mo-read { grid-column:1/-1; }
  .mo-tr-grid { grid-template-columns:repeat(2,1fr); }
  .mo-act-right { grid-template-columns:1fr; }
  .mo-sa { grid-template-columns:1fr 1fr; }
  .mo-sa .mo-sa-stage { grid-column:1/-1; max-width:300px; margin:0 auto; }
  .mo-step { grid-template-columns:1fr; }
}
@media (max-width:800px) {
  .mo-builder, .mo-act, .mo-lab { grid-template-columns:1fr; }
  .mo-trig-grid { grid-template-columns:1fr; }
  .mo-tips, .mo-guide { grid-template-columns:1fr; }
  .mo-head { grid-template-columns:1fr; }
  .mo-head .no { grid-row:auto; font-size:52px; }
  .fg-canvas { padding:44px 10px 14px; min-height:0; }
  .fg-frame { width:30%; }
  .fg-badge { font-size:9.5px; padding:2px 5px; }
  .fg-canvas .fg-tb { white-space:nowrap; overflow:hidden; font-size:10px; gap:6px; }
  .fg-canvas .fg-tb .tabs { display:none; }
  .mo-builder .mo-phone, .mo-act .mo-phone { max-width:240px; }
}
@media (max-width:520px) {
  .mo-tr-grid { grid-template-columns:1fr; gap:14px; }
  .mo-tr { padding:10px; }
  .mo-sa { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) { .mo-hot.pulse::after { animation:none; } }

/* ---------- 補充 ---------- */
.mo-b-msg { margin:10px auto 0; max-width:280px; text-align:center; font-size:13.5px; font-weight:700; color:#9A4A1E; background:#FFF1E6; border-radius:10px; padding:7px 10px; opacity:0; transition:opacity .25s; }
.mo-b-target { font-size:13px; color:var(--u-ink-2); text-align:center; margin-top:10px; }
.mo-b-target b { color:#0A6CC2; }
.mo-sub { font:900 20px/1.4 var(--u-font-display); color:var(--u-ink); margin:34px 0 12px; }
.mo-tr-bar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:14px; }
.mo-tr-bar label { display:inline-flex; gap:6px; align-items:center; font-size:14px; font-weight:700; cursor:pointer; }
.mo-seg { display:flex; gap:6px; flex-wrap:wrap; }
.mo-sa-result { font-size:14.5px; line-height:1.7; background:var(--u-paper); border:1px solid var(--u-line); border-radius:12px; padding:12px 14px; margin-top:12px; }
.mo-slot { display:flex; gap:6px; margin-bottom:10px; }
.mo-slot button { all:unset; cursor:pointer; font:800 13px "Noto Sans TC",sans-serif; padding:6px 12px; border-radius:9px; border:2px solid var(--u-line); background:var(--u-paper); }
.mo-slot button[data-slot=a][aria-pressed=true] { border-color:#0D99FF; background:#E8F4FF; color:#0A6CC2; }
.mo-slot button[data-slot=b][aria-pressed=true] { border-color:#E07A2E; background:#FFF1E6; color:#9A4A1E; }
.mo-lab-note { font-size:13.5px; color:var(--u-ink-2); margin:10px 0 0; }
.pk-time { position:absolute; bottom:14px; left:0; right:0; text-align:center; font:700 12px var(--u-font-mono); color:var(--u-ink-2); }
@media (max-width:520px) { .mo-sch .tg { font-size:28px; } }
