header{height:58px;padding:0 max(20px,calc((100% - 1120px)/2));display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #e3e5e8}header strong{font-size:18px}header span{margin-left:auto;color:#62666d}main{max-width:1120px;margin:0 auto;padding:32px 20px}.auth-panel{min-height:620px;display:grid;grid-template-columns:1.1fr 420px;align-items:center;gap:80px}.auth-copy h1{font-size:40px;max-width:620px;margin:0 0 16px}.auth-copy p{font-size:18px;color:#6d7279}.auth-panel form{background:#fff;border:1px solid #e1e3e6;padding:28px;border-radius:8px;box-shadow:0 10px 30px #1b1f2a0d}.tabs{display:flex;border-bottom:1px solid #e4e5e8;margin-bottom:22px}.tabs button{flex:1;border:0;background:none;padding:12px}.tabs .active{color:#e02e24;border-bottom:2px solid #e02e24;font-weight:700}label{display:grid;gap:7px;margin:15px 0;font-size:14px;font-weight:600}input{width:100%;border:1px solid #cfd2d6;border-radius:6px;padding:11px;background:#fff}.auth-panel .primary{width:100%;margin-top:6px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.toolbar h1{margin:0;font-size:24px}.toolbar p{margin:7px 0 0;color:#747980}.products{display:grid;gap:14px}.empty{padding:70px;text-align:center;background:#fff;border:1px dashed #cdd0d5}.product{background:#fff;border:1px solid #dedfe3;padding:18px;border-radius:8px}.product-head{display:flex;gap:16px;align-items:flex-start}.product-head h2{font-size:18px;margin:0 0 8px}.product-head .grow{flex:1}.share-row{display:flex;gap:8px}.share-row input{font-size:13px}.qr{width:88px;height:88px;border:1px solid #eee}.variants{display:flex;gap:10px;margin-top:16px;overflow:auto}.variant{width:82px;flex:0 0 82px}.variant img{width:82px;height:82px;object-fit:cover;border-radius:5px;border:1px solid #ddd}.variant span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin-top:5px}.actions{display:flex;gap:8px;margin-top:15px}dialog{border:0;border-radius:8px;width:min(620px,calc(100% - 28px));padding:0;box-shadow:0 18px 80px #0004}dialog::backdrop{background:#15171a99}dialog form{padding:22px}.dialog-head{display:flex;align-items:center}.dialog-head h2{font-size:19px;margin:0}.dialog-head button{margin-left:auto;border:0;background:none;font-size:28px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.file-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.file-item{display:grid;grid-template-columns:52px 1fr;gap:8px;align-items:center}.file-item img{width:52px;height:52px;object-fit:cover}.file-item input{padding:8px}
@media(max-width:760px){main{padding:18px 14px}.auth-panel{display:block;min-height:0}.auth-copy{padding:36px 4px 20px}.auth-copy h1{font-size:28px}.auth-panel form{padding:20px}.toolbar{align-items:flex-end}.product-head{display:grid;grid-template-columns:1fr 88px}.share-row{grid-column:1/-1}.actions{flex-wrap:wrap}.file-list{grid-template-columns:1fr}}
/* 与海智主站统一的黑金主题。 */
:root{color:#e9e7df;background:#111210}header{background:#171814;border-color:#34362e;height:auto;min-height:64px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.site-home{color:#d7bb7c;font-size:13px;text-decoration:none}.role-label{color:#d7bb7c;letter-spacing:2px;font-size:12px;margin-bottom:20px}.auth-copy p,.toolbar p,header span,.muted{color:#a6a89e}.auth-panel form,.product,.empty,dialog{background:#1b1c17;border-color:#393b31;color:#e9e7df}.primary{background:#d7bb7c;color:#171814}.secondary,input{background:#22241d;color:#e9e7df;border-color:#424538}.tabs{border-color:#424538}.tabs button{color:#a6a89e}.tabs .active{color:#e7ce96;border-color:#d7bb7c}.login-note{font-weight:400;line-height:1.7}.notice{color:#eaa88b}.dialog-head button{color:#e9e7df}.qr{background:#fff}input:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #d7bb7c;outline-offset:3px}@media(max-width:760px){header{gap:12px;padding-left:14px;padding-right:14px}header strong{font-size:16px}.auth-copy{padding-top:20px}.auth-panel form{margin-bottom:24px}}
:root{color-scheme:dark}body{background:radial-gradient(ellipse at 0% 25%,#8262311f,transparent 60%),#111210}.auth-panel{gap:52px;min-height:calc(100svh - 145px)}.auth-copy{position:relative;min-height:540px;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:26px}.auth-copy h1{font-weight:400;line-height:1.45;font-size:35px;position:relative}.auth-copy p,.auth-copy .role-label{position:relative}.merchant-tulip{position:absolute;width:400px;max-width:100%;height:410px;object-fit:contain;top:-18px;right:0;opacity:.8;pointer-events:none}.auth-copy .role-label{margin-bottom:170px}.auth-panel form{position:relative;box-shadow:0 24px 70px #0004;border-radius:16px}.remember-login{font-size:11px;color:#b7a274;line-height:1.8;margin:18px 0}.merchant-welcome{border:1px solid #48402c;border-radius:14px;min-height:200px;padding:30px 36px;margin-bottom:30px;background:linear-gradient(125deg,#343023,#191b15);display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.merchant-welcome h2{font-size:28px;font-weight:400;margin:0 0 10px}.merchant-welcome p{font-size:13px;color:#aaa695;line-height:1.8}.merchant-welcome img{height:220px;width:230px;object-fit:contain;margin:-35px -25px -35px 15px}.session-checking #auth{visibility:hidden}#session-check{text-align:center;padding:28px}.product{box-shadow:0 10px 30px #0002}.product-head h2{color:#e2cc9b}.site-home:hover{color:#f3dea8}@media(max-width:760px){.auth-panel{min-height:0}.auth-copy{min-height:220px;display:block;padding:20px 4px 12px}.auth-copy h1{font-size:25px;max-width:245px;margin-bottom:10px}.auth-copy p{font-size:13px;max-width:240px}.merchant-tulip{width:190px;height:210px;right:-12px;top:-10px;opacity:.3}.auth-copy .role-label{margin-bottom:28px}.merchant-welcome{padding:24px 20px;min-height:160px}.merchant-welcome h2{font-size:22px;max-width:220px}.merchant-welcome p{max-width:220px}.merchant-welcome>div{z-index:1}.merchant-welcome img{position:absolute;right:0;opacity:.22;width:170px;height:200px}.merchant-welcome .role-label{font-size:10px}.toolbar h1{font-size:21px}}

.merchant-code-row{display:flex;gap:10px;align-items:center}.merchant-code-row label{flex:1;min-width:0}.merchant-code-row button{margin-top:20px;white-space:nowrap}button:disabled{opacity:.5;cursor:not-allowed}

.file-item{grid-template-columns:52px minmax(0,1fr) auto;grid-column:1/-1}.file-item button{padding:8px;font-size:12px}.file-item input{min-width:0}.actions{flex-wrap:wrap}.share-row input{min-width:0}.variant img{object-fit:contain;background:#25261e}

#product-category{width:100%;padding:12px;background:#22241d;color:#e9e7df;border:1px solid #424538;border-radius:6px;font:inherit}

.contour-tools{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.contour-tools button{border:1px solid #73613d;border-radius:5px;padding:8px 10px;color:#d4c6a6;font-size:12px}.contour-tools button.active{background:var(--gold);color:#171814}.contour-tools button:disabled{opacity:.4}.contour-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.contour-actions button{font-size:12px}.contour-brush{font-size:12px;color:#b4b5aa}.contour-brush input{width:100%;accent-color:var(--gold);margin:8px 0}.headwear-crop-dialog canvas[aria-busy="true"]{opacity:.65;cursor:progress}
.headwear-crop-dialog{width:min(640px,calc(100vw - 24px));max-height:92dvh;overflow-y:auto}.headwear-crop-dialog canvas{display:block;max-width:100%;width:auto;height:auto;max-height:38dvh;margin:14px auto;touch-action:none;cursor:crosshair;border:1px solid #73613d;background:#fff}.headwear-type-label{display:block;margin:14px 0 8px}.headwear-crop-dialog select{width:100%;padding:12px;border:1px solid #73613d;border-radius:6px;background:#171814;color:#f1dba7;font:inherit}.headwear-crop-ranges{display:grid;grid-template-columns:1fr 1fr;gap:12px}.headwear-crop-ranges label{font-size:12px;color:#b4b5aa}.headwear-crop-ranges span{float:right}.headwear-crop-ranges input{display:block;width:100%;accent-color:var(--gold);margin-top:8px}.headwear-crop-dialog .crop-actions{margin-top:12px}#headwear-crop-error{color:#f1b5a7;font-size:13px}@media(max-width:520px){.headwear-crop-dialog{padding:24px 16px}.headwear-crop-dialog .muted{font-size:12px}.headwear-crop-dialog canvas{max-height:30dvh}.headwear-crop-dialog .crop-actions{grid-template-columns:1fr}.headwear-crop-dialog .crop-actions .primary{grid-row:1}}
#reference-processing{width:100%;padding:12px;background:#22241d;color:#eee;font:inherit;border:1px solid #424538;border-radius:6px}.file-item{grid-template-columns:72px minmax(0,1fr) auto}.file-item .file-actions{display:flex;flex-wrap:wrap;gap:6px;grid-column:2/-1}.file-item img{width:72px;height:84px;object-fit:contain}.headwear-crop-dialog{z-index:20}.headwear-crop-dialog [hidden]{display:none!important}

.dashboard{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px}.merchant-sidebar{position:sticky;top:24px;align-self:start;display:grid;gap:8px;border:1px solid #414031;background:#191b16;padding:20px 12px;border-radius:12px}.merchant-sidebar a{display:flex;gap:8px;align-items:center;padding:14px 12px;color:#b9b5a4;text-decoration:none;border-radius:8px}.merchant-sidebar a.active{color:#ead39d;background:#383121}.merchant-sidebar .role-label{font-size:10px;margin:0 0 12px}.merchant-pages{min-width:0}.merchant-recharge-page{padding:30px;border:1px solid #414031;border-radius:14px;background:#191b16}.recharge-card{margin-top:30px;padding:28px;background:#24251d;border-radius:12px;color:#c6b589}.recharge-card h2{font-size:42px;color:#ead39d}.merchant-pages .support-panel{margin:0}@media(max-width:760px){.dashboard{grid-template-columns:1fr;gap:18px}.merchant-sidebar{position:static;display:flex;flex-wrap:wrap;padding:8px}.merchant-sidebar .role-label{display:none}.merchant-sidebar a{padding:10px;font-size:13px}.merchant-recharge-page{padding:20px}}

body:has(.merchant-sidebar) main{max-width:1380px}.merchant-pages [hidden]{display:none!important}.merchant-pages .product-head{flex-wrap:wrap}.merchant-pages .share-row{min-width:0}.merchant-pages .share-row input{width:220px;max-width:100%}@media(max-width:1000px){.merchant-pages .share-row{width:100%}.merchant-pages .share-row input{flex:1}}

.recharge-balance-row{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}.recharge-balance-row h2{margin:20px 0}.recharge-options{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:12px}.recharge-options button{min-height:90px;border-color:#76613b;color:#e7cd92;background:#302c20}.recharge-options button:hover{background:#423820;border-color:#d7bb7c}.recharge-options b{display:block;font-size:23px;margin-bottom:8px}.recharge-options span{display:block;font-size:13px}@media(max-width:650px){.recharge-options{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

.product-quota{text-align:right;color:#d7bb7c;font-size:13px;padding-top:14px}.product-quota.low{color:#f0b773;font-weight:700}#merchant-quota-alert{line-height:1.8}#quota-dialog input{box-sizing:border-box}

/* Full-width creation action directly above the product collection. */
#new-product{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:0 0 16px;white-space:nowrap;border:1px solid #e9d39d;border-radius:12px;background:linear-gradient(120deg,#bc985b,#ead5a1 52%,#c6a56a);color:#292317;font-family:"Songti SC","SimSun",serif;font-size:18px;font-weight:500;letter-spacing:3px;box-shadow:0 6px 22px #b4934919}#new-product:hover{filter:brightness(1.06)}#new-product span{font-family:system-ui;font-size:23px;font-weight:300}.toolbar{display:block}.toolbar h1{font-family:"Songti SC","SimSun",serif;letter-spacing:1px;font-weight:500}.toolbar p{line-height:1.8}#merchant-quota-alert:empty{display:none}@media(max-width:760px){.toolbar{margin-bottom:18px}.toolbar h1{font-size:24px;margin:0 0 12px}.toolbar p{font-size:13px;margin:8px 0}.toolbar p.muted{font-size:12px;color:#aaa48e}#new-product{min-height:50px;font-size:17px;margin-bottom:12px;border-radius:10px}.empty{padding:40px 22px;line-height:1.8;font-size:14px;border-radius:12px}}
