
:root{
  --serif:"Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif;
  --latin:"Cinzel","Trajan Pro","Times New Roman",serif;
  --sans:"Noto Sans SC","PingFang SC","Microsoft YaHei","Segoe UI",system-ui,sans-serif;
  --gold:#d9bb73; --gold-hi:#ffe6a6; --gold-dim:#8f7a4a; --line:rgba(217,187,115,.38);
  --text:#ece6d6; --muted:#a39d8e; --faint:#6f6a5f;
  --win-a:rgba(40,44,56,.97); --win-b:rgba(20,23,31,.97); --well:rgba(0,0,0,.34);
  --blue:#7cc4ff; --warn:#f0c25e; --green:#9fd98f; --red:#e8796c;
  --rail:168px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:radial-gradient(ellipse 80% 60% at 50% 0%,#1b2533,#07090d 70%) fixed,#07090d;color:var(--text);font:13px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:default}
[hidden]{display:none!important}
svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#5c5342 transparent;overscroll-behavior:contain}

/* ============ 外壳：手机全屏；宽度 ≥ 1100px 时 body.pc 切换为电脑版排布 ============ */
body{overflow:hidden}
.app{position:relative;width:100vw;height:100vh;height:100dvh;overflow:hidden;
  display:grid;grid-template-rows:50px minmax(0,1fr);grid-template-columns:minmax(0,1fr) var(--rail);
  background:radial-gradient(ellipse 80% 60% at 40% 45%,#2b3c4f 0%,#152029 50%,#080b10 100%)}
@supports (padding:max(0px)){.app{padding-bottom:env(safe-area-inset-bottom)}}

/* ============ 顶栏：左侧标志兼菜单，右侧模块切换 ============ */
.top{grid-column:1/3;display:flex;align-items:center;gap:6px;padding:0 8px 0 6px;z-index:20;
  background:linear-gradient(180deg,rgba(9,11,16,.96),rgba(9,11,16,.8));border-bottom:1px solid #3b3426}
.brand{display:flex;align-items:center;gap:7px;height:42px;padding:0 6px 0 4px;border-radius:8px;text-align:left;min-width:0}
.brand:hover,.brand[aria-expanded=true]{background:rgba(217,187,115,.1)}
.brand .crest{width:28px;height:28px;flex:none}
.brand b{display:block;font:600 15px/1.15 var(--serif);letter-spacing:.14em;color:#fff6dc;white-space:nowrap;text-shadow:0 0 8px rgba(255,214,130,.35)}
.brand small{display:block;font:600 7.5px/1.2 var(--latin);letter-spacing:.2em;color:var(--gold-dim);white-space:nowrap}
.brand .chev{width:12px;height:12px;color:var(--muted)}
.top .sp{flex:1}
.seg{flex:none;display:flex;padding:3px;border-radius:18px;background:var(--well);border:1px solid #4a4436}
.seg button{height:28px;padding:0 10px;border-radius:14px;font:600 12px var(--serif);letter-spacing:.04em;color:var(--muted);white-space:nowrap}
.seg button[aria-selected=true]{color:#fff6dc;background:linear-gradient(180deg,rgba(130,106,56,.8),rgba(70,56,30,.8));box-shadow:inset 0 0 0 1px var(--gold)}
.pop{position:absolute;z-index:35;border:1px solid var(--gold-dim);border-radius:10px;background:linear-gradient(180deg,var(--win-a),var(--win-b));box-shadow:0 10px 30px rgba(0,0,0,.6)}
.menu{top:48px;left:8px;width:200px;padding:6px}
.menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:6px;text-align:left}
.menu button:hover{background:rgba(217,187,115,.1)}
.menu hr{border:0;border-top:1px solid #3a3529;margin:4px 0}

/* ============ 场景 ============ */
.stage{grid-column:1;grid-row:2;position:relative;overflow:hidden;touch-action:pan-y;user-select:none}
/* 三维预览：手机上从名称卡下方开始（--card-h 由脚本写入），电脑上占满场景 */
#viewport{position:absolute;left:0;right:0;bottom:0;top:var(--card-h,0px);touch-action:none}
#viewport canvas{display:block;width:100%!important;height:100%!important;outline:0}
.stage-note{position:absolute;z-index:3;left:50%;bottom:10px;transform:translateX(-50%);font-size:10px;color:rgba(207,200,182,.45);white-space:nowrap;pointer-events:none}

/* 名称卡：当前项目的详情固定显示在这里 */
.card{position:absolute;z-index:4;top:8px;left:8px;right:8px;padding:7px 10px 8px;border-radius:10px;
  background:linear-gradient(180deg,rgba(28,31,40,.92),rgba(14,16,22,.9));border:1px solid rgba(217,187,115,.42);box-shadow:0 4px 16px rgba(0,0,0,.4)}
.card .k{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--gold);letter-spacing:.06em;white-space:nowrap}
.card .k .sp{flex:1}
.card .pos{font:600 11px var(--latin);color:var(--muted);letter-spacing:0}
.card .n{font:600 15px/1.35 var(--serif);color:#fff6dc;letter-spacing:.03em;margin:1px 0 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .n.none{color:var(--muted);font-weight:500}
.card .unq{display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 8px;border-radius:11px;border:1px solid #4a4436;background:rgba(0,0,0,.3);font-size:11px;color:#cfc8b6;letter-spacing:0}
.card .unq svg{width:12px;height:12px}
.card .unq:hover{border-color:var(--gold-dim);color:#fff6dc}
/* 筛选按钮旁的结果数：窄栏里上下两行排列；筛选数量角标叠在按钮右上角，不占宽度 */
.meta .fbtn{position:relative;min-height:26px;padding:1px 7px}
.meta .fbtn b{position:absolute;top:-6px;right:-6px}
.meta .cnt{display:flex;flex-direction:column;margin-left:6px;font-size:10px;line-height:1.2;color:var(--muted);white-space:nowrap}
.meta .cnt b{font:600 12.5px/1.1 var(--sans);color:#ece6d6}
.card .m{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 名称卡里的物品图标：物品原图标，不随染色变化 */
.card .hd{display:flex;align-items:center;gap:9px;margin:4px 0 6px}
.card .hx{flex:1;min-width:0}
.card .ic.big{flex:none;width:42px;height:42px;border-radius:7px;border-color:#6b5f45;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5)}
.card .ic.big svg{width:28px;height:28px}
.card .ic.empty-ic svg{opacity:.3}
.card .d{display:flex;flex-wrap:wrap;gap:4px 5px;font-size:11px;color:#cfc8b6}
.card .acts{display:flex;gap:5px;margin-top:6px}
.act{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px;border-radius:12px;border:1px solid #4a4436;background:rgba(0,0,0,.3);font-size:11px;color:#cfc8b6;text-decoration:none;white-space:nowrap}
.act svg{width:13px;height:13px}
.act:hover{border-color:var(--gold-dim)}
.act.fav[aria-pressed=true]{color:var(--warn);border-color:rgba(240,194,94,.6)}
.act.fav[aria-pressed=true] svg{fill:currentColor}
.chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:1px 8px 1px 3px;border-radius:10px;border:1px solid #4a4436;background:rgba(0,0,0,.3);font-size:11px;white-space:nowrap}
.chip[aria-pressed=true]{border-color:var(--gold)}
.chip .sw{width:13px;height:13px}
.chip b{font:600 9px var(--latin);color:var(--muted)}
.sw{display:inline-block;flex:none;border-radius:50%;background:var(--c);box-shadow:inset 0 -2px 3px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.2)}
.sw.empty{background:none;box-shadow:inset 0 0 0 1.5px #6f6a5f}
.tag{font-size:10px;color:var(--warn);letter-spacing:0}
.note{color:var(--muted);font-size:11px}

/* 场景按钮：左下撤销 / 重做，右下视角与显示开关 */
.hist{position:absolute;z-index:4;left:8px;bottom:8px;display:flex;flex-direction:column;gap:5px}
.tools{position:absolute;z-index:4;right:8px;bottom:8px;display:flex;gap:5px}
.rb{position:relative;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#d8d0bc;
  background:radial-gradient(circle at 50% 35%,#3a3f4c,#14171e);border:1.5px solid #5c5342;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.rb svg{width:17px;height:17px}
.rb:disabled{opacity:.35}
.rb[aria-pressed=true]{border-color:var(--gold);color:#fff6dc;box-shadow:0 0 0 1px rgba(0,0,0,.6),0 0 8px rgba(255,210,120,.4)}
.rb[aria-pressed=false]{color:#8d8676}
.rb[aria-pressed=false]::after{content:"";position:absolute;width:22px;height:2px;border-radius:1px;background:var(--red);transform:rotate(-45deg)}
.rb[aria-expanded=true]{border-color:var(--gold)}
.headpop{right:6px;bottom:48px;width:200px;padding:10px 12px}
.toast{position:absolute;z-index:80;left:12px;right:12px;bottom:56px;display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;background:rgba(10,12,18,.96);border:1px solid var(--gold-dim);box-shadow:0 6px 20px rgba(0,0,0,.5);font-size:12px;color:#e4dccb;opacity:0;transform:translateY(6px);transition:.25s;pointer-events:none}
.toast.on{opacity:1;transform:none;pointer-events:auto}
.toast span{flex:1}
.toast button{flex:none;color:var(--gold-hi);font-weight:600;font-size:12px;padding:2px 4px}

/* ============ 全屏页面 ============ */
.page{position:absolute;inset:0;z-index:45;display:flex;flex-direction:column;
  background:radial-gradient(ellipse 90% 50% at 50% 0%,#22303f 0%,#141b24 55%,#0b0e13 100%)}
.pg-h{flex:none;height:50px;display:flex;align-items:center;gap:4px;padding:0 10px 0 4px;background:linear-gradient(180deg,rgba(9,11,16,.96),rgba(9,11,16,.8));border-bottom:1px solid #3b3426}
.pg-h h2{margin:0;font:600 16px var(--serif);letter-spacing:.14em;color:#fff6dc;text-shadow:0 0 8px rgba(255,214,130,.3)}
.pg-h .sp{flex:1}
.pg-back{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--gold-hi)}
.pg-back svg{width:22px;height:22px}
.pg-b{flex:1;min-height:0;padding:12px 14px 20px}
.pg-f{flex:none;display:flex;gap:8px;padding:10px 14px 14px;border-top:1px solid #3b3426;background:rgba(9,11,16,.85)}
.pg-f .btn{flex:1}
.sec-h{display:flex;align-items:center;gap:10px;margin:18px 0 10px;font:600 13px var(--serif);letter-spacing:.14em;color:var(--gold)}
.sec-h:first-child{margin-top:4px}
.sec-h::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--gold-dim),transparent)}
.desc{margin:-2px 0 10px;font-size:12px;color:var(--muted)}
.bar{display:flex;gap:6px;align-items:center;margin-bottom:10px}
.bar .field{flex:1;margin:0}
.bar select.mini{height:30px;border-radius:15px;padding:0 8px}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -14px 10px;padding:0 14px}
.chips button{flex:none;height:28px;padding:0 12px;border-radius:14px;border:1px solid #4a4436;background:rgba(0,0,0,.25);font-size:12px;color:#cfc8b6}
.chips button[aria-pressed=true]{border-color:var(--gold);color:#fff6dc;background:linear-gradient(180deg,rgba(120,98,52,.55),rgba(60,48,26,.55))}
.btn{height:36px;padding:0 16px;border-radius:18px;border:1px solid #5c5342;background:rgba(0,0,0,.3);font-size:13px;color:#e4dccb;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.btn svg{width:16px;height:16px}
.btn.primary{border-color:var(--gold);color:#1a1408;background:linear-gradient(180deg,#e9cf8c,#b8974f);font-weight:600}
.btn.danger{border-color:rgba(232,121,108,.6);color:var(--red)}
.btn.sm{height:28px;padding:0 10px;font-size:12px;border-radius:14px}
.btn:disabled{opacity:.45}
.pill-act{height:30px;padding:0 12px;border-radius:15px;border:1px solid var(--gold);color:var(--gold-hi);font-size:12px;display:inline-flex;align-items:center;gap:4px;background:rgba(0,0,0,.3)}
.pill-act svg{width:15px;height:15px}
.blank{padding:36px 10px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}
.blank b{display:block;font:600 15px var(--serif);color:#d8d0bc;letter-spacing:.08em;margin-bottom:4px}
.win{border:1px solid rgba(217,187,115,.32);border-radius:10px;background:linear-gradient(180deg,rgba(40,44,56,.7),rgba(20,23,31,.7))}

/* 收藏夹列表 */
.frow{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 4px;border-bottom:1px solid #2e2a22}
.frow .ic{width:40px;height:40px}
.frow .ic svg{width:26px;height:26px}
.frow .nm{font-size:13.5px;color:#ece6d6;line-height:1.35}
.frow .sub{font-size:11px;color:var(--muted)}
.frow .wear{margin-left:6px;font-size:10.5px;color:var(--green);white-space:nowrap}
.frow .sub{display:block}
.frow .ops{display:flex;align-items:center;gap:4px}
.starbtn{width:32px;height:32px;display:grid;place-items:center;color:var(--faint)}
.starbtn[aria-pressed=true]{color:var(--warn)}
.starbtn[aria-pressed=true] svg{fill:currentColor}

/* 存档卡片 */
.sgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.scard{display:block;width:100%;text-align:left;border:1px solid rgba(217,187,115,.3);border-radius:10px;overflow:hidden;background:linear-gradient(180deg,rgba(40,44,56,.8),rgba(20,23,31,.8))}
.scard:hover{border-color:var(--gold-dim)}
.thumb{position:relative;height:150px;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;
  background:radial-gradient(ellipse 70% 60% at 50% 55%,#2f4458,#121a23 75%)}
.thumb svg{height:96%;width:auto}
.thumb .tp{position:absolute;left:6px;top:6px;padding:0 6px;border-radius:8px;background:rgba(6,8,12,.7);border:1px solid #4a4436;font-size:10px;color:#cfc8b6}
.scard .tx{display:block;padding:7px 9px 9px}
.scard .dt{display:block}
.scard .nm{font:600 13.5px/1.35 var(--serif);color:#fff6dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scard .mt{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scard .dt{font-size:10.5px;color:var(--faint)}
.notice{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:10px 12px;border-radius:8px;border:1px solid #3a3529;background:rgba(0,0,0,.25);font-size:12px;color:#cfc8b6}
.notice svg{flex:none;width:18px;height:18px;color:var(--gold);margin-top:1px}
.notice .btn{margin-top:8px}
.notice.warn{border-color:rgba(240,194,94,.45)}
.notice.warn svg{color:var(--warn)}
.notice.err{border-color:rgba(232,121,108,.55)}
.notice.err svg{color:var(--red)}

/* 底部操作菜单与对话框 */
.veil{position:absolute;inset:0;z-index:60;background:rgba(4,6,9,.62);display:flex;align-items:flex-end}
.veil.center{align-items:center;justify-content:center;padding:20px}
.sheet{width:100%;padding:8px 10px 14px;border-top:1px solid var(--gold-dim);border-radius:16px 16px 0 0;background:linear-gradient(180deg,var(--win-a),var(--win-b))}
.sheet .sh-h{display:flex;gap:10px;align-items:center;padding:6px 6px 10px;border-bottom:1px solid #2e2a22;margin-bottom:6px}
.sheet .sh-h .thumb{width:48px;height:62px;border-radius:6px;flex:none}
.sheet .sh-h b{display:block;font:600 15px var(--serif);color:#fff6dc}
.sheet .sh-h small{font-size:11.5px;color:var(--muted)}
.sheet .it{display:flex;align-items:center;gap:12px;width:100%;padding:11px 8px;border-radius:8px;text-align:left;font-size:14px;color:#e4dccb}
.sheet .it:hover{background:rgba(217,187,115,.08)}
.sheet .it svg{width:19px;height:19px;color:var(--gold)}
.sheet .it small{display:block;font-size:11px;color:var(--muted)}
.sheet .it.primary{color:var(--gold-hi);font-weight:600}
.sheet .it.danger,.sheet .it.danger svg{color:var(--red)}
.sheet hr{border:0;border-top:1px solid #2e2a22;margin:4px 0}
.dlg{width:100%;max-width:340px;padding:16px;border:1px solid var(--gold-dim);border-radius:12px;background:linear-gradient(180deg,var(--win-a),var(--win-b));box-shadow:0 16px 40px rgba(0,0,0,.6)}
.dlg h3{margin:0 0 10px;font:600 16px var(--serif);letter-spacing:.1em;color:#fff6dc}
.dlg p{margin:0 0 12px;font-size:13px;color:#cfc8b6}
.dlg .acts{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.inp{width:100%;height:36px;padding:0 12px;border-radius:8px;border:1px solid #4a4436;background:#141820;color:var(--text);font-size:13px;outline:0}
.inp:focus{border-color:var(--gold-dim)}
textarea.inp{height:76px;padding:8px 12px;resize:none;line-height:1.5;font-family:inherit}
.lbl{display:block;margin:0 0 5px;font-size:12px;color:var(--gold)}

/* 导入预览、分享、设置 */
.pv{display:flex;gap:12px;padding:12px}
.pv .thumb{flex:none;width:96px;height:140px;border-radius:8px}
.pv b{display:block;font:600 15px var(--serif);color:#fff6dc}
.pv .src{font-size:11.5px;color:var(--muted);margin-bottom:6px}
.kv{font-size:12px;color:#cfc8b6;line-height:1.7}
.kv span{color:var(--muted);margin-right:6px}
.glist{border-top:1px solid #2e2a22}
.grow{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 2px;border-bottom:1px solid #2e2a22;font-size:12.5px}
.grow .sl2{font-size:11px;color:var(--gold)}
.grow .nm{color:#ece6d6}
.grow .d{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.grow a{color:var(--muted);display:grid;place-items:center;width:28px;height:28px}
.grow a svg{width:15px;height:15px}
.linkbox{display:flex;align-items:center;gap:6px;height:38px;padding:0 6px 0 12px;border-radius:8px;border:1px solid #4a4436;background:#141820;font:12px/1 ui-monospace,Consolas,monospace;color:#cfe6ff}
.linkbox span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btnrow{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.btnrow .btn{flex:1}
.seg2{display:flex;padding:3px;border-radius:18px;background:var(--well);border:1px solid #4a4436;margin-bottom:10px}
.seg2 button{flex:1;height:30px;border-radius:15px;font-size:12.5px;color:var(--muted)}
.seg2 button[aria-pressed=true]{color:#fff6dc;background:linear-gradient(180deg,rgba(130,106,56,.8),rgba(70,56,30,.8));box-shadow:inset 0 0 0 1px var(--gold)}
.seg2 button:disabled{opacity:.35}
.srow{display:flex;align-items:center;gap:10px;min-height:50px;padding:8px 2px;border-bottom:1px solid #2e2a22}
.srow .t{flex:1;min-width:0;font-size:13.5px;color:#ece6d6}
.srow .t small{display:block;font-size:11.5px;color:var(--muted)}
.srow .seg2{margin:0;flex:none}
.srow .seg2 button{flex:none;padding:0 10px;height:26px;font-size:12px}
.srow .btn,.exrow .btn{flex:none;min-width:64px}
.tg{position:relative;flex:none;width:42px;height:24px;border-radius:12px;border:1px solid #5c5342;background:#141820;transition:.2s}
.tg::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#6f6a5f;transition:.2s}
.tg[aria-checked=true]{border-color:var(--gold);background:linear-gradient(180deg,rgba(130,106,56,.8),rgba(70,56,30,.8))}
.tg[aria-checked=true]::after{left:20px;background:#ffe6a6}
.exrow{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #2e2a22}
.exrow .t{flex:1;font-size:13.5px;color:#ece6d6}
.exrow .t small{display:block;font-size:11.5px;color:var(--muted)}
.drop{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:16px;border:1px dashed #5c5342;border-radius:10px;color:#cfc8b6;font-size:13px}
.drop svg{width:26px;height:26px;color:var(--gold)}
.drop small{color:var(--muted);font-size:11.5px}
.drop.over{border-color:var(--gold);background:rgba(217,187,115,.08)}
.notice .spin{animation:spin 1.6s linear infinite}
.notice .raw{display:block;margin-top:4px;font:11px/1.4 ui-monospace,Consolas,monospace;color:var(--muted);word-break:break-all}.demo{font-size:11px;color:var(--faint);margin-top:6px}
.demo button{color:var(--blue);font-size:11px;text-decoration:underline;margin-right:8px}

/* ============ 新增标记在手机上的表现：保持原样 ============ */
.slot .si{display:contents}
.slot .sx,.cat .sx,.colh,.lb-pc,.qbtns{display:none}
.sx small{display:block;font-size:10.5px;color:var(--gold);letter-spacing:.06em;line-height:1.2}
.sx b{display:block;font-weight:500;font-size:13px;line-height:1.25;color:#ece6d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx em{display:block;font-style:normal;font-size:11px;line-height:1.2;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot.empty .sx b{color:var(--faint);font-weight:400}

/* ================= 电脑版（body.pc，宽度 ≥ 1100px） ================= */
.pc .app{grid-template-rows:56px minmax(0,1fr);--rail:600px}
.pc #viewport{top:0}
/* 顶栏 */
.pc .top{padding:0 16px 0 10px;gap:10px}
.pc .brand{height:46px;padding:0 10px 0 6px}
.pc .brand .crest{width:32px;height:32px}
.pc .brand b{font-size:17px}
.pc .brand small{font-size:8.5px}
.pc .qbtns{display:flex;gap:6px;margin-right:8px}
.qbtns button{height:32px;padding:0 13px;border-radius:16px;border:1px solid #4a4436;background:rgba(0,0,0,.3);font-size:12.5px;color:#d8d0bc;display:inline-flex;align-items:center;gap:6px}
.qbtns button:hover{border-color:var(--gold-dim);color:#fff6dc}
.qbtns svg{width:16px;height:16px}
.pc .seg button{height:32px;padding:0 18px;font-size:13.5px}
.pc .menu{top:54px;left:10px;width:230px}
/* 名称卡：电脑上移到右侧编辑栏，固定在“当前装备”上方（layout() 移动元素）；场景里只留人物，居中且用满高度 */
.pc .rail>.card{grid-area:card;position:relative;inset:auto;width:auto;margin:10px 10px 0;padding:10px 12px 11px;box-shadow:none;
  border-color:rgba(217,187,115,.5);background:linear-gradient(180deg,rgba(40,42,50,.7),rgba(18,20,26,.7))}
.pc .card .k{font-size:12px}
.pc .card .n{font-size:17px}
.pc .card .m{font-size:12px}
.pc .card .hd{gap:11px;margin:6px 0 8px}
.pc .card .ic.big{width:50px;height:50px}
.pc .card .ic.big svg{width:33px;height:33px}
.pc .card .unq{height:24px;padding:0 9px;font-size:12px}
.pc .chip{font-size:12px;padding:2px 9px 2px 3px}
.pc .chip .sw{width:15px;height:15px}
.pc .card .acts{margin-top:8px;gap:6px}
.pc .act{height:26px;padding:0 11px;font-size:12px}
.pc .hist{left:18px;bottom:18px;flex-direction:row;gap:6px}
.pc .tools{right:18px;bottom:18px;gap:6px}
.pc .rb{width:40px;height:40px}
.pc .rb svg{width:20px;height:20px}
.pc .rb[aria-pressed=false]::after{width:26px}
.pc .headpop{right:18px;bottom:68px;width:250px}
/* 右侧：当前装备（带名称与染剂） + 浏览 */
.pc .rail{grid-template-columns:280px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"card b" "a b"}
.pc .colA{grid-area:a;border-right:0}
.pc .colB{grid-area:b;border-left:1px solid #2e2a22}
.pc .colA{align-items:stretch;gap:1px;padding:8px 10px 5px}
.pc .colh{display:flex;align-items:center;gap:8px;margin:2px 4px 8px;font:600 13px var(--serif);letter-spacing:.14em;color:var(--gold)}
.pc .colh::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--gold-dim),transparent)}
.pc .listbtn{width:auto;height:30px;margin:0 4px 8px;font-size:12px;border-style:solid;border-color:#4a4436}
.colhd{display:contents}
.pc .colhd{display:flex;align-items:center;gap:8px;margin:0 4px 4px}
.pc .colhd .colh{flex:1;margin:0}
.pc .colhd .listbtn{flex:none;height:26px;margin:0;padding:0 10px;border-radius:13px}
.pc .listbtn:hover{border-color:var(--gold-dim)}
.pc .lb-m{display:none}.pc .lb-pc{display:inline}
.pc .slot{width:100%;height:auto;display:grid;place-items:center stretch;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:2px 8px 2px 5px;border:1px solid transparent;border-radius:8px;background:none;text-align:left}
.pc .slot:hover{background:rgba(255,255,255,.035)}
.pc .slot[aria-pressed=true]{border-color:var(--gold);background:rgba(217,187,115,.1);box-shadow:none}
.pc .slot .si{display:grid;position:relative;width:38px;height:38px;place-items:center;border-radius:7px;border:1px solid #4a4436;background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22)}
.pc .slot[aria-pressed=true] .si{border-color:var(--gold-hi);box-shadow:0 0 8px rgba(255,210,120,.35)}
.pc .slot .si svg{width:25px;height:25px}
.pc .slot .sx,.pc .cat .sx{display:block;min-width:0}
.pc .sep{width:auto;margin:3px 6px}
.pc .colB{padding:12px 14px 0}
.pc .tabs button{height:34px;font-size:13px}
.pc .field{height:36px;padding:0 10px}
.pc .field input{font-size:13px}
.pc .mini{font-size:12px;min-height:26px}
.pc .meta{margin-bottom:8px}
.pc .meta .cnt{flex-direction:row;align-items:baseline;gap:6px;margin-left:12px;font-size:12px}
.pc .meta .cnt b{font-size:14px}
.pc .fsum{font-size:11.5px;margin-bottom:8px}
.pc .list{margin:0 -14px;padding:0 14px 20px}
.pc .row{grid-template-columns:40px minmax(0,1fr);gap:11px;min-height:52px;padding:5px 9px}
.pc .row .ic{width:40px;height:40px}
.pc .row .ic svg{width:27px;height:27px}
.pc .row .nm{font-size:14px;-webkit-line-clamp:1}
.pc .row .sub{font-size:12px;margin-top:2px}
/* 两个染色通道上下排列，“交换”和“套用全身”竖排在右侧 */
.pc .dyehead{display:flex;gap:8px;margin-bottom:10px}
.pc .chan{flex:1;min-width:0;gap:6px;margin:0}
.pc .cb{height:36px;font-size:12.5px}
.pc .clr{width:30px}
.pc .dtools{flex-direction:column;width:92px;gap:6px;margin:0}
.pc .dtools .mini{min-height:0;white-space:nowrap}
.pc .swgrid{grid-template-columns:repeat(7,1fr);gap:8px}
.pc .empty-msg{font-size:13px}
.pc .filter{top:124px;right:18px;width:310px}
/* 角色创建：左列显示每个分类的当前选择 */
.pc .cat{width:100%;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;text-align:left}
.pc .cat:hover{background:rgba(255,255,255,.035)}
.pc .cat svg{width:24px;height:24px;flex:none}
.pc .cat .cn{display:none}
.pc .opts{grid-template-columns:repeat(6,1fr);gap:7px}
.pc .opt{font-size:13px}
.pc .choice{font-size:13px;padding:9px 12px}
.pc .h{font-size:12px;margin-top:14px}
.pc .sl{font-size:13px;margin-bottom:16px}
.pc .tog{font-size:13px}
.pc .next{height:36px;font-size:13px;margin:8px 0 14px}
/* 页面：电脑上是居中的窗口 */
.pc .page{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,calc(100vw - 80px));height:min(800px,calc(100vh - 72px));
  border:1px solid var(--gold-dim);border-radius:12px;overflow:hidden;box-shadow:0 0 0 100vmax rgba(4,6,9,.62),0 24px 70px rgba(0,0,0,.6)}
.pc .pg-h{height:54px;padding:0 18px 0 8px}
.pc .pg-h h2{font-size:17px}
.pc .pg-b{padding:18px 28px 30px}
.pc .pg-f{padding:12px 28px 16px;justify-content:flex-end}
.pc .pg-f .btn{flex:none}
.pc .sgrid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.pc .scard .thumb{height:210px}
.pc .frow{grid-template-columns:44px minmax(0,1fr) auto;padding:10px 6px}
.pc .frow .ic{width:44px;height:44px}
.pc .chips{margin:0 0 12px;padding:0;flex-wrap:wrap}
.pc .pv .thumb{width:130px;height:190px}
.pc .btnrow .btn{flex:none;min-width:150px}
.pc .notice{max-width:640px}
.pc #sheetVeil,.pc .modal{align-items:center;justify-content:center}
.pc .sheet{width:420px;border:1px solid var(--gold-dim);border-radius:12px;padding:10px 12px 14px}
.pc .modal .box{width:560px;border:1px solid var(--gold-dim);border-radius:12px}
.pc .toast{left:auto;right:24px;bottom:24px;width:400px}
/* 1100–1279px 的较窄屏幕：编辑栏收窄，给人物留出空间 */
@media (max-width:1279px){
  .pc .app{--rail:550px}
  .pc .rail{grid-template-columns:260px minmax(0,1fr)}
  .pc .qbtns button{padding:0 10px}
  .pc .swgrid{grid-template-columns:repeat(6,1fr)}
  .pc .opts{grid-template-columns:repeat(5,1fr)}
}

/* ============ 右侧编辑栏 ============ */
.rail{grid-column:2;grid-row:2;display:grid;grid-template-columns:50px minmax(0,1fr);min-height:0;z-index:5;
  background:linear-gradient(180deg,var(--win-a),var(--win-b));border-left:1px solid var(--gold-dim)}
.colA{border-right:1px solid #2e2a22;padding:6px 4px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:0}
.colB{display:flex;flex-direction:column;min-height:0;padding:6px 6px 0}

/* 装备栏：当前穿着；图标为物品原图标，染色只用圆点表示 */
.slot{position:relative;flex:none;width:40px;height:40px;border-radius:7px;border:1px solid #4a4436;background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22);display:grid;place-items:center}
.slot svg{width:26px;height:26px}
.slot.empty svg{opacity:.28}
.slot[aria-pressed=true]{border-color:var(--gold-hi);box-shadow:0 0 0 1px var(--gold),0 0 10px rgba(255,210,120,.45)}
.dots{position:absolute;right:2px;bottom:2px;display:flex;gap:2px}
.dots .sw{width:9px;height:9px}
.sep{flex:none;width:28px;height:1px;background:#4a4436;margin:3px 0}
.listbtn{flex:none;width:40px;height:34px;border-radius:7px;border:1px dashed #5c5342;color:#cfc8b6;font-size:10px;display:grid;place-items:center;line-height:1.1}

.tabs{display:flex;gap:3px;flex:none;margin-bottom:6px}
.tabs button{flex:1;height:28px;border-radius:6px;border:1px solid #4a4436;font-size:12px;color:var(--muted);background:rgba(0,0,0,.25)}
.tabs button[aria-selected=true]{color:#fff6dc;border-color:var(--gold);background:linear-gradient(180deg,rgba(120,98,52,.55),rgba(60,48,26,.55))}
.field{flex:none;display:flex;align-items:center;gap:4px;height:30px;padding:0 6px;border-radius:15px;background:var(--well);border:1px solid #4a4436;margin-bottom:5px}
.field svg{width:14px;height:14px;color:var(--muted)}
.field input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:12px}
.field .x{color:var(--muted);font-size:12px;width:16px}
.meta{flex:none;display:flex;align-items:center;gap:4px;margin-bottom:5px;font-size:10.5px;color:var(--muted)}
.meta .sp{flex:1}
.mini{display:inline-flex;align-items:center;justify-content:center;gap:3px;padding:1px 7px;min-height:22px;border-radius:11px;border:1px solid #4a4436;font-size:10.5px;color:#cfc8b6;white-space:nowrap;background:rgba(0,0,0,.2)}
.mini svg{width:12px;height:12px}
.mini[aria-pressed=true],.mini[aria-expanded=true],.mini.act-on{border-color:var(--gold);color:var(--gold-hi)}
.mini:disabled{opacity:.4}
.mini b{min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:var(--gold);color:#1a1408;font:700 9.5px/14px var(--sans)}
select.mini{background:#1a1d25;outline:0;max-width:100%}
.fsum{flex:none;margin:-2px 0 5px;font-size:10px;color:var(--gold-dim);line-height:1.4}
.list{flex:1;min-height:0;margin:0 -6px;padding:0 6px 12px}

.row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:6px;align-items:center;width:100%;min-height:48px;padding:4px;border-radius:7px;text-align:left;border:1px solid transparent}
.row+.row{margin-top:2px}
.row:hover{background:rgba(255,255,255,.03)}
.row.on{border-color:var(--gold);background:rgba(217,187,115,.1)}
.ic{position:relative;width:34px;height:34px;border-radius:6px;border:1px solid #4a4436;background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22);display:grid;place-items:center}
.ic svg{width:23px;height:23px}
.ic .lk{position:absolute;left:-3px;top:-4px;font-size:9px}
.row .nm{font-size:11.5px;line-height:1.3;color:#e4dccb;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row .sub{display:block;font-size:10px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .sub .st{color:var(--warn)}

/* 染色 */
.dyehead{display:contents}
.chan{flex:none;display:grid;gap:3px;margin-bottom:5px}
.chanrow{display:flex;gap:3px}
.cb{flex:1;min-width:0;display:flex;align-items:center;gap:5px;height:28px;padding:0 6px;border-radius:6px;border:1px solid #4a4436;background:rgba(0,0,0,.25);font-size:11px;text-align:left;white-space:nowrap;overflow:hidden}
.cb b{font:600 10px var(--latin);color:var(--muted)}
.cb span:last-child{overflow:hidden;text-overflow:ellipsis}
.cb[aria-pressed=true]{border-color:var(--gold);background:linear-gradient(180deg,rgba(120,98,52,.45),rgba(60,48,26,.45))}
.cb:disabled,.clr:disabled{opacity:.4}
.clr{flex:none;width:24px;border-radius:6px;border:1px solid #4a4436;color:var(--muted);font-size:11px}
.dtools{flex:none;display:flex;gap:4px;margin-bottom:6px}
.dtools .mini{flex:1;border-radius:6px;min-height:26px;padding:1px 4px}
.swgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:2px}
.swgrid button{aspect-ratio:1;border-radius:50%;background:var(--c);box-shadow:inset 0 -3px 5px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.14)}
.swgrid button.clear{background:repeating-linear-gradient(45deg,#2a2d36 0 3px,#3a3e48 3px 6px)}
.swgrid button.on{box-shadow:0 0 0 2px #0b0d12,0 0 0 3.5px var(--gold-hi),0 0 10px rgba(255,210,120,.5)}
.empty-msg{padding:14px 4px;font-size:11.5px;color:var(--muted);line-height:1.6}

/* 筛选与头部设置弹出框 */
.filter{top:56px;right:6px;width:min(290px,calc(100% - 12px));max-height:calc(100% - 64px);display:flex;flex-direction:column}
.pop h4{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:600 14px var(--serif);color:#fff6dc;letter-spacing:.08em}
.pop h4 .sp{flex:1}
.filter .body{padding:12px 12px 4px}
.f{display:block;margin-bottom:12px;font-size:11px;color:var(--gold);letter-spacing:.06em}
.f select,.f input[type=number]{width:100%;height:30px;margin-top:4px;border-radius:6px;border:1px solid #4a4436;background:#1a1d25;padding:0 8px;font-size:12px;color:var(--text);outline:0}
.f .hint{display:block;color:var(--faint);font-size:10.5px;letter-spacing:0;margin-top:3px}
.range{display:flex;align-items:center;gap:6px;color:var(--muted)}
.range input{flex:1;min-width:0}
.segs{display:flex;gap:4px;margin-top:4px}
.segs button{flex:1;height:28px;border-radius:6px;border:1px solid #4a4436;font-size:12px;color:#cfc8b6;background:rgba(0,0,0,.25)}
.segs button[aria-pressed=true]{border-color:var(--gold);color:#fff6dc;background:linear-gradient(180deg,rgba(120,98,52,.55),rgba(60,48,26,.55))}
.segs button:disabled{opacity:.4}
.chk{display:flex;align-items:center;gap:8px;font-size:12px;color:#e4dccb;letter-spacing:0;margin-top:2px}
.chk input{accent-color:var(--gold);width:16px;height:16px}
.filter footer{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid #2e2a22}
.btn{flex:1;height:32px;border-radius:16px;border:1px solid #4a4436;font-size:12px;color:#cfc8b6}
.btn.primary{border-color:var(--gold);color:#1a1408;background:linear-gradient(180deg,#e9cf8c,#b8974f);font-weight:600}

/* 角色创建 */
.cat{flex:none;width:42px;padding:6px 0 4px;border-radius:8px;border:1px solid transparent;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:#b8b09c}
.cat svg{width:20px;height:20px}
.cat[aria-pressed=true]{color:#fff6dc;border-color:var(--gold);background:linear-gradient(180deg,rgba(120,98,52,.55),rgba(60,48,26,.55))}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:2px}
.opt{position:relative;aspect-ratio:1;border-radius:6px;border:1px solid #4a4436;background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22);font:600 12px var(--latin);color:#b8b09c}
.opt.on{border-color:var(--gold-hi);color:#fff;box-shadow:0 0 0 1px var(--gold),0 0 10px rgba(255,210,120,.45)}
.opt .lk{position:absolute;right:1px;bottom:0;font-size:8px}
.choice{display:block;width:100%;padding:7px 8px;margin-bottom:3px;border-radius:6px;border:1px solid #4a4436;background:rgba(0,0,0,.25);text-align:left;font-size:12px}
.choice[aria-pressed=true]{border-color:var(--gold);color:#fff6dc;background:linear-gradient(180deg,rgba(120,98,52,.5),rgba(60,48,26,.5))}
.h{margin:10px 0 4px;font-size:11px;color:var(--gold);letter-spacing:.1em}
.h:first-child{margin-top:2px}
.sl{display:block;margin-bottom:12px;font-size:11.5px;color:#cfc8b6}
.sl span{display:flex;justify-content:space-between}
.sl output{font:600 11px var(--latin);color:var(--gold-hi)}
.sl input{width:100%;accent-color:var(--gold)}
.tog{display:flex;align-items:center;gap:6px;font-size:11.5px;margin:8px 0}
.tog input{accent-color:var(--gold)}
.next{flex:none;margin:6px 0 8px;height:30px;border-radius:15px;border:1px solid var(--gold-dim);font-size:11.5px;color:var(--gold-hi);background:rgba(0,0,0,.3)}

/* 穿搭清单 */
.modal{position:absolute;inset:0;z-index:40;background:rgba(4,6,9,.6);display:flex;align-items:flex-end}
.modal .box{width:100%;max-height:82%;display:flex;flex-direction:column;border-top:1px solid var(--gold-dim);border-radius:16px 16px 0 0;background:linear-gradient(180deg,var(--win-a),var(--win-b))}
.modal header{display:flex;align-items:center;padding:12px 14px 8px;font:600 16px var(--serif);letter-spacing:.1em;color:#fff6dc}
.modal header .sp{flex:1}
.ib{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#d8d0bc}
.olist{padding:0 10px 16px}
.orow{display:grid;grid-template-columns:44px 34px minmax(0,1fr);gap:8px;align-items:center;width:100%;padding:6px 4px;border-bottom:1px solid #2e2a22;text-align:left}
.orow .sl2{font-size:11px;color:var(--gold)}
.orow .nm{font-size:13px;color:#e4dccb}
.orow .d{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}

/* ============ 按需加载：不打断操作 ============ */
/* 原则：选中立即生效（列表高亮、名称卡换名），模型下载完再换上；期间旧装备留在身上，可以继续挑选、旋转、染色 */
.ldpill{position:absolute;z-index:6;left:50%;top:8px;transform:translate(-50%,-4px);max-width:calc(100% - 16px);display:flex;align-items:center;gap:7px;height:28px;padding:0 10px 0 8px;border-radius:14px;overflow:hidden;
  background:rgba(8,10,15,.88);border:1px solid var(--gold-dim);box-shadow:0 4px 14px rgba(0,0,0,.45);font-size:11.5px;color:#e4dccb;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.ldpill.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.ldpill .t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ldpill .pct{flex:none;font:600 11px var(--latin);color:var(--gold-hi)}
.ldpill::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:calc(var(--p,0)*100%);background:linear-gradient(90deg,var(--gold-dim),var(--gold-hi));box-shadow:0 0 6px rgba(255,214,130,.7);transition:width .12s linear}
.ldpill button{flex:none;color:var(--gold-hi);font-weight:600;font-size:11.5px;padding:2px}
.ldpill.slow{border-color:var(--warn)}
.ldpill.err{border-color:rgba(232,121,108,.7)}
.ldpill.err::after{display:none}
.ldpill.err .t{color:#f3b9b0}
.ldpill .spin{flex:none;width:15px;height:15px;animation:spin 1.6s linear infinite}
.ldpill.err .spin{animation:none;opacity:.5}
@keyframes spin{to{transform:rotate(360deg)}}
/* 正在换装时，人物轮廓有一圈以太微光，表示“马上会变”，不是卡住 */
.stage.loading .fig svg{animation:aether 1.5s ease-in-out infinite}
@keyframes aether{0%,100%{filter:drop-shadow(0 0 16px rgba(140,190,255,.18))}50%{filter:drop-shadow(0 0 6px rgba(255,214,130,.6)) drop-shadow(0 0 22px rgba(124,196,255,.4))}}
/* 列表行图标与装备栏上的进度环 */
.slot{position:relative}
.ldr{position:absolute;inset:-3px;z-index:2;border-radius:9px;padding:2px;pointer-events:none;
  background:conic-gradient(var(--gold-hi) calc(var(--p,0)*360deg),rgba(255,255,255,.12) 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
/* 名称卡底边的进度线 */
.card.ld::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:1px;
  background:linear-gradient(90deg,var(--gold-hi) calc(var(--p,0)*100%),rgba(255,255,255,.1) 0)}

/* ============ 启动画面：只在首次进入、什么都还不能显示时出现 ============ */
.boot{position:absolute;inset:0;z-index:95;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;
  background:radial-gradient(ellipse 80% 55% at 50% 42%,#22324a 0%,#111824 55%,#07090d 100%);transition:opacity .5s}
.boot.out{opacity:0;pointer-events:none}
.boot::before{content:"";position:absolute;left:50%;top:42%;width:340px;height:340px;transform:translate(-50%,-62%);border-radius:50%;
  background:radial-gradient(circle,rgba(124,196,255,.16),transparent 65%)}
.boot .bcrest{position:relative;width:88px;height:88px;filter:drop-shadow(0 0 16px rgba(124,196,255,.5));animation:float 3.2s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-6px)}}
.boot h1{position:relative;margin:20px 0 0;padding-left:.32em;font:600 30px var(--serif);letter-spacing:.32em;color:#fff6dc;text-shadow:0 0 14px rgba(255,214,130,.35)}
.boot .en{padding-left:.44em;margin-top:4px;font:600 10.5px var(--latin);letter-spacing:.44em;color:var(--gold-dim)}
.boot .bar{width:min(260px,72%);height:4px;margin-top:42px;border-radius:2px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(217,187,115,.22);overflow:hidden}
.boot .bar i{display:block;height:100%;width:calc(var(--p,0)*100%);background:linear-gradient(90deg,#8f7a4a,#ffe6a6);box-shadow:0 0 10px rgba(255,214,130,.7)}
.boot .bst{min-height:20px;margin-top:10px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.boot .bst .btn{margin-top:12px}
.boot .btip{position:absolute;left:28px;right:28px;bottom:42px;font-size:12px;line-height:1.7;color:#bfb8a6;transition:opacity .4s}
.boot .btip b{display:block;font:600 11px var(--latin);letter-spacing:.3em;color:var(--gold-dim);margin-bottom:2px}
.boot.fail .bar i{background:var(--red);box-shadow:none}

/* ============ 分享图（3:4，导出 1080×1440） ============ */
.poster{--pa:#16233a;--pb:#05070b;--pg:#d9bb73;--pt:#fff6dc;--pm:#a7a08f;--pl:rgba(217,187,115,.38);--halo:rgba(124,196,255,.3);--row:rgba(255,255,255,.07);
  position:relative;width:540px;height:720px;overflow:hidden;color:var(--pt);font:13px/1.4 var(--sans);transform-origin:0 0;text-align:left;
  background:radial-gradient(ellipse 34% 42% at 26% 52%,var(--halo),transparent 72%),radial-gradient(ellipse 120% 60% at 50% 0%,rgba(255,255,255,.06),transparent 60%),linear-gradient(168deg,var(--pa),var(--pb) 78%)}
.poster[data-th=dusk]{--pa:#3a1d2c;--pb:#0d0709;--pg:#e9b98c;--pl:rgba(233,185,140,.4);--halo:rgba(255,150,110,.26)}
.poster[data-th=ivory]{--pa:#f7f2e6;--pb:#ddd2ba;--pg:#8c6a28;--pt:#2b2418;--pm:#7b715f;--pl:rgba(140,106,40,.45);--halo:rgba(255,255,255,.95);--row:rgba(60,45,20,.1)}
.poster .fr{position:absolute;inset:12px;border:1px solid var(--pl);pointer-events:none}
.poster .fr::before{content:"";position:absolute;inset:4px;border:1px solid var(--pl);opacity:.45}
.poster .fr i{position:absolute;width:9px;height:9px;border:1px solid var(--pg);background:var(--pb);transform:rotate(45deg)}
.poster .fr i:nth-child(1){left:-5px;top:-5px}.poster .fr i:nth-child(2){right:-5px;top:-5px}.poster .fr i:nth-child(3){left:-5px;bottom:-5px}.poster .fr i:nth-child(4){right:-5px;bottom:-5px}
.poster .ph{position:absolute;left:34px;right:34px;top:32px}
.poster .brandl{display:flex;align-items:center;gap:7px;font:600 9.5px var(--latin);letter-spacing:.3em;color:var(--pg)}
.poster .brandl svg{width:17px;height:17px}
.poster .ttl{margin-top:9px;font:600 27px/1.2 var(--serif);letter-spacing:.06em;color:var(--pt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poster .pfig{position:absolute;left:22px;top:100px;width:252px;height:462px;display:flex;justify-content:center;align-items:flex-end}
.poster .pfig::after{content:"";position:absolute;left:50%;bottom:2px;width:150px;height:30px;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,214,130,.4),transparent 70%);box-shadow:0 0 0 1px rgba(255,214,130,.25)}
.poster .pfig svg{position:relative;z-index:1;height:94%;width:auto;margin-bottom:12px;filter:drop-shadow(0 0 14px rgba(140,190,255,.25))}
.poster[data-th=ivory] .pfig svg{filter:drop-shadow(0 6px 12px rgba(60,45,20,.25))}
.poster .pgl{position:absolute;left:284px;right:42px;top:106px;height:438px;display:flex;flex-direction:column}
.poster .pgh{display:flex;align-items:center;gap:8px;margin-bottom:6px;font:600 12px var(--serif);letter-spacing:.24em;color:var(--pg)}
.poster .pgh::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--pl),transparent)}
.poster .prow{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;border-bottom:1px solid var(--row)}
.poster .pic{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;border:1px solid var(--pl);background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22)}
.poster .pic svg{width:19px;height:19px}
.poster .pnm{min-width:0}
.poster .pnm b{display:block;font-weight:500;font-size:12.5px;color:var(--pt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poster .pnm b small{font-size:10px;font-weight:600;color:var(--pg);margin-right:6px;letter-spacing:.06em}
.poster .pdy{display:flex;gap:9px;margin-top:1px;font-size:10px;color:var(--pm);white-space:nowrap;overflow:hidden}
.poster .pdy span{display:inline-flex;align-items:center;gap:3px}
.poster .pdy i{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.poster .pdy em{font:600 8.5px var(--latin);font-style:normal;color:var(--pg);margin-right:1px}
.poster .pgr{flex:1;display:flex;flex-direction:column;justify-content:center}
.poster .pgr.lg .prow{grid-template-columns:34px minmax(0,1fr);gap:11px}
.poster .pgr.lg .pic{width:34px;height:34px}
.poster .pgr.lg .pic svg{width:23px;height:23px}
.poster .pgr.lg .pnm b{font-size:14px}
.poster .pgr.lg .pnm b small{font-size:10.5px}
.poster .pgr.lg .pdy{font-size:11px;margin-top:2px}
.poster .pfoot{position:absolute;left:34px;right:34px;bottom:40px;height:96px;display:flex;align-items:flex-end;gap:16px;padding-top:12px;border-top:1px solid var(--pl)}
.poster .pid{flex:1;min-width:0;align-self:center}
.poster .pid small{display:block;font:600 9px var(--latin);letter-spacing:.3em;color:var(--pg)}
.poster .pid b{display:block;margin-top:2px;font:600 19px var(--serif);letter-spacing:.04em;color:var(--pt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poster .pid span{display:block;margin-top:3px;font-size:10.5px;color:var(--pm)}
.poster .qr{flex:none;display:flex;align-items:center;gap:10px;font-size:10.5px;line-height:1.5;color:var(--pm);text-align:right}
.poster .qr svg{width:80px;height:80px;border-radius:4px;box-shadow:0 0 0 1px var(--pl)}
.poster .qr b{display:block;font-size:12px;color:var(--pt);font-weight:600}
.poster .cpr{position:absolute;left:0;right:0;bottom:20px;text-align:center;font-size:8px;letter-spacing:.06em;color:var(--pm);opacity:.75}
/* 分享页里的预览与选项 */
.shtop{display:flex;flex-direction:column;align-items:center;gap:12px}
.pbox{position:relative;flex:none;border-radius:4px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.55),0 0 0 1px rgba(217,187,115,.3)}
.pbox .wait{position:absolute;inset:0;z-index:3;display:grid;place-items:center;align-content:center;gap:8px;background:rgba(5,7,11,.72);font-size:12px;color:#e4dccb;text-align:center;padding:20px}
.pbox .wait .spin{width:22px;height:22px;animation:spin 1.6s linear infinite}
.shopt{width:100%}
.shopt .lbl{margin-top:10px}
.thm{display:flex;gap:8px}
.thm button{flex:1;height:44px;border-radius:8px;border:1px solid #4a4436;font-size:12px;color:#e4dccb;display:flex;align-items:center;justify-content:center;gap:6px}
.thm button i{width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.3)}
.thm button[aria-pressed=true]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);color:#fff6dc}
.pidrow{display:flex;gap:8px;align-items:center}
.pidrow .inp{flex:1}
.pidrow .tg{flex:none}
.pc .shtop{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:28px}
.pc .shopt .lbl:first-child{margin-top:0}
/* 保存图片：全屏查看，手机上长按保存到相册 */
.pview{position:absolute;inset:0;z-index:75;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;background:rgba(3,4,7,.95)}
.pview .x{position:absolute;right:10px;top:10px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#e4dccb;font-size:16px;background:rgba(255,255,255,.06)}
.pview .hint{font-size:12.5px;color:#cfc8b6;text-align:center;line-height:1.6}
.pview .hint b{color:var(--gold-hi)}
.pview .btnrow{margin:0;justify-content:center}
.pview .btnrow .btn{flex:none}

/* ================= 正式版补充 ================= */
/* 物品原图标：盖在部位符号上面；图标缺失或加载失败时露出部位符号 */
.ic,.slot,.pc .slot .si{position:relative}
.ic img[data-game-icon],.slot img[data-game-icon]{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);object-fit:contain;border-radius:5px}
/* Native dark slot well supplies its own recessed edge; do not add a metal rim. */
.ic img[data-slot-icon],.slot img[data-slot-icon]{position:absolute;inset:0;width:100%;height:100%;padding:8%;object-fit:contain;border:0;box-shadow:none;background-color:transparent;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box}
.ic:has(>img[data-slot-icon]:not([hidden])),.pc .slot .si:has(>img[data-slot-icon]:not([hidden])){background:transparent;border-color:transparent;box-shadow:none}
body:not(.pc) .slot:has(img[data-slot-icon]:not([hidden])){background:transparent}
body:not(.pc) .slot:not([aria-pressed=true]):has(img[data-slot-icon]:not([hidden])){border-color:transparent}
.slot:not(.empty) svg.gl{opacity:.25}
.slot .dots{z-index:1}
.card .ic.big img[data-game-icon]{inset:3px;width:calc(100% - 6px);height:calc(100% - 6px)}
/* 装备列表：固定行高的虚拟列表 */
.list .vlist{position:relative}
.list .vlist .row{position:absolute;left:0;right:0;height:56px;margin:0}
.pc .list .vlist .row{height:52px}
.list .vlist .empty-msg{position:static}
.toast[data-level=err]{border-color:rgba(232,121,108,.7)}
.toast[data-level=warn]{border-color:rgba(240,194,94,.6)}
.app[data-mod=create] .tools [data-show],.app[data-mod=create] #headsetBtn{display:none}
.stage-note{display:none}
/* 存档缩略图与预览 */
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .nothumb,.pv .thumb>svg{margin:auto;width:40%;height:40%;color:rgba(217,187,115,.4)}
.pv .thumb{display:flex;align-items:center;justify-content:center}
.sheet .sh-h .thumb{display:block}
table.bench{width:100%;margin-top:8px;border-collapse:collapse;font-size:12px;color:#cfc8b6}
table.bench td{padding:5px 6px;border-bottom:1px solid #2e2a22}
/* 展示：姿势、灯光、截图 */
.showpop{right:6px;bottom:48px;width:min(280px,calc(100% - 12px));padding:10px 12px}
.pc .showpop{right:18px;bottom:68px;width:300px}
.segs.wrap{flex-wrap:wrap}
.segs.wrap button{flex:1 0 30%}
.showpop>.segs button{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.showpop>.segs svg{width:14px;height:14px}
/* 分享图预览与全屏查看 */
.pbox canvas{display:block;width:100%;height:100%}
.pbox .wait .btn{margin-top:10px}
.pbox .wait svg.i{width:26px;height:26px;color:var(--gold)}
.pview .pvimg{max-width:100%;max-height:calc(100% - 130px);border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.6);-webkit-touch-callout:default}
.pview .btnrow a.btn{text-decoration:none}
.spin{animation:spin 1.6s linear infinite}
.boot .bst .btn{display:inline-flex;height:30px;padding:0 14px;margin-top:12px}

/* ================= 角色创建：右列选项 ================= */
#createPane{flex:1;min-height:0;display:flex;flex-direction:column}
.cpane .cbody{flex:1;min-height:0;margin:0 -6px;padding:0 6px 12px}
.cpane .cfoot{flex:none;display:flex;flex-wrap:wrap;gap:4px;padding:6px 0 8px;border-top:1px solid #2e2a22}
.cpane .cfoot .mini{flex:1}
.cpane .cfoot .next{flex:1 0 100%;margin:2px 0 0}
.cpane .race-grid{display:grid;grid-template-columns:1fr;gap:3px}
.cpane .race-grid .choice{margin:0}
.cpane .race-grid .choice.on,.cpane .segs button.on{border-color:var(--gold);color:#fff6dc;background:linear-gradient(180deg,rgba(120,98,52,.5),rgba(60,48,26,.5))}
.cpane .segs{flex-wrap:wrap}
.cpane .hint{display:flex;gap:5px;align-items:flex-start;margin:8px 0;font-size:10.5px;line-height:1.5;color:var(--faint)}
.cpane .hint svg{width:13px;height:13px;flex:none;margin-top:2px}
.cpane .orn{display:flex;align-items:center;gap:6px;margin:12px 0 6px;font-size:11px;color:var(--gold);letter-spacing:.1em}
.cpane .orn .rule{flex:1;height:1px;background:linear-gradient(90deg,var(--gold-dim),transparent)}
.cpane .ctl{margin-bottom:12px}
.cpane .ctl-head{display:flex;align-items:center;gap:6px;margin:10px 0 5px;font-size:11px;color:var(--gold);letter-spacing:.06em}
.cpane .ctl-head>span,.cpane .ctl-head>label{flex:1;min-width:0}
.cpane .ctl-head small,.cpane .ctl-head output{font:600 10.5px var(--latin);color:var(--muted);letter-spacing:0}
.cpane .ctl-head output{color:var(--gold-hi)}
/* Long native feature labels must remain readable in the narrow phone rail. */
body:not(.pc) .char-feature-control .ctl-head{flex-wrap:wrap}
body:not(.pc) .char-feature-control .ctl-head>span{flex:1 0 calc(100% - 32px)}
body:not(.pc) .char-feature-control .ctl-head small{order:3;flex-basis:100%}
body:not(.pc) .char-feature-control .tiles,
body:not(.pc) .char-feature-control .palette{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.pc) .char-feature-control .tile,
body:not(.pc) .char-feature-control .palette .sw{min-height:44px}
.cpane .ico{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:var(--muted);border:1px solid #4a4436}
.cpane .ico svg{width:12px;height:12px}
.cpane .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:2px}
.cpane .tile{position:relative;aspect-ratio:1;border-radius:6px;border:1px solid #4a4436;background:radial-gradient(circle at 50% 35%,#3a3f4c,#181b22);font:600 12px var(--latin);color:#b8b09c;overflow:hidden}
.cpane .tile.on{border-color:var(--gold-hi);color:#fff;box-shadow:0 0 0 1px var(--gold),0 0 10px rgba(255,210,120,.45)}
.cpane .tile.none{font:500 11px var(--sans)}
.cpane .tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cpane .tile img+span{position:absolute;right:2px;bottom:1px;font-size:9px;color:#fff;text-shadow:0 0 3px #000}
.cpane .palette{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:2px;max-height:none}
.cpane .palette .sw{width:auto;aspect-ratio:1;border-radius:50%;box-shadow:inset 0 -3px 5px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.14)}
.cpane .palette .sw.on{box-shadow:0 0 0 2px #0b0d12,0 0 0 3.5px var(--gold-hi),0 0 10px rgba(255,210,120,.5)}
.cpane .seg{display:flex;width:100%;margin:0 0 6px}
.cpane .seg button{flex:1;height:26px;font-size:11px}
.cpane .seg button.on{color:#fff6dc;background:linear-gradient(180deg,rgba(130,106,56,.8),rgba(70,56,30,.8));box-shadow:inset 0 0 0 1px var(--gold)}
.cpane .char-color{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:10.5px;color:var(--muted)}
.cpane .char-color input[type=color]{width:30px;height:22px;border:1px solid #4a4436;border-radius:4px;background:none;padding:0}
.cpane .char-current-color{width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.3)}
.cpane .char-color output{font:600 10px ui-monospace,Consolas,monospace;color:#cfc8b6}
.cpane .switch{display:flex;align-items:center;gap:6px;margin:8px 0;font-size:11.5px;color:#e4dccb}
.cpane .switch input{accent-color:var(--gold);width:15px;height:15px}
.cpane input[type=range]{width:100%;accent-color:var(--gold)}
.cpane .char-search{display:flex;align-items:center;gap:5px;margin:0 0 6px;font-size:10.5px;color:var(--muted)}
.cpane .char-search input{flex:1;min-width:0;height:26px;border-radius:13px;border:1px solid #4a4436;background:var(--well);padding:0 8px;color:var(--text);font-size:12px;outline:0}
.cpane .char-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:6px;font-size:11px;color:var(--muted)}
.cpane .char-pagination .btn{flex:none;height:26px;padding:0 10px;font-size:11px}
.pc .cpane .tiles{grid-template-columns:repeat(6,1fr);gap:7px}
.pc .cpane .palette{grid-template-columns:repeat(8,1fr);gap:8px}
.pc .cpane .race-grid{grid-template-columns:repeat(4,1fr);gap:6px}
.pc .cpane .ctl-head{font-size:12px}
.pc .cpane .cfoot{flex-wrap:nowrap;padding:10px 0 12px}
.pc .cpane .cfoot .next{flex:1.4;margin:0;height:28px}
.pc .cpane .cbody{margin:0 -14px;padding:0 14px 16px}
/* Keep the phone creation rail within its column. Focus must never scroll
   controls sideways behind the category rail. */
body:not(.pc) #createPane{min-width:0}
body:not(.pc) #createPane .cbody{overflow-x:hidden;min-width:0}
body:not(.pc) #createPane .ctl-head{flex-wrap:wrap}
body:not(.pc) #createPane .ctl-head>span,
body:not(.pc) #createPane .ctl-head>label{flex:1 0 100%;overflow-wrap:anywhere}
body:not(.pc) #createPane .tiles,
body:not(.pc) #createPane .palette{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.pc) #createPane .tile{min-width:0;min-height:44px;aspect-ratio:auto;font-size:11px}
body:not(.pc) #createPane .char-hair-thumbnail,
body:not(.pc) #createPane .char-paint-tile{aspect-ratio:1}
body:not(.pc) #createPane .palette .sw{min-height:44px}
body:not(.pc) #createPane .char-color,
body:not(.pc) #createPane .char-search,
body:not(.pc) #createPane .char-pagination{flex-wrap:wrap}
body:not(.pc) #createPane .char-search input{flex:1 1 100%;min-height:36px}
body:not(.pc) #createPane .char-pagination span{order:-1;flex:1 0 100%;text-align:center}
body:not(.pc) #createPane .char-pagination .btn{flex:1;min-width:0;min-height:44px;padding:0 2px}
body:not(.pc) #createPane .cfoot button{min-height:44px}
@media (max-width:1279px){.pc .cpane .tiles{grid-template-columns:repeat(5,1fr)}.pc .cpane .palette{grid-template-columns:repeat(6,1fr)}}/* 手机：场景很窄，五个场景按钮竖排在右下角，弹出框在按钮左侧 */
.tools{flex-direction:column-reverse}
.headpop,.showpop{right:46px;bottom:8px}
.pc .tools{flex-direction:row}
.pc .headpop{right:18px;bottom:68px}
.pc .showpop{right:18px;bottom:68px}body:not(.pc) .headpop,body:not(.pc) .showpop{position:fixed;left:8px;right:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(300px,calc(100vw - 64px))}
/* 头部调节按钮保持 44px 触控高度 */
.headpop .segs button{min-height:44px}
.showpop{max-height:calc(100dvh - 80px);overflow-y:auto}
body:not(.pc) .showpop [data-pose],body:not(.pc) .showpop [data-closepop]{min-height:44px}

/* 只显示当前部位：按下时金色高亮，不画“关闭”斜线 */
.rb.iso[aria-pressed=false]{color:#d8d0bc}
.rb.iso[aria-pressed=false]::after{display:none}
.app[data-mod=create] #isoBtn{display:none}
.card .tag.iso{margin-left:4px;padding:0 6px;border-radius:8px;border:1px solid rgba(124,196,255,.5);color:var(--blue)}
/* 提示条：紧凑的胶囊，宽度随文字；放在场景顶部，不挡底部按钮、编辑栏和加载提示 */
.toast{left:50%;right:auto;top:58px;bottom:auto;width:max-content;max-width:calc(100% - 24px);padding:6px 14px;gap:8px;border-radius:17px;
  font-size:12px;line-height:1.45;transform:translate(-50%,-6px);box-shadow:0 4px 14px rgba(0,0,0,.45)}
.toast.on{transform:translate(-50%,0)}
.toast span{flex:none;min-width:0}
.toast button{border-left:1px solid #3a3529;padding:0 0 0 8px;border-radius:0}
/* 电脑：场景区域（编辑栏左侧）的水平中间，加载提示下方 */
.pc .toast{left:calc((100% - var(--rail))/2);right:auto;top:104px;bottom:auto;width:max-content;max-width:min(520px,calc(100% - var(--rail) - 48px))}/* 手机：放在场景里（名称卡与加载提示下方、底部按钮上方），宽度不超过场景 */
body:not(.pc) .toast{left:calc((100% - var(--rail))/2);top:var(--toast-top,250px);max-width:calc(100% - var(--rail) - 16px);text-align:center}
body:not(.pc) .toast span{flex:1 1 auto}

/* 角色创建左列：与游戏外貌列表一致的文字列表（20–22 项，随种族变化） */
.app[data-mod=create] .colA{gap:1px;padding:6px 3px 10px}
.cat{width:100%;min-height:34px;padding:5px 2px;justify-content:center;gap:0;font-size:10.5px;line-height:1.2;text-align:center;color:#cfc8b6}
.cat .cn{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
.cat.race{color:var(--gold)}
.app[data-mod=create] .colA .sep{width:70%;margin:4px auto}
.pc .cat{display:block;min-height:0;padding:6px 10px;font-size:13px;border-radius:7px}
.pc .cat .sx{display:flex;align-items:center;gap:8px;min-width:0}
.pc .cat .sx small{flex:1;min-width:0;font-size:13px;color:#e4dccb;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc .cat .sx b{flex:none;max-width:48%;display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:400;color:var(--muted)}
.pc .cat .sx b .sw{width:12px;height:12px}
.pc .cat[aria-pressed=true] .sx small{color:#fff6dc}
.pc .cat.race .sx small{color:var(--gold)}
.pc .app[data-mod=create] .colA{padding:8px 10px}
.pc .app[data-mod=create] .colA .sep{width:auto;margin:4px 6px}
.card .n .sw{width:14px;height:14px;margin-right:6px;vertical-align:-2px}/* 角色创建：四字名称按 2 + 2 换行；更长的名称尽量均分各行 */
.cat .cn{text-wrap:balance}
.cat .cn .w{display:inline-block}
/* 角色创建底部：上一项 / 下一项（按游戏外貌列表顺序） */
.cpane .cnav{flex:1 0 100%;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:2px}
.cpane .cnav button{display:flex;align-items:center;gap:3px;min-width:0;min-height:32px;padding:4px 6px;border:1px solid #4a4436;border-radius:7px;background:rgba(255,255,255,.03);color:#e4dccb;font-size:11px}
.cpane .cnav button:not([disabled]):hover{border-color:var(--gold-dim);color:#fff6dc}
.cpane .cnav button[disabled]{opacity:.35}
.cpane .cnav .nxt{flex-direction:row-reverse;text-align:right}
.cpane .cnav svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cpane .cnav .prev svg{transform:rotate(90deg)}
.cpane .cnav .nxt svg{transform:rotate(-90deg)}
.cpane .cnav span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.cpane .cnav small{font-size:11px}
.cpane .cnav b{display:none;font-weight:400;font-size:12.5px;color:#fff6dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc .cpane .cnav button{min-height:40px;padding:5px 10px;gap:6px}
.pc .cpane .cnav small{font-size:10.5px;color:var(--muted)}
.pc .cpane .cnav b{display:block}
/* 手机窄栏：箭头在上、文字在下，避免“上一项”被拆成竖排 */
body:not(.pc) .cpane .cnav button,body:not(.pc) .cpane .cnav .nxt{flex-direction:column;justify-content:center;gap:1px;padding:4px 2px;text-align:center}
body:not(.pc) .cpane .cnav span{flex:none}
body:not(.pc) .cpane .cnav small{font-size:10.5px;white-space:nowrap}
