*{box-sizing:border-box}
body{margin:0;background:#f5f6f8;color:#202124;font-family:Arial,"Noto Sans",sans-serif}
.top{height:66px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10;box-shadow:0 1px 8px #00000012}
.brand{display:flex;align-items:baseline;gap:10px}.brand strong{font-size:25px;letter-spacing:.3px}.brand span{font-size:14px;color:#666}
.lang{display:flex;align-items:center;gap:6px}.lang button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:7px 11px;cursor:pointer;font-size:14px}.lang button:hover{border-color:#1677ff}.lang button.active{background:#1677ff;color:#fff;border-color:#1677ff}
.hero{background:#fff;border-bottom:1px solid #eee}.heroInner{max-width:1180px;margin:auto;text-align:center;padding:42px 18px 36px}
.eyebrow{font-weight:800;letter-spacing:2px;font-size:14px;color:#777}.hero h1{margin:7px 0 5px;font-size:32px}.hero h2{margin:0;color:#666;font-size:18px;font-weight:500}
.searchBox{max-width:720px;margin:25px auto 0;border:1px solid #ddd;border-radius:13px;height:52px;display:flex;align-items:center;padding:0 16px;background:#fff}.searchBox span{font-size:26px;color:#777}.searchBox input{border:0;outline:0;width:100%;font-size:16px;padding-left:10px}
main{max-width:1180px;margin:auto;padding:26px 18px 60px}.sectionTitle,.sectionHead{display:flex;align-items:end;justify-content:space-between;gap:10px}.sectionTitle h2,.sectionHead h2{margin:0 0 4px}.sectionTitle span,.sectionHead span{color:#777}.categories{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 32px}.cat{border:1px solid #ddd;background:#fff;border-radius:10px;padding:10px 14px;cursor:pointer}.cat.active{border-color:#222;font-weight:700}.subcats{display:flex;flex-wrap:wrap;gap:7px;width:100%;padding:0 0 4px 4px}.subcat{border:1px dashed #ccc;background:#fafafa;border-radius:8px;padding:8px 11px;cursor:pointer}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px;margin-top:17px}.card{background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 1px 6px #0000000c;cursor:pointer;transition:transform .12s}.card:hover{transform:translateY(-2px)}.card img{width:100%;aspect-ratio:1;object-fit:cover;background:#eee}.body{padding:13px}.name{font-weight:750;font-size:16px}.kmName{font-size:13px;color:#777;margin-top:4px}.meta{font-size:13px;color:#666;margin-top:8px;line-height:1.6}.price{font-size:18px;font-weight:800;margin-top:7px}.stock{font-size:13px;color:#666;margin-top:7px}
.overlay{position:fixed;inset:0;background:#0008;z-index:30;display:flex;align-items:center;justify-content:center;padding:18px}.hidden{display:none}.detail{position:relative;background:#fff;border-radius:16px;max-width:920px;width:100%;max-height:92vh;overflow:auto;padding:22px}.close{position:absolute;right:13px;top:8px;border:0;background:#fff;font-size:30px;cursor:pointer}.detailGrid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:26px}.detailImage img{width:100%;border-radius:12px;background:#eee}.code{color:#777;font-size:13px}.detail h2{margin:8px 0 3px}.info{line-height:1.9;margin-top:15px}.retail{font-size:25px;font-weight:800;margin:15px 0}.tier{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:9px 0}
@media(max-width:650px){.top{padding:0 14px}.hero h1{font-size:25px}.detailGrid{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card img{aspect-ratio:1}.body{padding:10px}.name{font-size:14px}}

.loginBox{max-width:420px;padding:28px}.loginBox input{display:block;width:100%;margin:10px 0;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:16px}.loginBtn{width:100%;background:#1677ff;color:#fff;border:0;border-radius:8px;padding:12px;font-size:16px}.small{font-size:13px;color:#777}.memberBadge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eaf3ff;color:#1677ff;font-size:12px;margin-right:6px}

/* V1.7.1 compact category accordion */
.catGroup{margin-bottom:6px}.catRow{display:flex;align-items:center;gap:4px}.catToggle{width:28px;height:32px;padding:0;border:1px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.catArrow{font-size:22px;line-height:1;display:inline-block;transform:rotate(0deg);transition:transform .15s}.catArrow.open{transform:rotate(90deg)}.subcats{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 7px 10px;padding-left:10px;border-left:2px solid #eee}.catRow>.cat{flex:0 1 auto}


/* V1.7.2 Mobile First */
html{scroll-behavior:smooth}body{-webkit-text-size-adjust:100%;overflow-x:hidden}.card img{display:block}.loadMore{text-align:center;padding:18px;color:#777;font-size:13px}.loadMoreBtn{border:1px solid #1677ff;background:#fff;color:#1677ff;border-radius:9px;padding:10px 16px;font:inherit;cursor:pointer}.loadMoreBtn:hover{background:#eef6ff}.scrollSentinel{height:1px}.catGroup{min-width:0}.catRow{max-width:100%}
@media(max-width:650px){
  .top{height:58px;padding:0 10px;gap:8px}.brand strong{font-size:20px}.brand span{display:none}.lang{gap:3px}.lang button{padding:6px 7px;font-size:12px;border-radius:7px}.lang #memberState{display:none}.lang button:first-of-type{font-size:11px;padding:6px 6px}
  .heroInner{padding:24px 12px 20px}.eyebrow{font-size:11px}.hero h1{font-size:23px;line-height:1.25;margin:6px 0}.hero h2{font-size:14px;line-height:1.4}.searchBox{height:46px;margin:17px auto 0;border-radius:12px;padding:0 12px}.searchBox span{font-size:22px}.searchBox input{font-size:15px}
  main{padding:16px 10px 45px}.sectionTitle,.sectionHead{align-items:center}.sectionTitle h2,.sectionHead h2{font-size:20px}.sectionTitle span,.sectionHead span{font-size:12px}.categories{gap:7px;margin:12px 0 24px}.cat{padding:8px 10px;border-radius:9px;font-size:13px}.catToggle{width:28px;height:31px}.subcats{gap:6px;margin-left:6px;padding-left:8px}.subcat{padding:7px 9px;font-size:12px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.card{border-radius:10px}.card img{aspect-ratio:1/1}.body{padding:9px}.name{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.kmName{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{font-size:11px;line-height:1.45;margin-top:6px}.price{font-size:17px;margin-top:6px}.stock{font-size:11px;margin-top:5px}.small{font-size:10px}
  .overlay{padding:8px;align-items:flex-end}.detail{border-radius:16px 16px 0 0;max-height:92vh;padding:16px}.detailGrid{grid-template-columns:1fr;gap:14px}.detailImage img{max-height:48vh;object-fit:contain}.detail h2{font-size:20px}.retail{font-size:22px;margin:10px 0}.info{font-size:13px;line-height:1.7}.tier{font-size:13px;padding:8px 0}.close{right:9px;top:5px}
  .loginBox{max-width:none;width:100%;border-radius:16px 16px 0 0;padding:22px 18px}.loginBox input{font-size:16px}
}
@media(min-width:651px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));}}

/* V1.7.3 Mobile First refinement */
@media(max-width:650px){
.top{min-height:56px;height:auto;padding:7px 8px;align-items:center}.brand{min-width:0;flex:1;overflow:hidden}.brand strong{font-size:20px;white-space:nowrap}.brand span{display:none!important}.lang{flex:0 0 auto;gap:3px}.lang #memberState{display:none!important}.lang #memberBtn{font-size:0;padding:7px 8px;min-width:38px}.lang #memberBtn:after{content:'会员';font-size:12px}.lang button{min-height:34px;padding:6px 8px;font-size:12px;white-space:nowrap}
.heroInner{padding:20px 12px 18px}.hero h1{font-size:22px;line-height:1.35;word-break:break-word}.hero h2{font-size:13px}.searchBox{margin-top:14px}
main{padding:14px 10px 42px}.categorySection{margin-bottom:22px}.sectionTitle{display:block}.sectionTitle h2{font-size:19px;margin-bottom:4px}.sectionTitle span{font-size:12px}.categories{display:block;margin:10px 0 22px}.categories>.cat{display:block;width:100%;text-align:left;margin-bottom:7px}.categories>.catGroup{display:block;width:100%;margin:0 0 7px!important}.categories .catRow{width:100%;display:flex;align-items:center;gap:6px}.categories .catRow>.cat{flex:1 1 auto;width:auto;min-width:0;text-align:left;margin:0;min-height:42px}.categories .catToggle{flex:0 0 42px;width:42px;height:42px}.categories .subcats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0 8px 0;padding:7px 0 2px 10px;border-left:2px solid #eee}.categories .subcat{width:100%;min-height:38px;padding:7px 8px;font-size:12px;line-height:1.25}.sectionHead{margin-top:4px}.sectionHead h2{font-size:19px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card img{aspect-ratio:1/1;object-fit:cover}
}
@media(max-width:360px){.lang #memberBtn{display:none}.lang button{padding:6px}.brand strong{font-size:19px}.grid{gap:6px}.body{padding:8px}.name{font-size:13px}}

/* V1.8 Mobile category density */
@media(max-width:650px){
  .categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 22px;align-items:start}
  .categories>.cat{display:block;width:100%;text-align:left;margin:0;min-height:42px}
  .categories>.cat:first-child{grid-column:1 / -1}
  .categories>.catGroup{display:block;width:100%;margin:0!important;min-width:0}
  .categories>.catGroup.expanded{grid-column:1 / -1}
  .categories .catRow{width:100%;display:flex;align-items:center;gap:5px}
  .categories .catRow>.cat{flex:1 1 auto;width:auto;min-width:0;text-align:left;margin:0;min-height:42px;padding:8px 9px}
  .categories .catToggle{flex:0 0 38px;width:38px;height:42px}
  .categories .subcats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0 1px 0;padding:7px 0 2px 8px;border-left:2px solid #eee}
  .categories .subcat{width:100%;min-height:38px;padding:7px 7px;font-size:11.5px;line-height:1.25}
}
@media(max-width:360px){
  .categories{gap:6px}.categories .catRow>.cat{min-height:40px}.categories .catToggle{flex-basis:36px;width:36px;height:40px}.categories .subcats{gap:5px}.categories .subcat{min-height:36px;font-size:11px}
}


/* V1.8 Mobile image performance */
.card img{content-visibility:auto;contain-intrinsic-size:480px 480px}
@media(max-width:650px){.card img{aspect-ratio:1/1;width:100%;height:auto}.detailImage img{width:100%;height:auto;max-width:100%}}


/* V5.2 storefront framework */
.hero{background:linear-gradient(180deg,#f7fbff,#fff)}
.heroInner{padding-top:38px;padding-bottom:28px}
.quickLinks{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:16px auto 0;max-width:900px}
.quickLinks button{border:1px solid #e3e8ef;background:#fff;border-radius:999px;padding:7px 13px;cursor:pointer;color:#333}.quickLinks button:hover{border-color:#1677ff;color:#1677ff}
.categoryLayout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;margin-top:16px}.categorySide{border:1px solid #eee;border-radius:12px;background:#fff;padding:8px;height:max-content;position:sticky;top:78px}.sideCategories{display:flex;flex-direction:column;gap:3px}.sideCat{display:flex;align-items:center;justify-content:space-between;border:0;background:#fff;border-radius:8px;padding:10px 11px;text-align:left;cursor:pointer;font-size:14px}.sideCat span{color:#999;font-size:11px}.sideCat:hover,.sideCat.active{background:#eef6ff;color:#1677ff;font-weight:700}.categoryMain{min-width:0}.categoryMain .categories{margin-top:0}.productSection{margin-top:30px}.card{border:1px solid #f0f0f0}.card .price{color:#111}.card:hover{box-shadow:0 8px 24px #00000012}footer{border-top:1px solid #eee;padding:28px 18px 45px;text-align:center;color:#888;font-size:12px;line-height:1.8}
@media(max-width:850px){.categoryLayout{grid-template-columns:1fr}.categorySide{position:static}.sideCategories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.sideCat{border:1px solid #eee;padding:9px;font-size:12px}.categoryMain .categories{display:none}.productSection{margin-top:22px}}
@media(max-width:650px){.quickLinks{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.quickLinks button{white-space:nowrap}.sideCategories{grid-template-columns:repeat(2,minmax(0,1fr))}.categoryLayout{gap:8px}.heroInner{padding-top:20px}}


/* V5.5 product detail framework */
.breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 12px;color:#777;font-size:13px}.breadcrumb button{border:0;background:transparent;padding:0;color:#1677ff;cursor:pointer;font-size:13px}.breadcrumb strong{color:#333}.detailThumbs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.thumb{width:58px;height:58px;padding:2px;border:1px solid #ddd;border-radius:8px;background:#fff;cursor:pointer;overflow:hidden}.thumb.active{border:2px solid #1677ff;padding:1px}.thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px}.imageHint{text-align:center;color:#888;font-size:12px;margin-top:7px}.description{margin-top:14px;line-height:1.7;color:#555;white-space:pre-wrap}.detailImage{min-width:0}
@media(max-width:650px){.breadcrumb{font-size:12px;margin-bottom:9px}.breadcrumb button{font-size:12px}.thumb{width:52px;height:52px}.detailThumbs{margin-bottom:7px}.imageHint{font-size:11px}}


/* V5.5 product detail refinement */
.detailTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.copySku{border:1px solid #ddd;background:#fff;border-radius:7px;padding:5px 9px;font-size:12px;cursor:pointer}.copySku:hover{border-color:#1677ff;color:#1677ff}.statusBadge{display:inline-block;margin-top:9px;padding:4px 9px;border-radius:999px;font-size:12px}.statusBadge.on{background:#eef8ef;color:#238b45}.statusBadge.off{background:#f3f3f3;color:#888}.breadcrumb button{white-space:nowrap}
@media(max-width:650px){.detailTop{padding-right:28px}.copySku{font-size:11px;padding:5px 7px}.statusBadge{font-size:11px}}

.listTools{display:flex;align-items:center;gap:8px}.listTools select{border:1px solid #ddd;background:#fff;border-radius:8px;padding:8px 10px;font-size:13px}.listTools #count{white-space:nowrap}
@media(max-width:650px){.sectionHead{align-items:flex-start;gap:8px}.listTools{width:100%;display:grid;grid-template-columns:1fr 1fr auto}.listTools select{min-width:0;padding:7px 6px;font-size:12px}.listTools #count{font-size:11px;align-self:center}}


/* V5.8 recently viewed */
.recentSection{margin-top:34px;padding-top:22px;border-top:1px solid #eee}.recentSection.hidden{display:none}.clearRecent{border:1px solid #ddd;background:#fff;border-radius:8px;padding:7px 11px;cursor:pointer;font-size:13px}.clearRecent:hover{border-color:#1677ff;color:#1677ff}.recentSection .grid{margin-top:14px}.recentSection .card{opacity:.96}
@media(max-width:650px){.recentSection{margin-top:24px;padding-top:18px}.clearRecent{font-size:12px;padding:6px 9px}}


/* V5.11 favorites framework */
.cardImageWrap{position:relative}.cardImageWrap>img{width:100%;display:block}.favoriteBtn{position:absolute;right:8px;top:8px;width:34px;height:34px;border:1px solid #e5e5e5;border-radius:50%;background:rgba(255,255,255,.94);font-size:21px;line-height:30px;cursor:pointer;box-shadow:0 2px 8px #00000012}.favoriteBtn.active{color:#e33;border-color:#f0caca}.favoriteBtn:hover{transform:scale(1.05)}.favoriteCard{cursor:pointer}
@media(max-width:650px){.favoriteBtn{right:6px;top:6px;width:31px;height:31px;font-size:19px;line-height:27px}}

.homeShowcase{max-width:1200px;margin:0 auto;padding:34px 18px 12px;background:#fff}
.showcaseGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:18px}
.showcaseCard{min-width:0}
.showcaseMore{text-align:center;margin-top:18px}
.showcaseMore button{border:1px solid #d9dfe8;background:#fff;border-radius:999px;padding:9px 22px;cursor:pointer}
.showcaseMore button:hover{border-color:#1677ff;color:#1677ff}
@media(max-width:1100px){.showcaseGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.showcaseGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.homeShowcase{padding:24px 12px 8px}}


/* ===== V6.0 商品展示修复与优化 ===== */
.cardImageWrap{
  aspect-ratio:1/1;
  background:#f3f4f6;
  overflow:hidden;
}
.cardImageWrap>img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.showcaseGrid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.showcaseCard .cardImageWrap{
  min-height:0;
}
.showcaseCard .body{
  min-height:118px;
}
@media(max-width:1100px){
  .showcaseGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .showcaseGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:480px){
  .showcaseGrid{grid-template-columns:1fr}
}


/* ===== V6.0 商品图片工作流 ===== */
.uploadStatus{margin-top:7px;padding:7px 9px;border-radius:7px;background:#f7f9fc;border:1px dashed #d9e0ea}
.imagePreview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.imageItem{position:relative;border:1px solid #e3e7ed;border-radius:9px;padding:6px;background:#fff;min-width:0}
.imageItem img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:6px;background:#f5f6f8;display:block}
.imageItem.pending{display:flex;flex-direction:column;justify-content:center;min-height:150px;background:#fafbfc}
.pendingName{font-size:12px;word-break:break-all;line-height:1.4;margin:6px 0}
.coverBadge{position:absolute;left:10px;top:10px;z-index:2;padding:3px 6px;border-radius:999px;background:rgba(255,255,255,.92);font-size:11px;color:#1677ff}
.imageBtns{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.imageBtns button{padding:4px 6px;font-size:11px}.imageBtns button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){.imagePreview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== V6.0 采购车与订单框架 ===== */
.cartTop{border:1px solid #ddd!important;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer}.cartTop:hover{border-color:#1677ff!important;color:#1677ff}.addCartBtn{margin-top:9px;width:100%;border:1px solid #d8e2ef;background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer;font-size:13px}.addCartBtn:hover{border-color:#1677ff;color:#1677ff;background:#f7fbff}.cartBox{max-width:760px}.cartRow{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.cartRow img{width:72px;height:72px;object-fit:contain;border-radius:8px;background:#f5f6f8}.cartControls{display:flex;align-items:center;gap:7px;margin-top:7px}.cartControls button{border:1px solid #ddd;background:#fff;border-radius:6px;padding:4px 8px;cursor:pointer}.cartSummary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px}.cartSummary .loginBtn{width:auto;padding:10px 22px}.loginBox textarea{display:block;width:100%;min-height:72px;margin:10px 0;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:15px;font-family:inherit;resize:vertical}.empty{padding:25px;text-align:center;color:#888}
@media(max-width:650px){.cartTop{font-size:11px;padding:6px 7px}.cartRow{grid-template-columns:58px 1fr auto;gap:8px}.cartRow img{width:58px;height:58px}.cartControls{gap:4px}.cartControls button{padding:4px 6px;font-size:11px}.cartSummary{position:sticky;bottom:0;background:#fff;padding:10px 0}.cartSummary .loginBtn{padding:9px 12px}}

/* V6.20 Banner */
.homeBanners{max-width:980px;margin:18px auto 0;padding:0 14px}.homeBanners .banner{min-height:150px;border-radius:14px;background:#f5f7fa;border:1px solid #e9edf2;display:flex;align-items:center;overflow:hidden}.homeBanners img{width:100%;max-height:280px;object-fit:cover}.homeBanners .bannerText{padding:28px}.homeBanners h3{margin:0 0 8px;font-size:25px}.homeBanners p{margin:0;color:#777}


/* ===== V6.20 采购体验与会员中心 ===== */
.detailBuy{margin-top:16px;padding:14px;border:1px solid #e7ebf0;border-radius:10px;background:#fafcff}.detailBuy label{display:flex;align-items:center;gap:10px;font-size:14px}.detailBuy input{width:90px;border:1px solid #ddd;border-radius:7px;padding:8px}.quoteBox{margin:10px 0;color:#333}.detailBuy .loginBtn{width:auto;padding:9px 18px}.detailBuy button:disabled{opacity:.45;cursor:not-allowed}.orderCard,.addressCard{border:1px solid #e7ebf0;border-radius:10px;padding:12px;margin:8px 0;background:#fff}.orderCard>span{float:right;padding:3px 8px;border-radius:999px;background:#f3f6fa;font-size:12px}.orderCard strong{display:block;margin-top:8px}.addressCard{line-height:1.7}.status.ok{color:#238b45}.status.warn{color:#b26a00}

/* V6.30 customer workflow */
.orderCard{border:1px solid #eee;border-radius:10px;padding:12px;margin:9px 0;background:#fff}.orderHead,.orderFoot{display:flex;align-items:center;justify-content:space-between;gap:8px}.orderItems{margin:8px 0;line-height:1.7}.orderFoot button,.addressActions button{border:1px solid #ddd;background:#fff;border-radius:7px;padding:6px 10px;cursor:pointer}.addressCard{border:1px solid #eee;border-radius:10px;padding:11px;margin:8px 0}.addressActions{display:flex;gap:7px;margin-top:8px}.addressActions button:hover,.orderFoot button:hover{border-color:#1677ff;color:#1677ff}

/* V6.30 customer workflow */
.orderCard{border:1px solid #eee;border-radius:10px;padding:12px;margin:9px 0;background:#fff}.orderHead,.orderFoot{display:flex;align-items:center;justify-content:space-between;gap:8px}.orderItems{margin:8px 0;line-height:1.7}.orderFoot button,.addressActions button{border:1px solid #ddd;background:#fff;border-radius:7px;padding:6px 10px;cursor:pointer}.addressCard{border:1px solid #eee;border-radius:10px;padding:11px;margin:8px 0}.addressActions{display:flex;gap:7px;margin-top:8px}.addressActions button:hover,.orderFoot button:hover{border-color:#1677ff;color:#1677ff}

/* V6.32-V6.40 packaging UX */
.packagePicker{margin:14px 0 10px}.packageOptions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.packageBtn{border:1px solid #d9dfe8;background:#fff;border-radius:8px;padding:8px 14px;cursor:pointer}.packageBtn.active{border-color:#1677ff;background:#eef5ff;color:#1677ff;font-weight:700}.packageBtn span{font-size:12px;opacity:.7}.packagingSummary{margin:8px 0;color:#777;font-size:13px}.detailBuy{display:flex;flex-direction:column;gap:10px}

/* V6.50 packaging and minimum-order UX */
.packRuleBox{margin:8px 0;padding:9px 11px;border:1px dashed #d8e2ef;border-radius:8px;background:#f8fbff;color:#4a5563}.fixQtyBtn{margin-top:8px;border:1px solid #1677ff;background:#eef5ff;color:#1677ff;border-radius:7px;padding:6px 10px;cursor:pointer}.packRulePreview{padding:10px 12px;border:1px solid #dce7f5;background:#f7fbff;border-radius:8px;color:#245b9e;font-weight:600}

/* ===== V9.00 运营版 ===== */
.storeNotice{max-width:1180px;margin:14px auto 0;padding:10px 16px;border:1px solid #e7ebf0;border-radius:10px;background:#fff;text-align:center;color:#555}.storeNotice:not(.hidden){display:block}footer{background:#fff;border-top:1px solid #eee;padding:26px 18px 34px;text-align:center;color:#666;line-height:1.8}footer b{color:#222}footer .small{margin-top:5px}

/* ===== V9.00 扫码功能 ===== */
.searchBox{display:flex;align-items:center;gap:6px}.searchBox input{flex:1;min-width:0}.scanBtn{border:1px solid #d8e2ef;background:#fff;border-radius:8px;padding:9px 12px;cursor:pointer;white-space:nowrap}.scanBtn:hover{border-color:#1677ff;color:#1677ff;background:#f7fbff}.scanBox{max-width:620px}.scanCameraWrap{position:relative;background:#111;border-radius:12px;overflow:hidden;min-height:300px;display:flex;align-items:center;justify-content:center}.scanCameraWrap video{width:100%;max-height:460px;object-fit:cover;display:block;background:#111}.scanFrame{position:absolute;width:55%;aspect-ratio:1;border:2px solid rgba(255,255,255,.9);border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.22);pointer-events:none}.scanStatus{margin:10px 0;text-align:center;color:#555;min-height:22px}.scanActions{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap}.scanActions .loginBtn{width:auto;margin:0}.scanFileBtn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #1677ff;background:#eef5ff;color:#1677ff;border-radius:8px;padding:10px 16px;cursor:pointer}.scanHint{text-align:center;color:#888;font-size:12px;margin-top:10px;line-height:1.6}@media(max-width:600px){.scanBtn{padding:8px 9px;font-size:12px}.scanCameraWrap{min-height:250px}.scanFrame{width:68%}}

/* V9.00 storefront polish */
.productGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
.cardImageWrap,.cardImageWrap img{aspect-ratio:1/1}
.cardImageWrap img{width:100%;height:100%;object-fit:contain}
@media(max-width:1050px){.productGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){.productGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.scanBtn{min-width:56px}

/* V9.34 browse controls: the buyer never needs to scroll back to the top. */
.stickyBrowse{position:fixed;top:66px;left:0;right:0;z-index:25;background:#fff;border-bottom:1px solid #e7eaf0;box-shadow:0 3px 12px #00000012;padding:8px 12px}.stickyBrowseInner{max-width:760px;margin:auto;display:flex;gap:7px}.stickyBrowse input{min-width:0;flex:1;border:1px solid #d8e2ef;border-radius:9px;padding:9px 11px;font:inherit}.stickyBrowse button{border:1px solid #d8e2ef;background:#fff;border-radius:9px;padding:8px 11px;white-space:nowrap;cursor:pointer}.stickyBrowse button:hover{border-color:#1677ff;color:#1677ff}.categorySheet{position:fixed;z-index:40;left:0;right:0;bottom:0;max-height:72vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px #0003;padding:14px}.categorySheetHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.categorySheetHead button{border:0;background:#eef5ff;color:#1677ff;border-radius:8px;padding:7px 11px}.sheetCategories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sheetCategories button{min-height:42px;border:1px solid #e2e6ec;background:#fff;border-radius:9px;padding:7px;text-align:left;word-break:break-word}.loadMore{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.loadMore input,.loadMore select{width:auto;max-width:74px;border:1px solid #ddd;border-radius:7px;padding:6px}.loadMore button{border:1px solid #d8e2ef;background:#fff;border-radius:7px;padding:7px 10px}.addCartBtn:disabled{cursor:not-allowed;color:#888;background:#f2f2f2;border-color:#e0e0e0}
@media(max-width:650px){.stickyBrowse{top:56px;padding:7px 8px}.stickyBrowse input{padding:8px;font-size:14px}.stickyBrowse button{padding:8px 9px;font-size:12px}.categorySheet{padding:13px 10px}.sheetCategories{grid-template-columns:repeat(2,minmax(0,1fr))}.sideCategories .sideCat:nth-of-type(n+10){display:none}.loadMore{font-size:12px;gap:6px}.loadMore button{padding:7px 8px}.loadMore input,.loadMore select{padding:6px;max-width:58px}}

/* V9.21: unit manager modal always above product editor */
#unitModal{z-index:1200;}
