*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;background:#f6f7f9;color:#20242a}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#fff;border-bottom:1px solid #e7e9ee}.brand{font-weight:700;font-size:18px;color:#111;text-decoration:none}.topbar nav{display:flex;gap:8px;flex-wrap:wrap}.topbar nav a,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:6px;border:1px solid #d8dde6;background:#fff;color:#172033;text-decoration:none;cursor:pointer;font-size:14px}.btn.primary{background:#1677ff;border-color:#1677ff;color:#fff}.btn.danger{background:#d9363e;border-color:#d9363e;color:#fff}.btn.muted{background:#eef1f5}.btn:disabled{opacity:.55;cursor:not-allowed}.container{max-width:1060px;margin:0 auto;padding:14px}.notice,.alert{padding:12px;border-radius:6px;background:#fff6d6;border:1px solid #ffe58f;margin:12px 0}.contact-row,.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.category-tabs{display:flex;gap:8px;overflow:auto;padding:8px 0}.category-tabs a{white-space:nowrap;padding:8px 12px;border-radius:20px;background:#fff;color:#333;text-decoration:none;border:1px solid #e3e5ea}.category-tabs a.active{background:#1677ff;color:#fff;border-color:#1677ff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{background:#fff;border:1px solid #e8ebf0;border-radius:8px;overflow:hidden}.product-img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#edf0f4}.card-body{padding:10px}.product-title{font-weight:700;line-height:1.3;min-height:38px}.muted{color:#6b7280}.price{font-size:18px;font-weight:700;color:#d4380d;margin:8px 0}.table-wrap{overflow:auto;background:#fff;border:1px solid #e8ebf0;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:10px;border-bottom:1px solid #eef0f4;text-align:left;vertical-align:top}th{background:#fafafa}.form{background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:14px;margin:12px 0}.field{margin-bottom:12px}.field label{display:block;margin-bottom:6px;font-weight:600}input,textarea,select{width:100%;padding:10px;border:1px solid #d8dde6;border-radius:6px;font:inherit;background:#fff}textarea{min-height:90px}.summary{background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:14px;margin:12px 0}.status{display:inline-block;padding:3px 8px;border-radius:12px;background:#edf2ff;color:#1554ad;font-size:13px}.admin-wrap{display:flex;min-height:100vh}.sidebar{width:190px;background:#162033;color:#fff;padding:16px;position:sticky;top:0;height:100vh}.sidebar a{display:block;color:#dce5f5;text-decoration:none;padding:10px;border-radius:6px;margin:3px 0}.sidebar a:hover{background:#25324a}.admin-main{flex:1;padding:18px;min-width:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat{background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:14px}.stat b{font-size:24px;display:block;margin-top:6px}.thumb{width:58px;height:58px;object-fit:cover;border-radius:6px;background:#edf0f4}.login-box{max-width:380px;margin:8vh auto;background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:20px}.pagination{display:flex;gap:8px;margin:12px 0}
@media(max-width:760px){.grid{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.admin-wrap{display:block}.sidebar{position:relative;width:100%;height:auto}.sidebar a{display:inline-block}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}table{min-width:680px}.container{padding:10px}}
.front-body{background:#eef2f7}.mobile-shell{max-width:430px;margin:0 auto;min-height:100vh;background:#f7f8fb;box-shadow:0 0 30px rgba(21,32,51,.10);position:relative}.wap-top{border:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);align-items:center;flex-direction:row}.wap-top .brand{display:flex;align-items:center;gap:8px;min-width:0}.wap-top .brand img{width:34px;height:34px;border-radius:8px;object-fit:cover}.wap-top .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wap-top nav a{border:0;background:#f0f4fa;border-radius:999px;min-height:32px;padding:6px 10px}.wap-container{padding:12px 12px 92px}.shop-hero{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px;border-radius:18px;background:linear-gradient(135deg,#182033,#2f6fed);color:#fff;min-height:150px}.shop-hero h1{font-size:25px;line-height:1.15;margin:6px 0}.shop-hero p{margin:0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.5}.hero-kicker{font-size:12px;color:#aee1ff}.hero-logo{width:74px;height:74px;border-radius:18px;object-fit:cover;background:#fff;padding:4px}.notice-card,.seller-card,.filter-panel{margin-top:12px;background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:13px;box-shadow:0 8px 20px rgba(20,30,50,.04)}.notice-card p{margin:6px 0 0;color:#687386;line-height:1.5}.seller-card{display:block}.seller-card>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center}.seller-card span{font-size:12px;color:#687386;text-align:right}.seller-card .contact-row{margin:10px 0 0}.seller-card .btn{flex:1;border-radius:10px}.filter-panel form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}.filter-panel label{grid-column:1/-1;font-weight:700}.filter-panel select,.filter-panel input{height:40px;border-radius:10px;background:#f8fafc}.category-tabs{position:sticky;top:61px;z-index:4;background:#f7f8fb;margin:0 -12px;padding:10px 12px}.category-tabs a{border:0;background:#fff;box-shadow:0 3px 12px rgba(20,30,50,.05)}.product-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:2px}.product-card{display:flex;gap:12px;background:#fff;border-radius:16px;padding:10px;border:1px solid #e8edf5;box-shadow:0 8px 20px rgba(20,30,50,.045)}.product-media{width:112px;height:112px;border-radius:14px;overflow:hidden;background:#eef2f7;display:flex;align-items:center;justify-content:center;color:#98a2b3;flex:0 0 auto}.product-media img{width:100%;height:100%;object-fit:cover}.product-info{min-width:0;flex:1;display:flex;flex-direction:column}.product-title{font-size:16px;min-height:0}.product-spec{font-size:12px;color:#6b7280;margin-top:4px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:8px}.product-meta span{font-size:12px;color:#687386}.product-meta strong{font-size:17px;color:#e5484d}.product-actions{display:flex;gap:8px;margin-top:8px}.product-actions .btn{flex:1;border-radius:10px;padding:7px 8px;min-height:34px}.float-tools{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);width:min(430px,100%);padding:0 14px;display:flex;justify-content:space-between;pointer-events:none;z-index:20}.float-btn,.float-cart{pointer-events:auto;border:0;background:#172033;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);border-radius:999px;text-decoration:none}.float-btn{width:42px;height:42px;font-size:18px}.float-cart{padding:12px 16px}.float-cart b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:5px;border-radius:10px;background:#ff4d4f;color:#fff}.drawer-mask{display:none;position:fixed;inset:0;background:rgba(12,18,32,.46);z-index:28}.drawer-mask.open{display:block}.cart-drawer,.product-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:min(430px,100%);max-height:78vh;background:#fff;border-radius:18px 18px 0 0;padding:16px;z-index:30;transition:.22s ease;overflow:auto}.cart-drawer.open,.product-sheet.open{transform:translate(-50%,0)}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.drawer-head button,.sheet-close{border:0;background:#eef2f7;border-radius:50%;width:34px;height:34px;font-size:20px}.mini-cart-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f7}.mini-cart-total{text-align:right;padding:12px 0}.product-sheet img{width:100%;max-height:260px;object-fit:cover;border-radius:14px;background:#eef2f7}.product-sheet h2{margin:12px 0 6px;font-size:20px}.product-sheet p{color:#687386;line-height:1.6}.sheet-row{display:flex;justify-content:space-between;align-items:center}.sheet-row strong{font-size:20px;color:#e5484d}.sheet-close{position:absolute;right:14px;top:14px}.sheet-placeholder{height:180px;border-radius:14px;background:#eef2f7;display:flex;align-items:center;justify-content:center;color:#98a2b3}.toast{position:fixed;left:50%;bottom:88px;transform:translate(-50%,10px);background:rgba(20,30,50,.92);color:#fff;padding:10px 14px;border-radius:999px;opacity:0;transition:.2s;z-index:50}.toast.show{opacity:1;transform:translate(-50%,0)}
.admin-wrap{background:#f3f5f8}.admin-main{max-width:none}.admin-main .form,.admin-main .table-wrap,.admin-main .summary{border-radius:6px;box-shadow:none}.drag-handle{cursor:grab;color:#687386;font-weight:700}.drag-row.dragging{opacity:.45}.sort-save-bar{display:flex;gap:10px;align-items:center;margin:10px 0}
@media(max-width:430px){.mobile-shell{box-shadow:none}.filter-panel form{grid-template-columns:1fr}.product-media{width:104px;height:104px}.shop-hero{border-radius:16px}.hero-logo{width:64px;height:64px}}

.wap-top{min-height:72px;padding:10px 14px}
.wap-top .brand{flex:1;max-width:calc(100% - 122px)}
.wap-top .brand img.site-logo-banner{display:block;width:100%;max-width:250px;height:48px;border-radius:0;object-fit:contain;object-position:left center;background:transparent;padding:0}
.shop-hero{min-height:188px;padding:22px;border-radius:18px;background:linear-gradient(135deg,#182746 0%,#264993 58%,#1f6cff 100%)}
.shop-hero>div:first-child{min-width:0;flex:1}
.hero-logo-box{width:96px;height:96px;border:1px solid rgba(255,255,255,.42);border-radius:22px;background:#fff;padding:8px;box-shadow:0 16px 34px rgba(6,24,80,.22);flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.hero-logo-square{width:100%;height:100%;object-fit:contain;border-radius:16px}
.setting-logo-preview{max-width:100%;object-fit:contain;border:1px solid #e8ebf0;border-radius:8px;background:#fff;padding:8px}
.setting-logo-banner-preview{width:360px;height:96px}
.setting-logo-square-preview{width:120px;height:120px}
@media(max-width:430px){.wap-top{min-height:68px}.wap-top .brand img.site-logo-banner{height:44px;max-width:230px}.shop-hero{min-height:188px;padding:22px}.hero-logo-box{width:92px;height:92px}}

.shop-hero{align-items:center}
.shop-hero h1{font-size:22px;line-height:1.22;margin:7px 0 8px;word-break:break-word}
.shop-hero p{font-size:14px;line-height:1.62;white-space:normal}
.hero-kicker{display:inline-flex;max-width:100%;padding:3px 8px;border:1px solid rgba(255,255,255,.28);border-radius:6px;font-size:13px;background:rgba(255,255,255,.08)}
.notice-card p{font-size:18px;line-height:1.65;white-space:normal}
.seller-card .contact-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.contact-icon-btn{display:flex;align-items:center;justify-content:center;height:46px;border:1px solid #d8dde6;border-radius:10px;background:#fff;text-decoration:none;color:#172033}
.contact-icon-btn.primary{background:#1677ff;border-color:#1677ff;color:#fff}
.contact-icon-btn img{display:block;width:28px;height:28px;object-fit:contain}
.contact-icon-btn span{font-size:13px;font-weight:700}
.user-bind-card{margin-top:12px;background:#fff8df;border:1px solid #ffd666;border-radius:8px;padding:13px}
.user-bind-card>div{display:flex;justify-content:space-between;gap:10px;align-items:center}
.user-bind-card span{font-size:13px;color:#6b7280;text-align:right}
.user-bind-card p{margin:8px 0 12px;line-height:1.55;color:#3f4653}
.filter-panel select,.filter-panel input{height:50px;line-height:24px;font-size:16px;padding:12px 14px}
.filter-panel .btn{height:50px;min-height:50px}
.product-sheet{top:50%;bottom:auto;transform:translate(-50%,-50%) scale(.96);width:min(390px,calc(100% - 32px));max-height:82vh;border-radius:18px;opacity:0;pointer-events:none}
.product-sheet.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
.product-sheet img{max-height:230px}
.auth-modal-mask{display:none;position:fixed;inset:0;background:rgba(12,18,32,.48);z-index:60;align-items:center;justify-content:center;padding:18px}
.auth-modal-mask.open{display:flex}
.auth-modal{width:min(360px,100%);background:#fff;border-radius:16px;padding:18px;box-shadow:0 18px 42px rgba(0,0,0,.22)}
.auth-modal h3{margin:0 0 8px;font-size:18px}
.auth-modal p{margin:0 0 14px;color:#5f6b7a;line-height:1.55}
.auth-modal .actions{margin:0;display:grid;grid-template-columns:1fr 88px}
.field input[type=checkbox]{width:auto;margin-right:6px}
.inline-check{display:inline-flex!important;align-items:center;margin-top:8px;font-weight:400!important}
.setting-app-icon-preview{width:54px;height:54px;object-fit:contain;border:1px solid #e8ebf0;border-radius:8px;background:#fff;padding:8px}
.page-actions{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 12px}
.page-actions .btn{border-radius:10px;background:#fff}
.order-card-list,.order-item-list{display:grid;gap:12px}
.order-card,.order-detail-card,.order-item-card{background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:14px;box-shadow:0 8px 20px rgba(20,30,50,.045)}
.order-line{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:7px 0;border-bottom:1px solid #f0f2f6}
.order-line:last-child{border-bottom:0}
.order-line span{color:#687386;flex:0 0 auto}
.order-line b,.order-line strong{font-weight:700;text-align:right;word-break:break-word}
.order-line strong{color:#e5484d}
.order-line .status{white-space:nowrap}
.order-detail-btn{width:100%;margin-top:12px;border-radius:10px}
.order-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.order-actions .btn{border-radius:10px}
.order-address{padding:8px 0}
.order-address span{display:block;color:#687386;margin-bottom:6px}
.order-address p{margin:0;line-height:1.65;word-break:break-word}
.section-title{font-size:18px;margin:16px 0 10px}
.order-item-card h3{font-size:16px;margin:0 0 8px;line-height:1.4;word-break:break-word}
.order-item-card p{margin:0 0 8px;color:#687386;line-height:1.5;word-break:break-word}
.lazy-product{display:none}
.lazy-product.visible{display:flex}
.load-more-sentinel{margin:14px 0 8px;text-align:center;color:#687386;font-size:13px;padding:12px;border-radius:12px;background:#fff;border:1px solid #e8edf5}
.load-more-sentinel.done{color:#98a2b3}
.qty-stepper{display:grid;grid-template-columns:34px 1fr 34px;gap:6px;margin-top:8px;align-items:center}
.qty-stepper button{height:34px;border:1px solid #d8dde6;border-radius:9px;background:#f8fafc;color:#172033;font-size:18px;font-weight:700}
.qty-stepper input{height:34px;text-align:center;border-radius:9px;padding:4px;font-weight:700}
.cart-item-img{width:100%;max-height:180px;object-fit:cover;border-radius:12px;background:#eef2f7;margin-bottom:10px}
.cart-qty-input{width:92px;text-align:center;font-weight:700}
.compact-list{display:grid;gap:10px}
.compact-card{background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:12px;box-shadow:0 6px 16px rgba(20,30,50,.04)}
.compact-head{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:start;margin-bottom:10px}
.compact-img{width:72px;height:72px;border-radius:10px;object-fit:cover;background:#eef2f7}
.compact-title{min-width:0}
.compact-title h3{font-size:15px;line-height:1.35;margin:0 0 5px;word-break:break-word}
.compact-title p{font-size:12px;line-height:1.45;margin:0;color:#687386;word-break:break-word}
.compact-title-only{margin-bottom:10px}
.compact-info{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.compact-info>div{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;padding:8px;min-width:0}
.compact-info span{display:block;font-size:12px;color:#687386;margin-bottom:3px}
.compact-info b,.compact-info strong,.compact-info em{font-style:normal;font-size:14px;line-height:1.35;word-break:break-word}
.compact-info strong{color:#e5484d}
.compact-full-btn{width:100%;margin-top:10px;border-radius:10px}
.compact-card .cart-qty-input{width:100%;height:34px;text-align:center;border-radius:8px;padding:4px}
@media(max-width:430px){.shop-hero h1{font-size:21px}.notice-card p{font-size:17px}.filter-panel form{grid-template-columns:1fr}.filter-panel select,.filter-panel input,.filter-panel .btn{width:100%}}
.radio-line{display:flex;align-items:center;gap:8px;margin:10px 0;font-weight:600}.radio-line input{width:auto}.form input[type=datetime-local]{margin-top:8px}.form h2{font-size:18px;margin:16px 0 10px}.form .muted{font-size:13px;margin:6px 0 12px}#order-note{resize:vertical}
.mini-cart-item{padding:11px 0;border-bottom:1px solid #eef2f7}.mini-cart-main,.mini-cart-sub,.mini-cart-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.mini-cart-main strong{display:block;font-size:14px;line-height:1.35}.mini-cart-main p{margin:3px 0 0;color:#687386;font-size:12px;line-height:1.35}.mini-cart-sub{margin-top:8px;color:#687386;font-size:12px}.mini-cart-sub b{color:#e5484d;font-size:14px}.mini-remove{border:0;background:#fff1f0;color:#d9363e;border-radius:999px;padding:6px 10px;white-space:nowrap}.mini-cart-controls{margin-top:9px;justify-content:flex-start}.mini-cart-controls button{width:34px;height:34px;border:1px solid #d8dde6;border-radius:10px;background:#f8fafc;font-size:18px;font-weight:700}.mini-cart-controls button:disabled{opacity:.45}.mini-cart-controls input{width:72px;height:34px;text-align:center;border-radius:10px;padding:4px;font-weight:700}
.admin-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:10px;margin:0 0 12px}.range-pills{display:flex;gap:6px;flex-wrap:wrap}.range-pills a{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border-radius:6px;background:#f3f5f8;color:#172033;text-decoration:none}.range-pills a.active{background:#1677ff;color:#fff}.inline-filter{display:flex;align-items:center;gap:8px;flex:1;min-width:520px}.inline-filter input{height:36px;min-width:150px}.inline-filter input[name=q]{min-width:210px}.compact-summary{padding:10px;margin:0 0 12px}.table-actions{white-space:nowrap}.admin-modal-mask{display:none;position:fixed;inset:0;background:rgba(12,18,32,.46);z-index:80;align-items:center;justify-content:center;padding:20px}.admin-modal-mask.open{display:flex}.admin-modal{width:min(720px,100%);background:#fff;border-radius:10px;box-shadow:0 18px 48px rgba(0,0,0,.24);padding:16px}.admin-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.admin-modal-head h2{font-size:20px;margin:0}.admin-modal-head button{width:34px;height:34px;border:0;border-radius:50%;background:#eef2f7;font-size:22px;cursor:pointer}.modal-grid-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-grid-form .field{margin:0}.field-wide{grid-column:1/-1}.modal-actions{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end;margin-top:2px}
.agent-detail-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #e8ebf0;border-radius:8px;padding:12px;margin-bottom:12px}.agent-detail-head>div{display:flex;align-items:center;gap:8px}.agent-detail-head b{font-size:18px}.agent-detail-head span{color:#687386}.agent-detail-head strong{font-size:16px;color:#1677ff}.agent-detail-head .btn{margin-left:auto}
.checkout-profile-alert{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.checkout-profile-alert .btn{border-radius:8px}
.checkout-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.checkout-section-title h2{margin:0}.checkout-section-title .btn{border-radius:8px;white-space:nowrap}
