/* 启微分子设计平台 V3 外壳与模块样式（W6A token） */
:root { --st-in: var(--w6a-ok); --st-dev: var(--w6a-accent); --st-plan: var(--w6a-pending); --st-build: var(--w6a-warn); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: 13px; } .muted { color: var(--w6a-ink-300); } .grow { flex: 1; } .mono { font-family: var(--w6a-font-mono); font-size: 12px; word-break: break-all; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag.st { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 999px; font-weight: 600; vertical-align: middle; white-space: nowrap; border: 1px solid currentColor; background: var(--w6a-paper); }
.st-内测中 { color: var(--st-in) !important; } .st-开发中 { color: var(--st-dev) !important; } .st-规划中 { color: var(--st-plan) !important; }
.st-建设中 { color: var(--st-build) !important; } .st-已上架 { color: var(--w6a-brand) !important; } .st-未实现 { color: var(--w6a-muted) !important; }
.top .nav a[aria-current] { color: var(--w6a-brand); font-weight: 600; }
.btn.sm { padding: 6px 12px; font-size: 13px; } .btn.danger { background: var(--w6a-paper); color: var(--w6a-danger); border: 1px solid var(--w6a-danger); }
.btn.file { position: relative; overflow: hidden; cursor: pointer; } .btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.empty { padding: 28px; text-align: center; color: var(--w6a-ink-500); background: var(--w6a-sunk); border-radius: 12px; }

/* 链路条 */
.chain { position: relative; margin-top: 14px; margin-bottom: 6px; }
.chain ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.chain li { position: relative; }
.chain li:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 2px; background: var(--w6a-border); z-index: 1; }
.chain a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 6px; border-radius: 12px; background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); text-decoration: none; color: var(--w6a-ink-700); transition: transform .25s, box-shadow .25s, border-color .25s; }
.chain a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(24, 79, 149, .12); }
.chain li[aria-current] a { border-color: var(--w6a-brand); background: var(--w6a-brand-tint); box-shadow: 0 0 0 3px rgba(24, 79, 149, .12); }
.chain b { font-size: 14px; } .chain .tag { font-size: 10px; padding: 3px 6px; margin-left: auto; }
.chain .n { font-style: normal; min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--w6a-sunk); color: var(--w6a-ink-500); }
.chain li[aria-current] .n { background: var(--w6a-brand); color: #fff; }
.n.bump, #tray-n.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.45); } }
.chain svg.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chain svg.flow circle { fill: var(--w6a-accent); opacity: 0; }

/* 页首 */
.phead { padding-top: 22px; padding-bottom: 6px; } .phead h1 { font-size: 30px; margin: 4px 0 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.phead .lede { max-width: 820px; color: var(--w6a-ink-500); font-size: 16px; }
.phead { animation: rise .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.nextstep { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin: 18px auto 30px; }
.nextstep span { color: var(--w6a-ink-300); font-size: 13px; letter-spacing: .1em; }
.rv3 { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; } .rv3.in { opacity: 1; transform: none; }

/* 首页 */
.hero3 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; padding-top: 30px; padding-bottom: 10px; }
.hero3 h1 { font-size: 40px; line-height: 1.15; margin: 6px 0 12px; } .hero3 h1 small { font-size: 18px; color: var(--w6a-ink-300); font-weight: 400; }
.go { display: flex; gap: 8px; margin: 18px 0 6px; } .go input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--w6a-border); border-radius: 10px; font-size: 15px; }
.go input:focus { border-color: var(--w6a-brand); outline: none; box-shadow: 0 0 0 4px var(--w6a-brand-tint); }
.chain-art { margin: 0; background: radial-gradient(ellipse at 30% 20%, var(--w6a-brand-tint), transparent 60%), var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-radius: 18px; padding: 8px; }
.chain-art figcaption { font-size: 12px; color: var(--w6a-ink-300); padding: 0 12px 8px; }
.chain-svg { width: 100%; height: auto; display: block; }
.cp-bg { fill: none; stroke: var(--w6a-hairline); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.cp-fg { fill: none; stroke: var(--w6a-brand); stroke-width: 3; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cp-dot { fill: var(--w6a-accent); }
.cn .cn-bg { fill: var(--w6a-paper); stroke: var(--w6a-border); stroke-width: 2; transition: all .3s; }
.cn.on .cn-bg { stroke: var(--w6a-brand); fill: var(--w6a-brand-tint); }
.cn .cn-ic { fill: none; stroke: var(--w6a-ink-300); stroke-width: 2; stroke-linejoin: round; } .cn.on .cn-ic { stroke: var(--w6a-brand); } .cn.on .cn-ic .in { fill: var(--w6a-accent); stroke: none; opacity: .7; }
.cn text { text-anchor: middle; } .cn-l { font-size: 15px; font-weight: 700; fill: var(--w6a-ink-700); } .cn-s { font-size: 12px; fill: var(--w6a-ink-300); } .cn.on .cn-s { fill: var(--w6a-ok); font-weight: 600; }
.cn > g { transform-box: fill-box; animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * .28s + .3s); }
.cn:hover .cn-bg { stroke-width: 4; }
@keyframes pop { from { opacity: 0; scale: .4; } }
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.who-c { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; border: 1px solid var(--w6a-hairline); background: var(--w6a-paper); text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.who-c:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 11, 11, .08); } .who-c svg { width: 80px; height: 48px; }
.who-c svg path, .who-c svg rect, .who-c svg circle { fill: var(--w6a-brand-tint); stroke: var(--w6a-brand); stroke-width: 2; }
.who-c span { color: var(--w6a-ink-500); font-size: 13px; } .who-c em { margin-top: auto; font-style: normal; color: var(--w6a-brand); font-weight: 600; font-size: 13px; }
.mx { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.mx-c { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-top: 4px solid currentColor; text-decoration: none; color: var(--w6a-ink-700); font-size: 12px; }
.mx-c[data-state="内测中"] { border-top-color: var(--st-in); } .mx-c[data-state="开发中"] { border-top-color: var(--st-dev); } .mx-c[data-state="规划中"] { border-top-color: var(--st-plan); }
.mx-c b { font-size: 14px; } .mx-c span:last-child { color: var(--w6a-ink-300); }
.in .mx-c { animation: flip .6s both; animation-delay: calc(var(--i) * 55ms); }
@keyframes flip { from { opacity: 0; transform: perspective(500px) rotateX(-70deg); } }
.custom3 p { font-size: 15px; }

/* 流程示意（未实装模块） */
.flow-box { overflow-x: auto; background: var(--w6a-sunk); border-radius: 14px; padding: 10px; }
.flow-svg { min-width: 760px; width: 100%; height: auto; display: block; }
.fx rect { fill: var(--w6a-paper); stroke: var(--w6a-border); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fx text { font-size: 13px; fill: var(--w6a-ink-700); } .fx .fx-n { font-weight: 700; fill: var(--w6a-brand); font-size: 15px; }
.fx, .fx-a { animation: rise .6s both; animation-delay: calc(var(--i) * .35s); }
.fx-a { fill: none; stroke: var(--w6a-ink-300); stroke-width: 2; }
.fx-dot { fill: var(--w6a-accent); opacity: .7; } .fx-tag { text-anchor: end; font-size: 12px; fill: var(--w6a-pending); font-weight: 700; }
.plan-note { color: var(--w6a-ink-500); font-size: 13px; margin-top: 10px; }

/* 托盘 */
.tray { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.tray-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--w6a-ink-900); color: #fff; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.tray-btn b { background: var(--w6a-accent); border-radius: 999px; padding: 2px 9px; }
.tray-ic { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 8px 0 0 -2px #fff; }
.tray-pop { position: absolute; right: 0; bottom: 54px; width: 300px; max-height: 60vh; overflow: auto; background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); font-size: 13px; }
.tray-pop ul { list-style: none; padding: 0; margin: 8px 0; } .tray-pop li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--w6a-hairline); }
.tray-pop li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tray-pop li button { border: 0; background: none; color: var(--w6a-danger); cursor: pointer; font-size: 16px; }
.fly { position: fixed; z-index: 60; pointer-events: none; background: var(--w6a-paper); border: 2px solid var(--w6a-accent); border-radius: 10px; overflow: hidden; transform-origin: 0 0; }
.fly svg { width: 100%; height: 100%; }

/* QED */
.qed { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.qed-ring svg { width: 160px; height: 160px; }
.qr-bg { fill: none; stroke: var(--w6a-sunk); stroke-width: 12; }
.qr-fg { fill: none; stroke: var(--w6a-brand); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 65px 65px; }
.qgo .qr-fg { transition: stroke-dashoffset 1.2s cubic-bezier(.3, .8, .3, 1) .5s; stroke-dashoffset: var(--off); }
.qr-v { text-anchor: middle; font-size: 26px; font-weight: 700; fill: var(--w6a-ink-900); } .qr-l { text-anchor: middle; font-size: 12px; fill: var(--w6a-ink-300); letter-spacing: .2em; }
.qed-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qed-bars li { display: grid; grid-template-columns: 118px 60px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.qed-bars .raw { color: var(--w6a-ink-300); font-family: var(--w6a-font-mono); font-size: 12px; } .qed-bars .v { font-weight: 700; text-align: right; }
.qed-bars .bar { height: 10px; background: var(--w6a-sunk); border-radius: 5px; overflow: hidden; }
.qed-bars .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--w6a-accent), var(--w6a-brand)); border-radius: 5px; }
.qgo .qed-bars .bar i { transition: width .8s cubic-bezier(.3, .8, .3, 1); transition-delay: var(--d); width: var(--w); }

/* 相似性 */
.simv3 { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.simv3 li { display: grid; grid-template-columns: 120px 1fr 1.2fr auto; gap: 14px; align-items: center; padding: 8px 12px; background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-radius: 12px; }
.simv3 .th svg { width: 120px; height: 90px; } .simv3 .tc { display: flex; align-items: center; gap: 8px; }
.simv3 .tc i { flex: 1; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--w6a-brand) var(--w), var(--w6a-sunk) var(--w)); }
.simv3.grow li { animation: rise .5s both; } .simv3.grow li:nth-child(n) { animation-delay: calc(var(--n, 0) * 60ms); }
.simv3.grow li:nth-child(2) { --n: 1; } .simv3.grow li:nth-child(3) { --n: 2; } .simv3.grow li:nth-child(4) { --n: 3; } .simv3.grow li:nth-child(5) { --n: 4; } .simv3.grow li:nth-child(6) { --n: 5; } .simv3.grow li:nth-child(7) { --n: 6; } .simv3.grow li:nth-child(8) { --n: 7; }
#hth { width: 200px; }

/* 漏斗 */
.fl { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.fl-side { display: flex; flex-direction: column; gap: 8px; font-size: 14px; } .fl-side select, .fl-side textarea { width: 100%; }
.fl-l { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--w6a-sunk); }
.fl-v { width: 72px; padding: 3px 6px; border: 1px solid var(--w6a-border); border-radius: 6px; }
.fl-svg svg { width: 100%; height: auto; }
.fl-bar { fill: var(--w6a-brand); opacity: .85; transition: x .6s cubic-bezier(.3, .8, .3, 1), width .6s cubic-bezier(.3, .8, .3, 1); }
.fl-bar.zero { fill: var(--w6a-danger); }
.fl-row { animation: rise .5s both; animation-delay: var(--d); }
.fl-row:nth-child(odd) .fl-bar { opacity: .7; }
.fl-c { fill: #fff; font-weight: 700; font-size: 15px; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 2px; }
.fl-n { font-size: 13px; fill: var(--w6a-ink-700); } .fl-lost { font-size: 12px; fill: var(--w6a-danger); }
.fl-drop { fill: var(--w6a-danger); animation: drop 1.4s ease-in infinite; animation-delay: calc(var(--k) * .17s); }
@keyframes drop { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(14px, 30px); opacity: 0; } }
.tblwrap { overflow-x: auto; } .tbl .th svg { width: 90px; height: 68px; }

/* 工作区 */
.note-priv { background: var(--w6a-accent-tint); border-left: 4px solid var(--w6a-accent); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.ws { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 16px; }
.ws-side ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ws-p { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w6a-hairline); background: var(--w6a-paper); cursor: pointer; font-size: 14px; transition: all .25s; animation: rise .4s both; }
.ws-p[aria-current] { border-color: var(--w6a-brand); background: var(--w6a-brand-tint); font-weight: 600; }
.ws-side form input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--w6a-border); border-radius: 8px; }
.ws-head input { font-size: 18px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; } .ws-head input:hover, .ws-head input:focus { border-color: var(--w6a-border); }
.ws-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--w6a-hairline); margin: 12px 0; }
.ws-tabs button { padding: 8px 16px; border: 0; background: none; cursor: pointer; font-size: 14px; border-bottom: 3px solid transparent; }
.ws-tabs button[aria-selected="true"] { border-bottom-color: var(--w6a-brand); color: var(--w6a-brand); font-weight: 600; }
.ws-pane textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--w6a-border); border-radius: 10px; }
.tl { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--w6a-brand-tint); }
.tl li { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 8px 0; animation: rise .45s both; animation-delay: calc(var(--i) * 45ms); font-size: 13px; }
.tl li::before { content: ''; position: absolute; left: -25px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--w6a-brand); }
.tl time { color: var(--w6a-ink-300); font-family: var(--w6a-font-mono); } .tl .sum { color: var(--w6a-ok); font-weight: 600; } .tl output { color: var(--w6a-brand); }

/* 报告 */
.rp { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.rp-list { display: grid; gap: 4px; font-size: 14px; max-height: 260px; overflow: auto; } .rp-btns { display: grid; gap: 8px; margin-top: 14px; }
.rp-preview { background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); min-height: 300px; font-size: 14px; }
.rp-preview.in .rp-mol { animation: slide .5s both; animation-delay: calc(var(--i) * 90ms); }
@keyframes slide { from { opacity: 0; transform: translateX(26px); } }
.rp-mol h3, .rp-meth h3 { color: var(--w6a-brand); margin: 8px 0; } .rp-row { display: flex; gap: 18px; flex-wrap: wrap; }
.rp-row figure { margin: 0; border: 1px solid var(--w6a-hairline); border-radius: 10px; } .rp-row table { border-collapse: collapse; font-size: 13px; }
.rp-row th, .rp-row td { border: 1px solid var(--w6a-hairline); padding: 3px 8px; text-align: left; } .rp-row th { background: var(--w6a-sunk); font-weight: 500; }
.rp-meth { border-top: 1px solid var(--w6a-border); margin-top: 18px; font-size: 13px; color: var(--w6a-ink-500); }
.rp-cover { position: relative; height: 70px; width: 56px; margin-top: 16px; border: 2px solid var(--w6a-border); border-radius: 6px; background: var(--w6a-paper); overflow: hidden; }
.rp-cover i { display: block; height: 6px; margin: 8px 8px 0; background: var(--w6a-hairline); border-radius: 3px; }
.rp-cover.print { animation: printp 1.1s ease-out; } .rp-cover.print i { animation: ink .9s both; } .rp-cover.print i:nth-child(2) { animation-delay: .2s; } .rp-cover.print i:nth-child(3) { animation-delay: .4s; }
@keyframes printp { 0% { transform: translateY(-40px); opacity: 0; } 60% { transform: translateY(4px); opacity: 1; } }
@keyframes ink { from { background: var(--w6a-hairline); } to { background: var(--w6a-brand); } }

/* 三维 */
.v3d-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.v3d { background: radial-gradient(circle at 50% 40%, var(--w6a-paper), var(--w6a-sunk)); border-radius: 18px; border: 1px solid var(--w6a-hairline); aspect-ratio: 4 / 3; }
.v3d canvas { width: 100%; height: 100%; display: block; }

/* 帮助 */
.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 60px; border: 1px solid var(--w6a-hairline); border-radius: 12px; background: var(--w6a-paper); }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--w6a-brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li p { margin: 6px 0 8px; color: var(--w6a-ink-500); font-size: 14px; } .steps li .tag { margin-left: 8px; }
.smi-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.smi-c { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; background: var(--w6a-sunk); text-decoration: none; color: inherit; transition: transform .2s; }
.smi-c:hover { transform: translateY(-3px); background: var(--w6a-brand-tint); } .smi-c code { font-size: 12px; color: var(--w6a-brand); word-break: break-all; } .smi-c span { font-size: 12px; color: var(--w6a-ink-300); }
.faq dt, .gloss dt { font-weight: 700; margin-top: 12px; } .faq dd, .gloss dd { margin: 4px 0 0; color: var(--w6a-ink-500); font-size: 14px; }
.gloss { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; } .gloss dt, .gloss dd { margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--w6a-hairline); }

/* 路线图 */
.rm { position: relative; } .rm-line { height: 6px; background: var(--w6a-sunk); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.rm-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--st-in), var(--st-dev), var(--st-plan)); animation: grow 2.2s .3s ease-out forwards; }
@keyframes grow { to { width: 100%; } }
.rm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .rm-col ol { padding-left: 18px; } .rm-col li { margin-bottom: 10px; font-size: 14px; } .rm-col li p { margin: 2px 0 0; font-size: 13px; color: var(--w6a-ink-500); }
.feat td:last-child { color: var(--w6a-ink-500); font-size: 13px; }
.engine-row { padding-top: 6px; } .engine-row .engine { max-width: 640px; }

@media (max-width: 900px) {
  .hero3, .fl, .ws, .rp, .v3d-wrap, .qed { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr 1fr; } .mx { grid-template-columns: repeat(2, 1fr); } .rm-grid { grid-template-columns: 1fr; } .smi-g { grid-template-columns: repeat(2, 1fr); }
  .chain ol { grid-template-columns: repeat(3, 1fr); row-gap: 8px; } .chain li:nth-child(3)::after { display: none; }
  .simv3 li { grid-template-columns: 90px 1fr; } .simv3 .th svg { width: 90px; height: 68px; }
  .hero3 h1 { font-size: 30px; } .gloss { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .who, .mx { grid-template-columns: 1fr; } .chain a { padding: 8px; margin: 0 3px; gap: 4px; } .chain .tag { display: none; } .chain b { font-size: 13px; }
  .top .nav { overflow-x: auto; } .go { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .rv3 { opacity: 1; transform: none; } }
/* 窄屏：宽内容在自身容器内横向滚动，不撑破页面 */
.tbl { display: block; overflow-x: auto; max-width: 100%; }
.fl > *, .ws > *, .rp > *, .hero3 > *, .v3d-wrap > *, .qed > *, .rm-grid > * { min-width: 0; }
.flow-box { max-width: 100%; } .fl-side select, .fl-side textarea, .fl-l { max-width: 100%; } .fl-l { flex-wrap: wrap; }

.tbl { width: 100%; } .tbl th, .tbl td { text-align: left; }

/* 窄屏：流程改纵向；能力表改卡片（EVAL_mol_V3 一般①②） */
.flow-v { display: none; list-style: none; margin: 0; padding: 0; }
.flow-v li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 18px; background: var(--w6a-paper); border: 1px solid var(--w6a-hairline); border-radius: 10px; animation: rise .5s both; animation-delay: calc(var(--i) * 120ms); }
.flow-v li:not(:last-child)::after { content: ''; position: absolute; left: 24px; bottom: -18px; width: 2px; height: 18px; background: linear-gradient(var(--w6a-brand), transparent); }
.flow-v b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--w6a-brand); color: #fff; font-size: 13px; display: grid; place-items: center; }
.subv3 li { grid-template-columns: 120px 1fr auto auto; }
@media (max-width: 768px) {
  .flow-box .flow-svg { display: none; } .flow-v { display: block; }
  .feat .tbl, .feat .tbl tbody, .feat .tbl tr, .feat .tbl td { display: block; width: 100%; }
  .feat .tbl thead { display: none; }
  .feat .tbl tr { border: 1px solid var(--w6a-hairline); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--w6a-paper); }
  .feat .tbl td { border: 0; padding: 2px 0; white-space: normal; }
  .feat .tbl td:nth-child(1) { font-weight: 600; } .feat .tbl td:nth-child(3) { color: var(--w6a-ink-700); font-size: 13px; }
  .subv3 li { grid-template-columns: 90px 1fr; }
  body.tray-min .tray-btn .tray-p, body.tray-min .tray-btn b { display: none; }
  body.tray-min .tray-btn { padding: 12px; }
  body.tray-min .tray-pop { display: none; }
}

/* 三维页：竖直主轴＋方形画布，分子占画布高约九成（EVAL_mol_V3 一般③） */
.v3d { aspect-ratio: 1 / 1; }
.qed-bars .k { white-space: nowrap; }
@media (max-width: 480px) { .qed-bars li { grid-template-columns: 104px 44px 1fr 36px; gap: 6px; } }
/* W6 漏斗分批：进度条、取消、上限说明 */
.fl-prog { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--w6a-sunk); }
.fl-prog[hidden] { display: none; }
.fl-ptrack { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--w6a-hairline); overflow: hidden; }
.fl-ptrack i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--w6a-brand), color-mix(in srgb, var(--w6a-brand) 55%, #fff)); background-size: 200% 100%; animation: flflow 1.2s linear infinite; transition: width .25s linear; }
@keyframes flflow { to { background-position: -200% 0; } }
.fl-prog p { margin: 0; font-variant-numeric: tabular-nums; }
.fl-svg[data-state=running] .fl-row { animation: none; } .fl-svg[data-state=running] .fl-drop { animation: none; opacity: .5; }
.fl-svg[data-state=running] { opacity: .8; }
.fl-file { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .fl-file input { font-size: 13px; }
.fl-cap { margin: 0; line-height: 1.6; }
.fl-side :disabled { opacity: .55; cursor: not-allowed; }
#fl-text { max-height: 260px; overflow: auto; }

/* 说明类表格（能力与状态、模块状态、数据清单）：长说明换行，后面的列留在表内。数值表仍不换行。 */
.feat .tbl th, .feat .tbl td, #modtable th, #modtable td, #manifest th, #manifest td { white-space: normal; }
.feat .tbl td:nth-child(2), .feat .tbl th:nth-child(2), #modtable td:nth-child(n+2), #modtable th:nth-child(n+2), #manifest td:nth-child(3), #manifest th:nth-child(3) { white-space: nowrap; }
#manifest td:last-child { font-family: var(--w6a-font-mono, ui-monospace, monospace); font-size: 12px; word-break: break-all; min-width: 20ch; }
/* 化学引擎加载提示：引擎就绪之前点任何计算按钮，都有同一条进度可看 */
#v3-eng-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; width: min(440px, 92vw); padding: 10px 16px 12px; border-radius: 12px; background: #14202b; color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); transition: opacity .5s, transform .5s; }
#v3-eng-toast .b { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
#v3-eng-toast .b i { display: block; height: 100%; width: 3%; background: #3fb6a8; transition: width .25s; }
#v3-eng-toast[data-state=error] { background: #8a1f1f; }
#v3-eng-toast.gone { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
#v3-eng-toast.nudge { animation: v3nudge .5s; }
@keyframes v3nudge { 0%, 100% { transform: translateX(-50%) scale(1); } 30% { transform: translateX(-50%) scale(1.06); } }
