/* scenes.css — 各場景專屬樣式 */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,122,140,.45); } 60% { box-shadow: 0 0 0 26px rgba(31,122,140,0); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-12deg) scale(2.6); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* ===================== S0 封面 ===================== */
.reveal .slides section:where(.aj).cover { padding: 0; }
:where(section.aj) .cover-grid { display: grid; grid-template-columns: 1fr 1fr; height: 100%; align-items: center; }
:where(section.aj) .cover-text { padding: 0 0 40px 130px; }
:where(section.aj) .cover h1, section:where(.aj).cover h1 { font-size: 112px; line-height: 1.16; }
:where(section.aj) .cover h1 .l3, section:where(.aj).cover h1 .l3 { color: var(--accent); }
:where(section.aj) .cover .byline, section:where(.aj).cover .byline { margin-top: 64px; font-size: 40px; color: var(--muted); display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
:where(section.aj) .cover .byline b, section:where(.aj).cover .byline b { color: var(--ink); font-weight: 700; font-size: 52px; white-space: nowrap; }
:where(section.aj) .cover-art { display: flex; align-items: center; justify-content: center; height: 100%; }
:where(section.aj) .cover-art img { width: 880px; max-height: 980px; object-fit: contain; display: block; }
:where(section.aj) .cover.present .cover-text > *, section:where(.aj).cover.present .cover-text > * { opacity: 0; animation: rise .8s ease forwards; }
:where(section.aj) .cover.present h1, section:where(.aj).cover.present h1 { animation-delay: .2s; }
:where(section.aj) .cover.present .byline, section:where(.aj).cover.present .byline { animation-delay: .8s; }
:where(section.aj) .cover.present .cover-art img, section:where(.aj).cover.present .cover-art img { opacity: 0; animation: fadeIn 1.1s ease forwards .35s; }

/* ===================== S0b 講師簡介 ===================== */
:where(section.aj) .spk-grid { display: grid; grid-template-columns: 520px 1fr; gap: 80px; align-items: center; height: 100%; }
:where(section.aj) .spk-photo { position: relative; width: 520px; height: 650px; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(19,47,72,.22); background: var(--accent-soft); }
:where(section.aj) .spk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(section.aj) .spk-photo .ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 160px; font-weight: 700; color: var(--accent); }
:where(section.aj) .spk-photo.missing img { display: none; }
:where(section.aj) .spk-photo.missing .ph { display: flex; }
:where(section.aj) .spk-text .kicker { font-size: 28px; letter-spacing: .35em; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
:where(section.aj) .spk-text h1 { font-size: 100px; line-height: 1.15; margin-bottom: 36px; }
:where(section.aj) .spk-roles { list-style: none; margin: 0; padding: 0; counter-reset: r; }
:where(section.aj) .spk-roles li { counter-increment: r; display: flex; gap: 18px; align-items: baseline; font-size: 38px; line-height: 1.45; padding: 20px 0; border-bottom: 2px solid var(--line); }
:where(section.aj) .spk-roles li:last-child { border-bottom: none; }
:where(section.aj) .spk-roles li::before { content: counter(r) '.'; color: var(--accent); font-weight: 700; flex: none; width: 50px; font-variant-numeric: tabular-nums; }
:where(section.aj) .spk-roles .txt { display: flex; flex-wrap: wrap; column-gap: 24px; }
:where(section.aj) .spk-roles .org { font-weight: 700; color: var(--ink); white-space: nowrap; }
:where(section.aj) .spk-roles .role { color: var(--ink-2); white-space: nowrap; }
:where(section.aj) .speaker.present .spk-photo, section:where(.aj).speaker.present .spk-photo { opacity: 0; animation: fadeIn .9s ease forwards .15s; }
:where(section.aj) .speaker.present .spk-text .kicker, section:where(.aj).speaker.present .spk-text .kicker, :where(section.aj) .speaker.present .spk-text h1, section:where(.aj).speaker.present .spk-text h1, :where(section.aj) .speaker.present .spk-roles li, section:where(.aj).speaker.present .spk-roles li { opacity: 0; animation: rise .7s ease forwards; }
:where(section.aj) .speaker.present .spk-text .kicker, section:where(.aj).speaker.present .spk-text .kicker { animation-delay: .1s; }
:where(section.aj) .speaker.present .spk-text h1, section:where(.aj).speaker.present .spk-text h1 { animation-delay: .25s; }
:where(section.aj) .speaker.present .spk-roles li:nth-child(1), section:where(.aj).speaker.present .spk-roles li:nth-child(1) { animation-delay: .55s; }
:where(section.aj) .speaker.present .spk-roles li:nth-child(2), section:where(.aj).speaker.present .spk-roles li:nth-child(2) { animation-delay: .7s; }
:where(section.aj) .speaker.present .spk-roles li:nth-child(3), section:where(.aj).speaker.present .spk-roles li:nth-child(3) { animation-delay: .85s; }
:where(section.aj) .speaker.present .spk-roles li:nth-child(4), section:where(.aj).speaker.present .spk-roles li:nth-child(4) { animation-delay: 1s; }

/* ===================== S1 緣起 ===================== */
.reveal .slides section:where(.aj).origin .hdr { margin-bottom: 14px; }
:where(section.aj) .strip { position: relative; height: 136px; margin: 0 0 4px; }
:where(section.aj) .strip .rail { position: absolute; left: 55px; right: 205px; top: 22px; height: 3px; background: var(--line-2); opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .strip.on .rail { opacity: 1; }
:where(section.aj) .strip .node { position: absolute; top: 8px; width: 300px; opacity: 0; transform: translateY(14px); transition: all .5s ease; }
:where(section.aj) .strip .node.on { opacity: 1; transform: none; }
:where(section.aj) .strip .node .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); box-sizing: border-box; margin-bottom: 8px; position: relative; z-index: 1; }
:where(section.aj) .strip .node.me .dot { border-color: var(--accent); background: var(--accent); }
:where(section.aj) .strip .node .yr { font-size: 34px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
:where(section.aj) .strip .node.me .yr { color: var(--accent); }
:where(section.aj) .strip .node .tt { font-size: 28px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
:where(section.aj) .strip .n0 { left: 40px; } :where(section.aj) .strip .n1 { left: 400px; } :where(section.aj) .strip .n2 { left: 760px; } :where(section.aj) .strip .n3 { left: 1120px; } :where(section.aj) .strip .n4 { left: 1480px; }
:where(section.aj) .chart { position: relative; height: 600px; }
:where(section.aj) .chart svg { width: 1700px; height: 600px; overflow: visible; }
:where(section.aj) .chart .grid line { stroke: #EEF2F6; }
:where(section.aj) .chart .axis text { font-size: 22px; fill: var(--muted); }
:where(section.aj) .chart .stock { transition: opacity .8s ease; }
:where(section.aj) .chart .stock.dim { opacity: .16; }
:where(section.aj) .chart .taiex-line { fill: none; stroke: var(--ink); stroke-width: 3; }
:where(section.aj) .chart .taiex-area { fill: url(#taiexFill); opacity: 0; transition: opacity .8s ease; }
:where(section.aj) .chart .bigs text.v { font-size: 38px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
:where(section.aj) .chart .bigs text.l { font-size: 24px; fill: var(--muted); }
:where(section.aj) .chart .bigs circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
:where(section.aj) .chart .smooth { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
:where(section.aj) .chart .stage { opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .chart .stage .box { fill: #fff; stroke: var(--accent); stroke-width: 2.5; rx: 14; }
:where(section.aj) .chart .stage .box.b2 { stroke: var(--ink); }
:where(section.aj) .chart .stage text.p { font-size: 22px; fill: var(--accent); font-weight: 700; letter-spacing: .05em; }
:where(section.aj) .chart .stage text.t { font-size: 30px; fill: var(--ink); font-weight: 700; }
:where(section.aj) .chart .stage text.s { font-size: 24px; fill: var(--ink-2); }
:where(section.aj) .chart .stage .leader { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; }
:where(section.aj) .chart .stage .ev { fill: var(--accent); stroke: #fff; stroke-width: 3; }
:where(section.aj) .chart .stage.on .ev { animation: evPulse 1.4s ease-out 1; }
@keyframes evPulse { 0% { r: 9; } 50% { r: 16; } 100% { r: 10; } }
:where(section.aj) .chart .src { position: absolute; right: 0; bottom: -8px; font-size: 19px; color: #9CA3AF; }

/* ===================== S2 事務所生態／缺工 ===================== */
:where(section.aj) .firm-stage { position: relative; width: 1700px; height: 840px; margin-top: -14px; }
:where(section.aj) .firm-stage .person { position: absolute; width: 100px; height: 130px; transition: opacity .8s ease, filter .8s ease, transform .8s ease; }
:where(section.aj) .firm-stage .person svg { width: 100px; height: 130px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
:where(section.aj) .firm-stage .person .nm { position: absolute; top: 132px; left: 50%; transform: translateX(-50%); font-size: 24px; color: var(--muted); white-space: nowrap; }
:where(section.aj) .firm-stage .person.gone { opacity: 0; filter: blur(6px); transform: translateY(30px) scale(.9); }
:where(section.aj) .firm-stage .person.over svg { stroke: var(--bad); animation: wobble .9s ease-in-out infinite; }
:where(section.aj) .firm-stage .person .warn { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 26px; font-weight: 700; color: var(--bad); opacity: 0; transition: opacity .4s ease; white-space: nowrap; }
:where(section.aj) .firm-stage .person.over .warn { opacity: 1; }
:where(section.aj) .firm-stage .blk {
  position: absolute; left: 0; top: 0; width: 150px; height: 32px; border-radius: 8px;
  color: #fff; font-size: 21px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: transform .9s cubic-bezier(.4,.1,.2,1), opacity .5s ease; box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
:where(section.aj) .firm-stage .legend { position: absolute; right: 0; top: 0; display: flex; gap: 26px; font-size: 32px; font-weight: 600; color: var(--ink-2); }
:where(section.aj) .firm-stage .legend i { display: inline-block; width: 28px; height: 28px; border-radius: 6px; vertical-align: -4px; margin-right: 10px; }
:where(section.aj) .firm-stage .stamp {
  position: absolute; left: 1080px; top: 330px; width: 280px; padding: 10px 0; text-align: center;
  border: 8px solid var(--bad); color: var(--bad); border-radius: 18px; font-size: 104px; font-weight: 900; letter-spacing: .2em;
  opacity: 0; transform: rotate(-12deg); z-index: 5; background: rgba(255,255,255,.7);
}
:where(section.aj) .firm-stage .stamp.on { animation: stampIn .5s ease forwards; }
:where(section.aj) .firm-stage .note { position: absolute; left: 50%; transform: translateX(-50%); top: 730px; font-size: 36px; font-weight: 700; color: var(--bad); opacity: 0; transition: opacity .5s ease; white-space: nowrap; }
:where(section.aj) .firm-stage .note.on { opacity: 1; }
:where(section.aj) .firm-stage .band { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 40px; padding: 14px 40px; box-sizing: border-box; border-radius: 16px; transition: transform .7s ease, opacity .7s ease; }
:where(section.aj) .firm-stage .band .lbl { font-size: 30px; font-weight: 700; letter-spacing: .08em; width: 300px; white-space: nowrap; flex: none; padding-right: 20px; border-right: 3px solid var(--line-2); }
:where(section.aj) .firm-stage .band .lbl small { display: block; font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--coral); margin-top: 4px; }
:where(section.aj) .firm-stage .band .it small { font-size: 22px; font-weight: 600; color: var(--coral); }
:where(section.aj) .firm-stage .band .items { display: flex; flex: 1; justify-content: space-around; }
:where(section.aj) .firm-stage .band .it { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 28px; font-weight: 600; color: var(--ink); }
:where(section.aj) .firm-stage .band .it .ic { color: var(--accent); }
:where(section.aj) .firm-stage .band.admin { bottom: 0; height: 165px; background: var(--accent-soft); transform: translateY(190px); opacity: 0; }
:where(section.aj) .firm-stage .band.admin.on { transform: none; opacity: 1; }
:where(section.aj) .firm-stage .band.admin .lbl { color: var(--accent-deep); }
:where(section.aj) .firm-stage .brace { position: absolute; left: 0; top: 0; width: 1700px; height: 840px; pointer-events: none; opacity: 0; transition: opacity .6s ease .3s; }
:where(section.aj) .firm-stage .brace.on { opacity: 1; }
:where(section.aj) .firm-stage .brace path { fill: none; stroke: var(--accent); stroke-width: 2.5; }
:where(section.aj) .firm-stage .band.ext { top: 0; height: 120px; background: #EEF2F7; transform: translateY(-190px); opacity: 0; }
:where(section.aj) .firm-stage .band.ext.on { transform: none; opacity: 1; }
:where(section.aj) .firm-stage .band.ext .it .ic { color: #1E40AF; }
:where(section.aj) .firm-stage .band.ext .items { justify-content: center; gap: 260px; }
:where(section.aj) .firm-stage .link { position: absolute; left: 50%; top: 122px; width: 0; height: 100px; opacity: 0; transition: opacity .5s ease .4s; }
:where(section.aj) .firm-stage .link.on { opacity: 1; }
:where(section.aj) .firm-stage .link .arrow { position: absolute; left: -3px; top: 0; width: 6px; height: 100%; background: var(--coral); }
:where(section.aj) .firm-stage .link .arrow::before, :where(section.aj) .firm-stage .link .arrow::after { content: ''; position: absolute; left: -9px; border: 12px solid transparent; }
:where(section.aj) .firm-stage .link .arrow::before { top: -10px; border-bottom-color: var(--coral); border-top: 0; }
:where(section.aj) .firm-stage .link .arrow::after { bottom: -10px; border-top-color: var(--coral); border-bottom: 0; }
:where(section.aj) .firm-stage .link .l1, :where(section.aj) .firm-stage .link .l2 { position: absolute; top: 18px; white-space: nowrap; font-size: 30px; font-weight: 700; color: var(--coral); }
:where(section.aj) .firm-stage .link .l1 { right: 26px; }
:where(section.aj) .firm-stage .link .l2 { left: 26px; }
:where(section.aj) .firm-stage .link .l2 small { display: block; font-size: 23px; color: var(--muted); font-weight: 500; }
:where(section.aj) .firm-stage .inner-lbl { position: absolute; left: 0; top: 190px; font-size: 32px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }

/* ===================== S3 傳統作業困境 ===================== */
:where(section.aj) .pain-win { position: absolute; left: 110px; right: 110px; top: 215px; height: 630px; }
:where(section.aj) .pain-win .win { height: 100%; }
:where(section.aj) .pain .caption, section:where(.aj).pain .caption { opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .pain .caption.on, section:where(.aj).pain .caption.on { opacity: 1; }
/* 迴圈 */
:where(section.aj) .loop-stage { position: absolute; left: 110px; right: 110px; top: 250px; height: 560px; }
:where(section.aj) .loop-stage .st { position: absolute; top: 120px; width: 240px; margin-left: -120px; text-align: center; }
:where(section.aj) .loop-stage .st .ic-wrap { width: 130px; height: 130px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all .4s ease; }
:where(section.aj) .loop-stage .st.hot .ic-wrap { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); transform: scale(1.08); }
:where(section.aj) .loop-stage .st.paper .ic-wrap { border-style: dashed; }
:where(section.aj) .loop-stage .st .nm { font-size: 32px; font-weight: 700; }
:where(section.aj) .loop-stage .st .who { font-size: 25px; color: var(--muted); }
:where(section.aj) .loop-stage .rail { position: absolute; left: 100px; right: 100px; top: 184px; height: 3px; background: var(--line-2); z-index: 0; }
:where(section.aj) .loop-stage .st { z-index: 1; }
:where(section.aj) .loop-stage .fly { position: absolute; top: 40px; left: 0; width: 56px; height: 68px; margin-left: -28px; transition: transform .75s cubic-bezier(.4,0,.2,1); z-index: 3; opacity: 0; }
:where(section.aj) .loop-stage .fly.on { opacity: 1; }
:where(section.aj) .loop-stage .fly svg, :where(section.aj) .loop-stage .copy svg { width: 56px; height: 68px; }
:where(section.aj) .loop-stage .copy { position: absolute; top: 40px; width: 56px; height: 68px; margin-left: -28px; opacity: 0; transform: scale(.6); transition: all .4s ease; z-index: 2; color: var(--muted); }
:where(section.aj) .loop-stage .copy.on { opacity: .85; transform: none; }
:where(section.aj) .loop-stage .copy.paper { color: var(--coral); }
:where(section.aj) .loop-stage .doc-ic { fill: #fff; stroke: currentColor; stroke-width: 2; }
:where(section.aj) .loop-stage .loop-arrow { position: absolute; left: 100px; right: 100px; top: 340px; height: 120px; opacity: 0; transition: opacity .6s ease; }
:where(section.aj) .loop-stage .loop-arrow.on { opacity: 1; }
:where(section.aj) .loop-stage .loop-arrow svg { width: 100%; height: 100%; overflow: visible; }
:where(section.aj) .loop-stage .loop-arrow path { fill: none; stroke: var(--coral); stroke-width: 4; stroke-dasharray: 14 10; }
:where(section.aj) .loop-stage .tally { position: absolute; left: 0; right: 0; top: 470px; display: flex; justify-content: center; gap: 70px; opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .loop-stage .tally.on { opacity: 1; }
:where(section.aj) .loop-stage .tally div { font-size: 32px; color: var(--ink-2); }
:where(section.aj) .loop-stage .tally b { font-size: 52px; color: var(--coral); margin-right: 8px; font-variant-numeric: tabular-nums; }
/* 檔案總管 */
:where(section.aj) .explorer { display: flex; flex-direction: column; height: 100%; font-size: 27px; }
:where(section.aj) .explorer .ex-bar { display: flex; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: center; }
:where(section.aj) .explorer .ex-bar .path { flex: 1; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 14px; color: #374151; }
:where(section.aj) .explorer .ex-bar .srch { width: 520px; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 14px; display: flex; gap: 10px; align-items: center; color: #374151; min-height: 46px; box-sizing: border-box; }
:where(section.aj) .explorer .ex-bar .srch .q:empty::before { content: '搜尋 客戶檔案'; color: #9CA3AF; }
:where(section.aj) .explorer .ex-bar .srch.focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
:where(section.aj) .explorer .ex-body { flex: 1; display: flex; min-height: 0; }
:where(section.aj) .explorer .tree { width: 300px; border-right: 1px solid var(--line); padding: 14px 0; color: #374151; }
:where(section.aj) .explorer .tree div { padding: 8px 22px; display: flex; gap: 10px; align-items: center; }
:where(section.aj) .explorer .tree div.on { background: #EFF6FF; }
:where(section.aj) .explorer .files { flex: 1; padding: 14px 22px; position: relative; }
:where(section.aj) .explorer .files .f { display: flex; gap: 14px; padding: 9px 12px; align-items: center; color: #374151; border-radius: 6px; }
:where(section.aj) .explorer .files .f .ic { color: var(--warn); }
:where(section.aj) .explorer .files .f .sz { margin-left: auto; color: var(--muted); font-size: 24px; }
:where(section.aj) .explorer .files .empty { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 60px; box-sizing: border-box; color: var(--muted); gap: 12px; background: #fff; font-size: 32px; }
:where(section.aj) .explorer .files.searching .empty { display: flex; }
:where(section.aj) .explorer .files .empty .big { font-size: 40px; font-weight: 700; color: var(--ink-2); }
:where(section.aj) .pain-chat { position: absolute; right: 150px; bottom: 150px; width: 720px; opacity: 0; transform: translateY(30px); transition: all .5s ease; z-index: 6; }
:where(section.aj) .pain-chat.on { opacity: 1; transform: none; }
:where(section.aj) .pain-chat .win { height: 390px; }
:where(section.aj) .pain-chat .lb { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; background: #8CB1DA; height: 100%; box-sizing: border-box; justify-content: flex-end; }
:where(section.aj) .pain-chat .msg .bub { font-size: 28px; }

/* ===================== S4 數位化 ===================== */
:where(section.aj) .ragic { position: absolute; left: 110px; right: 110px; top: 215px; height: 640px; }
:where(section.aj) .ragic .win { height: 100%; }
:where(section.aj) .ragic .rg-top { display: flex; align-items: center; gap: 22px; padding: 10px 20px; background: #FFF; border-bottom: 1px solid var(--line); }
:where(section.aj) .ragic .rg-logo { font-weight: 800; color: #E8542B; font-size: 32px; letter-spacing: .02em; }
:where(section.aj) .ragic .rg-tab { padding: 8px 18px; border-radius: 8px 8px 0 0; background: #F3F4F6; color: #4B5563; font-size: 26px; }
:where(section.aj) .ragic .rg-tab.on { background: #FDECE6; color: #C2410C; font-weight: 700; }
:where(section.aj) .ragic .rg-tools { margin-left: auto; display: flex; gap: 10px; }
:where(section.aj) .ragic .rg-tools span { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 14px; font-size: 24px; color: #4B5563; }
:where(section.aj) .ragic table { width: 100%; border-collapse: collapse; font-size: 27px; table-layout: fixed; }
:where(section.aj) .ragic td.att { text-align: center; color: #1D4ED8; }
:where(section.aj) .ragic td.att .clip { width: 30px; height: 30px; vertical-align: -6px; }
:where(section.aj) .ragic th { background: #FAFAFA; color: #374151; padding: 12px 14px; border: 1px solid #E5E7EB; font-weight: 600; text-align: center; }
:where(section.aj) .ragic td { padding: 12px 14px; border: 1px solid #E5E7EB; text-align: center; }
:where(section.aj) .ragic tr.r { opacity: 0; transform: translateY(-8px); transition: all .4s ease; }
:where(section.aj) .ragic tr.r.on { opacity: 1; transform: none; }
:where(section.aj) .ragic td.ok { color: var(--ok); font-weight: 700; text-align: center; }
:where(section.aj) .ragic td.no { color: #CBD5E1; text-align: center; }
:where(section.aj) .tiles { position: absolute; left: 110px; right: 110px; top: 215px; height: 640px; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 26px; }
:where(section.aj) .tile { border: 2px solid var(--line-2); border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 32px; font-weight: 700; color: var(--ink); }
:where(section.aj) .tile .ic { color: var(--accent); }
:where(section.aj) .tile.core { border-color: #E8542B; background: #FFF6F2; color: #C2410C; }
:where(section.aj) .tile.core .ic { color: #E8542B; }
:where(section.aj) .tile.more { opacity: 0; transform: scale(.85); transition: all .45s cubic-bezier(.2,1.3,.4,1); }
:where(section.aj) .tile.more.on { opacity: 1; transform: none; }
:where(section.aj) .tile .cnt { font-size: 24px; color: var(--muted); font-weight: 500; }
/* 資料流 */
:where(section.aj) .flow { position: absolute; left: 110px; right: 110px; top: 212px; height: 660px; display: flex; align-items: center; gap: 0; }
:where(section.aj) .flow .stage-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
:where(section.aj) .flow .stage-col .ttl { font-size: 32px; font-weight: 700; }
:where(section.aj) .flow .stage-col .sub { font-size: 26px; color: var(--muted); text-align: center; }
:where(section.aj) .flow .arrow { width: 150px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .25; transition: opacity .5s ease; }
:where(section.aj) .flow .arrow.on { opacity: 1; }
:where(section.aj) .flow .arrow svg { width: 110px; height: 40px; }
:where(section.aj) .flow .arrow path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
:where(section.aj) .flow .arrow.on path.line { stroke-dasharray: 10 8; animation: dashMove 1s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -36; } }
:where(section.aj) .flow .arrow .al { font-size: 25px; color: var(--accent); font-weight: 700; white-space: nowrap; }
:where(section.aj) .flow .phone { width: 300px; height: 530px; border-radius: 40px; padding: 12px; }
:where(section.aj) .flow .phone .screen { border-radius: 30px; background: #fff; }
:where(section.aj) .flow .qform { padding: 18px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 22px; }
:where(section.aj) .flow .qform .qt { font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 4px; }
:where(section.aj) .flow .qform .qf { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; min-height: 40px; box-sizing: border-box; color: #111827; }
:where(section.aj) .flow .qform .qf:empty::before { content: attr(data-ph); color: #9CA3AF; }
:where(section.aj) .flow .qform .qbtn { background: #2563EB; color: #fff; border-radius: 8px; text-align: center; padding: 10px; font-weight: 700; margin-top: 6px; }
:where(section.aj) .flow .qform .qbtn.done { background: var(--ok); }
:where(section.aj) .flow .cloud-tbl { width: 470px; }
:where(section.aj) .flow .cloud-tbl .win-body { padding: 14px; }
:where(section.aj) .flow .cloud-tbl table { width: 100%; border-collapse: collapse; font-size: 24px; }
:where(section.aj) .flow .cloud-tbl th { background: #F3F4F6; padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
:where(section.aj) .flow .cloud-tbl td { padding: 8px; border-bottom: 1px solid #F1F5F9; }
:where(section.aj) .flow .cloud-tbl th.num, :where(section.aj) .flow .cloud-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
:where(section.aj) .flow .cloud-tbl tr.new { opacity: 0; transform: translateX(-16px); transition: all .4s ease; }
:where(section.aj) .flow .cloud-tbl tr.new.on { opacity: 1; transform: none; background: #ECFDF5; }
:where(section.aj) .flow .sys { width: 430px; border: 2px solid var(--line-2); border-radius: 16px; padding: 26px 28px; background: #fff; }
:where(section.aj) .flow .sys .sys-ttl { font-size: 32px; font-weight: 800; color: #1E3A8A; display: flex; align-items: center; gap: 10px; }
:where(section.aj) .flow .sys .sys-sub { font-size: 24px; color: var(--muted); margin-bottom: 18px; }
:where(section.aj) .flow .sys .bar { margin: 8px 0; }
:where(section.aj) .flow .sys .st { font-size: 26px; color: var(--ink-2); min-height: 30px; }
:where(section.aj) .flow .sys .st.ok { color: var(--ok); font-weight: 700; }
:where(section.aj) .flow .printer { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 26px; opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .flow .printer.on { opacity: 1; }
:where(section.aj) .flow .printer .x { position: relative; display: inline-flex; }
:where(section.aj) .flow .printer .x::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 4px; background: var(--bad); transform: rotate(-30deg); border-radius: 2px; }
:where(section.aj) .flow .printer b { color: var(--bad); }

/* ===================== S5 樞紐 ===================== */
:where(section.aj) .hub { position: absolute; left: 110px; right: 110px; top: 235px; height: 760px; }
:where(section.aj) .hub svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
:where(section.aj) .hub svg.wires line { stroke: var(--line-2); stroke-width: 3; opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .hub svg.wires line.on { opacity: 1; }
:where(section.aj) .hub svg.wires line.hot { stroke: var(--accent); stroke-width: 4; }
:where(section.aj) .hub .core { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 80px; font-weight: 800; letter-spacing: .05em; animation: pulse 2.4s ease-out infinite; }
:where(section.aj) .hub .core small { font-size: 26px; font-weight: 500; letter-spacing: .3em; opacity: .8; }
:where(section.aj) .hub .spoke { position: absolute; width: 310px; margin-left: -155px; margin-top: -95px; text-align: center; opacity: 0; transform: scale(.7); transition: all .5s cubic-bezier(.2,1.3,.4,1); cursor: pointer; }
:where(section.aj) .hub .spoke.on { opacity: 1; transform: none; }
:where(section.aj) .hub .spoke .ring { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all .4s ease; position: relative; }
:where(section.aj) .hub .spoke .ring .no { position: absolute; top: -12px; left: -12px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
:where(section.aj) .hub .spoke .lb { font-size: 34px; font-weight: 700; }
:where(section.aj) .hub .spoke .ds { font-size: 25px; color: var(--muted); margin-top: 2px; }
:where(section.aj) .hub .spoke.done .ring { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
:where(section.aj) .hub .spoke.done .ring .no { background: var(--ok); }
:where(section.aj) .hub .spoke.done .ring::after { content: '✓'; position: absolute; right: -10px; bottom: -6px; width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
:where(section.aj) .hub .spoke.hot .ring { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); transform: scale(1.12); animation: pulse 1.6s ease-out infinite; }
:where(section.aj) .hub .spoke.hot .ring .no { background: var(--accent); }
:where(section.aj) .hub .spoke.hot .lb { color: var(--accent-deep); }
:where(section.aj) .hub .hint { position: absolute; right: 10px; bottom: 30px; font-size: 28px; color: var(--muted); opacity: 0; transition: opacity .4s ease; white-space: nowrap; }
:where(section.aj) .hub .hint.on { opacity: 1; }
:where(section.aj) .hub-final .caption { opacity: 0; animation: fadeIn .6s ease forwards .6s; }

/* ===================== S6 未來展望 ===================== */
:where(section.aj) .belt-stage { position: absolute; left: 110px; right: 110px; top: 250px; height: 620px; }
:where(section.aj) .belt-stage .belt { position: absolute; left: 60px; right: 60px; top: 372px; height: 26px; border-radius: 13px; background: repeating-linear-gradient(90deg, #CBD5E1 0 30px, #E2E8F0 30px 60px); opacity: 0; transition: opacity .6s ease; }
:where(section.aj) .belt-stage .belt.on { opacity: 1; }
:where(section.aj) .belt-stage .belt.run { animation: beltMove 1.2s linear infinite; }
@keyframes beltMove { to { background-position: 60px 0; } }
:where(section.aj) .belt-stage .stn { position: absolute; top: 140px; width: 250px; margin-left: -125px; text-align: center; opacity: 0; transform: translateY(20px); transition: all .5s ease; }
:where(section.aj) .belt-stage .stn.on { opacity: 1; transform: none; }
:where(section.aj) .belt-stage .stn .ring { width: 130px; height: 130px; border-radius: 50%; border: 3px solid var(--line-2); background: #fff; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: var(--ink); position: relative; transition: all .4s ease; }
:where(section.aj) .belt-stage .stn.auto .ring::after { content: ''; position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='8' width='16' height='12' rx='3'/><path d='M12 8V4'/><circle cx='12' cy='3' r='1'/><path d='M9 14h.01M15 14h.01'/><path d='M9 17h6'/></svg>"); background-size: 26px; background-repeat: no-repeat; background-position: center; }
:where(section.aj) .belt-stage .stn.human .ring { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
:where(section.aj) .belt-stage .stn.human.hot .ring { transform: scale(1.12); animation: pulse 1.6s ease-out infinite; }
:where(section.aj) .belt-stage .stn .nm { font-size: 30px; font-weight: 700; }
:where(section.aj) .belt-stage .stn .who { font-size: 23px; color: var(--muted); }
:where(section.aj) .belt-stage .stn.human .who { color: var(--accent-deep); font-weight: 700; }
:where(section.aj) .belt-stage .pkg { position: absolute; top: 350px; left: 60px; width: 40px; height: 48px; margin-left: -20px; opacity: 0; }
:where(section.aj) .belt-stage .pkg svg { width: 40px; height: 48px; fill: #fff; stroke: var(--ink); stroke-width: 2; }
:where(section.aj) .belt-stage.run .pkg { animation: pkgMove 7s linear infinite; }
:where(section.aj) .belt-stage.run .pkg.p2 { animation-delay: -1.75s; }
:where(section.aj) .belt-stage.run .pkg.p3 { animation-delay: -3.5s; }
:where(section.aj) .belt-stage.run .pkg.p4 { animation-delay: -5.25s; }
@keyframes pkgMove { 0% { opacity: 0; transform: translateX(0); } 4% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(1480px); } }
:where(section.aj) .belt-stage .exc { position: absolute; left: 50%; top: 0; width: 420px; margin-left: 150px; opacity: 0; transform: translateY(16px); transition: all .5s ease; }
:where(section.aj) .belt-stage .exc.on { opacity: 1; transform: none; }
:where(section.aj) .belt-stage .exc .bubble { background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 14px 20px; font-size: 26px; color: var(--ink); }
:where(section.aj) .belt-stage .exc .bubble b { color: var(--accent-deep); }
:where(section.aj) .belt-stage .remote { position: absolute; top: 460px; width: 300px; margin-left: -150px; text-align: center; opacity: 0; transform: translateY(16px); transition: all .5s ease; }
:where(section.aj) .belt-stage .remote.on { opacity: 1; transform: none; }
:where(section.aj) .belt-stage .remote .ring { width: 100px; height: 100px; border-radius: 50%; border: 3px dashed var(--accent); background: #fff; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-deep); }
:where(section.aj) .belt-stage .remote .nm { font-size: 29px; font-weight: 700; }
:where(section.aj) .belt-stage .remote .ds { font-size: 24px; color: var(--muted); }
:where(section.aj) .belt-stage svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
:where(section.aj) .belt-stage svg.links path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 10 8; opacity: 0; transition: opacity .5s ease; }
:where(section.aj) .belt-stage svg.links path.on { opacity: 1; animation: dashMove 1s linear infinite; }
:where(section.aj) .belt-stage .mode { position: absolute; font-size: 30px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: 8px 24px; opacity: 0; transition: opacity .5s ease; white-space: nowrap; }
:where(section.aj) .belt-stage .mode.on { opacity: 1; }
:where(section.aj) .belt-stage .mode.m1 { left: 60px; top: 422px; }
:where(section.aj) .belt-stage .mode.m2 { right: 60px; top: 690px; background: var(--accent); }

/* ===================== S7 結語 ===================== */
:where(section.aj) .end-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-top: 50px; }
:where(section.aj) .end-card { border: 2px solid var(--line-2); border-radius: 18px; padding: 34px 34px 30px; opacity: 0; }
:where(section.aj) .end-card .from { font-size: 30px; color: var(--muted); text-decoration: line-through; margin-bottom: 14px; }
:where(section.aj) .end-card .to { font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.35; }
:where(section.aj) .end-card .to b { color: var(--accent); }
:where(section.aj) .end.present .end-card, section:where(.aj).end.present .end-card { animation: rise .7s ease forwards; }
:where(section.aj) .end.present .end-card:nth-child(1), section:where(.aj).end.present .end-card:nth-child(1) { animation-delay: .3s; }
:where(section.aj) .end.present .end-card:nth-child(2), section:where(.aj).end.present .end-card:nth-child(2) { animation-delay: .6s; }
:where(section.aj) .end.present .end-card:nth-child(3), section:where(.aj).end.present .end-card:nth-child(3) { animation-delay: .9s; }
:where(section.aj) .end .big, section:where(.aj).end .big { font-size: 104px; font-weight: 800; line-height: 1.2; margin-top: 40px; }
:where(section.aj) .end .big b, section:where(.aj).end .big b { color: var(--accent); }
:where(section.aj) .end .thanks, section:where(.aj).end .thanks, :where(section.aj) .contact .thanks, section:where(.aj).contact .thanks { position: absolute; left: 110px; bottom: 90px; font-size: 36px; color: var(--muted); }
:where(section.aj) .end .thanks b, section:where(.aj).end .thanks b, :where(section.aj) .contact .thanks b, section:where(.aj).contact .thanks b { color: var(--ink); font-weight: 600; margin-right: 20px; }
:where(section.aj) .contact.present .thanks, section:where(.aj).contact.present .thanks { opacity: 0; animation: fadeIn .8s ease forwards 1.2s; }

/* ---------- S8 聯繫方式 ---------- */
:where(section.aj) .contact-grid { display: flex; justify-content: center; align-items: stretch; gap: 60px; margin-top: 24px; }
:where(section.aj) .c-card { width: 500px; background: #fff; border: 2px solid var(--line-2); border-radius: 28px; box-shadow: 0 20px 60px rgba(19,47,72,.10); padding: 40px 30px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; }
:where(section.aj) .c-card img { display: block; }
:where(section.aj) .c-card.qr img { width: 380px; height: 380px; border-radius: 12px; }
:where(section.aj) .c-card.logo { background: transparent; border: none; box-shadow: none; }
:where(section.aj) .c-card.logo img { width: 460px; height: auto; }
:where(section.aj) .c-card .cap { text-align: center; line-height: 1.3; }
:where(section.aj) .c-card .cap b { display: block; font-size: 46px; font-weight: 700; color: var(--ink); }
:where(section.aj) .c-card .cap span { display: block; font-size: 30px; color: var(--muted); margin-top: 6px; }
:where(section.aj) .contact.present .c-card, section:where(.aj).contact.present .c-card { animation: rise .7s ease forwards; }
:where(section.aj) .contact.present .c-card:nth-child(1), section:where(.aj).contact.present .c-card:nth-child(1) { animation-delay: .2s; }
:where(section.aj) .contact.present .c-card:nth-child(2), section:where(.aj).contact.present .c-card:nth-child(2) { animation-delay: .5s; }
:where(section.aj) .contact.present .c-card:nth-child(3), section:where(.aj).contact.present .c-card:nth-child(3) { animation-delay: .8s; }

/* ---------- 結語②：AI 是外骨骼（插圖版：exo-1 灰→上色＋跳、exo-2 動力裝甲、頭部發光） ---------- */
:where(section.aj) .exo-wrap { display: grid; grid-template-columns: 480px 1fr; gap: 70px; align-items: center; height: 740px; }
:where(section.aj) .exo-fig { position: relative; width: 480px; height: 720px; }
:where(section.aj) .exo-fig .exo-img { position: absolute; left: 0; right: 0; margin: 0 auto; width: auto; display: block; } /* 兩張圖依人物高度對齊：人像高 650px、腳底離框底 24px */
:where(section.aj) .exo-fig .exo-img.a { height: 730px; bottom: -31px; opacity: .5; filter: grayscale(1); transition: opacity .6s ease, filter .6s ease; }
:where(section.aj) .exo-fig.suit .exo-img.a { opacity: 1; filter: none; }
:where(section.aj) .exo-fig.hop .exo-img.a { animation: exoHop .85s cubic-bezier(.3, .6, .3, 1); }
@keyframes exoHop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-64px); } 62% { transform: translateY(-58px); } }
:where(section.aj) .exo-fig .exo-img.b { height: 703px; bottom: -14px; opacity: 0; transform: scale(.92); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.2, .4, 1); }
:where(section.aj) .exo-fig.mods .exo-img.a { opacity: 0; }
:where(section.aj) .exo-fig.mods .exo-img.b { opacity: 1; transform: none; }
:where(section.aj) .exo-halo { position: absolute; left: 263px; top: 118px; width: 230px; height: 230px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .5s ease; overflow: visible; }
:where(section.aj) .exo-fig.brain .exo-halo { opacity: 1; }
:where(section.aj) .exo-halo .ring { fill: url(#exo-grad); transform-origin: center; transform-box: fill-box; animation: exoPulse 1.6s ease-in-out infinite; }
:where(section.aj) .exo-halo .ray { fill: none; stroke: #F59E0B; stroke-width: 4; stroke-linecap: round; opacity: 0; transition: opacity .4s ease .3s; }
:where(section.aj) .exo-fig.brain .exo-halo .ray { opacity: 1; }
@keyframes exoPulse { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.12); opacity: .7; } }
:where(section.aj) .exo-text { display: flex; flex-direction: column; gap: 46px; }
:where(section.aj) .exo-text .pt { display: flex; gap: 26px; align-items: flex-start; opacity: .16; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease; }
:where(section.aj) .exo-text .pt.on { opacity: 1; transform: none; }
:where(section.aj) .exo-text .n { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 28px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
:where(section.aj) .exo-text b { display: block; font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1.3; }
:where(section.aj) .exo-text span { display: block; font-size: 28px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
:where(section.aj) .exo-text .pt[data-i="3"].on b { color: var(--accent-deep); }
