@font-face{font-family:Brand;src:url(/fonts/zcool-brand.woff2) format("woff2");font-display:swap}:root{--ground: #F4F8FC;--surface: #FFFFFF;--ink: #1F2A44;--muted: #5B6478;--faint: #6B7488;--line: #C9D6EA;--line-soft: #DDE5F0;--primary: #2563C9;--primary-ink: #1D4FA3;--primary-soft: #E3ECFA;--coral: #F2866B;--warn-bg: #FFF4EF;--warn-ink: #7A3418;--ok-bg: #DDF3E6;--ok-ink: #1E7A4C;--radius: 18px;--shadow: 0 10px 30px rgba(31, 42, 68, .06);color-scheme:light}*{box-sizing:border-box}html,body{margin:0;background:var(--ground)}body{font-family:-apple-system,PingFang SC,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}:focus-visible{outline:3px solid #93B4EC;outline-offset:2px}.app{max-width:480px;min-height:100dvh;margin:0 auto;padding:20px 20px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}.topbar{display:flex;align-items:center;justify-content:space-between}.brand{font-family:Brand,-apple-system,PingFang SC,Noto Sans SC,sans-serif;font-size:20px}.chip{font-size:12px;color:var(--primary);background:var(--primary-soft);border-radius:12px;padding:4px 10px}.chip.ok{color:var(--ok-ink);background:var(--ok-bg)}.steps{display:flex;gap:6px}.steps span{flex:1;height:4px;border-radius:2px;background:var(--line)}.steps span.on{background:var(--primary)}h1{margin:0;font-size:22px;font-weight:700}h2{margin:0;font-size:20px;font-weight:700}p{margin:0}.muted{color:var(--muted)}.small{font-size:12px}.center{text-align:center}.grow{flex:1}.card{background:var(--surface);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:12px}.hero{border-radius:28px;padding:28px 20px 24px;align-items:center;box-shadow:var(--shadow)}.btn{height:54px;border:0;border-radius:27px;background:var(--primary);color:#fff;font-size:17px;font-weight:700;width:100%}.btn.ghost{background:var(--surface);color:var(--ink);border:2px solid var(--line);font-weight:400;font-size:15px}.btn.text{background:transparent;color:var(--primary);font-weight:400;font-size:15px;height:48px}.row{display:flex;gap:10px}.row>*{flex:1}.code-input{height:56px;border-radius:16px;border:2px solid var(--line);background:var(--surface);font-size:24px;letter-spacing:6px;text-align:center;text-transform:uppercase;width:100%}.code-input:focus{border-color:var(--primary);outline:none}.error{color:#b3261e;font-size:14px}.beads{display:grid;gap:3px;padding:14px;background:#e8f0fa;border-radius:18px}.bead{border-radius:50%;box-shadow:inset 0 -2px #00000014}.photo{position:relative;border-radius:24px;overflow:hidden;background:#dce7f5;min-height:300px;display:flex;align-items:center;justify-content:center}.photo img{width:100%;max-height:420px;object-fit:contain;display:block}.picker{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);padding:40px 20px;text-align:center}.styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.style-card{border:2px solid var(--line-soft);background:var(--surface);border-radius:22px;padding:13px;display:flex;flex-direction:column;gap:10px;text-align:left}.style-card.on{border:3px solid var(--primary);padding:12px}.style-card .art{aspect-ratio:1;border-radius:14px;background:#eef3fa;display:flex;align-items:center;justify-content:center;overflow:hidden}.style-card .art img{width:100%;height:100%;object-fit:cover;display:block}.style-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.badge{font-size:11px;color:#fff;background:var(--primary);border-radius:8px;padding:2px 7px;white-space:nowrap}.badge.ai{color:#9a4a1f;background:#fde7de}.chips{display:flex;flex-wrap:wrap;gap:8px}.pill{height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--line);background:var(--surface);font-size:14px}.pill.on{border:2px solid var(--primary);background:var(--primary-soft);color:var(--primary-ink);font-weight:500}.seg{display:flex;gap:4px;background:#eef3fa;border-radius:14px;padding:3px}.seg button{height:30px;padding:0 12px;border:0;border-radius:11px;background:transparent;font-size:13px;color:var(--muted)}.seg button.on{background:var(--surface);color:var(--ink);font-weight:500}.progress{display:flex;flex-direction:column;gap:14px}.progress div{display:flex;align-items:center;gap:12px;font-size:15px}.dot{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);flex:none;display:flex;align-items:center;justify-content:center}.dot.done{background:var(--primary);border-color:var(--primary)}.dot.now{border:3px solid var(--primary);border-right-color:var(--line);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.dot.now{animation:none}}.preview{border-radius:24px;overflow:hidden;background:#e6e0d6;position:relative}.preview img{display:block;width:100%}.preview .tag{position:absolute;left:12px;bottom:12px;font-size:11px;color:var(--muted);background:#ffffffe0;border-radius:8px;padding:3px 8px}.tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tier{border:2px solid var(--line-soft);background:var(--surface);border-radius:16px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:3px}.tier.on{border:3px solid var(--primary);background:var(--primary-soft);padding:9px 3px}.tier b{font-size:15px}.tier span{font-size:12px;color:var(--muted)}.adjust{display:flex;gap:8px}.adjust button{flex:1;height:40px;border-radius:20px;border:1px solid var(--line);background:var(--surface);font-size:14px}.notes{background:var(--warn-bg);color:var(--warn-ink);border-radius:14px;padding:10px 14px;font-size:13px;line-height:1.6}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#141c2e73;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:480px;background:var(--surface);border-radius:28px 28px 0 0;padding:12px 22px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}.grip{align-self:center;width:40px;height:5px;border-radius:3px;background:var(--line-soft)}.summary{display:flex;gap:14px;align-items:center;background:var(--ground);border-radius:18px;padding:12px}.summary img{width:76px;height:76px;object-fit:cover;border-radius:14px}.warn{display:flex;gap:10px;align-items:flex-start;background:var(--warn-bg);border-radius:14px;padding:12px 14px;font-size:13px;color:var(--warn-ink);line-height:1.6}.file{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:18px;padding:14px 16px;text-decoration:none;color:var(--ink)}.file .ico{width:42px;height:42px;border-radius:12px;background:var(--primary-soft);display:flex;align-items:center;justify-content:center;flex:none}.file .txt{flex:1;display:flex;flex-direction:column;gap:2px}.file .txt b{font-size:16px;font-weight:500}.file .txt span{font-size:12px;color:var(--muted)}.outline-btn{align-self:flex-start;height:38px;padding:0 16px;border-radius:19px;border:1px solid var(--primary);background:var(--surface);color:var(--primary);font-size:14px}.footer{font-size:11px;color:var(--faint);text-align:center}.toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-size:14px}.crop{position:relative;border-radius:24px;overflow:hidden;background:#dce7f5;touch-action:none;-webkit-user-select:none;user-select:none}.crop img{display:block;width:100%;height:auto;pointer-events:none}.crop-shade{position:absolute;background:#141c2e6b;pointer-events:none}.crop-frame{position:absolute;border:2px solid #fff;box-shadow:0 0 0 1px #2563c9e6;cursor:move}.crop-handle{position:absolute;width:26px;height:26px}.crop-handle:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--primary);left:6px;top:6px}.crop-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.crop-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.crop-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.crop-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}.crop-tip{position:absolute;left:10px;top:10px;font-size:12px;color:#fff;background:var(--primary);border-radius:8px;padding:3px 8px;pointer-events:none}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}.switch{position:relative;width:46px;height:28px;flex:none}.switch input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;margin:0;cursor:pointer}.switch span{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:14px;background:var(--line);transition:background .15s;pointer-events:none}.switch span:after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}.switch input:checked+span{background:var(--primary)}.switch input:checked+span:after{transform:translate(18px)}.switch input:focus-visible+span{outline:3px solid #93B4EC;outline-offset:2px}.text-input{height:42px;border-radius:12px;border:1px solid var(--line);padding:0 12px;font-size:14px;background:var(--surface);width:100%}.text-input:focus{border-color:var(--primary);outline:none}.history{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.history button{flex:none;height:32px;padding:0 12px;border-radius:16px;border:1px solid var(--line);background:var(--surface);font-size:13px}.history button.on{border:2px solid var(--primary);background:var(--primary-soft);color:var(--primary-ink);font-weight:500}
