/* ============================================================
 * 科润达国际供应链 - 选品商城 全站样式
 * ============================================================ */
:root {
  --primary: #c81e1e;        /* 主色:供应链红 */
  --primary-dark: #a01414;
  --accent: #e8590c;         /* 强调橙 */
  --text: #222;
  --text-light: #777;
  --border: #e5e5e5;
  --bg: #f5f5f5;
  --white: #fff;
  --w: 1200px;               /* 主内容宽度 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }

/* ---------- 专属卖家横幅(带ref进站 / 登录买家已有归属时展示) ---------- */
.ref-banner { background: linear-gradient(90deg, #c81e1e, #e8590c); color: #fff; text-align: center; font-size: 13px; padding: 7px 12px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ref-banner .rb-tag { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 2px 12px; font-size: 12px; }
.ref-banner .rb-btn { background: #fff; color: #c81e1e; border: none; border-radius: 999px; padding: 3px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ref-banner .rb-btn:hover { background: #ffe9e0; }
.ref-banner .rb-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: #f7f7f7; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-light); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a:hover { color: var(--primary); }
.topbar .hello em { color: var(--primary); font-style: normal; cursor: pointer; }
.topbar-links { display: flex; align-items: center; }
.topbar-links > * { padding: 0 12px; border-right: 1px solid #ddd; }
.topbar-links > *:last-child { border-right: none; padding-right: 0; }

/* ---------- 头部:logo + 搜索 + 购物车 ---------- */
.header { background: var(--white); padding: 22px 0 18px; }
.header .wrap { display: flex; align-items: center; gap: 40px; }
.logo { flex-shrink: 0; }
.logo .logo-cn { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #1a1a1a; }
.logo .logo-cn i { font-style: normal; color: var(--primary); }
.logo .logo-sub { margin-top: 4px; font-size: 13px; color: #8d7f76; letter-spacing: 2px; }
.search-area { flex: 1; }
.search-box { display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; height: 40px; }
.search-box input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; }
.search-box button { width: 96px; background: var(--primary); color: #fff; border: none; font-size: 15px; cursor: pointer; }
.search-box button:hover { background: var(--primary-dark); }
.search-box .cam-btn { width: 44px; background: #fff; color: var(--primary); font-size: 19px; border-left: 1px solid #f0d5d5; }
.search-box .cam-btn:hover { background: #fdf1f1; }

/* 拍照找同款 结果页 */
.vs-layout { display: flex; gap: 20px; align-items: flex-start; padding-top: 14px; margin-bottom: 40px; }
.vs-query { width: 260px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; position: sticky; top: 16px; text-align: center; }
.vs-qimg { width: 100%; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fafafa; display: flex; align-items: center; justify-content: center; }
.vs-qimg img { width: 100%; height: 100%; object-fit: contain; }
.vs-reupload { display: inline-flex; margin-top: 14px; cursor: pointer; }
.vs-tip { font-size: 12px; color: #999; margin-top: 12px; }
.vs-main { flex: 1; min-width: 0; }
.vs-h2 { font-size: 18px; margin-bottom: 14px; }
.vs-main .goods-grid { grid-template-columns: repeat(4, 1fr); }
.vs-loading { grid-column: 1/-1; padding: 60px 0; text-align: center; color: #888; font-size: 15px; }
@media (max-width: 800px) { .vs-layout { flex-direction: column; } .vs-query { width: 100%; position: static; } .vs-main .goods-grid { grid-template-columns: repeat(2, 1fr); } }
.hot-words { margin-top: 8px; font-size: 12px; color: var(--text-light); }
.hot-words a { margin-right: 14px; }
.hot-words a:hover { color: var(--primary); }
.cart-entry { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; }
.cart-entry:hover { border-color: var(--primary); color: var(--primary); }
.cart-entry .cart-count { background: var(--primary); color: #fff; border-radius: 10px; font-size: 12px; padding: 0 7px; line-height: 18px; }

/* ---------- 主导航 ---------- */
.nav { background: var(--white); border-bottom: 2px solid var(--primary); }
/* 导航吸顶:#site-header 设为 sticky,top 为负的"导航条以上高度"(main.js 计算),滚动后只留导航条 */
#site-header.sticky-nav { position: sticky; z-index: 50; }
.nav .wrap { display: flex; align-items: stretch; height: 44px; }
.all-cats-btn { width: 230px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; padding-left: 20px; gap: 8px; cursor: pointer; position: relative; }
.nav-links { display: flex; }
.nav-links a { display: flex; align-items: center; padding: 0 28px; font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* ---------- 快捷入口条(全品类/精品/新品/价格区间,手机端可横滑) ---------- */
.quick-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.quick-nav .wrap { display: flex; gap: 10px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }   /* 左右 16px 对齐导航/内容 */
.quick-nav .wrap::-webkit-scrollbar { display: none; }
.qn-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 66px; padding: 9px 14px; border-radius: 12px; background: #faf6f4; font-size: 13px; color: #555; font-weight: 600; }
.qn-item .qn-ico { font-size: 23px; line-height: 1; }
.qn-item:hover { background: #f1ebe8; }
.qn-item.qn-price { background: linear-gradient(135deg, #fff1e8, #ffe1cf); color: var(--primary); }

/* ---------- 首页主区:分类侧栏 + 轮播 ---------- */
.home-main { position: relative; }
.home-main .wrap { display: flex; gap: 12px; padding-top: 12px; }
.cat-sidebar { width: 230px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); border-top: none; }
.cat-sidebar li { position: relative; }
.cat-sidebar li > a { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 40.5px; font-size: 14px; border-bottom: 1px dashed #f0f0f0; }
.cat-sidebar li:last-child > a { border-bottom: none; }
.cat-sidebar li:hover > a { background: #fdf1f1; color: var(--primary); font-weight: 600; }
.cat-sidebar .arrow { margin-left: auto; color: #ccc; font-size: 12px; }
.cat-pop { display: none; position: absolute; left: 100%; top: 0; width: 420px; min-height: 100%; background: #fff; border: 1px solid var(--border); box-shadow: 4px 4px 12px rgba(0,0,0,.08); padding: 14px 18px; z-index: 30; }
.cat-sidebar li:hover .cat-pop { display: block; }
.cat-pop h4 { font-size: 14px; color: var(--primary); margin-bottom: 10px; }
.cat-pop a { display: inline-block; margin: 0 16px 10px 0; font-size: 13px; color: #555; }
.cat-pop a:hover { color: var(--primary); }

/* 轮播 */
.banner { flex: 1; position: relative; overflow: hidden; border-radius: 6px; height: 405px; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; flex-direction: column; justify-content: center; padding: 0 60px; color: #fff; }
.banner-slide.active { opacity: 1; }
.banner-slide .b-tag { display: inline-block; width: fit-content; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; padding: 4px 16px; font-size: 13px; margin-bottom: 22px; letter-spacing: 1px; }
.banner-slide .b-title { font-size: 44px; font-weight: 800; letter-spacing: 2px; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.banner-slide .b-sub { font-size: 18px; opacity: .92; letter-spacing: 3px; }
.banner-dots { position: absolute; bottom: 16px; left: 60px; display: flex; gap: 8px; z-index: 5; }
.banner-dots span { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s; }
.banner-dots span.active { background: #fff; }

/* 右侧信息卡 */
.side-card { width: 200px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 16px 14px; display: flex; flex-direction: column; }
.side-card .sc-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.side-card .sc-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed #eee; font-size: 12px; color: #666; }
.side-card .sc-item b { display: block; font-size: 13px; color: #333; margin-bottom: 3px; }
.side-card .sc-ico { font-size: 20px; line-height: 1; }
.side-card .sc-btn { margin-top: auto; background: var(--primary); color: #fff; text-align: center; border-radius: 4px; padding: 9px 0; font-size: 14px; font-weight: 600; }
.side-card .sc-btn:hover { background: var(--primary-dark); }

/* ---------- 服务保障条 ---------- */
.service-bar { background: var(--white); margin-top: 12px; border: 1px solid var(--border); }
.service-bar .wrap { display: flex; height: 64px; }
.service-bar .sv { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; border-right: 1px solid #f0f0f0; }
.service-bar .sv:last-child { border-right: none; }
.service-bar .sv .ico { font-size: 22px; }
.service-bar .sv small { display: block; font-weight: 400; font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---------- 通用区块标题 ---------- */
.section-title { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 36px 0 20px; }
.section-title::before, .section-title::after { content: ""; width: 80px; height: 1px; background: var(--accent); }
.section-title h2 { font-size: 24px; color: var(--accent); font-weight: 800; letter-spacing: 2px; }

/* ---------- 商品卡片网格 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.goods-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: all .25s; position: relative; }
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.09); border-color: transparent; }
.goods-card .g-img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; }
.goods-card .g-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.goods-card .g-info { padding: 8px 10px 10px; }
.goods-card .g-name { font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-card .g-price-row { margin-top: 4px; display: flex; align-items: baseline; justify-content: space-between; }
.goods-card .g-price { color: var(--primary); font-size: 17px; font-weight: 700; }
.goods-card .g-price small { font-size: 12px; font-weight: 400; }
.goods-card .g-moq { font-size: 11px; color: var(--text-light); }

/* ---------- 楼层 ---------- */
.floor { margin-top: 34px; }
.floor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.floor-head .f-no { background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; padding: 3px 10px; border-radius: 4px; }
.floor-head h3 { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.floor-head .f-line { flex: 1; height: 1px; background: var(--border); }
.floor-head .f-more { font-size: 13px; color: var(--text-light); }
.floor-head .f-more:hover { color: var(--primary); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 50px; background: #2b2b2b; color: #aaa; }
.footer-top { border-bottom: 1px solid #3d3d3d; }
.footer-top .wrap { display: flex; padding: 34px 16px; gap: 60px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; margin-bottom: 9px; color: #999; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 12px; color: #777; }
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 列表页(类目页) ---------- */
.crumb { padding: 14px 0 0; font-size: 13px; color: var(--text-light); }
.crumb a:hover { color: var(--primary); }
.list-layout { display: flex; gap: 12px; padding-top: 12px; }
.filter-side { width: 210px; flex-shrink: 0; }
.filter-block { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin-bottom: 12px; }
.filter-block h4 { font-size: 14px; margin-bottom: 10px; }
.filter-block a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 4px; font-size: 13px; color: #555; }
.filter-block a:hover { background: #fdf1f1; color: var(--primary); }
.filter-block a.active { background: var(--primary); color: #fff; font-weight: 600; }
.list-main { flex: 1; min-width: 0; }   /* min-width:0 防止子元素(排序栏)撑破手机端页面 */
.sort-bar { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; margin-bottom: 12px; }
.sort-bar a { padding: 5px 14px; border-radius: 4px; font-size: 13px; color: #555; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.sort-bar a.active { background: var(--primary); color: #fff; }
.sort-bar .result-count { margin-left: auto; font-size: 12px; color: var(--text-light); }
.sort-bar .bc-filter { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--border); flex-shrink: 0; }
/* 右侧成组:价格区间 + 一键加购放一个容器,margin-left:auto 推到最右;换行时整组一起下移并右对齐 */
.sort-bar .sb-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.sort-bar #add-all-btn { flex-shrink: 0; white-space: nowrap; }
.sort-bar .sb-right .price-range { margin-left: 0; }
.sort-bar .bc-filter a { padding: 5px 12px; border-radius: 4px; font-size: 13px; color: #555; cursor: pointer; }
.sort-bar .bc-filter a.active { background: var(--primary); color: #fff; }
.list-main .goods-grid { grid-template-columns: repeat(4, 1fr); }
.empty-tip { background: var(--white); border: 1px dashed var(--border); border-radius: 6px; padding: 60px 0; text-align: center; color: var(--text-light); }

/* ---------- 详情页 ---------- */
.detail-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-top: 12px; padding: 26px; display: flex; gap: 34px; }
.detail-img { width: 420px; height: 420px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 150px; }
.detail-info { flex: 1; min-width: 0; position: relative; }
/* 价格行(仿参考站:价格/单位 + 换算 + 起订 + 登录提示) */
.detail-price-line { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; background: #fdf3f3; border-radius: 6px; padding: 14px 18px; margin-bottom: 16px; }
.dpl-price { color: var(--primary); font-size: 28px; font-weight: 800; }
.dpl-price small { font-size: 14px; font-weight: 400; color: #666; }
.dpl-pack, .dpl-moq { font-size: 13px; color: #888; }
.dpl-login { font-size: 14px; color: var(--primary); font-weight: 600; }
.dpl-login:hover { text-decoration: underline; }
/* 商品码(扫码直达商品页) */
.prod-qr { position: absolute; top: 0; right: 0; text-align: center; }
.prod-qr img, .prod-qr canvas { border: 1px solid var(--border); border-radius: 4px; padding: 4px; background: #fff; }
.qr-label { font-size: 12px; color: #999; margin-top: 4px; }
/* 新版详情(仿参考站):图集 + 单价框 + 冒号参数 + 购买数量 + 库存行 + 备注 */
.d-gallery { width: 420px; flex-shrink: 0; }
.d-main { position: relative; width: 420px; height: 420px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.d-main img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.d-main-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 150px; }
.d-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.d-arrow:hover { background: rgba(0,0,0,.55); color: #fff; }
.d-prev { left: 10px; } .d-next { right: 10px; }
.d-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.d-thumbs img { width: 76px; height: 76px; object-fit: contain; border: 2px solid transparent; border-radius: 6px; cursor: pointer; background: #fff; padding: 3px; box-sizing: border-box; }
.d-thumbs img.active { border-color: var(--primary); }
.d-pricebox { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; background: #f7f8fa; border-radius: 6px; padding: 16px 18px; margin-bottom: 18px; }
.d-price-label { font-size: 14px; color: #666; }
.d-price { color: var(--primary); font-size: 30px; font-weight: 800; }
.d-price small { font-size: 15px; font-weight: 600; }
.d-pack-note { font-size: 13px; color: #888; }
.d-attrs { font-size: 14px; color: #333; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 12px; margin-bottom: 20px; }
.d-attrs b { color: #888; font-weight: 400; display: inline-block; min-width: 76px; }
.d-buyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.d-buy-label { font-size: 14px; color: #333; font-weight: 600; }
.d-buy-unit { font-size: 13px; color: #666; }
.d-stockline { display: flex; gap: 16px; font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.d-stock { color: var(--primary); }
.d-minbuy { color: #666; }
.d-overstock { color: #f60; }
.d-noterow { margin-bottom: 20px; }
.d-note-label { font-size: 14px; margin-bottom: 6px; color: #333; }
.d-noterow textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 13px; resize: vertical; outline: none; font-family: inherit; box-sizing: border-box; }
.d-noterow textarea:focus { border-color: var(--primary); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; }
@media (max-width: 800px) { .d-attrs { grid-template-columns: 1fr; } .d-gallery, .d-main { width: 100%; } }
.detail-info h1 { font-size: 22px; line-height: 1.5; margin-bottom: 16px; }
.detail-price-box { background: #fdf3f3; border-radius: 6px; padding: 16px 18px; display: flex; gap: 46px; margin-bottom: 20px; }
.detail-price-box .dp-label { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.detail-price-box .dp-val { color: var(--primary); font-size: 26px; font-weight: 800; }
.detail-price-box .dp-val small { font-size: 14px; font-weight: 400; }
.detail-attrs { font-size: 13px; color: #555; line-height: 2.2; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.detail-attrs b { color: #888; font-weight: 400; display: inline-block; width: 80px; }
@media (max-width: 800px) { .detail-attrs { grid-template-columns: 1fr; } }
.detail-btns { display: flex; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 38px; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: #fdf1f1; }
.detail-desc { background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-top: 12px; padding: 26px; }
.detail-desc h3 { font-size: 16px; border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 16px; }
.detail-desc p { font-size: 14px; color: #555; line-height: 2; }

/* ---------- 购物车页 / 订单结算页 ---------- */
.page-title { font-size: 26px; margin: 18px 0 4px; }
.page-sub { font-size: 13px; color: #888; margin-bottom: 14px; }
.cartp-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-bottom: 30px; }
.cartp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cartp-table th { background: #fafafa; padding: 11px 8px; font-weight: 600; color: #555; text-align: center; border-bottom: 1px solid var(--border); }
.cartp-table td { padding: 14px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cartp-table tr:nth-child(odd) td { background: #fbfbfc; }
.cf-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; }
.cp-info { display: flex; gap: 12px; align-items: center; text-align: left; }
.cp-info img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; flex: none; }
.cp-emoji { font-size: 34px; }
.cp-name { font-size: 14px; color: #333; font-weight: 600; }
.cp-name:hover { color: var(--primary); }
.cp-meta { font-size: 12px; color: #999; margin-top: 4px; }
.cp-note { font-size: 12px; color: #e8590c; margin-top: 3px; }
.box-input { width: 52px; height: 30px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 13px; outline: none; }
.cp-op { font-size: 13px; color: #555; margin: 0 5px; white-space: nowrap; }
.cp-op:hover { color: var(--primary); }
.cp-op.danger:hover { color: #c81e1e; }
.cartp-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 4px; font-size: 13px; color: #555; }
.cartp-pager input { width: 54px; height: 30px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.pg-btn { border: 1px solid var(--border); border-radius: 6px; padding: 6px 14px; cursor: pointer; color: #555; }
.pg-btn:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.cartp-foot { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 16px; flex-wrap: wrap; }
.cartp-foot .spacer { flex: 1; }
.cf-link { font-size: 13px; color: #555; }
.cf-link:hover { color: var(--primary); }
.import-box { border: 1px dashed #e8590c; border-radius: 8px; padding: 14px; margin-top: 14px; background: #fffdf7; }
.import-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 13px; margin: 8px 0; box-sizing: border-box; font-family: inherit; }
.ib-tip { font-size: 12px; color: #888; }
.co-layout { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 40px; }
.co-left { flex: 1; min-width: 0; }
.co-right { width: 340px; flex-shrink: 0; position: sticky; top: 60px; }
.co-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; }
.co-card h3 { font-size: 15px; margin-bottom: 16px; }
.co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.co-form .full { grid-column: 1 / -1; }
.co-form label { display: block; font-size: 13px; color: #333; margin-bottom: 6px; font-weight: 600; }
.co-form label i { color: #c81e1e; font-style: normal; }
.co-form input, .co-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 13px; outline: none; box-sizing: border-box; font-family: inherit; }
.co-form input:focus, .co-form textarea:focus { border-color: var(--primary); }
.co-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.co-item:last-child { border-bottom: none; }
.co-item img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; flex: none; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-size: 13px; color: #333; }
.co-item-meta { font-size: 12px; color: #999; margin-top: 3px; }
.co-item-sub { font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; }
.co-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 9px 0; border-bottom: 1px dashed #eee; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 14px; }
.co-total b { color: var(--primary); font-size: 24px; font-weight: 800; }
.co-submit { width: 100%; margin-top: 14px; }
.co-back { width: 100%; margin-top: 10px; box-sizing: border-box; }
.co-tip { font-size: 12px; color: #999; margin-top: 10px; line-height: 1.7; }
@media (max-width: 900px) { .co-layout { flex-direction: column; } .co-right { width: 100%; position: static; } }

/* ---------- 导出Excel确认弹窗 ---------- */
.exp-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.exp-dlg { background: #fff; border-radius: 10px; width: 360px; max-width: 92vw; box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.exp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.exp-head a { color: #999; font-size: 14px; }
.exp-body { padding: 20px 18px; text-align: center; }
.exp-foot { display: flex; gap: 12px; justify-content: center; padding: 0 18px 18px; }

/* ---------- 会员中心-我的订单(卡片式) ---------- */
.ord-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; }
.ord-tools span { color: #777; font-size: 13px; }
.ord-tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ord-tabs2 { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ord-tabs2 a { padding: 8px 18px; border-radius: 20px; font-size: 13px; color: #555; background: #f5f5f5; cursor: pointer; }
.ord-tabs2 a.on { background: var(--primary); color: #fff; font-weight: 600; }
.ord-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.oc-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.oc-head .oc-time { margin-left: auto; color: #888; font-size: 12px; }
.oc-pick { display: inline-flex; align-items: center; gap: 5px; color: #1a7f37; font-size: 13px; cursor: pointer; user-select: none; }
.oc-pick input { width: 15px; height: 15px; accent-color: #1a7f37; }
.oc-tag { font-size: 11px; padding: 2px 10px; border-radius: 10px; }
.oc-tag.unrev { background: #fff7ed; color: #c2410c; }
.oc-tag.rev { background: #eff6ff; color: #1d4ed8; }
.oc-tag.done { background: #ecfdf5; color: #047857; }
.oc-tag.cancel { background: #f4f4f5; color: #71717a; }
/* 分类页价格区间搜索 */
.price-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #666; flex-shrink: 0; white-space: nowrap; }
.price-range input { width: 84px; height: 30px; border: 1px solid #ddd; border-radius: 6px; padding: 0 8px; font-size: 13px; }
.price-range input:focus { outline: none; border-color: var(--primary); }
.price-range button { height: 30px; padding: 0 14px; border: none; border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; }
.price-range .pr-clear { background: #f0f0f0; color: #666; padding: 0 12px; }
.price-range .pr-clear:hover { background: #e4e4e4; color: #333; }
@media (max-width: 768px) { .price-range { margin-left: 0; width: 100%; } .price-range input { flex: 1; width: auto; } }
.oc-line { font-size: 13px; color: #555; line-height: 2; }
.oc-amt { color: var(--primary); font-size: 15px; }
.oc-detail { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px; }
.oc-detail table { width: 100%; border-collapse: collapse; font-size: 12px; }
.oc-detail th, .oc-detail td { border: 1px solid #eee; padding: 7px 9px; text-align: center; }
.oc-detail th { background: #fafafa; }
.oc-detail .ta-l { text-align: left; }
.oc-detail input.oq { width: 76px; height: 28px; border: 1px solid var(--border); border-radius: 5px; text-align: center; }
.oc-ops { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.btn-oc { border: 1px solid var(--border); background: #fff; color: #555; border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.btn-oc:hover { border-color: var(--primary); color: var(--primary); }
.btn-oc.danger { color: #c81e1e; border-color: #f3c1c1; }
.btn-oc.danger:hover { background: #fdf1f1; }
.btn-oc.green { color: #1a7f37; border-color: #bce3c8; }
.btn-oc.green:hover { background: #f0faf3; }
.btn-oc:disabled { color: #aaa; border-color: #ddd; background: #f6f6f6; cursor: not-allowed; }
@media (max-width: 768px) { .ord-tools { align-items: flex-start; flex-direction: column; } .ord-tool-actions { width: 100%; } }

/* ---------- 收货地区选择器(目的国下拉 + 省市联动 + 详细地址) ---------- */
.ap-select { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 13px; outline: none; background: #fff; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.ap-select:focus { border-color: var(--primary); }
.ap-detail { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 13px; outline: none; box-sizing: border-box; font-family: inherit; }
.ap-detail:focus { border-color: var(--primary); }
.ap-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ap-row .ap-select { flex: 1; }

/* ---------- 购置单导出(同页覆盖层,打印时只打印购置单) ---------- */
.po-overlay { position: fixed; inset: 0; background: #fff; z-index: 999; overflow: auto; padding: 30px 34px; }
.po-actions { position: sticky; top: 0; display: flex; gap: 10px; justify-content: flex-end; background: #fff; padding-bottom: 10px; z-index: 2; }
.po-doc h1 { font-size: 22px; margin: 0 0 4px; }
.po-doc h1 small { color: var(--primary); font-size: 18px; }
.po-sub { font-size: 12px; color: #888; margin-bottom: 16px; }
.po-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
.po-doc th, .po-doc td { border: 1px solid #ddd; padding: 8px; text-align: center; vertical-align: middle; }
.po-doc th { background: #f5f5f5; }
.po-doc .ta-l { text-align: left; }
.po-doc img { width: 60px; height: 60px; object-fit: contain; }
.po-doc .params { color: #888; margin-top: 4px; font-size: 11px; }
.po-doc .note { color: #e8590c; font-size: 11px; margin-top: 3px; }
.po-totals { margin-top: 16px; font-size: 13px; text-align: right; line-height: 2; }
.po-totals b { color: var(--primary); }
@media print {
  body.po-printing > *:not(.po-overlay) { display: none !important; }
  body.po-printing .po-overlay { position: static; padding: 0; overflow: visible; }
  body.po-printing .po-actions { display: none; }
}

/* ---------- 快速下单 ---------- */
.quick-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-top: 12px; padding: 30px; }
.quick-box h1 { font-size: 22px; margin-bottom: 6px; }
.quick-box .q-sub { color: var(--text-light); font-size: 13px; margin-bottom: 22px; }
.quick-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.quick-table th, .quick-table td { border: 1px solid var(--border); padding: 10px 12px; font-size: 13px; }
.quick-table th { background: #fafafa; font-weight: 600; text-align: left; }
.quick-table input, .quick-table select { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; font-size: 13px; outline: none; }
.quick-table input:focus { border-color: var(--primary); }
.q-add-row { background: none; border: 1px dashed var(--primary); color: var(--primary); border-radius: 4px; padding: 8px 20px; font-size: 13px; cursor: pointer; margin-bottom: 26px; }
.q-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; max-width: 720px; }
.q-contact label { font-size: 13px; color: #555; display: block; margin-bottom: 6px; }
.q-contact input, .q-contact textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 9px 11px; font-size: 13px; outline: none; font-family: inherit; }
.q-contact input:focus, .q-contact textarea:focus { border-color: var(--primary); }
.q-contact .full { grid-column: 1 / -1; }
.q-success { display: none; background: #f0faf4; border: 1px solid #b7e2c6; color: #1b7a3d; border-radius: 6px; padding: 14px 18px; margin-top: 18px; font-size: 14px; }

/* ---------- 登录页 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0 80px; }
.auth-box { width: 400px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 34px 36px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.auth-box h1 { font-size: 22px; text-align: center; margin-bottom: 26px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.auth-field input { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 11px 12px; font-size: 14px; outline: none; }
.auth-field input:focus { border-color: var(--primary); }
.auth-btn { width: 100%; margin-top: 6px; }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-err { color: var(--primary); font-size: 13px; min-height: 20px; margin: 4px 0; }
.auth-note { margin-top: 16px; font-size: 12px; color: var(--text-light); line-height: 1.8; border-top: 1px dashed var(--border); padding-top: 14px; }
.auth-demo { margin-top: 10px; font-size: 12px; color: #1b7a3d; background: #f0faf4; border: 1px solid #b7e2c6; border-radius: 4px; padding: 8px 10px; }

/* ---------- 个人中心 ---------- */
.acc-layout { display: flex; gap: 12px; padding: 12px 0 30px; }
.acc-side { width: 230px; flex-shrink: 0; }
.acc-user { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 22px 16px; text-align: center; margin-bottom: 12px; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.acc-name { font-size: 16px; font-weight: 700; }
.acc-company { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.acc-menu { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.acc-menu a { display: block; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.acc-menu a:last-child { border-bottom: none; }
.acc-menu a:hover { background: #fdf1f1; color: var(--primary); }
.acc-menu a.active { background: var(--primary); color: #fff; font-weight: 600; }
.acc-main { flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 28px 30px; }
.acc-panel h2 { font-size: 18px; border-left: 4px solid var(--primary); padding-left: 10px; margin-bottom: 22px; }
@media (max-width: 768px) {
  .acc-layout { flex-direction: column; }
  .acc-side { width: 100%; }
  .auth-box { width: 100%; }
}

/* ---------- 商品卡装箱数 + 加购按钮 ---------- */
.g-pack { font-size: 12px; color: #888; margin-top: 5px; }
.g-card-foot { margin-top: 6px; }
.g-cart-btn { width: 100%; border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 5px; padding: 4px 0; font-size: 12px; cursor: pointer; }
.g-cart-btn:hover { background: var(--primary); color: #fff; }
/* 卡片内数量/整箱步进器(紧凑版) */
.g-qty { margin-top: 6px; font-size: 12px; color: #666; }
.g-qty-row { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; }
.g-qty-row:first-child { margin-top: 0; }
.g-qty-label { color: #888; white-space: nowrap; }
.g-qty-unit { color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: #fff; flex: none; }
.g-stepper button { width: 22px; height: 22px; border: none; background: #f5f5f5; cursor: pointer; font-size: 13px; color: #555; line-height: 1; }
.g-stepper button:hover { background: #eee; color: var(--primary); }
.g-stepper input { width: 48px; height: 22px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 12px; outline: none; }

/* ---------- 前台 toast ---------- */
.krd-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px); background: #111; color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 14px; z-index: 999; transition: transform .3s; opacity: .95; }
.krd-toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 购物车结算区 ---------- */
.cart-empty { padding: 24px; background: #fafafa; border: 1px dashed var(--border); border-radius: 8px; color: #999; text-align: center; }
.cart-head { font-size: 15px; margin-bottom: 10px; }
.cart-head b { color: var(--primary); }
.cart-clear { float: right; font-size: 13px; color: #999; }
.cart-clear:hover { color: var(--primary); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: #fafafa; font-size: 12px; color: #888; font-weight: 500; padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 10px; border-bottom: 1px solid #f2f2f2; font-size: 13px; vertical-align: middle; }
.ci-thumb { width: 56px; }
.ci-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.ci-name { max-width: 300px; }
.ci-model { font-size: 12px; color: #999; margin-top: 3px; }
.ci-price { color: var(--primary); white-space: nowrap; }
.ci-sub { color: var(--primary); font-weight: 600; white-space: nowrap; }
.ci-unit { font-size: 12px; color: #999; margin-left: 6px; }
.ci-del a { color: #c81e1e; font-size: 12px; }
.cart-stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.cart-stepper button { width: 28px; height: 30px; border: none; background: #f5f5f5; cursor: pointer; font-size: 15px; }
.cart-stepper button:hover { background: #eee; color: var(--primary); }
.cart-stepper input { width: 56px; height: 30px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; outline: none; font-size: 13px; }
.cart-total { text-align: right; margin-top: 12px; font-size: 15px; }
.cart-total b { color: var(--primary); font-size: 20px; margin-left: 6px; }
.cart-total-note { font-size: 12px; color: #999; margin-left: 8px; }

/* ---------- 详情页 数量/整箱 步进器 ---------- */
.qty-box { margin: 4px 0 20px; padding: 14px 16px; background: #fafafa; border: 1px solid var(--border); border-radius: 8px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qty-row:last-child { margin-bottom: 0; }
.qty-label { width: 44px; font-size: 13px; color: #666; }
.qty-unit { font-size: 12px; color: #999; }
.stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.stepper button { width: 34px; height: 34px; border: none; background: #f5f5f5; font-size: 18px; cursor: pointer; color: #555; }
.stepper button:hover { background: #eee; color: var(--primary); }
.stepper input { width: 72px; height: 34px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; outline: none; }

/* ---------- 价格登录可见 ---------- */
.g-price.locked { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; }
.g-price.locked:hover { text-decoration: underline; }

/* ---------- 真实商品图 ---------- */
.g-img.has-img { background: #fff; overflow: hidden; }
/* contain 完整显示商品不裁切(方图/竖图/横图都适配),白底居中;少量内边距更透气 */
.g-img.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; box-sizing: border-box; }
.detail-img.has-img { background: #fff; overflow: hidden; border: 1px solid var(--border); }
.detail-img.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- 子类筛选条(类目页) ---------- */
.sub-chips { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-chips a { font-size: 12px; color: #555; padding: 4px 12px; border-radius: 999px; background: #f5f5f5; }
.sub-chips a:hover { color: var(--primary); background: #fdf1f1; }
.sub-chips a.on { background: var(--primary); color: #fff; }

/* ---------- 列表页码 ---------- */
.list-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.list-pager button { min-width: 34px; height: 34px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; padding: 0 8px; }
.list-pager button:hover { border-color: var(--primary); color: var(--primary); }
.list-pager button.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.list-pager button:disabled { opacity: .4; cursor: not-allowed; }
.list-pager span { color: #999; }
.list-pager .pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: #666; font-size: 13px; }
.list-pager .pg-jump input { width: 56px; height: 34px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 13px; }
.list-pager .pg-jump button { min-width: auto; padding: 0 12px; }

/* ---------- 分类多时侧栏滚动(悬浮弹层会被裁剪,改为点进类目页选子类) ---------- */
.cat-sidebar.scrollable { max-height: 405px; overflow-y: auto; }
.cat-sidebar.scrollable::-webkit-scrollbar { width: 4px; }
.cat-sidebar.scrollable::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.cat-sidebar.scrollable .cat-pop { display: none !important; }
.cat-sidebar.scrollable li > a { height: 36px; font-size: 13px; }

/* ---------- 回顶部 ---------- */
.backtop { position: fixed; right: 24px; bottom: 60px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(200,30,30,.35); z-index: 50; }
.backtop.show { display: flex; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .list-main .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .side-card { display: none; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 12px; }
  /* 顶栏:登录独占一行放大、下面一行放会员中心/语言/货币,清晰不挤 */
  .topbar { font-size: 13px; }
  .topbar .wrap { height: auto; min-height: 34px; flex-wrap: wrap; padding: 7px 12px; gap: 4px 10px; }
  .topbar .hello { flex: 1 1 100%; font-size: 14px; display: flex; align-items: center; gap: 6px; }
  .topbar .hello em, .topbar .hello a { font-size: 15px; font-weight: 700; }
  .topbar-links { flex-wrap: wrap; width: 100%; font-size: 13px; }
  .topbar-links > * { padding: 0 9px; }
  .topbar-links > *:first-child { padding-left: 0; }
  .topbar-links select { font-size: 13px !important; }
  /* 我的订单/我的收藏 手机端也显示(顶栏第二行,可换行) */
  .quick-nav .wrap { padding: 10px 12px; gap: 8px; }
  .qn-item { min-width: 60px; padding: 8px 11px; font-size: 12.5px; }
  .qn-item .qn-ico { font-size: 21px; }
  /* 头部:logo 缩小,搜索独占一行,购物车变紧凑图标 */
  .header { padding: 12px 0; }
  .header .wrap { flex-wrap: wrap; gap: 10px 12px; align-items: center; }
  .logo .logo-cn { font-size: 20px; letter-spacing: 0; }
  .logo .logo-sub { font-size: 11px; letter-spacing: 1px; margin-top: 2px; }
  .search-area { flex: 1 1 100%; order: 3; }
  .search-box { height: 40px; }
  .search-box button[type=submit] { width: 66px; font-size: 14px; }
  .search-box .cam-btn { width: 46px; }
  .hot-words { display: none; }              /* 热门词占地方,移动端隐藏 */
  .cart-entry { display: flex; margin-left: auto; height: 40px; padding: 0 12px; font-size: 20px; gap: 5px; }
  .cart-entry .cart-label { display: none; } /* 只留 🛒 图标 + 数量角标 */
  /* 分类导航 */
  .all-cats-btn { display: none; }
  .cat-sidebar, .cat-panel { display: none; }
  .nav .wrap { height: 42px; }
  .nav-links { display: flex; gap: 6px; overflow-x: auto; }
  .nav-links a { padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .sort-bar { overflow-x: auto; }
  .sort-bar a { white-space: nowrap; padding: 5px 10px; }
  .sort-bar .result-count { white-space: nowrap; }
  /* 轮播/服务条 */
  .banner { flex: none; width: 100%; height: 200px; }  /* 纵向flex下 flex:1 会把高度压成0,改固定高 */
  .banner-slide { padding: 0 24px; }
  .banner-slide .b-title { font-size: 24px; }
  .home-main .wrap { flex-direction: column; }
  .side-card { display: none; }
  .service-bar { height: auto; }
  .service-bar .wrap { flex-wrap: wrap; height: auto; }
  .service-bar .sv { flex: 1 1 50%; padding: 12px 0; }
  /* 商品网格:2列 */
  .goods-grid, .list-main .goods-grid, .vs-main .goods-grid { grid-template-columns: repeat(2, 1fr); }
  /* 商品详情:上下堆叠 */
  .detail-box { flex-direction: column; padding: 16px; }
  .detail-img { width: 100%; height: 300px; font-size: 110px; }
  .d-gallery, .d-main { width: 100%; }
  .d-main { height: auto; aspect-ratio: 1; }
  .detail-info h1, .detail-info .d-attrs { }
  .d-attrs, .detail-attrs { grid-template-columns: 1fr; }
  .d-buyrow { flex-wrap: wrap; gap: 8px; }
  .detail-btns { flex-wrap: wrap; }
  .detail-btns .btn { flex: 1 1 45%; padding: 0 12px; font-size: 14px; }
  .prod-qr { display: none; }                /* 商品码移动端收起 */
  /* 表单/结算/购物车 */
  /* 商品分类:手机端不再隐藏,改成顶部可横滑的一排胶囊 */
  .list-layout { display: block; }
  .filter-side { display: block; width: 100%; margin-bottom: 10px; }
  .filter-side .filter-block { padding: 8px 10px; margin-bottom: 8px; }
  .filter-side .filter-block h4 { font-size: 13px; margin-bottom: 8px; }
  .filter-side #cat-filter { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .filter-side #cat-filter::-webkit-scrollbar { display: none; }
  .filter-side .filter-block a { flex: 0 0 auto; white-space: nowrap; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }
  .filter-side .filter-block a.active { border-color: var(--primary); }
  .q-contact, .co-form { grid-template-columns: 1fr; }
  /* 快速下单:表格横向滚动不撑破页面,盒子内边距收紧 */
  .quick-box { padding: 16px; }
  .quick-box h1 { font-size: 19px; }
  .quick-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .quick-table th, .quick-table td { padding: 8px 8px; }
  .co-layout { flex-direction: column; }
  .co-right { width: 100%; position: static; }
  .cartp-table, .cartp-table tbody, .cartp-table tr, .cartp-table td, .cartp-table th { display: block; }
  .cartp-table thead, .cartp-table tr > th { display: none; }
  .cartp-table tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 8px; position: relative; }
  .cartp-table td { border: none; padding: 4px 6px; text-align: left !important; }
  .cartp-foot { flex-direction: column; align-items: stretch; }
  .cartp-foot .btn, .cartp-foot .spacer { width: 100%; }
  .cartp-foot .spacer { display: none; }
  /* 会员中心 / 页脚 */
  .acc-layout { flex-direction: column; }
  .acc-side { width: 100%; }
  .acc-menu { display: flex; overflow-x: auto; }
  .footer-top .wrap { flex-wrap: wrap; gap: 24px; padding: 24px 12px; }
  .ord-ops, .oc-ops { flex-wrap: wrap; }
  .ord-layout, .fin-layout { flex-direction: column; }
}
@media (max-width: 420px) {
  .goods-grid, .list-main .goods-grid, .vs-main .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .logo .logo-cn { font-size: 18px; }
  .banner-slide .b-title { font-size: 20px; }
  .service-bar .sv { flex: 1 1 100%; }
}
