/* 衣姿 v6 · clean modern */
:root{--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
 --bg:#fff;--bg2:#fff;--sf:#f5f5f5;--sf2:#ebebeb;--tx:#111;--tx2:#555;--mu:#999;--line:#f0f0f0;--line2:#e3e3e3;--ac:#ff2442;--ac2:#e61e3a;--acs:rgba(255,36,66,.07);--ok:#21a366;--bad:#e5243b;
 --ph:#f3f3f3;--phw:#f4f4f4;--sh1:0 1px 3px rgba(0,0,0,.08);--sh2:0 4px 20px rgba(0,0,0,.08);--sh3:0 20px 60px rgba(0,0,0,.18);--out:cubic-bezier(.2,.7,.2,1);--r:14px;--w:1680px;color-scheme:light}
[data-theme=dark]{--bg:#111;--bg2:#1b1b1b;--sf:#222;--sf2:#2c2c2c;--tx:#f2f2f2;--tx2:#bbb;--mu:#7a7a7a;--line:#262626;--line2:#333;--ac:#ff3b57;--ac2:#ff5a72;--acs:rgba(255,59,87,.12);--ph:#1e1e1e;--phw:#ececec;--sh2:0 4px 20px rgba(0,0,0,.5);--sh3:0 20px 60px rgba(0,0,0,.7);color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--tx);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
::selection{background:var(--ac);color:#fff}
h1,h2,h3,h4{font-weight:600;margin:0}a{color:inherit}img{max-width:100%}
button,select,.btn{font:inherit;font-size:14px;font-weight:500;color:var(--tx);background:var(--sf);border:0;border-radius:99px;padding:9px 18px;cursor:pointer;transition:background .2s,color .2s,opacity .2s,transform .2s;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.3}
button:hover,select:hover,.btn:hover{background:var(--sf2)}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:default}
:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
.sm{font-size:13px;padding:7px 14px}.pri{background:var(--ac);color:#fff}.pri:hover{background:var(--ac2)}
.ghost{background:transparent;color:var(--tx2)}.ghost:hover{background:var(--sf);color:var(--tx)}
.icon{width:40px;height:40px;padding:0;background:transparent;border-radius:50%}.icon:hover{background:var(--sf)}
.icon svg,.fbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
kbd{font:11px/1 ui-monospace,Menlo,monospace;background:var(--sf);border-radius:5px;padding:3px 6px;margin:0 2px;color:var(--tx2)}
.skip{position:absolute;left:-999px;top:8px;z-index:200;background:var(--tx);color:var(--bg);padding:8px 14px}.skip:focus{left:12px}
.sp{flex:1}.fine{font-size:12.5px;color:var(--mu);margin:8px 0 0}.fine.good{color:var(--ok)}.fine.bad{color:var(--bad);white-space:pre-line}
.seg{display:inline-flex;background:var(--sf);border-radius:99px;padding:3px}.seg button{background:transparent;border-radius:99px;padding:5px 12px;font-size:12.5px;color:var(--tx2)}.seg button:hover{color:var(--tx)}.seg button.on{background:var(--bg2);color:var(--tx);box-shadow:var(--sh1)}.seg.sm button{padding:4px 11px}
select{appearance:none;-webkit-appearance:none;padding-right:32px;background:var(--sf) 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' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center}
select option{background:var(--bg2);color:var(--tx)}
/* header */
.top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:20px;padding:0 max(24px,calc((100vw - var(--w))/2 + 24px));height:72px;background:var(--bg)}
body.scrolled .top{box-shadow:0 1px 0 var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.mark{width:34px;height:34px;display:grid;place-items:center;background:var(--ac);color:#fff;font:700 17px/1 var(--sans);border-radius:10px}
.wm b{font-size:18px;font-weight:700;letter-spacing:.02em}
.tabs{position:relative;display:flex;gap:2px;flex:none}
.tabs button{background:transparent;padding:10px 16px;font-size:15px;font-weight:600;color:var(--tx2);position:relative}
.tabs button:hover{color:var(--tx);background:var(--sf)}.tabs button.on{background:var(--tx);color:var(--bg)}
.tabs button i{font-style:normal;font-weight:400;font-size:12px;opacity:.55;margin-left:4px}
.tabs button.st::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ac);position:absolute;top:7px;right:7px}
.ind{display:none}
.top .search{position:relative;flex:1;max-width:none;min-width:0}
.sic{position:absolute;left:18px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--mu);stroke-width:2;stroke-linecap:round;pointer-events:none}
#q{width:100%;font:inherit;font-size:15px;background:var(--sf);color:var(--tx);border:2px solid transparent;padding:11px 44px 11px 46px;border-radius:99px;outline:0;transition:border-color .2s,background .2s}
#q:hover{background:var(--sf2)}#q:focus{background:var(--bg2);border-color:var(--tx)}#q::placeholder{color:var(--mu)}#q::-webkit-search-cancel-button{display:none}
.qx{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;background:var(--sf2);color:var(--tx2);font-size:12px}
.tools{display:flex;align-items:center;gap:4px;flex:none}
#theme .moon{display:none}[data-theme=dark] #theme .sun{display:none}[data-theme=dark] #theme .moon{display:block}
.hero{display:none}
body.studio .bar,body.studio .filters,body.studio .grid,body.studio #empty,body.studio #sentinel,body.studio .top .search{display:none!important}
/* toolbar + filters */
.bar{position:sticky;top:calc(var(--hdr,72px) - 1px);z-index:20;max-width:var(--w);margin:0 auto;padding:6px 24px 10px;display:flex;align-items:center;gap:12px;background:var(--bg)}
.tbar{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
#count{font-size:13px;color:var(--mu);margin-right:4px;white-space:nowrap}#count b{color:var(--tx);font-weight:600}
#active{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}#active button{font-size:12.5px;padding:5px 12px;background:var(--acs);color:var(--ac)}
#favTools{display:flex;gap:6px}
.fbtn{font-size:13px;padding:7px 14px}.fbtn svg{width:16px;height:16px}.fbtn.on{background:var(--tx);color:var(--bg)}.fbtn b{font-weight:600;color:var(--ac)}.fbtn.on b{color:inherit}
#sort{font-size:13px;padding:7px 32px 7px 14px}#rand{font-size:13px;padding:7px 16px}
.filters{max-width:var(--w);margin:0 auto;padding:0 24px 14px;display:flex;flex-direction:column;gap:8px}
.filters .frow{display:none}.filters .dh+.frow,.filters.open .frow{display:flex}
.frow{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);padding:1px 0}.frow::-webkit-scrollbar{display:none}
.frow>*{flex-shrink:0}.frow label{font-size:13px;color:var(--mu);min-width:40px}
.chip{font-size:13.5px;padding:8px 16px;background:var(--sf);color:var(--tx);font-weight:500}
.chip:hover{background:var(--sf2)}.chip.on{background:var(--tx);color:var(--bg)}
.chip i{font-style:normal;font-weight:400;font-size:12px;opacity:.5;margin-left:2px}
.dh,#drawerBg{display:none!important}
/* grid */
.grid{max-width:var(--w);margin:0 auto;padding:6px 24px 40px;display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:28px 16px;transition:opacity .25s}
.grid.fade{opacity:0}
.card{display:flex;flex-direction:column;min-width:0;animation:rise .5s var(--out) both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}}
.ph{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--ph);cursor:zoom-in;border-radius:16px;transition:transform .35s var(--out),box-shadow .35s}
.card:hover .ph{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.1)}
.ph.pose{background:var(--phw)}
.ph::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%) var(--ph);background-size:250% 100%;animation:sh 1.5s infinite linear}
.ph.pose::before{background-color:var(--phw)}.ph.done::before{display:none}
@keyframes sh{from{background-position:120% 0}to{background-position:-120% 0}}
.ph img{position:relative;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s,transform .6s var(--out)}
.ph.pose img{object-fit:contain;padding:5% 4% 13%;mix-blend-mode:multiply}
.ph img.ld{opacity:1}.card:hover .ph img.ld{transform:scale(1.02)}
.ph.err::after{content:"加载失败 · 点击重试";position:absolute;inset:0;display:grid;place-items:center;color:var(--mu);font-size:13px}
.badge{position:absolute;left:10px;top:10px;font-size:11.5px;font-weight:600;color:#666;background:rgba(255,255,255,.85);padding:2px 8px;border-radius:99px}
.cbtns{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:8px;opacity:0;transform:scale(.9);transition:.25s var(--out)}
.card:hover .cbtns,.cbtns:focus-within,.card.sel .cbtns{opacity:1;transform:none}
.cbtns button{width:36px;height:36px;padding:0;background:#fff;color:#111;font-size:16px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.cbtns button:hover{background:#fff;transform:scale(1.08)}.cbtns button.on{background:#111;color:#fff}.cbtns button[data-a=fav].on{background:#fff;color:var(--ac)}
.try{position:absolute;left:10px;bottom:10px;background:var(--ac);color:#fff;font-size:13px;padding:8px 14px;opacity:0;transform:translateY(6px);transition:.25s var(--out);box-shadow:0 4px 12px rgba(255,36,66,.3)}
.try:hover{background:var(--ac2)}.card:hover .try,.try:focus-visible{opacity:1;transform:none}
.ph.pose .try{bottom:42px}
.angs{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:2px;padding:8px}
.angs span{font-size:11.5px;padding:3px 9px;color:#888;cursor:pointer;border-radius:99px;background:rgba(255,255,255,.7)}.angs span:hover{color:#111}.angs span.on{color:#fff;background:#111}
.info{padding:10px 4px 0;min-width:0}
.info h3{font-size:14.5px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.info .sub{font-size:12.5px;color:var(--mu);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tags,.copy{display:none}
.card.sel .ph{box-shadow:0 0 0 3px var(--ac)}
.skel{aspect-ratio:3/4.4;border-radius:16px;background:linear-gradient(100deg,var(--sf) 30%,var(--bg) 50%,var(--sf) 70%);background-size:250% 100%;animation:sh 1.5s infinite linear}
/* empty */
#empty{text-align:center;padding:60px 20px 100px;max-width:560px;margin:0 auto}
.emo{font-size:40px;margin-bottom:10px}#empty h3{font-size:20px}#empty p{color:var(--tx2)}
#sugg{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:18px 0 26px}
/* tray */
#tray{position:fixed;right:24px;bottom:24px;z-index:35;width:400px;background:var(--bg2);box-shadow:var(--sh3);border-radius:20px;animation:rise .4s var(--out);overflow:hidden}
.tray-h{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 20px}.tray-h b{font-size:15px;white-space:nowrap}.tray-h small{color:var(--mu);font-size:12px}
#tray.min .tray-b{display:none}
.tray-b{padding:0 20px 18px}.tray-items{display:flex;gap:8px;overflow-x:auto;padding:6px 6px 4px 0}
.tray-items div{position:relative;flex:none}.tray-items img{width:52px;height:68px;object-fit:cover;border-radius:10px;background:var(--ph);display:block}
.tray-items em{position:absolute;left:0;right:0;bottom:0;font-size:10px;font-style:normal;text-align:center;background:rgba(0,0,0,.5);color:#fff;border-radius:0 0 10px 10px}
.tray-items b{position:absolute;right:-5px;top:-5px;width:18px;height:18px;border-radius:50%;background:var(--tx);color:var(--bg);font-size:12px;display:grid;place-items:center;cursor:pointer}
#trayText{white-space:pre-wrap;font:13px/1.7 var(--sans);color:var(--tx2);max-height:130px;overflow:auto;margin:12px 0;padding:12px 14px;background:var(--sf);border-radius:12px}
.tray-act{display:flex;gap:8px}.tray-act .pri{flex:1}
body.tray .foot{padding-bottom:300px}
/* lightbox */
#lb{position:fixed;inset:0;z-index:60}.lb-bg{position:absolute;inset:0;background:rgba(0,0,0,.55);animation:fade .25s both}
@keyframes fade{from{opacity:0}}
.lb-box{position:absolute;inset:32px;max-width:1320px;margin:0 auto;display:flex;background:var(--bg2);box-shadow:var(--sh3);overflow:hidden;border-radius:24px}
.lb-img{flex:1;display:grid;place-items:center;background:var(--sf);min-width:0;position:relative;margin:12px;border-radius:16px;overflow:hidden}
.lb-img img{max-width:100%;max-height:calc(100vh - 88px);object-fit:contain;transition:filter .3s,opacity .3s}.lb-img img.lo{filter:blur(8px)}
[data-theme=light] .lb-img img,:root:not([data-theme=dark]) .lb-img img{mix-blend-mode:multiply}
.spin{position:absolute;width:28px;height:28px;border:2px solid #ddd;border-top-color:var(--ac);border-radius:50%;animation:spin .8s linear infinite;opacity:0;transition:opacity .2s}.lb-img.loading .spin{opacity:1}
@keyframes spin{to{transform:rotate(360deg)}}
.lb-side{width:400px;flex:none;overflow:auto;padding:40px 32px 28px 20px}
.lb-side h2{font-size:24px;line-height:1.35;margin:6px 0 4px;font-weight:700}.mu{font-size:12.5px;color:var(--mu)}
.jp{font-size:12px;color:var(--mu);margin-top:8px}
.angsel{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 4px}
.pbox{margin-top:16px;padding:14px 16px;background:var(--sf);border-radius:14px}.pbox small{display:block;font-size:12px;font-weight:600;color:var(--tx2);margin-bottom:6px}
.pbox p{margin:0 0 12px;font-size:13.5px;line-height:1.8;color:var(--tx)}.pbox.en p{font:12.5px/1.7 ui-monospace,Menlo,monospace;color:var(--tx2)}
.pbox button{background:var(--bg2)}.pbox button.pri{background:var(--tx);color:var(--bg)}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.acts a{text-decoration:none}
.acts .pri{background:var(--tx);color:var(--bg)}.acts [data-x=try]{background:var(--ac);color:#fff;order:-1;flex:1 1 100%;padding:13px;font-size:15px}.acts [data-x=try]:hover{background:var(--ac2)}
.lb-x{position:absolute;right:14px;top:12px;z-index:3;background:var(--sf)}.lb-nav{position:absolute;top:50%;z-index:3;font-size:24px;background:#fff;color:#111;box-shadow:var(--sh2);transform:translateY(-50%)}.lb-nav:hover{background:#fff}.prev{left:26px}.next{right:426px}
/* misc */
#toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,14px);opacity:0;background:rgba(17,17,17,.92);color:#fff;padding:11px 22px;border-radius:99px;transition:transform .35s var(--out),opacity .25s;z-index:99;pointer-events:none;font-size:13.5px;box-shadow:var(--sh2)}
#toast.on{opacity:1;transform:translate(-50%,0)}body.tray:not(.studio) #toast{bottom:auto;top:calc(var(--hdr,72px) + 14px)}
#toTop{position:fixed;left:24px;bottom:24px;z-index:25;background:var(--bg2);box-shadow:var(--sh2);opacity:0;pointer-events:none;transition:opacity .3s}#toTop.on{opacity:1;pointer-events:auto}
#helpBox,#pk,#cfg{position:fixed;inset:0;z-index:70;display:grid;place-items:center;background:rgba(0,0,0,.45);padding:20px;animation:fade .2s both}
#helpBox[hidden],#pk[hidden],#cfg[hidden],[hidden]{display:none!important}
.hb{background:var(--bg2);padding:28px 30px;width:min(440px,100%);box-shadow:var(--sh3);border-radius:22px}.hb h3{font-size:20px;margin-bottom:14px}
.hb dl{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;margin:0 0 22px;font-size:13.5px}.hb dd{margin:0;color:var(--tx2)}.hb .pri{width:100%}
.foot{margin-top:30px;padding:40px 24px 36px;background:var(--sf)}
.fi{max-width:var(--w);margin:0 auto;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:48px}
.fwm{font-size:17px;font-weight:700}.foot p,.foot li{font-size:13px;color:var(--tx2);line-height:1.9}
.foot h4{font-size:13px;color:var(--tx);margin-bottom:8px}.foot ul{list-style:none;padding:0;margin:0}.foot a{color:var(--tx);font-weight:500}
.copy-r{max-width:var(--w);margin:28px auto 0;color:var(--mu)!important;font-size:12px!important}
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s}
/* ---------- studio ---------- */
#studio{max-width:1320px;margin:0 auto;padding:20px 24px 40px}
.st-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.st-head .eyebrow{display:inline-flex;margin:0 0 10px;font-size:12px;color:var(--ac);background:var(--acs);padding:4px 10px;border-radius:99px;font-weight:600;gap:6px}
.st-head h2{font-size:30px;font-weight:700;line-height:1.25;margin-bottom:6px}.st-head .lead{margin:0;max-width:62ch;color:var(--tx2);font-size:14px}
.modes{margin-top:16px}.modes button{padding:8px 20px;font-size:14px}
.cfg{gap:10px;padding:10px 16px;background:var(--sf);flex:none}.cfg b{font-weight:600;color:var(--ac)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--mu)}.dot.on{background:var(--ok);box-shadow:0 0 0 3px rgba(33,163,102,.18)}
.st-grid{display:grid;grid-template-columns:minmax(380px,460px) 1fr;gap:24px;align-items:start}
.st-steps{display:flex;flex-direction:column;gap:14px}
.step{padding:20px;background:var(--bg2);border:1px solid var(--line);border-radius:20px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.sh{display:flex;align-items:center;gap:10px;margin-bottom:14px}.sh i{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--tx);color:var(--bg);font:700 12px/1 var(--sans);font-style:normal}
.sh b{font-size:16px;font-weight:700}.sh small{font-size:12px;color:var(--mu);margin-left:auto;text-align:right}
.row{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.drop{display:grid;place-items:center;min-height:180px;border:1.5px dashed var(--line2);border-radius:16px;cursor:pointer;background:var(--sf);transition:border-color .2s,background .2s;overflow:hidden;position:relative}
.drop:hover,.drop.over{border-color:var(--ac);background:var(--acs)}.drop.has{border-style:solid;min-height:0}
.drop img{display:block;max-height:340px;width:100%;object-fit:contain}
.dz{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:24px}.dz svg{width:30px;height:30px;fill:none;stroke:var(--tx2);stroke-width:1.6;stroke-linecap:round;margin-bottom:6px}.dz b{font-weight:600}.dz small{color:var(--mu);font-size:12px}
.slot{display:flex;flex-direction:column;gap:8px}.slot .empty0{font-size:13px;color:var(--mu);padding:14px;background:var(--sf);border-radius:12px;text-align:center}
.pick{display:flex;align-items:center;gap:12px;padding:8px;background:var(--sf);border-radius:14px}
.pick img{width:56px;height:72px;object-fit:cover;background:var(--ph);border-radius:10px}.pick.pose img{object-fit:contain;background:#fff}
.pick div{flex:1;min-width:0}.pick b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pick small{color:var(--mu);font-size:12px}
.pick button{background:var(--bg2)}.pick select{font-size:12px;padding:4px 26px 4px 10px;background-color:var(--bg2)}
.btn input{display:none}
textarea{width:100%;font:13.5px/1.7 var(--sans);color:var(--tx);background:var(--sf);border:1.5px solid transparent;border-radius:14px;padding:11px 14px;resize:vertical;margin-top:8px;outline:0;transition:border-color .2s,background .2s}textarea:focus{border-color:var(--tx);background:var(--bg2)}
#wbPrompt{font-size:12.5px;color:var(--tx2)}
.lab{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--tx2)}.lab select{font-size:13px;padding:7px 32px 7px 14px}
.big{width:100%;padding:16px;font-size:16px;font-weight:600;margin-top:16px;border-radius:16px;box-shadow:0 8px 20px rgba(255,36,66,.25)}.big:hover{transform:translateY(-1px)}
.st-out{position:sticky;top:calc(var(--hdr,72px) + 16px);background:var(--bg2);border:1px solid var(--line);border-radius:20px;padding:12px}
.stage{position:relative;min-height:600px;background:var(--sf);border-radius:14px;display:grid;place-items:center;overflow:hidden}
.ph0{text-align:center;color:var(--mu)}.ph0 span{font-size:18px;font-weight:600;color:var(--tx2)}.ph0 span::before{content:"";display:block;width:56px;height:56px;margin:0 auto 14px;border-radius:16px;background:var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2442' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") no-repeat center/26px;box-shadow:var(--sh1)}.ph0 p{font-size:13px;margin:6px 0 0}
.cmp{position:relative;--x:50%;width:100%;height:100%;min-height:600px;max-height:78vh;user-select:none}
.cmp>img,.bef img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.bef{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--x)) 0 0)}
.hdl{position:absolute;top:0;bottom:0;left:var(--x);width:2px;background:#fff;pointer-events:none}
.hdl span{position:absolute;top:50%;left:50%;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;box-shadow:var(--sh2)}
.hdl span::before{content:"‹ ›";position:absolute;inset:0;display:grid;place-items:center;color:#111;font-size:15px;letter-spacing:2px}
#wbRange{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.cmp em{position:absolute;top:14px;font-size:12px;font-style:normal;font-weight:600;color:#fff;background:rgba(0,0,0,.5);padding:4px 11px;border-radius:99px;pointer-events:none}.cmp em.l{left:14px}.cmp em.r{right:14px}
.cmp.solo .bef,.cmp.solo .hdl,.cmp.solo input,.cmp.solo em{display:none}
.busy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:color-mix(in srgb,var(--sf) 85%,transparent);backdrop-filter:blur(6px);z-index:2}
.bar0{width:min(300px,70%);height:6px;background:var(--sf2);border-radius:99px;overflow:hidden}.bar0 i{display:block;height:100%;background:var(--ac);border-radius:99px;transform-origin:left;transform:scaleX(0);transition:transform .25s linear}
.busy b{font-size:16px;font-weight:600;margin-top:8px}.busy small{color:var(--mu);font-size:12.5px}.busy button{background:var(--bg2)}
.err{position:absolute;inset:auto 16px 16px;background:var(--bg2);padding:14px 18px;z-index:3;border-radius:14px;box-shadow:var(--sh2)}.err b{color:var(--bad);font-size:15px}.err p{margin:6px 0 4px;font-size:13px;color:var(--tx2);line-height:1.7;word-break:break-word}
.warn{margin-top:10px;font-size:12.5px;color:#b4501f;background:#fff4ea;padding:9px 14px;border-radius:12px}[data-theme=dark] .warn{background:#2a1f16;color:#f0a46a}
.res{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding:3px}.res button{padding:0;width:64px;height:84px;flex:none;overflow:hidden;border-radius:12px}.res button.on{box-shadow:0 0 0 2.5px var(--ac)}.res img{width:100%;height:100%;object-fit:cover}
.out-act{margin-top:12px}.out-act small{color:var(--mu);font-size:12px}#wbDl{background:var(--tx);color:var(--bg)}
.hist{margin-top:18px;padding:4px 4px 2px}.hist .sh{margin-bottom:10px}.hist .sh b{font-size:14px}.hist .sh small{margin-left:0}.hl{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px}.hl:empty::before{content:"还没有生成记录";font-size:12.5px;color:var(--mu)}
.hl button{position:relative;flex:none;padding:0;width:80px;height:104px;overflow:hidden;background:var(--ph);border-radius:12px}.hl img{width:100%;height:100%;object-fit:cover}
.hl span{position:absolute;left:0;right:0;bottom:0;font-size:10.5px;font-weight:400;background:rgba(0,0,0,.45);color:#fff}.hl i{position:absolute;right:4px;top:4px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-style:normal;font-size:12px;line-height:18px;display:none}.hl button:hover i{display:block}
.persons{display:flex;gap:8px;flex-wrap:wrap}.persons:empty{display:none}.persons+.drop{margin-top:10px}
.pp{position:relative;width:calc((100% - 16px)/3);aspect-ratio:3/4;background:var(--ph);border-radius:14px;overflow:hidden}.pp img{width:100%;height:100%;object-fit:cover}
.pp small{position:absolute;left:6px;bottom:6px;font-size:10.5px;color:#fff;background:rgba(0,0,0,.45);padding:1px 7px;border-radius:99px}
.x{position:absolute;right:6px;top:6px;width:24px;height:24px;padding:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:14px}.x:hover{background:rgba(0,0,0,.75)}
.drop.mini{min-height:56px}.drop.mini .dz{flex-direction:row;padding:12px;gap:10px}.drop.mini .dz small{display:none}.drop.mini .dz svg{margin:0;width:20px;height:20px}
#wbChar{margin-top:14px}.sub0{font-size:12.5px;color:var(--mu);margin-bottom:8px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips .chip{font-size:13px;padding:7px 14px}
.mt{margin:12px 0 4px}
/* picker / settings */
.pk-box,.cfg-box{background:var(--bg2);width:min(1000px,100%);max-height:86vh;display:flex;flex-direction:column;box-shadow:var(--sh3);border-radius:24px;overflow:hidden}
.cfg-box{width:min(580px,100%);max-height:94vh}
.pk-h{display:flex;align-items:center;gap:14px;padding:16px 16px 16px 24px}.pk-h b{font-size:18px;font-weight:700;flex:none}
#pkQ{flex:1;font:inherit;background:var(--sf);color:var(--tx);border:0;border-radius:99px;padding:9px 16px;outline:0}
.pk-g{overflow:auto;padding:6px 24px 24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:18px 12px}.pk-g .skel{aspect-ratio:3/4}
.pk-g button{flex-direction:column;align-items:stretch;padding:0;background:transparent;gap:6px;text-align:left;border-radius:0}.pk-g img{aspect-ratio:3/4;object-fit:cover;background:var(--ph);width:100%;border-radius:12px;transition:box-shadow .15s}.pk-g button.pose img{object-fit:contain;background:var(--phw);mix-blend-mode:multiply}
.pk-g button:hover img{box-shadow:0 0 0 2px var(--line2)}.pk-g button.on img{box-shadow:0 0 0 3px var(--ac)}.pk-g span{font-size:12px;font-weight:400;color:var(--tx2);overflow:hidden;text-overflow:ellipsis}.pk-g button.on span{color:var(--ac);font-weight:600}
.cfg-b{padding:4px 24px 20px;overflow:auto;display:flex;flex-direction:column;gap:14px}
.prov{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.prov label{cursor:pointer}.prov input{position:absolute;opacity:0}
.prov span{display:block;background:var(--sf);border:2px solid transparent;padding:12px;border-radius:14px;height:100%;transition:.2s}.prov b{display:block;font-size:14px;font-weight:700}.prov small{font-size:11.5px;color:var(--mu)}
.prov input:checked+span{border-color:var(--tx);background:var(--bg2)}.prov input:focus-visible+span{outline:2px solid var(--ac)}
.fld{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--tx)}
.fld input,.fld select{font:14px var(--sans);color:var(--tx);background-color:var(--sf);border:1.5px solid transparent;border-radius:12px;padding:10px 13px;outline:0;width:100%}.fld input:focus{border-color:var(--tx);background:var(--bg2)}
.kw{display:flex;gap:6px}.kw input{flex:1}
.tg{display:flex;gap:10px;align-items:flex-start;font-size:13px;cursor:pointer}.tg input{margin-top:3px;accent-color:var(--ac);width:16px;height:16px}.tg b{font-weight:600;display:block}.tg small{color:var(--mu);font-size:12px;line-height:1.6}
.note{font-size:12.5px;line-height:1.75;color:var(--tx2);background:var(--sf);padding:12px 14px;border-radius:12px}.note b{display:block;color:var(--tx);font-weight:600}
.cfg-f{display:flex;gap:8px;padding:14px 24px;border-top:1px solid var(--line)}
/* responsive */
@media(min-width:1500px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1180px){.tabs button{padding:9px 12px;font-size:14px}.tabs button i{display:none}.st-grid{grid-template-columns:1fr}.st-out{position:static}.lb-side{width:360px}.next{right:386px}}
@media(max-width:860px){
 .top{flex-wrap:wrap;height:auto;padding:10px 12px 8px;gap:8px 10px}.wm{display:none}#help{display:none}
 .top .search{order:2;flex:1}.tools{order:3}.tools .seg{display:none}
 .tabs{order:4;width:calc(100% + 24px);margin:0 -12px;padding:0 8px;overflow-x:auto;scrollbar-width:none;gap:2px}.tabs::-webkit-scrollbar{display:none}.tabs button{padding:7px 13px;font-size:14px;flex:none}
 #q{padding:9px 38px 9px 40px;font-size:14px}.sic{left:14px;width:16px;height:16px}
 .bar{padding:4px 12px 8px;gap:6px}.tbar{gap:6px;overflow-x:auto;scrollbar-width:none}.tbar::-webkit-scrollbar{display:none}.tbar>*{flex:none}#count{font-size:12px}.fbtn,#sort,#rand{font-size:12.5px;padding:6px 12px}#sort{padding-right:28px}
 .filters{padding:0 12px 10px}.chip{font-size:13px;padding:7px 13px}.frow label{display:none}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px;padding:4px 8px 30px}
 .ph{border-radius:12px}.info{padding:7px 4px 0}.info h3{font-size:13.5px}.info .sub{font-size:11.5px}
 .cbtns{opacity:1;transform:none;right:6px;top:6px;gap:6px}.cbtns button{width:28px;height:28px;font-size:13px}.cbtns button[data-a=sel]{display:none}.card.sel .cbtns button[data-a=sel]{display:inline-flex}
 .try{display:none}.angs{padding:6px 4px}.angs span{padding:2px 6px;font-size:10.5px}.badge{left:6px;top:6px;font-size:10.5px}
 #tray{left:8px;right:8px;bottom:8px;width:auto}.tray-act button{font-size:12.5px;padding:8px 10px}.tray-h small{display:none}
 .lb-box{inset:0;flex-direction:column;border-radius:0;overflow:auto}.lb-img{flex:none;height:56vh;margin:0;border-radius:0}.lb-img img{max-height:56vh}.lb-side{width:auto;padding:20px 18px 30px;overflow:visible}.lb-side h2{font-size:20px}.lb-nav{top:28vh;width:36px;height:36px}.next{right:12px}.prev{left:12px}
 #toast{bottom:calc(24px + env(safe-area-inset-bottom))}body.tray:not(.studio) #toast{top:auto;bottom:96px}
 .fi{grid-template-columns:1fr;gap:22px}
 #studio{padding:14px 12px 30px}.st-head{flex-direction:column;align-items:stretch;gap:14px}.st-head h2{font-size:24px}.modes{display:flex}.modes button{flex:1}
 .step{padding:16px;border-radius:18px}.stage,.cmp{min-height:420px}
 .prov{grid-template-columns:1fr 1fr}.pk-g{grid-template-columns:repeat(3,1fr);padding:6px 14px 14px;gap:12px 8px}#pk,#cfg{padding:0;place-items:end stretch}.pk-box,.cfg-box{max-height:90vh;border-radius:22px 22px 0 0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
body.studio .tools{margin-left:auto}
.wm{display:flex;align-items:baseline;gap:7px}.wm small{font-size:12px;font-weight:600;color:var(--mu);letter-spacing:.02em}
@media(max-width:860px){.wm small{display:none}.wm b{font-size:17px}}
@media(max-width:860px){.wm small{display:none}.wm b{font-size:17px}}
/* ---------- v7 studio polish ---------- */
body.studio{background:#fafafa}[data-theme=dark] body.studio,body.studio[data-x]{background:var(--bg)}
body.studio .top{background:#fafafa}[data-theme=dark] body.studio .top{background:var(--bg)}
#studio{max-width:1360px;padding:12px 24px 40px}
.st-head{align-items:center;margin-bottom:18px;gap:16px}.st-head>div:first-child{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.st-head h2{font-size:22px;margin:0}.st-head .lead{flex-basis:100%;order:3;font-size:13px;color:var(--mu);margin-top:-4px}
.modes{margin:0;background:#ececec;padding:3px}[data-theme=dark] .modes{background:var(--sf)}.modes button{padding:7px 18px;font-size:13.5px;font-weight:600}
.cfg{background:var(--bg2);box-shadow:var(--sh1)}
.st-grid{grid-template-columns:minmax(380px,440px) 1fr;gap:20px}
.st-steps{gap:12px;position:relative}
.step{border:0;box-shadow:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03);padding:18px 18px 18px;transition:box-shadow .25s}
.step:hover{box-shadow:0 4px 16px rgba(0,0,0,.06),0 0 0 1px rgba(0,0,0,.03)}
.sh{margin-bottom:12px}.sh i{background:var(--sf2);color:var(--tx2);transition:background .2s}
.step.done .sh i{background:var(--ok);color:#fff;font-size:0}.step.done .sh i::before{content:"✓";font-size:13px;font-weight:700}
.sh b{font-size:15px}
.slot .empty0{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;border-radius:14px;color:var(--mu)}
.slot .empty0::before{content:"";flex:none;width:40px;height:40px;border-radius:12px;background:var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center/18px;box-shadow:var(--sh1)}
#wbG .empty0::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2442' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 6l2 4 2-1v12h8V9l2 1 2-4-4-3c-.5 1.5-2 2.5-4 2.5S8.5 4.5 8 3z'/%3E%3C/svg%3E")}
#wbPo .empty0::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.5' r='2'/%3E%3Cpath d='M6 9l6-1 6 1M12 8v7l-3 6M12 15l3 6'/%3E%3C/svg%3E")}
.pick{position:relative;padding:8px 10px 8px 8px;background:var(--sf);transition:background .2s}.pick:hover{background:var(--sf2)}
.pick img{width:52px;height:68px;border-radius:10px;box-shadow:var(--sh1)}
.rmx{width:26px;height:26px;padding:0;font-size:15px;background:var(--bg2);color:var(--tx2);box-shadow:var(--sh1);opacity:.55;transition:opacity .2s,background .2s}.pick:hover .rmx,.rmx:focus-visible{opacity:1}.rmx:hover{background:var(--ac);color:#fff}
.drop{min-height:150px;background:var(--sf);border:1.5px dashed #dcdcdc}.dz svg{width:24px;height:24px;stroke:var(--ac);background:var(--bg2);padding:10px;box-sizing:content-box;border-radius:14px;box-shadow:var(--sh1)}
.drop.mini .dz svg{padding:6px;border-radius:10px}
.persons .pp{box-shadow:var(--sh1)}
/* sticky generate bar */
.gobar{position:sticky;bottom:12px;z-index:5;background:color-mix(in srgb,var(--bg2) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:20px;padding:12px;box-shadow:0 8px 30px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.04)}
.gb-i{display:flex;align-items:center;gap:10px;padding:0 4px 10px}.gb-i>span{flex:1;min-width:0;display:flex;flex-direction:column}.gb-i b{font-size:14px}
#wbHint{font-size:12px;color:var(--mu);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wbHint.miss{color:#d9822b}
.cfgchip{font-size:12px;padding:6px 12px;gap:7px;background:var(--sf)}
.gobar .big{margin:0;border-radius:14px;padding:15px}
/* output */
.st-out{border:0;box-shadow:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03);padding:14px}
.onb{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:12px;border-radius:16px;background:linear-gradient(120deg,#fff1f3,#fff7f0)}[data-theme=dark] .onb{background:#2a1a1d}
.onb-i{flex:none;width:44px;height:44px;border-radius:14px;background:var(--bg2);display:grid;place-items:center;font-size:20px;box-shadow:var(--sh1)}
.onb b{font-size:14.5px}.onb p{margin:2px 0 0;font-size:12.5px;color:var(--tx2);line-height:1.6}.onb .pri{flex:none}
.stage{min-height:620px;background:var(--sf);border-radius:16px}
.ph0 span{font-size:17px}.ph0 span::before{display:none}.ph0 p{line-height:1.8}
.ill{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:22px}
.ill i{width:88px;height:116px;border-radius:16px;background:var(--bg2);box-shadow:0 6px 20px rgba(0,0,0,.07);display:grid;place-items:end center;padding-bottom:10px;font-style:normal;font-size:12px;color:var(--mu);position:relative;overflow:hidden}
.ill i::before{content:"";position:absolute;left:50%;top:18px;transform:translateX(-50%);width:44px;height:64px;border-radius:22px 22px 10px 10px;background:#ececec}
.ill .c2::before{background:#ffd9df;border-radius:8px 8px 14px 14px;width:50px}
.ill .c3{width:104px;height:138px;background:linear-gradient(160deg,#ff6b81,#ff2442);color:#fff;font-size:26px;place-items:center;padding:0;box-shadow:0 12px 30px rgba(255,36,66,.3)}.ill .c3::before{display:none}
.ill em{font-style:normal;color:#ccc;font-size:20px;font-weight:300}
.busy{background:var(--sf);backdrop-filter:none}
.skel0{position:absolute;inset:24px;margin:auto;max-width:420px;border-radius:16px;background:linear-gradient(100deg,#ececec 30%,#f8f8f8 50%,#ececec 70%);background-size:250% 100%;animation:sh 1.4s infinite linear;z-index:-1;opacity:.9}
[data-theme=dark] .skel0{background-image:linear-gradient(100deg,#222 30%,#2c2c2c 50%,#222 70%)}
.busy b,.busy small,.busy .bar0,.busy button{position:relative}.busy{z-index:2;isolation:isolate}
.busy b{background:var(--bg2);padding:8px 16px;border-radius:99px;font-size:14px;box-shadow:var(--sh1)}
.res{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:12px}.res button{width:auto;height:auto;aspect-ratio:3/4;transition:transform .2s}.res button:hover{transform:translateY(-2px)}
.out-act{background:var(--sf);border-radius:14px;padding:8px}.out-act button{background:var(--bg2)}.out-act #wbDl{background:var(--tx);color:var(--bg)}
.hist{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.hl button{width:72px;height:96px;transition:transform .2s}.hl button:hover{transform:translateY(-2px)}
/* settings */
.cfg-box{max-height:92vh}.cfg-b{gap:12px}
.grp{font-size:12px;font-weight:700;color:var(--mu);letter-spacing:.04em;margin-top:6px}
.prov span{display:flex;flex-direction:column;gap:2px;padding:12px 10px}.lg{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#fff;font-style:normal;font-size:15px;font-weight:700;margin-bottom:6px}
#cfHelp{margin:0;padding:10px 12px;background:var(--sf);border-radius:12px;color:var(--tx2)}#cfHelp a{color:var(--ac);font-weight:600;text-decoration:none}
@media(max-width:1180px){.gobar{position:sticky}}
@media(max-width:860px){
 body.studio{padding-bottom:0}#studio{padding:10px 12px 20px}.st-head>div:first-child{gap:10px}.st-head h2{font-size:20px}.modes{width:100%}
 .gobar{position:fixed;left:0;right:0;bottom:0;border-radius:20px 20px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));z-index:30}
 body.studio .foot{padding-bottom:180px}.st-out{margin-bottom:20px}.stage,.cmp{min-height:440px}.ill i{width:70px;height:94px}.ill .c3{width:84px;height:112px}
 .onb{flex-wrap:wrap}.onb .pri{width:100%}
}
.st-head>div:first-child{flex:1;min-width:0}
/* ---------- v8 studio app layout ---------- */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.studio .foot,body.studio .seoc,body.studio #toTop{display:none!important}
#studio{max-width:none;padding:0 16px 16px;height:calc(100dvh - var(--hdr,72px))}
.st-app{display:grid;grid-template-columns:minmax(320px,360px) minmax(0,1fr) minmax(290px,320px);gap:14px;height:100%;max-width:1680px;margin:0 auto}
.st-l,.st-r{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;scrollbar-width:thin;padding:2px}
.st-c{display:flex;flex-direction:column;min-height:0;background:var(--bg2);border-radius:20px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03)}
.modes{display:flex;width:100%}.modes button{flex:1;padding:9px 8px;font-size:13.5px}
.st-l .lead{margin:-2px 4px 0;font-size:12.5px;color:var(--mu);line-height:1.5}
.st-l .step{padding:12px 14px 14px;border-radius:18px}
.sh{margin-bottom:10px;gap:8px}.sh small{margin-left:0;font-size:11.5px}.sh i{width:22px;height:22px;font-size:11.5px}
.lnk{background:transparent;color:var(--ac);font-size:12.5px;font-weight:600;padding:3px 6px;border-radius:8px}.lnk:hover{background:var(--acs)}
.st-l .drop{min-height:112px;border-radius:14px}.st-l .drop .dz{padding:12px;gap:2px}.st-l .drop .dz svg{width:20px;height:20px;padding:8px;margin-bottom:4px}
.st-l .drop.mini{min-height:44px}.st-l .drop.mini .dz{padding:8px}
.st-l .pp{width:calc((100% - 16px)/3);aspect-ratio:4/5}
#wbChar{margin-top:0}.sub0{display:none}#wbChar .chips{gap:6px}#wbChar .chip{padding:7px 12px;font-size:12.5px}#wbCharTxt{font-size:12.5px}
button.empty0{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:var(--sf);border:1.5px dashed #dcdcdc;border-radius:14px;min-height:72px;justify-content:flex-start;white-space:normal}
button.empty0:hover{border-color:var(--ac);background:var(--acs)}button.empty0 b{display:block;font-size:14px;color:var(--tx)}button.empty0 small{display:block;font-size:11.5px;color:var(--mu);font-weight:400;margin-top:1px}
button.empty0::before{content:"";flex:none;width:40px;height:40px;border-radius:12px;background:var(--bg2) no-repeat center/20px;box-shadow:var(--sh1)}
#wbG button.empty0::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2442' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 6l2 4 2-1v12h8V9l2 1 2-4-4-3c-.5 1.5-2 2.5-4 2.5S8.5 4.5 8 3z'/%3E%3C/svg%3E")}
#wbPo button.empty0::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2442' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.5' r='2'/%3E%3Cpath d='M6 9l6-1 6 1M12 8v7l-3 6M12 15l3 6'/%3E%3C/svg%3E")}
.slot{gap:6px}.st-l .pick{padding:6px 8px 6px 6px;gap:10px}.st-l .pick img{width:42px;height:54px;border-radius:8px}.st-l .pick b{font-size:13px}.st-l .pick small{font-size:11.5px}
#wbPo{max-height:196px;overflow:auto}.r3{margin-top:8px}.r3:not(:has(:not([hidden]):not(.sp))){display:none}
/* right column */
.st-r .cfg{width:100%;justify-content:flex-start;padding:11px 14px;border-radius:14px}.st-r .cfg b{margin-left:auto}
.flow{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:10px 12px;background:var(--bg2);border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03)}
.flow span{font-size:12px;font-weight:600;color:var(--mu);display:flex;align-items:center;gap:5px}.flow span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sf2)}
.flow span.on{color:var(--tx)}.flow span.on::before{background:var(--ok)}.flow span[data-f="4"].on{color:var(--ac)}.flow span[data-f="4"].on::before{background:var(--ac)}.flow i{color:#ccc;font-style:normal}
.quick,.adv,.st-r .hist{background:var(--bg2);border-radius:16px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.03);margin:0;border:0}
.lab0{font-size:12px;font-weight:700;color:var(--mu);margin-bottom:8px}.quick .chips .chip{padding:6px 11px;font-size:12.5px}
.q2{margin-top:10px}.q2 .row{margin:0;gap:10px;flex-wrap:nowrap}.q2 .lab{font-size:12.5px}.q2 select{padding:6px 28px 6px 12px;font-size:12.5px}
.adv summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700}.adv summary::-webkit-details-marker{display:none}
.adv summary::after{content:"";margin-left:auto;width:7px;height:7px;border-right:1.8px solid var(--mu);border-bottom:1.8px solid var(--mu);transform:rotate(45deg) translateY(-2px);transition:transform .2s}.adv[open] summary::after{transform:rotate(-135deg)}
.adv summary small{font-size:11.5px;color:var(--mu);font-weight:400}.adv-b{margin-top:10px}.adv-b .mt{margin:0 0 4px}.adv-b textarea{font-size:12.5px}#wbPrompt{max-height:180px}
.st-r .hist .sh{margin-bottom:8px}.st-r .hist .sh small{display:none}.st-r .hl button{width:54px;height:72px;border-radius:10px}.st-r .hl:empty::before{content:"生成后会保存在这里（仅本机）"}
.st-r>.sp{flex:1 1 0;min-height:0}
.st-r .gobar{position:static;box-shadow:0 8px 30px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.04);background:var(--bg2)}
.cfgchip{display:none}
.gobar .big:disabled{background:#f1f1f1;color:#aaa;box-shadow:none;opacity:1;cursor:not-allowed}[data-theme=dark] .gobar .big:disabled{background:#2a2a2a;color:#666}
/* center */
.st-c .onb{margin-bottom:10px}.st-c .stage{flex:1;min-height:0;border-radius:14px}
.st-c .cmp{min-height:0;max-height:none;height:100%}
.st-c .res{display:flex;margin-top:10px;overflow-x:auto}.st-c .res button{width:56px;height:74px;flex:none;aspect-ratio:auto}
.st-c .out-act{margin-top:10px}.st-c .warn{margin-top:10px}
.ph0 p{font-size:12.5px}
@media(max-width:1180px) and (min-width:861px){.st-app{grid-template-columns:300px minmax(0,1fr) 270px;gap:10px}#studio{padding:0 10px 10px}}
@media(min-width:861px){body.studio{overflow:hidden}}
@media(max-width:860px){
 #studio{height:auto;padding:6px 10px 150px}.st-app{grid-template-columns:1fr;height:auto}.st-l,.st-r{overflow:visible}.st-c{min-height:460px}.st-c .stage{min-height:420px}
 .st-r .gobar{position:fixed;left:0;right:0;bottom:0;z-index:30;border-radius:20px 20px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.cfgchip{display:inline-flex}.st-r .cfg{display:none}
}
button.empty0{display:grid;grid-template-columns:40px 1fr;column-gap:12px;row-gap:0;align-items:center}button.empty0::before{grid-row:span 2}button.empty0 b{align-self:end}button.empty0 small{align-self:start}
.st-r .hl span{display:none}
button.empty0{display:flex}button.empty0>span{flex:1;min-width:0}
@media(max-width:860px){.st-c{order:-1}.st-l{order:-2}}
/* ===== v8 motion & features ===== */
.pt{position:fixed;width:6px;height:6px;border-radius:50%;pointer-events:none;z-index:200}
.flyimg{position:fixed;z-index:200;object-fit:cover;pointer-events:none;box-shadow:0 10px 30px rgba(0,0,0,.2);will-change:transform}
.cbtns button,.chip,.fbtn,.seg button,button{transition:transform .18s cubic-bezier(.16,1,.3,1),background-color .2s,color .2s,box-shadow .2s,opacity .2s}
button:active:not(:disabled){transform:scale(.96)}
#top{transition:box-shadow .3s,background-color .3s}body.scrolled #top{box-shadow:0 1px 0 rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.04);background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}
[data-theme=dark] body.scrolled #top{background:rgba(17,17,17,.8)}
.ph img{transition:opacity .5s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1),filter .6s}.ph img:not(.ld){opacity:0;transform:scale(1.04);filter:blur(10px)}
.ph:not(.done){background:linear-gradient(100deg,#f2f2f2 30%,#fafafa 50%,#f2f2f2 70%) 0 0/300% 100%;animation:shim 1.4s linear infinite}@keyframes shim{to{background-position:-150% 0}}
/* batch */
#batchBtn.on{background:#111;color:#fff}
body.batch .card .ph{cursor:copy}body.batch .card .ph::after{content:"";position:absolute;top:10px;left:10px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.18);box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform .25s cubic-bezier(.16,1,.3,1),background .2s;z-index:3}
body.batch .card.picked .ph::after{background:var(--ac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;border-color:var(--ac);transform:scale(1.1)}
body.batch .card .ph img{transition:transform .3s cubic-bezier(.16,1,.3,1)}body.batch .card.picked .ph img{transform:scale(.94)}body.batch .card.picked .ph{box-shadow:0 0 0 3px var(--ac)}
body.batch .cbtns,body.batch .try,body.batch #tray{display:none!important}
#bbar{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;display:flex;gap:6px;align-items:center;background:#111;color:#fff;padding:8px 8px 8px 18px;border-radius:999px;box-shadow:0 12px 40px rgba(0,0,0,.25);animation:bup .45s cubic-bezier(.16,1,.3,1)}
#bbar b{font-size:13.5px;margin-right:8px;font-variant-numeric:tabular-nums;white-space:nowrap}#bbar button{background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:999px;padding:8px 14px;font-size:13px;white-space:nowrap}#bbar button:hover:not(:disabled){background:rgba(255,255,255,.2)}#bbar button:disabled{opacity:.4}#bbar button.pri{background:var(--ac)}
@keyframes bup{from{opacity:0;transform:translate(-50%,24px)}}
@media(max-width:760px){#bbar{left:8px;right:8px;transform:none;bottom:8px;overflow-x:auto;border-radius:18px}@keyframes bup{from{opacity:0;transform:translateY(24px)}}#bbar [data-b=all]{display:none}}
/* search suggest */
.search{position:relative}#qsug{position:absolute;left:0;right:0;top:calc(100% + 8px);background:var(--bg2,#fff);border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.04);padding:12px 14px 14px;z-index:80;animation:sgin .28s cubic-bezier(.16,1,.3,1);transform-origin:top}
@keyframes sgin{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.sgh{display:flex;justify-content:space-between;align-items:center;margin:2px 0 8px}.sgh small{color:#999;font-size:12px}.sgh button{border:0;background:none;color:#999;font-size:12px;padding:0}.sgc{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sgc button{border:0;background:#f5f5f5;border-radius:999px;padding:6px 12px;font-size:13px;color:#333}.sgc button:hover{background:#ffeef0;color:var(--ac)}.sgc em{font-style:normal;color:var(--ac);font-weight:700;margin-right:5px;font-size:12px}
/* lightbox similar */
.simh{display:block;color:#999;font-size:12px;margin:22px 0 8px}.sim{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.sim button{padding:0;border:0;border-radius:10px;overflow:hidden;aspect-ratio:3/4;background:#f3f3f3}.sim img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.16,1,.3,1)}.sim button:hover img{transform:scale(1.06)}
.cta{display:flex;gap:10px;justify-content:center;margin-top:18px}
#upd{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:90;background:#111;color:#fff;border:0;border-radius:999px;padding:10px 18px;font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.2);animation:sgin .4s cubic-bezier(.16,1,.3,1)}#upd b{color:var(--ac)}
/* toast spring */
#toast.on{animation:tspr .5s cubic-bezier(.34,1.56,.64,1)}@keyframes tspr{from{opacity:0;transform:translate(-50%,14px) scale(.96)}}
/* studio */
.step.done .sh i{animation:ck .5s cubic-bezier(.34,1.56,.64,1)}@keyframes ck{0%{transform:scale(.4)}100%{transform:none}}
.st-l .pick,.st-l #wbPersons>*{animation:slotin .45s cubic-bezier(.16,1,.3,1) both}@keyframes slotin{from{opacity:0;transform:translateY(6px) scale(.96)}}
#wbGo{position:relative;overflow:hidden}#wbGo:not(:disabled):not(.run)::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);transform:translateX(-100%);animation:shine 3.2s 1s ease-in-out infinite}@keyframes shine{0%,60%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
#wbGo .ring{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;margin-right:8px;vertical-align:-3px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}#wbGo::after{display:none}}
body.batch .card .badge,body.batch .card .angs{display:none}
@media(max-width:760px){#bbar{gap:4px;padding:6px 6px 6px 14px;overflow:visible}#bbar b{margin-right:2px;font-size:12.5px}#bbar button{padding:7px 9px;font-size:12px}#batchBtn{font-size:0;gap:0;padding:0 10px}#batchBtn svg{margin:0}}
/* ===== v9 去 AI 味 ===== */
.mark{background:none;color:var(--ac);width:30px;height:30px;border-radius:0}.mark svg{width:30px;height:30px;display:block}
.onb{background:#f6f6f6}[data-theme=dark] .onb{background:#1d1d1d}.onb-i{color:#111;font-size:0}
.ill .c3{background:#fff;color:#999;font-size:13px;box-shadow:none;border:1.5px dashed #d6d6d6}
#wbGo::after{display:none!important;animation:none!important}
@media(max-width:760px){.tbar{flex-wrap:wrap;row-gap:8px}.tbar .sp{flex-basis:100%;height:0}}
@media(max-width:760px){.angs{flex-wrap:nowrap;overflow:hidden}.angs span{white-space:nowrap;flex:none;padding:3px 7px;font-size:11px}#batchBtn{width:38px;height:34px;justify-content:center;background:var(--sf,#f5f5f5)}#batchBtn svg{width:18px;height:18px}}
/* ===== v10 ===== */
:root{--mu:#6e6e6e}[data-theme=dark]{--mu:#9a9a9a}
#rand{background:#d81b3a}#rand:hover{background:#c0142f}
.chip i{opacity:.75!important;color:inherit!important}
.phk{position:absolute;inset:0;width:100%;height:100%;background:none;border:0;padding:0;margin:0;cursor:zoom-in;border-radius:inherit;z-index:0}
.phk:focus-visible{outline:2px solid var(--ac);outline-offset:-3px}
.ph .badge,.ph .angs,.ph .cbtns,.ph .try{z-index:1}
.grid{min-height:calc(100vh - 120px)}
.ph img{aspect-ratio:3/4;height:auto}
body.none0 #favTools,body.none0 #fBtn,body.none0 #sort,body.none0 #batchBtn,body.none0 #clrRec,body.none0 #active,body.none0 #count,body.none0 #filters{display:none!important}
.mdl{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:rgba(0,0,0,.45);padding:20px;animation:fade .2s both}
.mdl .hb p{color:var(--tx2);font-size:14px;line-height:1.75;margin:0 0 18px}.mdl .row{display:flex;gap:10px;justify-content:flex-end}.mdl .hb .pri{width:auto}
.pl{margin:0 0 18px;padding-left:18px;font-size:13.5px;line-height:1.75;color:var(--tx2)}.pl li{margin-bottom:8px}.pl b{color:var(--tx)}
.cnote{font-size:12.5px;color:var(--mu);margin:18px 0 0;text-align:center}
.lnkb{background:none;border:0;padding:0 0 0 6px;color:var(--tx);text-decoration:underline;font-size:inherit;cursor:pointer}
.copy-r a{color:inherit}
/* 深色：试穿占位、结果框、钥匙图标 */
[data-theme=dark] .ill i{background:#1f1f1f;box-shadow:none;color:#9a9a9a}
[data-theme=dark] .ill i::before{background:#333}
[data-theme=dark] .ill .c2::before{background:#4a2a31}
[data-theme=dark] .ill .c3{background:#171717;color:#9a9a9a;border-color:#3a3a3a}
[data-theme=dark] .ill em{color:#555}
[data-theme=dark] .onb-i{background:#2a2a2a;color:#eee;box-shadow:none}
@media(max-width:760px){.st-l>.onb{margin:0 0 12px}}
.badge.rk{background:#111;color:#fff}
.pnote{max-width:var(--w);margin:0 auto 10px;padding:0 24px;font-size:13px;color:var(--tx2)}.pnote summary{cursor:pointer;color:var(--tx);font-weight:500}.pnote ul{margin:8px 0 0;padding-left:18px;line-height:1.8}
@media(max-width:760px){.pnote{padding:0 12px}}
/* v11: 18+ switch */
.asw{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px 0 6px;margin-right:6px;border-radius:99px;background:transparent;color:var(--tx2);font-size:12.5px;font-weight:600;border:1px solid var(--line2,#e5e5e5);transition:color .2s,border-color .2s,background .2s}
.asw:hover{color:var(--tx);border-color:var(--mu)}
.asw .trk{position:relative;width:30px;height:18px;border-radius:99px;background:#d6d6d6;transition:background .25s var(--out)}
.asw .kn{position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .3s var(--out)}
.asw[aria-checked=true]{color:var(--ac);border-color:rgba(255,36,66,.35)}.asw[aria-checked=true] .trk{background:var(--ac)}.asw[aria-checked=true] .kn{transform:translateX(12px)}
.asw:active .kn{width:17px}.asw[aria-checked=true]:active .kn{transform:translateX(9px)}
[data-theme=dark] .asw .trk{background:#444}[data-theme=dark] .asw{border-color:#333}
@media(max-width:760px){.asw{height:30px;padding:0 8px 0 5px;margin-right:2px;font-size:12px;gap:5px}.asw .trk{width:26px;height:16px}.asw .kn{width:12px;height:12px}.asw[aria-checked=true] .kn{transform:translateX(10px)}}
/* v11: toast undo */
#toast{display:flex;align-items:center;gap:14px}#toast.act{pointer-events:auto;padding-right:8px}
#toast button{background:rgba(255,255,255,.14);color:#fff;border-radius:99px;padding:5px 12px;font-size:13px;font-weight:600;min-height:0}#toast button:hover{background:rgba(255,255,255,.24)}
/* v11: recent groups / remove */
.rgrp{grid-column:1/-1;margin:10px 0 -12px;font-size:13px;font-weight:600;color:var(--tx2);letter-spacing:.02em}.rgrp:first-child{margin-top:0}
.unrec{position:absolute;left:8px;top:8px;z-index:3;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);color:#333;font-size:12px;box-shadow:0 2px 8px rgba(0,0,0,.12);opacity:0;transition:opacity .2s,transform .2s var(--out)}
.card:hover .unrec,.unrec:focus-visible{opacity:1}.unrec:hover{transform:scale(1.08)}.unrec:active{transform:scale(.92)}
@media(hover:none){.unrec{opacity:1}}
/* v11: empty */
.emo{display:flex;justify-content:center;margin-bottom:14px}.emo svg{width:44px;height:44px;fill:none;stroke:var(--mu);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ego{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:22px}.ego:empty{display:none}
/* v11: counts always visible for fav/recent */
@media(max-width:1180px){.tabs button i#nFav,.tabs button i#nRec{display:inline}}
/* v11: press states + focus */
button:active:not(:disabled){transform:scale(.97)}.tabs button:active,.chip:active{transform:scale(.96)}
:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.asw .kn,.asw .trk{transition:none}}
@media(max-width:760px){.tabs button i#nFav,.tabs button i#nRec{display:inline;margin-left:3px;font-size:11px;opacity:.7}}
/* v12 */
.intro{max-width:var(--w);margin:2px auto 4px;padding:0 24px;display:flex;align-items:center;gap:10px;box-sizing:border-box}
.intro p{flex:1;margin:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:13.5px;color:var(--tx2);line-height:1.6;min-width:0}.intro p b{font-size:15px;color:var(--tx);font-weight:600}
.intro .ix{width:32px;height:32px;padding:0;border-radius:50%;background:transparent;color:var(--mu);font-size:12px}.intro .ix:hover{background:var(--line);color:var(--tx)}
.nointro .intro,body.studio .intro,body.compact .intro{display:none}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s!important;animation-timing-function:cubic-bezier(.2,.7,.2,1)}
.grid{transition:opacity .16s}
#toast{bottom:calc(32px + env(safe-area-inset-bottom))}#tray{bottom:calc(24px + env(safe-area-inset-bottom))}
@media(max-width:760px){
 .intro{padding:0 12px;margin:0 auto 2px}.intro p{font-size:12.5px;gap:2px 8px}.intro p span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.intro p b{font-size:14px}.intro .ix{width:44px;height:44px;margin-right:-8px}.intro .sm{min-height:36px;flex:none}
 .tabs button{min-height:44px}
 .cbtns button{position:relative;width:34px;height:34px}.cbtns button::after{content:'';position:absolute;inset:-5px}
 .unrec{width:34px;height:34px}.unrec::after{content:'';position:absolute;inset:-5px}
 .chip{min-height:36px}
 #toast{max-width:calc(100vw - 32px);white-space:nowrap}
 .top{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
}
.mact{display:none}
@media(max-width:760px){
 .intro .sm{display:none}
 .mact{display:flex;position:sticky;bottom:0;z-index:3;gap:8px;margin:12px -18px 0;padding:10px 18px calc(10px + env(safe-area-inset-bottom));background:var(--bg2);border-top:1px solid var(--line)}
 .mact button{min-height:44px;border-radius:99px;padding:0 16px}.mact button:first-child{width:44px;padding:0;font-size:18px;flex:none}.mact button.on{color:var(--ac)}.mact .pri{flex:1}
 .lb-side .acts button{min-height:40px}
}
@media(max-width:760px){.asw{height:34px;position:relative}.asw::after,#theme::after{content:'';position:absolute;inset:-5px}#theme{position:relative}}
.grid.gbusy{pointer-events:none}
/* v13 */
.cbtns button{width:40px;height:40px;font-size:18px}
@media(max-width:760px){.cbtns button{width:36px;height:36px;font-size:15px}}
.lb-side h2,.info h3{overflow-wrap:anywhere}
.tray-items{max-height:132px;overflow:auto}
#cfHelp:empty{display:none}
#trayN{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#cfg:not([hidden])~#toast,body:has(#cfg:not([hidden])) #toast{bottom:calc(84px + env(safe-area-inset-bottom))}
#wbErr .raw{margin-top:10px;font-size:12px;color:var(--tx2)}#wbErr .raw summary{cursor:pointer;width:max-content}
#wbErr .raw pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto;background:var(--sf);border-radius:10px;padding:8px 10px;margin:8px 0 6px;font-size:11.5px}
#wbErr p+p.fine{margin-top:-4px}
@keyframes hl{0%,60%{box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 35%,transparent)}100%{box-shadow:0 0 0 0 transparent}}
#cfg .prov.hl{animation:hl 1.6s ease-out;border-radius:14px}
#wbSentD{margin:8px 2px 0;font-size:12px;color:var(--tx2)}#wbSentD summary{cursor:pointer;width:max-content}
#wbSentD pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;background:var(--sf);border-radius:10px;padding:8px 10px;margin:6px 0 0;font-size:11.5px}
#wbHist em{position:absolute;left:4px;top:4px;font-style:normal;font-size:10px;background:rgba(0,0,0,.55);color:#fff;border-radius:6px;padding:0 4px}
.grid:empty{min-height:0}

.ssr .ssl{display:block;height:100%}.ssr .ph{cursor:pointer}.ssr h3 a{color:inherit;text-decoration:none}
.seoc{max-width:var(--w);margin:0 auto;padding:28px 24px 8px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;border-top:1px solid var(--line);font-size:13px}.seoc h4{margin:0 0 8px;font-size:13px;color:var(--mu);font-weight:600}.seoc a{display:inline-block;margin:0 12px 6px 0;color:inherit;text-decoration:none}.seoc a:hover{text-decoration:underline}

/* 访问码 */
.onb-t{flex:1;min-width:0}.onb p.bad{color:var(--ac)}
.code4{flex:none;width:7.2em;font:700 22px/1 var(--mono,ui-monospace,monospace);letter-spacing:.32em;text-align:center;padding:10px 4px 10px 12px;border-radius:12px;border:1.5px solid var(--tx);background:var(--bg2);color:var(--tx);outline:0}.code4:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 30%,transparent)}
@media (max-width:760px){.onb .code4{width:100%}}
