/* ===== 甄惠团 · 社区团购商城（PC 版）公共样式 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #ff5b30;
  --primary-dark: #e8481f;
  --primary-soft: #fff1ec;
  --green: #23a05c;
  --green-soft: #eaf7f0;
  --price: #e93b3b;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e9eaee;
  --border-2: #f1f2f5;
  --text: #1f2329;
  --text-2: #5f6672;
  --text-3: #9aa1ac;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 10px rgba(20, 25, 40, .06);
  --shadow-lg: 0 8px 30px rgba(20, 25, 40, .14);
}

body {
  font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
li { list-style: none; }
img { display: block; max-width: 100%; }
input, button, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
.container { width: 1200px; margin: 0 auto; }
.hide { display: none !important; }
.muted { color: var(--text-3); }
.green { color: var(--green); }
.orange { color: var(--primary); }

/* ===== 顶部条 ===== */
.topbar { background: #2b3038; color: #c9ced6; font-size: 12px; height: 32px; line-height: 32px; }
.topbar-inner { display: flex; justify-content: space-between; }
.topbar a:hover { color: #fff; }
.topbar-l { display: flex; gap: 14px; align-items: center; }
.topbar-r { display: flex; gap: 14px; align-items: center; }
.topbar .dot { color: #565d68; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 2px solid var(--primary); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 92px; }
.logo { display: flex; align-items: center; gap: 7px; font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.logo .logo-sub { font-size: 12px; font-weight: 600; color: #fff; background: var(--primary); border-radius: 3px; padding: 2px 7px; letter-spacing: 3px; line-height: 1.4; }
.logo-em { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.search-box { flex: 1; max-width: 560px; min-width: 0; margin: 0 auto; }
.search { width: 100%; display: flex; height: 40px; border: 2px solid var(--primary); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(255, 91, 48, .10); }
.search input { flex: 1; border: none; padding: 0 18px; font-size: 13px; }
.search input::placeholder { color: #b0b7c3; }
.search button { width: 96px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 4px; }
.search button:hover { background: var(--primary-dark); }
.search-tags { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: 7px; padding-left: 4px; }
.search-tags .lb { color: #b0b7c3; }
.search-tags a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hact { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-2); background: #fff; transition: .18s; }
.hact:hover { border-color: var(--primary); color: var(--primary); }
.hact-cart { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); position: relative; }
.badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--price); color: #fff; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; }

/* ===== 分类导航 ===== */
.catnav { background: #fff; border-top: 1px solid var(--border-2); }
.catnav-inner { display: flex; align-items: center; gap: 4px; height: 44px; }
.catnav-inner a { padding: 0 16px; height: 44px; line-height: 44px; color: var(--text-2); border-bottom: 2px solid transparent; transition: .18s; }
.catnav-inner a:hover { color: var(--primary); }
.catnav-inner a.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.catnav .all { background: var(--primary); color: #fff !important; border-radius: 4px; margin-right: 10px; height: 30px; line-height: 30px; font-weight: 600; }
.catnav .all:hover { background: var(--primary-dark); }

/* ===== 通用按钮 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--border); background: #fff; color: var(--text-2); transition: .18s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #1b8549; border-color: #1b8549; color: #fff; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 30px; font-size: 16px; border-radius: 4px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 主体布局 ===== */
.main { padding: 16px 0 40px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-2); }
.panel-hd h2 { font-size: 16px; }
.panel-hd h2 small { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.crumb { font-size: 12px; color: var(--text-3); padding: 12px 0 0; }
.crumb a:hover { color: var(--primary); }
.crumb i { margin: 0 6px; font-style: normal; }

/* ===== 首页轮播 ===== */
.banner { display: flex; gap: 12px; margin-bottom: 16px; }
.slider { position: relative; flex: 1; height: 240px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; flex-direction: column; justify-content: center; padding: 0 48px; color: #fff; }
.slide.on { opacity: 1; }
.slide h3 { font-size: 30px; letter-spacing: 1px; }
.slide p { font-size: 15px; opacity: .92; margin-top: 8px; }
.slide .tag { display: inline-block; width: fit-content; margin-top: 14px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5); padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.s1 { background: linear-gradient(120deg, #ff7a45, #ff4d2d 55%, #e03d1c); }
.s2 { background: linear-gradient(120deg, #3fbf7f, #23a05c 55%, #16804a); }
.s3 { background: linear-gradient(120deg, #5b8def, #3f6fd8 55%, #2f57b0); }
.slide-logo { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.slide.s1 .slide-logo { width: 158px; height: 158px; }
.slider-dots { position: absolute; bottom: 14px; left: 48px; display: flex; gap: 8px; }
.slider-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; transition: .2s; }
.slider-dots i.on { width: 20px; border-radius: 4px; background: #fff; }
.side-card { width: 300px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; }
.side-card h4 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.side-card h4 span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.pickup { border: 1px dashed var(--border); border-radius: 6px; padding: 10px; margin-top: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; transition: .18s; }
.pickup:hover { border-color: var(--primary); background: var(--primary-soft); }
.pickup .em { font-size: 22px; }
.pickup b { display: block; font-size: 13px; }
.pickup p { font-size: 12px; color: var(--text-3); }
.countdown { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.countdown b { background: #2b3038; color: #fff; padding: 2px 6px; border-radius: 3px; font-variant-numeric: tabular-nums; }

/* ===== 区块标题 ===== */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.sec-hd h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.sec-hd h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--primary); }
.sec-hd .more { font-size: 12px; color: var(--text-3); }
.sec-hd .more:hover { color: var(--primary); }

/* ===== 排序栏 ===== */
.sortbar { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; }
.sortbar .label { color: var(--text-3); margin-right: 4px; }
.sortbar .chip { padding: 4px 12px; border-radius: 14px; color: var(--text-2); transition: .18s; }
.sortbar .chip:hover { color: var(--primary); }
.sortbar .chip.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sortbar .count { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* ===== 商品网格 ===== */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.goods { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; cursor: pointer; display: flex; flex-direction: column; }
.goods:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.thumb { height: 178px; display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; }
.goods:hover .thumb span { transform: scale(1.08); }
.thumb span { transition: .25s; }
.thumb .corner { position: absolute; left: 0; top: 10px; background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 0 10px 10px 0; }
.goods-bd { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.goods-name { font-size: 13px; line-height: 1.45; height: 38px; overflow: hidden; }
.goods:hover .goods-name { color: var(--primary); }
.goods-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; height: 19px; overflow: hidden; }
.merchant-line { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.merchant-line .mtag { background: var(--green-soft); color: var(--green); font-size: 11px; padding: 1px 5px; border-radius: 3px; }
.merchant-line:hover { color: var(--primary); }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.price { color: var(--price); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price i { font-size: 12px; font-weight: 400; font-style: normal; }
.orig { color: var(--text-3); font-size: 12px; text-decoration: line-through; }
.goods-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sales { font-size: 12px; color: var(--text-3); }
.add-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: .18s; }
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.empty { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-3); }
.empty .em { font-size: 40px; display: block; margin-bottom: 10px; }

/* ===== 商户卡片 ===== */
.merchant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mcard { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: .2s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mcard-top { display: flex; gap: 10px; align-items: center; }
.mcard-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mcard b { display: block; font-size: 14px; }
.mcard .rate { font-size: 12px; color: #f5a623; }
.mcard p { font-size: 12px; color: var(--text-3); margin-top: 8px; height: 38px; overflow: hidden; }
.mcard-ft { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--text-3); }

/* ===== 详情页 ===== */
.detail-top { display: flex; gap: 24px; padding: 20px; }
.gallery { width: 380px; }
.gallery-main { height: 340px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 130px; position: relative; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs div { flex: 1; height: 62px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 28px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs div.on { border-color: var(--primary); }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 21px; line-height: 1.4; font-weight: 600; }
.detail-info .sub { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.pricebox { background: linear-gradient(90deg, #fff4ef, #fff9f6); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.pricebox .big { color: var(--price); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pricebox .big i { font-size: 15px; font-weight: 400; font-style: normal; }
.pricebox .row1 { display: flex; align-items: baseline; gap: 12px; }
.pricebox .row2 { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.pricebox .row2 b { color: var(--text); }
.opt-row { display: flex; gap: 12px; padding: 10px 0; font-size: 13px; align-items: flex-start; }
.opt-row .k { width: 62px; color: var(--text-3); flex: none; padding-top: 4px; }
.opt-row .v { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spec { padding: 5px 14px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: .18s; background: #fff; }
.spec:hover { border-color: var(--primary); color: var(--primary); }
.spec.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.stepper { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.stepper button { width: 30px; height: 30px; background: #fafbfc; color: var(--text-2); font-size: 15px; }
.stepper button:hover { background: #f0f1f4; color: var(--primary); }
.stepper input { width: 48px; height: 30px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; }
.buy-row { display: flex; gap: 12px; margin-top: 18px; }
.svc-list { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.svc-list span::before { content: "✓"; color: var(--green); margin-right: 4px; font-weight: 700; }
.mbox { display: flex; gap: 12px; padding: 14px 16px; margin-top: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.mbox .m-logo { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mbox .m-bd { flex: 1; }
.mbox .m-bd b { font-size: 14px; }
.mbox .m-bd p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mbox .m-stat { display: flex; gap: 22px; text-align: center; font-size: 12px; color: var(--text-3); }
.mbox .m-stat b { display: block; font-size: 15px; color: var(--text); }

/* 详情富文本 / 评价 */
.detail-body { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; }
.detail-left { flex: 1; }
.detail-right { width: 300px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-2); padding: 0 20px; }
.tabs div { padding: 14px 0; font-size: 15px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs div.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.tab-pane { padding: 18px 20px; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.tab-pane h4 { font-size: 14px; color: var(--text); margin: 14px 0 6px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.spec-table td { border: 1px solid var(--border); padding: 8px 12px; }
.spec-table td:first-child { background: #fafbfc; color: var(--text-3); width: 120px; }
.review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.review .rv-bd { flex: 1; }
.review .rv-name { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; }
.review .stars { color: #f5a623; font-size: 12px; }
.review p { font-size: 13px; margin-top: 4px; color: var(--text); }
.review time { font-size: 12px; color: var(--text-3); }
.rank-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.rank-list li:hover b { color: var(--primary); }
.rank-list .r-em { width: 46px; height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.rank-list b { font-size: 13px; display: block; line-height: 1.4; }
.rank-list .p { color: var(--price); font-weight: 700; font-size: 14px; }

/* ===== 购物车 ===== */
.cart-table { width: 100%; }
.cart-head, .cart-row { display: flex; align-items: center; padding: 12px 18px; gap: 12px; }
.cart-head { background: #fafbfc; font-size: 12px; color: var(--text-3); }
.cart-row { border-top: 1px solid var(--border-2); }
.cart-row:hover { background: #fffdfc; }
.col-chk { width: 30px; }
.col-goods { flex: 1; min-width: 0; }
.col-price { width: 110px; text-align: center; }
.col-qty { width: 130px; text-align: center; }
.col-sum { width: 110px; text-align: right; }
.col-op { width: 70px; text-align: right; }
.ck { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.cart-goods { display: flex; gap: 12px; align-items: center; }
.cart-thumb { width: 66px; height: 66px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex: none; }
.cart-goods b { font-size: 13px; font-weight: 400; line-height: 1.45; display: block; }
.cart-goods .sku { font-size: 12px; color: var(--text-3); background: #f6f7f9; padding: 1px 6px; border-radius: 3px; display: inline-block; margin-top: 4px; }
.mgroup { border-top: 1px solid var(--border); }
.mgroup:first-child { border-top: none; }
.mgroup-hd { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; }
.mgroup-hd .m-em { font-size: 18px; }
.mgroup-hd b { font-size: 13px; }
.mgroup-hd .mtag { background: var(--green-soft); color: var(--green); font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.mgroup-hd .link { font-size: 12px; color: var(--text-3); }
.cart-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 20px; padding: 12px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 12px; }
.cart-bar .total { margin-left: auto; font-size: 13px; }
.cart-bar .total b { color: var(--price); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-bar .save { font-size: 12px; color: var(--text-3); }

/* ===== 结算 ===== */
.checkout { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.checkout-main { flex: 1; }
.checkout-side { width: 330px; position: sticky; top: 16px; }
.addr-card { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: .18s; margin-bottom: 10px; }
.addr-card:hover { border-color: var(--primary); }
.addr-card.on { border-color: var(--primary); background: var(--primary-soft); }
.addr-card .a-icon { font-size: 22px; }
.addr-card b { font-size: 14px; }
.addr-card p { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.addr-card .a-right { margin-left: auto; text-align: right; font-size: 12px; color: var(--text-3); }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.form-row label { width: 74px; color: var(--text-3); flex: none; }
.form-row input, .form-row select, .form-row textarea { border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; width: 100%; background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); }
.pay-opt { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-opt div { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; cursor: pointer; font-size: 13px; min-width: 140px; transition: .18s; }
.pay-opt div:hover { border-color: var(--primary); }
.pay-opt div.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sum-list { padding: 8px 18px 14px; }
.sum-list li { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: var(--text-2); }
.sum-list li.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 12px; align-items: baseline; }
.sum-list li.total b { color: var(--price); font-size: 24px; font-variant-numeric: tabular-nums; }
.goods-mini { display: flex; gap: 10px; padding: 10px 18px; border-bottom: 1px dashed var(--border-2); font-size: 13px; }
.goods-mini .t { width: 46px; height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.goods-mini .g-bd { flex: 1; min-width: 0; }
.goods-mini .g-bd b { font-weight: 400; display: block; font-size: 13px; }
.goods-mini .g-bd span { font-size: 12px; color: var(--text-3); }
.mgroup-title { padding: 10px 18px 0; font-size: 12px; color: var(--text-3); }

/* ===== 订单中心 ===== */
.otabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-2); padding: 0 18px; }
.otabs div { padding: 14px 16px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; position: relative; }
.otabs div:hover { color: var(--primary); }
.otabs div.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.otabs .num { background: var(--price); color: #fff; font-size: 11px; border-radius: 8px; padding: 0 5px; margin-left: 4px; }
.order { border: 1px solid var(--border); border-radius: var(--radius); margin: 14px 18px; overflow: hidden; }
.order-hd { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #fafbfc; font-size: 12px; color: var(--text-3); }
.order-hd .no { color: var(--text-2); }
.order-hd .status { margin-left: auto; font-size: 13px; font-weight: 600; }
.st-unpaid { color: var(--price); }
.st-undelivered { color: var(--primary); }
.st-delivering { color: #2f6fd8; }
.st-done { color: var(--green); }
.st-canceled { color: var(--text-3); }
.order-bd { display: flex; }
.order-goods { flex: 1; padding: 6px 14px; }
.order-goods .m-title { font-size: 12px; color: var(--text-3); padding: 8px 0 2px; display: flex; gap: 6px; align-items: center; }
.order-goods .line { display: flex; gap: 12px; padding: 8px 0; align-items: center; font-size: 13px; }
.order-goods .line .t { width: 56px; height: 56px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.order-goods .line .g-name { flex: 1; }
.order-goods .line .g-sku { font-size: 12px; color: var(--text-3); }
.order-goods .line .g-price { text-align: right; min-width: 90px; }
.order-side { width: 210px; border-left: 1px solid var(--border-2); padding: 16px 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.order-side .amt { font-size: 13px; color: var(--text-2); }
.order-side .amt b { display: block; color: var(--price); font-size: 20px; font-variant-numeric: tabular-nums; }
.order-detail { background: #fafbfc; border-top: 1px dashed var(--border); padding: 14px 16px; font-size: 13px; }
.info-line { display: flex; gap: 10px; padding: 4px 0; color: var(--text-2); }
.info-line .k { width: 82px; color: var(--text-3); flex: none; }
.timeline { border-left: 2px solid var(--border); margin: 10px 0 4px 6px; padding-left: 16px; }
.timeline li { position: relative; padding-bottom: 12px; font-size: 12px; color: var(--text-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d5d8de; }
.timeline li.on { color: var(--text); }
.timeline li.on::before { background: var(--primary); }
.timeline li b { display: block; color: var(--text); font-weight: 500; }

/* ===== 登录页 ===== */
.login-wrap { min-height: calc(100vh - 32px); display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #fff4ef, #f4f5f7 45%, #eaf7f0); padding: 40px 0; }
.login-card { width: 400px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 32px 34px; }
.login-card .lb-logo { text-align: center; margin-bottom: 6px; font-size: 24px; font-weight: 700; color: var(--primary); }
.login-card .lb-sub { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 20px; letter-spacing: 1px; }
.ltabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-2); margin-bottom: 20px; }
.ltabs div { padding-bottom: 10px; font-size: 15px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; }
.ltabs div.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.lfield { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; height: 44px; padding: 0 12px; margin-bottom: 14px; transition: .18s; background: #fff; }
.lfield:focus-within { border-color: var(--primary); }
.lfield span { color: var(--text-3); margin-right: 8px; }
.lfield input { flex: 1; border: none; height: 100%; }
.lfield .code-btn { color: var(--primary); font-size: 13px; white-space: nowrap; }
.lfield .code-btn:disabled { color: var(--text-3); }
.lrow { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.lrow a:hover { color: var(--primary); }
.agree-check { display: flex; gap: 8px; font-size: 12px; color: var(--text-2); align-items: flex-start; margin: 14px 0 4px; }
.agree-check a { color: var(--primary); }

/* ===== 协议 / 资质 ===== */
.doc-wrap { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.doc-nav { width: 190px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 16px; }
.doc-nav a { display: block; padding: 12px 18px; font-size: 13px; color: var(--text-2); border-left: 3px solid transparent; }
.doc-nav a:hover { background: #fafbfc; color: var(--primary); }
.doc-nav a.on { color: var(--primary); border-left-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.doc-body { flex: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 34px; }
.doc-body h1 { font-size: 20px; text-align: center; }
.doc-body .doc-time { text-align: center; font-size: 12px; color: var(--text-3); margin: 8px 0 20px; }
.doc-body h3 { font-size: 15px; margin: 18px 0 6px; }
.doc-body p { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.doc-body ol { padding-left: 20px; }
.doc-body ol li { list-style: decimal; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.cert { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; }
.cert .c-em { width: 54px; height: 54px; border-radius: 8px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.cert b { font-size: 14px; display: block; }
.cert p { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.7; }
.cert .cert-no { color: var(--text-2); font-family: Consolas, Monaco, monospace; }
.tip-box { background: #fffaf0; border: 1px solid #ffe0a8; border-radius: 6px; padding: 12px 14px; font-size: 12px; color: #96601a; line-height: 1.8; margin-top: 16px; }

/* ===== 页脚 ===== */
.footer { background: #2b3038; color: #b3bac5; margin-top: 30px; padding: 28px 0 20px; font-size: 12px; }
.footer-top { display: flex; gap: 60px; padding-bottom: 20px; border-bottom: 1px solid #3a4049; }
.footer h5 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.footer li { margin-bottom: 6px; line-height: 1.8; }
.footer a { color: #c9ced6; }
.footer a:hover { color: #fff; }
.footer-bt { padding-top: 16px; text-align: center; line-height: 2.1; color: #a2a9b4; }
.footer-bt a { color: #d6dbe3; }
.footer-bt .ph { color: #c9ced6; }

/* ===== 弹层 / 提示 ===== */
.mask { position: fixed; inset: 0; background: rgba(20, 25, 40, .45); display: flex; align-items: center; justify-content: center; z-index: 900; animation: fade .2s; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }
.modal { background: #fff; border-radius: 12px; width: 420px; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .22s; }
.modal.wide { width: 620px; }
.modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal .m-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal .m-btns .btn { flex: 1; }
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(31, 35, 41, .92); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; z-index: 1000; animation: pop .2s; max-width: 420px; text-align: center; }
.pay-modal .pay-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.pay-modal .pay-row b { color: var(--price); font-size: 20px; }
.qr-box { width: 150px; height: 150px; margin: 16px auto 6px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); padding: 8px; gap: 2px; background: #fff; }
.qr-box i { background: #1f2329; border-radius: 1px; }
.qr-box i.w { background: transparent; }
@media (max-width: 1260px) {
  .container { width: 100%; padding: 0 16px; }
  .goods-grid, .merchant-grid { grid-template-columns: repeat(3, 1fr); }
}
