/* 前台（员工侧）骨架样式：顶栏 / 搜索 / 页脚。模块样式在 M4-M6 按页面拆分追加。 */
.portal-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: var(--brand); }
.logo-sub { font-size: 13px; color: var(--text-sub); margin-left: 8px; font-weight: 400; }
.search-box { flex: 1; max-width: 420px; }
.search-box form { display: flex; border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.search-box input { flex: 1; border: none; padding: 8px 12px; outline: none; font-size: 14px; }
.search-box button { border: none; background: var(--brand); color: #fff; padding: 0 20px; cursor: pointer; }
.search-box button:hover { background: var(--brand-hover); }
.header-nav { display: flex; gap: 20px; font-size: 14px; }
.cart-badge { background: var(--brand); color: #fff; border-radius: var(--radius-pill); font-size: 11px; padding: 1px 6px; font-style: normal; }
.portal-main { min-height: 60vh; padding: 24px 0; }
.portal-footer { background: #fff; border-top: 1px solid var(--border); padding: 24px 0; color: var(--text-muted); font-size: 12px; text-align: center; }

.m1-placeholder { text-align: center; padding: 120px 0; }
.m1-placeholder p { color: var(--text-sub); margin-top: 12px; }

@media (max-width: 767px) {
  .header-inner { gap: 12px; height: 52px; }
  .logo-sub { display: none; }
  .search-box { max-width: none; }
  .header-nav { gap: 12px; font-size: 13px; }
}

/* ================= M4 前台商品浏览（P-01/P-02/P-03） ================= */
.card { background: var(--card-bg); border-radius: var(--radius-card); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 28px; border: none; border-radius: var(--radius-btn);
  font-size: 15px; cursor: pointer; transition: .15s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-deep { background: #E65A00; }
.btn-ghost { border: 1px solid var(--brand); color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-mini { height: 30px; padding: 0 14px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.78); color: #fff; font-size: 13px; padding: 10px 22px;
  border-radius: var(--radius-pill); opacity: 0; pointer-events: none; transition: .25s; z-index: 500; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页 ---------- */
.hero-wrap { display: flex; gap: 16px; padding-top: 16px; }
.cat-side { width: 220px; flex: none; background: var(--card-bg); border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 8px 0; align-self: flex-start; position: relative; z-index: 20; }
.cat-side > .cat-item > a, .cat-side > a.cat-all { display: flex; justify-content: space-between;
  align-items: center; padding: 0 20px; height: 46px; font-size: 14px; }
.cat-item { position: relative; }
.cat-item.has-sub > a::after { content: "›"; color: var(--text-muted); font-size: 16px; }
.cat-side > .cat-item > a:hover, .cat-side > a.cat-all:hover { color: var(--brand); }
/* 二级分类浮层：桌面端悬停一级分类时向右展开 */
.cat-sub { position: absolute; left: 100%; top: 0; width: 336px; min-height: 100%;
  margin-left: 6px; background: var(--card-bg); border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 16px 20px 18px;
  display: none; z-index: 30; }
.cat-item.has-sub:hover .cat-sub { display: block; }
.cat-sub-hd { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.cat-sub-hd a { font-size: 15px; font-weight: 600; color: var(--brand); }
.cat-sub-bd { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-sub-bd a { font-size: 13px; color: var(--text-sub); padding: 5px 12px;
  border-radius: 6px; background: #F5F5F6; line-height: 1.4; }
.cat-sub-bd a:hover { color: #fff; background: var(--brand); }

.hero { flex: 1; border-radius: var(--radius-card); overflow: hidden; position: relative;
  min-height: 380px; background: linear-gradient(100deg, #fff 30%, #F6EDE4 100%); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; position: relative; display: block; min-height: 380px; }
.hero-img { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; height: 100%;
  object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-txt { padding: 56px 48px; position: relative; z-index: 2; max-width: 46%; }
.hero-tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12px;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 18px; }
.hero-txt h1 { font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: 1px; }
.hero-txt p { color: var(--text-sub); margin: 14px 0 22px; font-size: 15px; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; }
.hero-dots { position: absolute; bottom: 18px; left: 48px; z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 22px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.15); cursor: pointer; }
.hero-dots span.on { background: var(--brand); }

.notice-bar { display: flex; align-items: center; gap: 10px; background: var(--card-bg);
  border-radius: var(--radius-card); margin-top: 16px; padding: 12px 20px; font-size: 13px;
  color: var(--text-sub); }
.notice-ic { flex: none; }
.notice-items { position: relative; flex: 1; height: 22px; overflow: hidden; }
.notice-item { position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item.on { opacity: 1; }

.floor { margin-top: 40px; }
.floor-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.floor-hd h2 { font-size: 24px; font-weight: 700; }
.floor-hd .sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.floor-hd .more { color: var(--text-muted); font-size: 13px; }
.floor-hd .more:hover { color: var(--brand); }

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pcard { background: var(--card-bg); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.10); color: inherit; }
.pcard .ph { aspect-ratio: 1/1.18; overflow: hidden; background: #F2F2F2; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .bd { padding: 12px 14px 16px; }
.pcard .nm { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .ds { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pcard .pr { color: var(--brand); font-size: 17px; font-weight: 700; margin-top: 10px; }
.pcard .pr small { font-size: 12px; font-weight: 400; }
.pcard .pr del { color: var(--text-muted); font-size: 12px; font-weight: 400; margin-left: 6px; }
.pcard .pr .sales { color: var(--text-muted); font-size: 11px; font-weight: 400; float: right; margin-top: 4px; }
.tag-new { display: inline-block; background: var(--brand); color: #fff; font-size: 11px;
  border-radius: 3px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }

/* ---------- 列表页 ---------- */
.crumb { padding: 14px 0; color: var(--text-muted); font-size: 13px; }
.crumb b { color: var(--text-sub); font-weight: 400; }
.filter-card { padding: 6px 24px; }
.filter-row { display: flex; align-items: baseline; gap: 20px; padding: 14px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--border); }
.filter-row .lb { color: var(--text-muted); font-size: 13px; flex: none; width: 60px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.filter-opts a { font-size: 13px; color: var(--text-sub); padding: 3px 10px; border-radius: 6px; }
.filter-opts a.on { color: var(--brand); background: var(--brand-light); font-weight: 600; }
/* 二级分类筛选行：与一级行视觉分层 */
.filter-row.sub-row .lb { color: var(--text-sub); }
.filter-row.sub-row .filter-opts a { background: #F5F5F6; }
.filter-row.sub-row .filter-opts a.on { background: var(--brand-light); }
.sortbar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 14px; }
.sortbar .cnt { color: var(--text-sub); font-size: 13px; }
.sort-opts { display: flex; background: var(--card-bg); border-radius: var(--radius-btn);
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.sort-opts a { padding: 9px 20px; font-size: 13px; color: var(--text-sub); border-right: 1px solid var(--border); }
.sort-opts a:last-child { border-right: none; }
.sort-opts a.on { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 8px; background: var(--card-bg); color: var(--text-sub);
  font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 0 10px; }
.pager .on { background: var(--brand); color: #fff; font-weight: 600; }
.pager .dis { opacity: .4; pointer-events: none; }
.cart-empty { text-align: center; padding: 80px 0; color: var(--text-sub); font-size: 15px; }
.cart-empty .em { display: block; font-size: 44px; margin-bottom: 12px; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: flex; gap: 40px; padding: 32px; margin-top: 8px; }
.gallery { width: 400px; flex: none; }
.gallery .main-ph { border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; aspect-ratio: 1/1; background: #F7F7F7; }
.gallery .main-ph img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; background: #F7F7F7; }
.thumbs img.on { border-color: var(--brand); }
.d-info { flex: 1; min-width: 0; }
.d-info h1 { font-size: 24px; font-weight: 700; }
.d-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.d-price-row { display: flex; align-items: baseline; gap: 12px; margin: 20px 0;
  background: var(--brand-light); border-radius: var(--radius-btn); padding: 16px 20px; }
.d-price { color: var(--brand); font-size: 30px; font-weight: 700; }
.d-price .cur { font-size: 18px; margin-right: 2px; }
.d-orig { color: var(--text-muted); font-size: 13px; text-decoration: line-through; }
.d-meta { color: var(--text-muted); font-size: 12px; }
.sku-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.sku-row .lb { color: var(--text-muted); font-size: 13px; flex: none; width: 40px; line-height: 36px; }
.sku-row .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 36px; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 13px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-light); font-weight: 600; }
.chip.disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty-ctl { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-ctl button { width: 36px; height: 36px; border: none; background: #fff; font-size: 16px;
  cursor: pointer; color: var(--text-sub); }
.qty-ctl button:hover { color: var(--brand); }
.qty-ctl input { width: 48px; height: 36px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center; font-size: 14px; }
.d-stock { color: var(--text-muted); font-size: 12px; margin-left: 12px; line-height: 36px; }
.d-cta { display: flex; gap: 14px; margin-top: 26px; }
.d-svc { display: flex; gap: 18px; color: var(--text-muted); font-size: 12px; margin-top: 18px; }
.d-selected { margin-top: 10px; font-size: 13px; color: var(--text-sub); }
.d-sec { margin-top: 16px; padding: 26px 32px; }
.d-sec h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.spec-grid .row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 13px; }
.spec-grid .row b { width: 110px; flex: none; color: var(--text-muted); font-weight: 400; }
.d-detail-txt { font-size: 14px; color: var(--text-sub); line-height: 1.9; }
.d-detail-txt img { max-width: 100%; border-radius: var(--radius-btn); }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .grid5 { grid-template-columns: repeat(3, 1fr); }
  .hero-txt h1 { font-size: 30px; }
  .detail-wrap { gap: 24px; padding: 24px; }
  .gallery { width: 320px; }
}
@media (max-width: 767px) {
  .hero-wrap { flex-direction: column; padding-top: 12px; }
  .cat-side { width: 100%; display: flex; overflow-x: auto; padding: 6px 8px; gap: 4px; }
  .cat-side > .cat-item { flex: none; }
  .cat-side > .cat-item > a, .cat-side > a.cat-all {
    height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .cat-side > .cat-item > a::after { content: ""; }
  /* 移动端不启用悬停浮层（触摸设备无 hover）：二级分类改用商品列表页的两级筛选 */
  .cat-sub { display: none !important; }
  .hero, .hero-slide.on { min-height: 300px; }
  .hero-img { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .hero-txt { max-width: 100%; padding: 36px 24px; }
  .hero-txt h1 { font-size: 26px; }
  .hero-dots { left: 24px; }
  .grid5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .floor { margin-top: 28px; }
  .floor-hd h2 { font-size: 19px; }
  .detail-wrap { flex-direction: column; padding: 16px; gap: 18px; }
  .gallery { width: 100%; }
  .spec-grid { grid-template-columns: 1fr; }
  .d-cta { position: sticky; bottom: 12px; background: var(--card-bg); padding: 10px;
    border-radius: var(--radius-btn); box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 50; }
  .d-cta .btn { flex: 1; }
  .filter-row .lb { display: none; }
  .sort-opts a { padding: 8px 12px; font-size: 12px; }
}

/* ================= M5 交易域（登录/购物车/结算/收银台/订单/个人中心） ================= */
.flash-wrap { padding-top: 12px; }
.flash { border-radius: var(--radius-btn); padding: 10px 18px; font-size: 13px; margin-bottom: 8px; }
.flash-error { background: #FEF2F2; color: #DC2626; }
.flash-success { background: #F0FDF4; color: #16A34A; }
.flash-info { background: #EFF6FF; color: #2563EB; }
.muted { color: var(--text-muted); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  background: #F3F4F6; border-radius: 4px; padding: 1px 6px; }
.link-btn { border: none; background: none; color: var(--brand); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn.danger { color: #DC2626; }
.tag-off { display: inline-block; background: #F3F4F6; color: #9CA3AF; font-size: 11px;
  border-radius: 3px; padding: 1px 6px; }

/* ---- 登录/注册 ---- */
.auth-wrap { display: flex; justify-content: center; padding: 48px 0 64px; }
.auth-card { width: 420px; max-width: 100%; padding: 36px 40px; }
.auth-title { font-size: 22px; font-weight: 700; }
.auth-sub { color: var(--text-muted); font-size: 13px; margin: 6px 0 20px; }
.frm-item { margin-bottom: 16px; }
.frm-item label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.frm-item input, .frm-item select, .frm-item textarea {
  width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; font-size: 14px; background: #fff; box-sizing: border-box; }
.frm-item textarea { height: auto; padding: 10px 12px; resize: vertical; }
.frm-item input:focus, .frm-item select:focus, .frm-item textarea:focus {
  border-color: var(--brand); outline: none; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 42px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); }
.captcha-row .btn { flex: none; height: 42px; }
.auth-submit { width: 100%; height: 46px; font-size: 16px; margin-top: 6px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 16px; }
.auth-alt a { color: var(--brand); }
.auth-tip { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ---- 购物车 ---- */
.cart-tb { padding: 0 20px; }
.cart-head { display: flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px dashed var(--border); }
.cart-row.invalid { opacity: .55; }
.cart-row.invalid img { filter: grayscale(1); }
.cart-sec-title { padding: 14px 0 0; font-size: 13px; color: var(--text-muted); }
.c-chk { width: 74px; flex: none; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sub); }
.chk { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; position: relative; flex: none; }
.chk.on { border-color: var(--brand); background: var(--brand); }
.chk.on::after { content: "✓"; color: #fff; font-size: 12px; position: absolute;
  left: 3px; top: -1px; }
.c-info { flex: 1; display: flex; gap: 12px; min-width: 0; }
.c-info img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #F2F2F2; }
.c-info .nm { font-size: 14px; font-weight: 500; }
.c-info .ds { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.c-info .tags span { display: inline-block; font-size: 11px; color: var(--brand);
  background: var(--brand-light); border-radius: 3px; padding: 0 6px; margin: 6px 4px 0 0; }
.c-info .tags .tag-off { color: #9CA3AF; background: #F3F4F6; }
.c-price { width: 90px; flex: none; font-size: 14px; }
.c-qty { width: 130px; flex: none; }
.c-sum { width: 100px; flex: none; color: var(--brand); }
.c-op { width: 60px; flex: none; }
.c-op a { color: var(--text-muted); font-size: 13px; cursor: pointer; }
.c-op a:hover { color: var(--brand); }
.cart-foot { display: flex; gap: 20px; padding: 12px 0; }
.cart-foot .lb { font-size: 13px; color: var(--text-sub); cursor: pointer; }
.cart-foot .lb:hover { color: var(--brand); }
.cart-bar { display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  padding: 16px 24px; position: sticky; bottom: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.08); z-index: 40; }
.cart-bar .hint { font-size: 13px; color: var(--text-sub); }
.cart-bar .total { font-size: 13px; color: var(--text-sub); }
.cart-bar .total b { color: var(--brand); font-size: 20px; margin-left: 6px; }
.btn.disabled { opacity: .55; pointer-events: none; }

/* ---- 结算页 ---- */
.co-sec { padding: 22px 26px; margin-top: 16px; }
.co-sec h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.co-warn { color: #D97706; font-size: 13px; }
.co-warn a { color: var(--brand); }
.addr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.addr-card { border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 12px 14px; font-size: 13px; cursor: pointer; position: relative; }
.addr-card:hover { border-color: var(--brand); }
.addr-card.on { border-color: var(--brand); background: var(--brand-light); }
.addr-card b { font-size: 14px; margin-right: 6px; }
.addr-card p { color: var(--text-sub); margin-top: 4px; line-height: 1.5; }
.addr-card .tg { background: var(--brand); color: #fff; font-size: 11px;
  border-radius: 3px; padding: 0 5px; }
.addr-card.add-new { display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-style: dashed; }
.pay-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); padding: 10px 18px; font-size: 14px; cursor: pointer; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.pay-opt .rd { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 50%; }
.pay-opt.on .rd { border-color: var(--brand); background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff; }
.pay-opt .tip { font-size: 12px; color: var(--text-muted); }
.co-list .ci { display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed var(--border); }
.co-list .ci:last-child { border-bottom: none; }
.co-list .ci img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #F2F2F2; }
.co-list .ci .nm { flex: 1; font-size: 14px; }
.co-list .ci .nm .ds { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.co-list .ci .pr { color: var(--brand); font-weight: 600; }
.coupon-opts { display: flex; flex-direction: column; gap: 10px; }
.coupon-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); padding: 10px 16px; font-size: 13px; cursor: pointer; }
.coupon-opt.on { border-color: var(--brand); background: var(--brand-light); }
.coupon-opt .rd { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 50%; flex: none; }
.coupon-opt.on .rd { border-color: var(--brand); background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff; }
.coupon-opt .cp-amt { color: var(--brand); font-size: 16px; }
.coupon-opt .cp-nm { font-weight: 500; }
.coupon-opt .cp-cond { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.deduct-row { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.switch-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  cursor: pointer; }
.deduct-input { font-size: 13px; color: var(--text-sub); }
.deduct-input input { width: 90px; height: 32px; border: 1px solid var(--border);
  border-radius: 6px; padding: 0 8px; text-align: right; }
.co-bottom { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; }
.co-sum-rows { flex: 1; max-width: 420px; }
.co-sum-rows .r { display: flex; justify-content: space-between; padding: 5px 0;
  font-size: 13px; color: var(--text-sub); }
.co-sum-rows .r .minus { color: var(--brand); }
.co-sum-rows .r.all { border-top: 1px solid var(--border); margin-top: 6px;
  padding-top: 10px; font-size: 14px; color: var(--text); }
.co-sum-rows .r.all b { color: var(--brand); font-size: 22px; }
.co-bottom .tip { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: right; }

/* ---- 收银台 ---- */
.pay-wrap { max-width: 520px; margin: 24px auto 48px; }
.pay-card { padding: 36px 40px; text-align: center; }
.pay-amt { color: var(--brand); font-size: 40px; font-weight: 700; }
.pay-amt .cur { font-size: 22px; }
.pay-no { font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.pay-count { font-size: 13px; color: #D97706; margin-top: 6px; }
.pay-deduct { text-align: left; margin: 22px 0; }
.pay-deduct .r { display: flex; justify-content: space-between; font-size: 13px;
  color: var(--text-sub); padding: 5px 0; }
.pay-deduct .r b { color: var(--brand); }
.pay-deduct .tg { background: var(--brand-light); color: var(--brand); font-size: 11px;
  border-radius: 3px; padding: 0 5px; margin-right: 6px; }
.pay-opts { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 22px; }
.pay-opts .ch-ic { display: inline-flex; width: 24px; height: 24px; border-radius: 6px;
  color: #fff; align-items: center; justify-content: center; font-size: 13px; }
.pay-cta .btn { width: 100%; height: 48px; font-size: 16px; }
.pay-giveup { display: block; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---- 结果页 ---- */
.result-card { max-width: 720px; margin: 32px auto 0; padding: 44px 40px; text-align: center; }
.result-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; }
.result-ic.ok { background: #22C55E; }
.result-ic.wait { background: #F59E0B; }
.result-card h1 { font-size: 24px; }
.result-sum { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin: 20px 0; font-size: 13px; color: var(--text-sub); }
.result-sum b { color: var(--text); }
.result-sum .minus { color: var(--brand); }
.result-cta { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---- 订单列表 ---- */
.order-tabs { display: flex; gap: 4px; background: var(--card-bg); border-radius: var(--radius-btn);
  padding: 4px; margin: 8px 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.order-tabs a { padding: 9px 20px; font-size: 13px; color: var(--text-sub); border-radius: 8px; }
.order-tabs a.on { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.order-tabs a em { font-style: normal; background: var(--brand); color: #fff; font-size: 11px;
  border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.order-card { margin-bottom: 14px; }
.oc-hd { display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-sub); }
.oc-hd .oc-status { margin-left: auto; font-weight: 600; }
.oc-body { display: block; padding: 8px 20px; }
.oc-item { display: flex; align-items: center; gap: 14px; padding: 10px 0;
  border-bottom: 1px dashed var(--border); }
.oc-item:last-child { border-bottom: none; }
.oc-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #F2F2F2; }
.oc-item .nm { flex: 1; font-size: 14px; }
.oc-item .nm .ds { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.oc-item .pr { font-size: 13px; color: var(--text-sub); }
.oc-ft { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.oc-amount { font-size: 13px; color: var(--text-sub); }
.oc-amount b { color: var(--brand); font-size: 17px; }
.oc-amount .tg { background: var(--brand-light); color: var(--brand); font-size: 11px;
  border-radius: 3px; padding: 0 5px; margin-left: 6px; }
.oc-acts { display: flex; gap: 10px; align-items: center; }
.st-pending { color: #D97706; }
.st-paid { color: #2563EB; }
.st-shipped { color: #7C3AED; }
.st-done { color: #16A34A; }
.st-cancelled, .st-closed { color: #9CA3AF; }
.st-aftersale { color: #DC2626; }

/* ---- 订单详情 ---- */
.od-status { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 28px; margin-top: 8px; flex-wrap: wrap; }
.od-st { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.pickup-card { display: flex; gap: 32px; padding: 24px 28px; margin-top: 16px;
  align-items: center; flex-wrap: wrap; }
.pk-left { text-align: center; }
.pk-left h2 { font-size: 15px; color: var(--text-sub); margin-bottom: 10px; }
.pk-code { font-size: 40px; font-weight: 700; letter-spacing: 8px; color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pk-right { flex: 1; min-width: 220px; font-size: 14px; }
.pk-right p { margin: 4px 0; }
.pay-list { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.pay-list .r { display: flex; justify-content: space-between; font-size: 12px;
  color: var(--text-muted); padding: 4px 0; }
.timeline { padding: 4px 0 4px 6px; }
.tl-row { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; position: relative; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  flex: none; position: relative; top: 1px; }
.tl-time { font-size: 12px; color: var(--text-muted); flex: none; width: 150px; }
.tl-txt { font-size: 13px; color: var(--text-sub); }

/* ---- 地址 ---- */
.addr-layout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.addr-row { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; margin-bottom: 10px; }
.ar-main b { font-size: 15px; }
.ar-main .tg { background: var(--brand); color: #fff; font-size: 11px; border-radius: 3px;
  padding: 0 5px; margin-left: 6px; }
.ar-phone { color: var(--text-sub); font-size: 13px; margin-left: 10px; }
.ar-main p { color: var(--text-sub); font-size: 13px; margin-top: 6px; }
.ar-acts { display: flex; gap: 12px; align-items: center; flex: none; }
.ar-acts a { color: var(--brand); font-size: 13px; cursor: pointer; }
.addr-form { padding: 22px; position: sticky; top: 16px; }
.addr-form h2 { font-size: 16px; margin-bottom: 16px; }
.region-row { display: flex; gap: 10px; }
.region-row select { flex: 1; }

/* ---- 优惠券 ---- */
.coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.coupon-card { display: flex; background: var(--card-bg); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.coupon-card.dim { opacity: .55; }
.cc-left { width: 120px; flex: none; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 8px; }
.cc-amt { font-size: 26px; font-weight: 700; }
.cc-amt small { font-size: 14px; }
.cc-cond { font-size: 11px; opacity: .9; margin-top: 4px; }
.cc-right { flex: 1; padding: 14px 16px; }
.cc-nm { font-size: 14px; font-weight: 600; }
.cc-date { font-size: 12px; color: var(--text-muted); margin: 6px 0; }

/* ---- 额度/积分 ---- */
.balance-card { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 32px; background: linear-gradient(120deg, #FFF7F0, #FFEEDD); }
.balance-card.points { background: linear-gradient(120deg, #F0F7FF, #E0EEFF); }
.bc-lb { font-size: 13px; color: var(--text-sub); }
.bc-val { font-size: 40px; font-weight: 700; color: var(--brand); margin: 6px 0; }
.balance-card.points .bc-val { color: #2563EB; }
.bc-val small { font-size: 18px; }
.bc-sub { font-size: 12px; color: var(--text-muted); }
.ledger-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ledger-hd h2 { margin-bottom: 0; }
.month-form { display: flex; gap: 8px; align-items: center; }
.month-form input { height: 32px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.ledger-row:last-child { border-bottom: none; }
.lg-main b { font-size: 14px; }
.lg-rm { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.lg-right { text-align: right; }
.lg-plus { color: #16A34A; }
.lg-minus { color: var(--brand); }
.lg-time { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ---- 个人中心 ---- */
.my-profile { display: flex; align-items: center; gap: 18px; padding: 24px 28px; margin-top: 8px; }
.my-profile h1 { font-size: 20px; }
.mp-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; }
.my-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.my-card { padding: 20px 24px; }
.my-card:hover { color: inherit; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mc-lb { font-size: 13px; color: var(--text-muted); }
.mc-val { font-size: 30px; font-weight: 700; color: var(--brand); margin: 8px 0; }
.mc-val small { font-size: 14px; }
.mc-more { font-size: 12px; color: var(--text-muted); }
.my-order-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.my-order-links a { text-align: center; padding: 14px 0; font-size: 13px;
  color: var(--text-sub); border-radius: var(--radius-btn); position: relative; }
.my-order-links a:hover { background: var(--brand-light); color: var(--brand); }
.my-order-links .mo-ic { display: block; font-size: 22px; margin-bottom: 6px; }
.my-order-links a em { font-style: normal; position: absolute; top: 6px; right: 16px;
  background: var(--brand); color: #fff; font-size: 11px; border-radius: 8px; padding: 0 6px; }

/* ---- M5 响应式 ---- */
@media (max-width: 1199px) {
  .addr-grid { grid-template-columns: repeat(2, 1fr); }
  .coupon-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .auth-card { padding: 26px 22px; }
  .addr-grid, .coupon-grid, .my-cards { grid-template-columns: 1fr; }
  .addr-layout { grid-template-columns: 1fr; }
  .addr-form { position: static; }
  .cart-head { display: none; }
  .cart-row { flex-wrap: wrap; gap: 8px; }
  .c-chk { width: auto; }
  .c-info { flex: 1 1 100%; order: -1; }
  .c-price, .c-qty, .c-sum, .c-op { width: auto; }
  .cart-bar { padding: 12px 16px; gap: 10px; }
  .my-order-links { grid-template-columns: repeat(3, 1fr); }
  .oc-ft { flex-direction: column; align-items: stretch; }
  .oc-acts { justify-content: flex-end; flex-wrap: wrap; }
  .pk-code { font-size: 30px; letter-spacing: 5px; }
}

/* ===== M6：物流轨迹 / 售后 ===== */
.track-line { list-style: none; margin: 0; padding: 0 0 0 20px;
  border-left: 2px solid #EFEFEF; }
.track-line li { position: relative; padding: 0 0 18px 6px; font-size: 14px;
  display: flex; gap: 14px; color: #666666; }
.track-line li::before { content: ''; position: absolute; left: -27px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2px solid #D9D9D9; }
.track-line li.latest { color: #1A1A1C; font-weight: 600; }
.track-line li.latest::before { border-color: #FF6700; background: #FF6700; }
.track-line .tt { flex: 0 0 92px; color: #999999; font-weight: 400; }

.as-types { display: flex; gap: 12px; flex-wrap: wrap; }
.as-type { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border: 1px solid #E5E5E5; border-radius: 999px; cursor: pointer; font-size: 14px;
  background: #fff; }
.as-type:has(input:checked) { border-color: #FF6700; color: #FF6700;
  background: #FFF5F0; }
.as-type input { accent-color: #FF6700; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left;
  border-bottom: 1px solid #F2F2F2; }
.data-table th { color: #666666; font-weight: 500; background: #FAFAFA; }

.kv { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.kv > span { flex: 0 0 88px; color: #999999; }
.kv > b { font-weight: 500; color: #1A1A1C; word-break: break-all; }

.btn-sm { padding: 5px 14px; font-size: 13px; }

/* ---- 认证页通道 Tab：企业邮箱（默认）/ 手机号（过渡）---- */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px;
  border-bottom: 1px solid #F2F2F2; }
.auth-tabs a { padding: 8px 16px; font-size: 14px; color: #666666;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs a.on { color: #FF6700; border-bottom-color: #FF6700; font-weight: 600; }
.auth-domain-hint { margin-top: 6px; font-size: 13px; color: #FF6700; min-height: 18px; }
.auth-note { margin-top: 14px; padding: 10px 12px; background: #FAFAFA;
  border-radius: 8px; font-size: 13px; color: #666666; line-height: 1.7; }
