:root{--yellow:#ffcf20;--ink:#202124;--muted:#777b82;--bg:#f5f6f7;--white:#fff;--red:#fa493f;--green:#197b50;--shadow:0 8px 28px rgba(32,33,36,.08)}
*{box-sizing:border-box}
html{background:var(--bg);font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink)}
body{margin:0;min-width:320px;padding-bottom:150px;background:var(--bg)}
button{font:inherit}
.topbar{position:sticky;top:0;z-index:20;display:flex;gap:12px;align-items:center;padding:12px 16px;background:var(--yellow)}
.location{display:flex;align-items:center;gap:5px;font-weight:700;white-space:nowrap}.pin{font-size:10px}.chevron{font-size:18px}
.search{height:38px;flex:1;display:flex;align-items:center;gap:7px;border:0;border-radius:20px;padding:0 14px;color:#8b8b8b;background:#fff;text-align:left}
main{max-width:780px;margin:auto}
.hero{margin:0 12px;padding:25px 24px;min-height:174px;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 24px 24px;background:linear-gradient(135deg,#24282d 0%,#101214 68%);color:#fff;overflow:hidden}
.eyebrow{margin:0 0 8px;color:var(--yellow);font-size:13px;font-weight:700}.hero h1{margin:0;font-size:27px;line-height:1.28}.hero-note{margin:12px 0 0;color:#cfd2d4;font-size:12px}.cold-box{width:88px;height:88px;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:linear-gradient(145deg,#425260,#1c2227);box-shadow:inset 0 0 24px rgba(117,205,255,.16);font-size:45px;color:#c5edff;transform:rotate(7deg)}
.store-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 12px 0}.store-tab{height:58px;display:flex;align-items:center;justify-content:center;gap:10px;border:2px solid transparent;border-radius:16px;background:#fff;color:#555;font-weight:700;box-shadow:0 3px 12px rgba(0,0,0,.04)}.store-tab.active{border-color:var(--yellow);color:#171717;background:#fffdf1}.store-logo{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:#fff;font-weight:900}.store-logo.sam{background:#075699}.store-logo.hema{background:#e53935}
.benefits{margin:12px;display:grid;grid-template-columns:repeat(3,1fr);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.benefits div{padding:14px 8px;text-align:center;position:relative}.benefits div+div:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:1px;background:#eee}.benefits strong,.benefits span{display:block}.benefits strong{font-size:13px}.benefits span{margin-top:5px;color:#999;font-size:10px;line-height:1.35}
.product-section{padding:10px 12px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:3px 2px 12px}.section-title h2{margin:0;font-size:21px}.section-title p{margin:5px 0 0;color:#9a9a9a;font-size:11px}.section-title button{border:0;background:none;color:#777;font-size:12px}.status{padding:40px 15px;text-align:center;color:#999;background:#fff;border-radius:16px}.status.error{color:#b52d25;background:#fff0ef}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.045)}.image-wrap{position:relative;aspect-ratio:1/1;background:linear-gradient(145deg,#f4f4f4,#e8eaec)}.product-image{width:100%;height:100%;display:block;object-fit:cover}.product-image[src=""]{visibility:hidden}.temperature-tag{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:8px;background:rgba(0,0,0,.64);color:#fff;font-size:10px}.product-info{padding:11px}.product-name{margin:0;height:42px;overflow:hidden;font-size:15px;line-height:21px}.product-subtitle{margin:5px 0 0;height:17px;overflow:hidden;color:#8b8b8b;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.sku-name{margin:6px 0 0;color:#a56b00;font-size:11px}.product-bottom{margin-top:10px;display:flex;align-items:end;justify-content:space-between}.price{color:var(--red)}.price small{font-size:12px}.price strong{font-size:20px}.price .unit{margin-left:3px;color:#aaa;font-size:10px}.add-button{width:31px;height:31px;border:0;border-radius:50%;background:var(--yellow);font-size:22px;font-weight:700;line-height:1}
.catalog{display:grid;grid-template-columns:94px minmax(0,1fr);min-height:420px;border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}.category-menu{background:#f4f5f7}.category-menu button{width:100%;min-height:58px;padding:9px 7px;border:0;border-left:4px solid transparent;background:transparent;color:#62666c;font-size:13px;line-height:1.35}.category-menu button.active{border-left-color:var(--red);background:#fff;color:var(--red);font-weight:800}.catalog-content{min-width:0;padding:0 11px 18px}.category-group{padding-top:15px;scroll-margin-top:72px}.category-group-header{display:flex;justify-content:space-between;align-items:center;margin:0 2px 10px}.category-group-header h3{margin:0;font-size:16px}.category-group-header span{color:#999;font-size:11px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{min-width:0;overflow:hidden;border-radius:13px;background:#fff;border:1px solid #f0f0f0}.image-wrap{position:relative;aspect-ratio:1/1;background:linear-gradient(145deg,#f6f7f8,#e9ecef)}.image-wrap:after{content:"待拍照";position:absolute;inset:0;display:grid;place-items:center;color:#b3b6ba;font-size:11px}.product-image{position:relative;z-index:1;width:100%;height:100%;display:block;object-fit:cover}.product-image:not([src]),.product-image[src=""]{display:none}.temperature-tag{z-index:2;position:absolute;top:6px;left:6px;padding:3px 6px;border-radius:7px;background:rgba(0,0,0,.64);color:#fff;font-size:9px}.product-info{padding:8px}.product-name{margin:0;height:36px;overflow:hidden;font-size:13px;line-height:18px}.product-subtitle{display:none}.sku-name{margin:4px 0 0;overflow:hidden;color:#8a6a2a;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.product-bottom{margin-top:7px;display:flex;align-items:end;justify-content:space-between}.price{min-width:0;color:var(--red)}.price small{font-size:10px}.price strong{font-size:16px}.price .unit{display:block;margin:1px 0 0;color:#aaa;font-size:9px}.add-button{width:27px;height:27px;flex:0 0 auto;border:0;border-radius:50%;background:var(--yellow);font-size:19px;font-weight:700;line-height:1}
.bottom-nav{position:fixed;z-index:25;left:0;right:0;bottom:0;height:66px;padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);border-top:1px solid #ececec}.bottom-nav button{border:0;background:transparent;color:#60646b}.bottom-nav span,.bottom-nav b{display:block}.bottom-nav span{font-size:20px;line-height:25px}.bottom-nav b{font-size:11px}.bottom-nav button.active{color:var(--red)}
.cart-bar{position:fixed;z-index:30;left:max(12px,calc(50% - 378px));right:max(12px,calc(50% - 378px));bottom:calc(74px + env(safe-area-inset-bottom));height:58px;align-items:center;border-radius:30px;background:#22272b;color:#fff;box-shadow:0 12px 36px rgba(0,0,0,.25);overflow:visible}.cart-bar:not([hidden]){display:flex}.cart-icon{position:relative;width:54px;height:54px;margin-left:4px;border:0;border-radius:50%;background:var(--yellow);font-size:23px}.cart-icon b{position:absolute;right:-1px;top:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;line-height:20px}.cart-total{flex:1;padding-left:13px}.cart-total span{display:block;color:#aaa;font-size:10px}.cart-total strong{font-size:19px}.checkout{align-self:stretch;width:105px;border:0;border-radius:0 30px 30px 0;background:var(--yellow);font-weight:800;color:#222}
.checkout-backdrop{position:fixed;z-index:60;inset:0;background:rgba(0,0,0,.46);display:flex;align-items:flex-end;justify-content:center}.checkout-backdrop[hidden]{display:none}.checkout-sheet{width:min(760px,100%);max-height:94vh;overflow:auto;border-radius:24px 24px 0 0;background:var(--bg);box-shadow:0 -18px 50px rgba(0,0,0,.22)}.checkout-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:#fff;border-bottom:1px solid #eee}.checkout-head p{margin:0;color:#999;font-size:10px}.checkout-head h2{margin:3px 0 0;font-size:20px}.checkout-head button{width:34px;height:34px;border:0;border-radius:50%;background:#f0f1f3;font-size:22px}.checkout-sheet form{padding:12px 12px calc(22px + env(safe-area-inset-bottom))}.checkout-cart,.checkout-block,.order-summary{margin-bottom:11px;border-radius:16px;background:#fff;box-shadow:var(--shadow)}.checkout-cart{padding:5px 14px}.checkout-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 0}.checkout-line+.checkout-line{border-top:1px solid #eee}.checkout-line h4{margin:0;font-size:13px}.checkout-line p{margin:5px 0 0;color:#888;font-size:10px}.quantity-control{display:flex;align-items:center;gap:9px}.quantity-control button{width:28px;height:28px;border:0;border-radius:50%;background:#f0f1f3;font-size:17px}.quantity-control button:last-child{background:var(--yellow)}.quantity-control b{min-width:18px;text-align:center;font-size:13px}.checkout-block{padding:15px}.checkout-block h3{margin:0 0 12px;font-size:15px}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.checkout-block label>span,.block-input>span{display:block;margin-bottom:5px;color:#666;font-size:11px}.checkout-block input,.checkout-block select,.checkout-block textarea{width:100%;border:1px solid #dfe1e4;border-radius:11px;padding:10px;background:#fff;font:inherit;font-size:13px}.checkout-block textarea{resize:vertical}.delivery-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.delivery-options label{display:flex;gap:7px;padding:10px;border:1px solid #e4e5e7;border-radius:12px}.delivery-options label.selected{border-color:#e5b500;background:#fff9df}.delivery-options label.disabled{opacity:.45}.delivery-options input{width:auto;margin:2px 0 0}.delivery-options strong,.delivery-options small{display:block}.delivery-options strong{font-size:12px}.delivery-options small{margin-top:3px;color:#888;font-size:9px;line-height:1.35}.block-input{display:block;margin-top:11px}.block-input small{display:block;margin-top:5px;color:#8a6a2a;font-size:10px;line-height:1.45}.order-summary{padding:14px}.order-summary>p{margin:0;color:#888;font-size:12px}.summary-row{display:flex;justify-content:space-between;margin-top:8px;color:#666;font-size:12px}.summary-row:first-child{margin-top:0}.summary-total{display:flex;align-items:end;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid #eee}.summary-total span{font-size:13px}.summary-total strong{color:var(--red);font-size:22px}.checkout-message{min-height:18px;margin:6px 2px;color:#c13d35;font-size:11px}.submit-order{width:100%;height:48px;border:0;border-radius:14px;background:var(--yellow);font-weight:800}.submit-order:disabled{opacity:.55}.order-success{padding:52px 24px calc(46px + env(safe-area-inset-bottom));text-align:center}.order-success>span{width:58px;height:58px;display:grid;place-items:center;margin:auto;border-radius:50%;background:#dff4e9;color:var(--green);font-size:30px}.order-success h2{margin:16px 0}.order-success p{margin:7px 0;color:#666}.order-success p strong{color:#222}.order-success small{display:block;margin:16px auto;max-width:340px;color:#888;line-height:1.6}.order-success button{border:0;border-radius:12px;padding:11px 34px;background:var(--yellow);font-weight:800}body.modal-open{overflow:hidden}
@media(min-width:680px){.catalog{grid-template-columns:130px minmax(0,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.hero{margin-top:12px;border-radius:24px}.topbar{border-radius:0 0 18px 18px}}
@media(max-width:560px){.checkout-grid,.delivery-options{grid-template-columns:1fr}.delivery-options label{align-items:center}.checkout-sheet{max-height:97vh}.checkout-head{padding:14px 15px}}
