:root{--bg:#f5f6f8;--surface:#fff;--surface-2:#f0f1f4;--text:#1a1d21;--muted:#6b7280;--border:#e3e5ea;--brand:#0f9d6c;--brand-soft:#e6f7f0;--brand-text:#0b5c40;--danger:#d64545;--danger-soft:#fbeaea;--radius:10px;--shadow:0 1px 3px #10182814}*{box-sizing:border-box;margin:0;padding:0}html,body{background:var(--bg);height:100%;color:var(--text);font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-size:14px;line-height:1.6}button{font-family:inherit;font-size:inherit;cursor:pointer;color:inherit;background:0 0;border:none}input,select{font-family:inherit;font-size:14px}#app{height:100%}.app-shell{background:var(--surface);flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex;position:relative;box-shadow:0 0 40px #1018280f}@media (width<=520px){.app-shell{max-width:none;box-shadow:none}}.page{flex-direction:column;flex:1;min-height:0;display:flex}.page-body{flex:1;min-height:0;overflow-y:auto}.tabbar{border-top:1px solid var(--border);background:var(--surface);padding:4px 0 6px;display:flex}.tabbar .tab{color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:1px;padding:4px 0;font-size:11px;text-decoration:none;display:flex}.tabbar .tab .ic{background:#1a1d21;width:24px;height:24px;display:block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.tabbar .tab .ic.fill,.tabbar .tab.on .ic{display:none}.tabbar .tab.on .ic.fill{background:var(--brand);display:block}.tabbar .tab.on{color:var(--brand-text);font-weight:600}.btn{border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-size:14px;font-weight:600;transition:all .12s;display:inline-flex}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{filter:brightness(.95)}.btn.ghost{background:var(--surface-2);color:var(--text)}.btn.ghost:hover{background:#e7e9ee}.btn.danger{background:var(--danger);color:#fff}.btn.block{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}.field{margin-bottom:14px}.field label{color:var(--muted);margin-bottom:6px;font-size:13px;display:block}.field input,.field select{border:1px solid var(--border);background:var(--surface);border-radius:10px;outline:none;width:100%;padding:10px 12px}.field input:focus,.field select:focus{border-color:var(--brand)}.field .err{color:var(--danger);margin-top:4px;font-size:12px;display:none}.field.invalid input,.field.invalid select{border-color:var(--danger)}.field.invalid .err{display:block}.chip{background:var(--surface-2);color:var(--muted);white-space:nowrap;border:1px solid #0000;border-radius:999px;padding:6px 14px;font-size:13px}.chip.on{background:var(--brand-soft);color:var(--brand-text);border-color:var(--brand);font-weight:600}.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px}.hint{color:var(--muted);font-size:12px}.toast{color:#fff;opacity:0;pointer-events:none;z-index:90;text-align:center;background:#26292e;border-radius:10px;max-width:82%;padding:9px 16px;font-size:13px;transition:all .2s;position:fixed;bottom:76px;left:50%;transform:translate(-50%)translateY(10px)}.toast.show{opacity:1;transform:translate(-50%)translateY(0)}.modal-mask{z-index:80;background:#0a0c1073;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:14px;width:100%;max-width:320px;padding:20px}.modal h4{margin-bottom:8px;font-size:15px}.modal p{color:var(--muted);margin-bottom:16px;font-size:13px}.modal .row{justify-content:flex-end;gap:10px;display:flex}.appnav{border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0;align-items:center;gap:8px;height:46px;padding:0 12px;display:flex}.appnav .back{width:30px;height:30px;color:var(--muted);border-radius:8px;justify-content:center;align-items:center;font-size:16px;display:flex}.appnav .back:hover{background:var(--surface-2)}.appnav .title{font-size:15px;font-weight:600}.appnav .spacer{flex:1}.cat-bar{scrollbar-width:none;flex-shrink:0;gap:8px;padding:10px 14px;display:flex;overflow-x:auto}.cat-bar::-webkit-scrollbar{display:none}.ward-grid{grid-template-columns:repeat(3,1fr);gap:10px;padding:4px 14px 90px;display:grid}.ward-item{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:center;border-radius:12px;overflow:hidden}.ward-item:hover{border-color:var(--brand)}.ward-item .thumb{aspect-ratio:1/1.05;background:var(--surface-2);justify-content:center;align-items:center;display:flex}.ward-item .thumb img{object-fit:contain;width:100%;height:100%}.ward-item .nm{white-space:nowrap;text-overflow:ellipsis;padding:5px 6px 8px;font-size:12px;overflow:hidden}.fab{background:var(--brand);color:#fff;z-index:5;border-radius:50%;justify-content:center;align-items:center;width:54px;height:54px;font-size:26px;display:flex;position:absolute;bottom:20px;right:16px;box-shadow:0 4px 14px #0f9d6c66}.fab:hover{filter:brightness(.95)}.empty-state{text-align:center;color:var(--muted);padding:60px 30px}.empty-state .big{margin-bottom:10px;font-size:40px}.empty-state p{margin-bottom:16px;font-size:13px}.photo-pick{grid-template-columns:1fr;gap:10px;margin-bottom:16px;display:grid}.ph{aspect-ratio:3/4;border:2px dashed var(--border);cursor:pointer;background:var(--surface-2);max-width:260px;color:var(--muted);border-radius:12px;justify-content:center;align-items:center;margin:0 auto;font-size:13px;display:flex;position:relative;overflow:hidden}.ph img{object-fit:contain;width:100%;height:100%}.proc-box{text-align:center;padding:34px 20px}.spin{border:3px solid var(--surface-2);border-top-color:var(--brand);border-radius:50%;width:38px;height:38px;margin:0 auto;animation:1s linear infinite sp}@keyframes sp{to{transform:rotate(360deg)}}.result-thumb{background:var(--surface-2);border:1px dashed var(--border);border-radius:14px;justify-content:center;align-items:center;width:170px;height:190px;margin:0 auto 14px;display:flex;overflow:hidden}.result-thumb img{object-fit:contain;width:100%;height:100%}.conf{align-items:center;gap:8px;margin:6px 0;font-size:13px;display:flex}.conf .bar{background:var(--surface-2);border-radius:999px;flex:1;height:6px;overflow:hidden}.conf .bar i{background:var(--brand);border-radius:999px;height:100%;display:block}.steps{color:var(--muted);justify-content:center;align-items:center;gap:6px;margin-bottom:18px;font-size:12px;display:flex}.step-dot{background:var(--surface-2);border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;display:flex}.step-dot.done{background:var(--brand);color:#fff}.step-dot.cur{background:var(--brand-soft);color:var(--brand-text);border:1.5px solid var(--brand)}.stage{border-bottom:1px solid var(--border);background:linear-gradient(#fdfdfe,#f2f4f7);padding:10px 0;position:relative}.stage-inner{width:min(64vw,240px);margin:0 auto;position:relative}.worn-bar{flex-wrap:wrap;gap:8px;min-height:38px;padding:10px 14px 2px;display:flex}.worn-chip{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;align-items:center;gap:6px;padding:4px 6px 4px 12px;font-size:12px;display:inline-flex}.worn-chip b{white-space:nowrap;text-overflow:ellipsis;max-width:90px;font-weight:600;overflow:hidden}.worn-chip .x{background:var(--surface);width:18px;height:18px;color:var(--muted);border-radius:50%;justify-content:center;align-items:center;font-size:11px;display:flex}.worn-chip .x:hover{background:var(--danger-soft);color:var(--danger)}.slot-tabs{scrollbar-width:none;gap:8px;padding:8px 14px 0;display:flex;overflow-x:auto}.slot-tabs::-webkit-scrollbar{display:none}.slot-note{color:var(--muted);padding:8px 14px 0;font-size:12px}.item-row{grid-template-columns:repeat(4,1fr);gap:10px;padding:12px 14px 40px;display:grid}.it{border:1.5px solid var(--border);background:var(--surface);text-align:center;cursor:pointer;border-radius:12px;padding:6px 4px 8px}.it:hover{border-color:var(--brand)}.it.worn{border-color:var(--brand);background:var(--brand-soft)}.it .thumb{justify-content:center;align-items:center;height:52px;display:flex}.it .thumb img{object-fit:contain;max-width:80%;max-height:52px}.it .nm{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.wear-in{animation:.26s cubic-bezier(.34,1.4,.64,1) wearIn}@keyframes wearIn{0%{opacity:0;transform:translateY(-14px)}60%{opacity:1;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.wear-out{animation:.22s ease-in forwards wearOut}@keyframes wearOut{to{opacity:0;transform:translateY(-10px)}}.pop{animation:.3s cubic-bezier(.34,1.56,.64,1) pop}@keyframes pop{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.swap{animation:.3s fadeSwap}@keyframes fadeSwap{0%{opacity:.15}to{opacity:1}}@media (prefers-reduced-motion:reduce){.wear-in,.wear-out,.pop,.swap{animation:none!important}}
