.storefront{background:#f5f7f1;color:#203329;min-height:100vh}
.store-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px max(4vw,16px);background:#fff;border-bottom:1px solid #e2e8df}
.store-brand{display:flex;align-items:center;gap:10px;font-size:19px}.store-brand img{width:38px;height:38px;object-fit:cover;border-radius:50%}
.store-header nav{gap:5px;flex-wrap:wrap}.store-header button{padding:7px 11px}
.store-main{width:min(1120px,94vw);margin:22px auto}.store-hero{padding:clamp(24px,6vw,72px);background:linear-gradient(125deg,#e9efd9,#d1e9d9);border-radius:24px}.store-hero h1{font-size:clamp(28px,6vw,60px);margin:.2em 0}.store-catalog{padding:26px 0}.store-catalog h2{margin:0 0 12px}.store-grid{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,45vw),1fr));gap:14px}
.store-product{padding:0;overflow:hidden;border-radius:16px;background:#fff;color:inherit;text-align:left;box-shadow:0 3px 12px #22382410}.store-product:hover{background:#fff;box-shadow:0 5px 18px #22382420}.store-product img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#e9eee4}.store-product>span{display:grid;gap:6px;padding:13px}.store-product small{color:#63766a}.store-price{color:#b64430;font-size:20px;font-weight:750}
.store-footer{text-align:center;padding:24px;color:#63766a;white-space:pre-wrap}.storefront dialog{border:0;border-radius:20px;width:min(560px,94vw);max-height:90dvh;padding:20px;color:inherit;background:#fff}.storefront dialog::backdrop{background:#12261db0}.store-dialog-head{display:flex;justify-content:flex-end}.store-detail-cover{width:min(100%,360px);max-height:45vh;object-fit:contain;border-radius:12px}.store-detail{margin-top:20px;white-space:pre-wrap;overflow-wrap:anywhere}.store-detail img{width:100%;display:block;margin:12px 0;border-radius:8px}.store-order{padding:12px 0;border-bottom:1px solid #dce4db;overflow-wrap:anywhere}.store-order small{display:block;color:#63766a}.store-order .pill{margin-left:6px}#store-notice{position:fixed;z-index:2147483640;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;padding:10px 16px;background:#203329;color:#fff;border-radius:12px}
.shop-admin-thumb{width:62px;height:62px;object-fit:cover;border-radius:8px}.shop-detail-block{display:flex;align-items:flex-start;gap:8px;padding:10px;background:#f4f8f2;border-radius:8px}.shop-detail-block img{max-width:min(75%,320px);max-height:280px;object-fit:contain}.shop-editable{flex:1;min-height:42px;outline-offset:3px;white-space:pre-wrap;overflow-wrap:anywhere}.shop-editable.heading{font-size:1.2em;font-weight:700}.shop-editable:empty::before{content:'点击这里输入内容';color:#7d8a80}.shop-upload-detail{display:inline-flex;position:relative;overflow:hidden;cursor:pointer;background:#e7f0e8;border-radius:8px;padding:8px 12px}.shop-upload-detail input{position:absolute;inset:0;opacity:0;cursor:pointer}#internal-shop-fields[hidden]{display:none}
@media(max-width:600px){.store-header{padding:10px}.store-brand{font-size:15px}.store-brand img{width:30px;height:30px}.store-header button{font-size:12px;padding:6px}.store-grid{gap:9px}}
#store-dialog-notice{position:sticky;bottom:0;padding:10px;background:#e8f2ea;color:#203329;border-radius:8px}
.store-banners{position:relative;overflow:hidden;border-radius:20px;margin-bottom:14px;background:#e6eee2}
.store-banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.store-banner-track img{flex:0 0 100%;width:100%;aspect-ratio:3/1;object-fit:cover;scroll-snap-align:start}
.store-banner-prev,.store-banner-next{position:absolute;top:50%;transform:translateY(-50%);padding:4px 11px;border-radius:50%;background:#253a2e80;color:#fff}
.store-banner-prev{left:8px}.store-banner-next{right:8px}
.store-main:has(.store-banners:not([hidden])) .store-hero{display:none}
#store-categories{flex-wrap:nowrap;overflow:auto;padding:3px 2px 7px;align-items:stretch;gap:14px}
#store-categories button{display:flex;flex:0 0 68px;flex-direction:column;align-items:center;gap:5px;padding:4px;background:transparent;color:#355443;font-size:12px;white-space:normal;overflow-wrap:anywhere;text-align:center}
#store-categories button:not(.secondary){font-weight:750;color:#17482e}
#store-categories img,.store-category-icon{width:50px;height:50px;object-fit:cover;border-radius:15px;background:#e5efe2;color:#416b53;display:grid;place-items:center;font-size:19px}
#store-categories button:not(.secondary) img,#store-categories button:not(.secondary) .store-category-icon{outline:2px solid #6da683;outline-offset:2px}
.store-product img{object-fit:contain;background:#f3f6ef}.store-product>span{white-space:normal;overflow-wrap:anywhere}.store-product strong{display:block;line-height:1.35}.store-grid{grid-template-columns:repeat(auto-fill,minmax(min(190px,42vw),1fr))}
.store-payment{border:1px solid #dbe6db;border-radius:12px;padding:10px}.store-payment label{display:flex;align-items:center;gap:8px;margin:6px 0}.store-payment input{width:auto}
.shop-banner-preview{width:140px}.shop-banner-preview img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:8px}
@media(max-width:600px){.store-main{margin:12px auto}.store-catalog{padding-top:8px}.store-header{flex-wrap:wrap}.store-banner-track img{aspect-ratio:2/1}.store-product>span{padding:9px}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.storefront{background:#f4f4f4;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
.store-searchbar{position:sticky;top:0;z-index:10;background:#fff;padding:9px max(12px,calc((100vw - 1120px)/2));border-bottom:1px solid #eee}
.store-search{display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:22px;background:#f3f3f3;color:#727272;font-size:21px}
.store-search input{background:transparent;border:0;box-shadow:none;min-width:0;padding:9px 0;color:#262626;font-size:14px}
.store-search:focus-within{outline:2px solid #ff6a4d;outline-offset:1px}
.store-grid{gap:10px}.store-product{border-radius:7px;box-shadow:none;background:#fff;color:#242424;display:flex;flex-direction:column;align-items:stretch}
.store-product img{object-fit:contain;background:#f8f8f8}.store-product>span{display:flex;flex-direction:column;flex:1;padding:8px;gap:8px}
.store-product strong{font-size:13px;font-weight:500;line-height:1.42;min-height:2.84em}
.store-product-meta{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap;margin-top:auto}.store-product .store-price{color:#fa5134;font-size:14px}.store-product small{font-size:11px;color:#888}
#store-categories{scroll-margin-top:58px}#store-categories:empty{display:none}
.store-bottom-nav{position:fixed;inset:auto 0 0;z-index:100;background:#fff;border-top:1px solid #e8e8e8;box-shadow:0 -3px 12px #0000000a;display:grid;grid-template-columns:repeat(4,1fr);padding:4px 0 calc(4px + env(safe-area-inset-bottom))}
.store-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;background:none;color:#808080;border-radius:0;font-size:11px;padding:4px;min-height:46px}
.store-bottom-nav button.active{color:#fa5134}.store-bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
@media(max-width:600px){.store-main{width:auto;margin:9px 8px}.store-grid{gap:8px}.store-banners{border-radius:10px}.store-product>span{padding:7px}}
.store-bottom-nav{grid-template-columns:repeat(3,1fr)}
.store-region-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.store-region-fields select{padding:9px 5px;font-size:13px}
.store-order-filter{margin:0 0 12px}.store-order{margin:10px 0;padding:13px;border:1px solid #e6ebe4;border-radius:12px;background:#fbfcfa;display:flow-root}.store-order strong{font-size:15px}.store-order small{margin-top:8px;font-size:11px}.store-order p{margin:8px 0 0;font-size:13px;color:#526257}.store-order-status{float:right;margin:0 0 4px 8px}.store-order-status.unpaid{background:#fff1e2;color:#a95223}.store-order-status.shipped{background:#e8f0ff;color:#36578d}
.store-order{margin:12px 0;padding:12px;background:#fff;border-radius:12px;border:1px solid #eee}
.store-order-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin-bottom:10px;font-size:12px;color:#555}
.store-order-head strong{font-size:12px;overflow-wrap:anywhere;color:#242424}.store-order-head .store-order-status{float:none;white-space:nowrap;color:#dc5527;margin:0;background:none;font-weight:700}
.store-order-product{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:9px;align-items:start}
.store-order-product img,.store-order-placeholder{width:68px;height:68px;object-fit:contain;background:#f5f5f5;border-radius:7px}.store-order-placeholder{display:grid;place-items:center;color:#888}
.store-order-name{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.store-order-amount{text-align:right}.store-order-amount strong{font-size:13px}.store-order-amount small{margin-top:3px}
.store-order-delivery{border-top:1px solid #f0f0f0;margin-top:10px;padding-top:3px}
.store-order-total{display:flex;justify-content:space-between;gap:8px;margin-top:9px;font-size:12px;color:#5d5d5d}.store-order-total strong{color:#242424}
.store-order-date{display:block;margin-top:8px;text-align:right;font-size:11px;color:#757575}
.store-order-pay{margin-top:9px;justify-content:flex-end}.store-order-pay button{padding:6px 10px;font-size:12px}.store-order-pay span{font-size:12px;color:#815b2c}
