@font-face{font-family:Rebecca UI;src:local(Microsoft YaHei UI)}:root{color:#1d1b1b;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;letter-spacing:0;background:#fbfaf9;font-family:Rebecca UI,Microsoft YaHei,Arial,sans-serif}html{scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0}button:focus-visible,input:focus-visible,a:focus-visible{outline-offset:2px;outline:2px solid #a53a35}:root{--ink:#1d1b1b;--muted:#706b69;--soft:#f7f6f5;--line:#e5e1df;--accent:#a53a35;--accent-dark:#7f2824;--accent-soft:#f5e9e7;--success:#2f7654}*{box-sizing:border-box}button,input{font:inherit}button{letter-spacing:0}.app-shell{min-height:100vh;color:var(--ink);background:#fbfaf9}.topbar{border-bottom:1px solid var(--line);z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff0;grid-template-columns:1fr auto 1fr;align-items:center;height:76px;padding:0 clamp(20px,4vw,64px);display:grid;position:sticky;top:0}.brand{color:var(--ink);width:max-content;text-decoration:none}.brand-word{letter-spacing:3px;font:600 20px/1 Georgia,serif;display:block}.brand-sub{color:var(--muted);letter-spacing:2.1px;margin-top:6px;font-size:8px;display:block}.steps{align-items:center;margin:0;padding:0;list-style:none;display:flex}.steps li{color:#9a9693;white-space:nowrap;align-items:center;gap:8px;font-size:13px;display:flex}.steps li:not(:last-child):after{content:"";background:#ddd9d6;width:clamp(24px,4vw,64px);height:1px;margin:0 14px}.steps li>span{border:1px solid #cdc9c6;border-radius:50%;place-items:center;width:24px;height:24px;font-size:11px;display:inline-grid}.steps li.active{color:var(--ink);font-weight:600}.steps li.active>span{background:var(--ink);color:#fff;border-color:var(--ink)}.steps li.done{color:var(--success)}.steps li.done>span{background:var(--success);color:#fff;border-color:var(--success)}.privacy-link,.back-link,.text-button{cursor:pointer;color:var(--muted);background:0 0;border:0;align-items:center;gap:7px;display:inline-flex}.privacy-link{justify-self:end;padding:10px 0;font-size:13px}.privacy-link:hover,.back-link:hover,.text-button:hover{color:var(--ink)}main{width:min(1380px,100% - 48px);margin:0 auto;padding:36px 0 56px}.intro{justify-content:space-between;align-items:end;margin-bottom:24px;display:flex}.back-link{margin:0 0 18px -6px;padding:5px 6px;font-size:13px}.intro h1{letter-spacing:0;margin:0;font:500 clamp(28px,3vw,42px)/1.1 Georgia,Noto Serif SC,serif}.intro p{color:var(--muted);margin:10px 0 0;font-size:15px}.local-note{color:var(--success);align-items:center;gap:8px;padding-bottom:4px;font-size:13px;display:flex}.workspace{border:1px solid var(--line);background:#fff;grid-template-columns:minmax(0,1fr) 370px;min-height:660px;display:grid}.viewer-panel{border-right:1px solid var(--line);min-width:0;padding:24px}.catalog-panel{background:#fcfbfa;padding:28px 24px}.mode-switch{background:#f0eeec;border-radius:6px;gap:3px;width:fit-content;margin-bottom:18px;padding:4px;display:flex}.mode-switch button{min-width:142px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;gap:8px;font-size:13px;display:inline-flex}.mode-switch button.selected{color:var(--ink);background:#fff;font-weight:600;box-shadow:0 1px 5px #22181414}.stage{background-color:#f1efed;background-image:linear-gradient(#e7e4e1 1px,#0000 1px),linear-gradient(90deg,#e7e4e1 1px,#0000 1px);background-size:32px 32px;width:100%;min-height:510px;max-height:660px;position:relative;overflow:hidden}.stage.has-source{background:#191817;width:auto;max-width:100%;min-height:0;margin-inline:auto}.source-media{object-fit:contain;width:100%;height:100%;display:block}.source-media.mirrored{transform:scaleX(-1)}.wig-overlay{transform-origin:50% 8%;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 5px 5px #0003);height:auto;position:absolute}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:32px;display:flex;position:absolute;inset:0}.empty-state h2{margin:25px 0 7px;font-size:20px;line-height:1.3}.empty-state p{color:var(--muted);margin:0 0 22px;font-size:14px}.file-hint{color:#97918e;margin-top:13px;font-size:11px}.error-text{max-width:360px;color:var(--accent);margin-top:14px;font-size:12px}.face-guide{width:146px;height:180px;position:relative}.guide-head{border:2px dashed #b6b0ac;border-radius:48% 48% 44% 44%;width:102px;height:130px;position:absolute;top:0;left:22px}.guide-head:before,.guide-head:after{content:"";background:#afa9a5;border-radius:50%;width:6px;height:6px;position:absolute;top:53px}.guide-head:before{left:28px}.guide-head:after{right:28px}.guide-shoulders{border:2px dashed #b6b0ac;border-bottom:0;border-radius:90px 90px 0 0;width:146px;height:56px;position:absolute;bottom:0;left:0}.camera-mark,.modal-icon{border:1px solid var(--line);width:64px;height:64px;color:var(--accent);background:#fff;border-radius:50%;place-items:center;display:grid}.primary-button,.secondary-button,.add-wig{cursor:pointer;border-radius:4px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:0 18px;font-size:13px;font-weight:600;transition:background .2s,border-color .2s,opacity .2s;display:inline-flex}.primary-button{border:1px solid var(--accent);color:#fff;background:var(--accent)}.primary-button:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.secondary-button{color:var(--ink);background:#fff;border:1px solid #cfcac7}.secondary-button:hover{border-color:#928b87}.primary-button:disabled,.secondary-button:disabled{cursor:not-allowed;opacity:.42}.full{width:100%}.face-status{color:#514d4b;background:#ffffffe6;border-radius:4px;align-items:center;gap:7px;padding:7px 10px;font-size:11px;display:flex;position:absolute;top:14px;left:14px;box-shadow:0 4px 12px #00000017}.face-status.found{color:var(--success)}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.adjustments{border:1px solid var(--line);border-top:0;padding:18px 20px 20px}.adjustment-heading{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.adjustment-heading h2{margin:0 0 3px;font-size:14px}.adjustment-heading p{color:var(--muted);margin:0;font-size:11px}.text-button{padding:6px;font-size:12px}.adjustments label{grid-template-columns:70px 1fr;align-items:center;gap:12px;margin-top:12px;display:grid}.adjustments label>span{color:#514d4b;align-items:center;gap:7px;font-size:12px;display:flex}input[type=range]{width:100%;accent-color:var(--accent)}.catalog-heading{justify-content:space-between;align-items:end;margin-bottom:20px;display:flex}.catalog-heading h2{margin:5px 0 0;font:500 25px/1.1 Georgia,Noto Serif SC,serif}.eyebrow{color:var(--accent);letter-spacing:1.5px;font-size:10px}.count{color:var(--muted);font-size:12px}.product-switch{width:100%}.product-switch button{flex:1;min-width:0}.extension-options{border-top:1px solid var(--line);gap:14px;margin-top:20px;padding-top:18px;display:grid}.extension-style,.extension-options label{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.extension-style strong{color:var(--ink);font-weight:500}.extension-options select{width:164px;max-width:60%;height:36px;color:var(--ink);background:#fff;border:1px solid #cfcac7;border-radius:4px;padding:0 8px}.wearing-reference{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.wearing-reference img{object-fit:cover;width:54px;height:72px}button:disabled{cursor:not-allowed}.wig-list{gap:9px;max-height:324px;padding-right:3px;display:grid;overflow-y:auto}.wig-card{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:4px;grid-template-columns:68px minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;padding:8px;display:grid}.wig-card:hover{border-color:#bdb7b3}.wig-card.selected{border:1.5px solid var(--accent);background:snow}.wig-thumb{background:#eeecea;place-items:center;width:68px;height:76px;display:grid;overflow:hidden}.wig-thumb img{object-fit:contain;width:86%;height:92%}.wig-copy{min-width:0}.wig-copy strong,.wig-copy small{display:block}.wig-copy strong{text-overflow:ellipsis;white-space:nowrap;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.4;overflow:hidden}.wig-copy small{color:var(--muted);margin-top:7px;font-size:10px}.select-indicator{color:#fff;border:1px solid #d2cdca;border-radius:50%;place-items:center;width:18px;height:18px;display:grid}.selected .select-indicator{background:var(--accent);border-color:var(--accent)}.add-wig{color:#595451;background:0 0;border:1px dashed #bdb7b3;width:100%;margin-top:11px;font-weight:500}.add-wig:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.selection-summary{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:22px;padding:20px 0;display:grid}.selection-summary span{color:var(--muted);font-size:10px}.selection-summary strong{margin-top:5px;font-size:14px}.selection-summary small{color:var(--muted);margin-top:6px;font-size:11px}.actions{gap:9px;margin-top:20px;display:grid}.ai-error{color:var(--accent);margin:3px 0 0;font-size:11px;line-height:1.55}.ai-disclosure{color:#8b8683;margin:3px 0 0;font-size:9px;line-height:1.55}footer{color:#8b8683;border-top:1px solid var(--line);justify-content:space-between;width:min(1380px,100% - 48px);margin:0 auto;padding:18px 0 30px;font-size:10px;display:flex}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#1915147a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;width:min(440px,100%);padding:34px;position:relative;box-shadow:0 24px 80px #0003}.modal .close{position:absolute;top:15px;right:15px}.modal-icon{width:50px;height:50px}.modal h2{margin:22px 0 10px;font:500 25px/1.2 Georgia,Noto Serif SC,serif}.modal p{color:var(--muted);margin:0 0 24px;font-size:13px;line-height:1.8}.result-modal{width:min(620px,100%);max-height:calc(100vh - 40px);overflow-y:auto}.result-modal h2{margin-top:6px}.result-switch{width:100%}.result-switch button{flex:1;min-width:0}.ai-result-image{object-fit:contain;background:#eeeae7;width:100%;max-height:68vh;display:block}.result-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;display:grid}.result-error{margin-top:12px}.icon-button{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.toast{z-index:60;color:#fff;background:#282524;border-radius:4px;padding:11px 17px;font-size:12px;position:fixed;bottom:28px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #0003}.header-actions{justify-self:end;align-items:center;gap:18px;display:flex}.history-link{color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:8px 0;font-size:12px;display:flex}.modal .saved-note{color:var(--success);align-items:center;gap:6px;margin:0 0 14px;font-size:12px;display:flex}.modal .saved-note.ai-error{color:var(--accent)}.history-modal{width:min(940px,100%);max-height:calc(100dvh - 40px);overflow-y:auto}.history-modal h2{margin-top:6px}.modal .history-description{margin-bottom:16px}.history-filters{align-items:end;gap:12px;margin-bottom:18px;display:flex}.history-filters label{color:var(--muted);gap:7px;min-width:0;font-size:12px;display:grid}.history-filters label:nth-child(2){flex:1}.history-filters select{border:1px solid var(--line);width:100%;min-width:0;color:var(--ink);font:inherit;background:#fff;padding:10px}.history-total{color:var(--muted);margin-bottom:12px;font-size:12px}.history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.history-card{border:1px solid var(--line);min-width:0;color:var(--ink);text-align:left;cursor:pointer;background:#fff;flex-direction:column;gap:6px;padding:8px;display:flex}.history-card:hover{border-color:var(--accent)}.history-card img{aspect-ratio:2/3;object-fit:contain;background:var(--soft);width:100%}.history-card strong{overflow-wrap:anywhere;font-size:12px;line-height:1.5}.history-card time,.history-card small{color:var(--muted);font-size:10px;line-height:1.5}.history-empty{text-align:center;justify-content:center;align-items:center;gap:8px;min-height:180px;font-size:13px;line-height:1.7;display:flex}.modal .history-storage{overflow-wrap:anywhere;margin:20px 0 0;font-size:11px}.history-pagination{justify-content:center;align-items:center;gap:16px;margin-top:20px;font-size:12px;display:flex}.history-product-name{margin:18px 0 6px;font-size:16px}.modal .history-details{margin-bottom:16px;font-size:12px}.history-download{margin-top:18px;text-decoration:none}.provider-select{color:var(--muted);gap:8px;font-size:12px;display:grid}.provider-select select{border:1px solid var(--line);width:100%;color:var(--ink);font:inherit;background:#fff;padding:10px}.pending-task{background:var(--soft);border:1px solid var(--line);padding:12px}.pending-task p{margin:0 0 12px;font-size:12px;line-height:1.6}.pending-task small{color:var(--muted);overflow-wrap:anywhere;margin-top:8px;font-size:10px;line-height:1.6;display:block}@media (width<=640px){.header-actions{gap:12px}.history-modal{padding:26px 16px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-filters{flex-wrap:wrap}.history-filters label:first-child{width:95px}.history-filters label:nth-child(2){flex-basis:calc(100% - 107px)}}@media (width<=960px){.topbar{grid-template-columns:1fr auto}.steps{display:none}.workspace{grid-template-columns:1fr}.viewer-panel{border-right:0;border-bottom:1px solid var(--line)}.catalog-panel{padding:24px}.wig-list{grid-template-columns:repeat(3,1fr);max-height:none}.wig-card{grid-template-columns:58px 1fr}.wig-thumb{width:58px;height:66px}.select-indicator{display:none}}@media (width<=640px){.topbar{height:64px;padding:0 16px}.brand-word{font-size:17px}.brand-sub{font-size:7px}.privacy-link{justify-content:center;width:34px;font-size:0}main{width:100%;padding:24px 0 36px}.intro{align-items:start;padding:0 18px}.intro h1{font-size:29px}.intro p{font-size:13px}.local-note{display:none}.workspace{border-inline:0}.viewer-panel{padding:16px}.mode-switch{width:100%}.mode-switch button{flex:1;min-width:0}.stage{min-height:440px}.stage.has-source{min-height:0}.empty-state{padding:22px}.adjustments{padding-inline:15px}.catalog-panel{padding:24px 16px}.wig-list{grid-template-columns:1fr}.wig-card{grid-template-columns:64px minmax(0,1fr) 20px}.wig-thumb{width:64px;height:70px}.select-indicator{display:grid}footer{flex-direction:column;gap:7px;width:calc(100% - 32px)}.result-modal{padding:24px 18px}.result-actions{grid-template-columns:1fr}}
