* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ⭐ 配色口径（2026-10-03 定，与 PC 端一致）：全站只有一个颜色来源 —— 站点主题。
   主题 = html[data-theme]，所有元素（含装修组件）一律走下面的变量跟随主题。
   ⚠️ 禁止在规则里写死品牌色（唯一切换器圆点例外，它是主题标识色）。
   规范主题名：orange / green / blue / purple（旧名 taobao / violet 保留为别名，兼容已存值）*/

:root {
  /* —— 默认（= blue 商务蓝）—— */
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eaf0fe;
  --price: #e8382f;
  /* 装修组件（admin/js/comps.js）用到的扩展变量：手机端以前没定义 → 装修区颜色失控 */
  --brand-l: #3b82f6;      /* 浅一档主色 */
  --brand-bg: #eff4ff;     /* 主色极浅底 */
  --brand-bg2: #e0e9ff;    /* 主色浅底（深一档） */
  --brand-text: #1e40af;   /* 主色深字 */
  --brand-line: rgba(30,64,175,.16);  /* 主色描边（16% 透明） */
  /* —— 中性色 —— */
  --bg: #f3f4f7;
  --card: #ffffff;
  --line: #eef0f4;
  --t1: #16181d;
  --t2: #5a6069;
  --t3: #9aa0a8;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.05);
  --r: 12px;
}

/* 商务蓝 */
[data-theme="blue"] {
  --brand: #2563eb; --brand-2: #1d4ed8; --brand-soft: #eaf0fe; --price: #e8382f;
  --brand-l: #3b82f6; --brand-bg: #eff4ff; --brand-bg2: #e0e9ff; --brand-text: #1e40af;
  --brand-line: rgba(30,64,175,.16);
}
/* 电商橙（taobao = 旧名别名） */
[data-theme="orange"], [data-theme="taobao"] {
  --brand: #ff5000; --brand-2: #e04600; --brand-soft: #fff1ea; --price: #ff4400;
  --brand-l: #ff7a33; --brand-bg: #fff3ea; --brand-bg2: #ffe8d6; --brand-text: #b45309;
  --brand-line: rgba(210,95,0,.16);
}
/* 医药绿 */
[data-theme="green"] {
  --brand: #0e9f6e; --brand-2: #057a55; --brand-soft: #e6f6f0; --price: #e8382f;
  --brand-l: #2bbd8a; --brand-bg: #e9f8f2; --brand-bg2: #d4f0e5; --brand-text: #0a6e4d;
  --brand-line: rgba(10,110,77,.16);
}
/* 科技紫（violet = 旧名别名） */
[data-theme="purple"], [data-theme="violet"] {
  --brand: #7c3aed; --brand-2: #6d28d9; --brand-soft: #f2ecfe; --price: #e8382f;
  --brand-l: #9a67f5; --brand-bg: #f5f0ff; --brand-bg2: #ebe1ff; --brand-text: #5b21b6;
  --brand-line: rgba(91,33,182,.16);
}

html, body {
  height: 100%;
  background: #0e1116;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 24px 32px;
}

.panel { width: 220px; flex-shrink: 0; }
.panel h1 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.panel .sub { color: #6b7280; font-size: 12px; margin-top: 6px; }
.panel-group { margin-top: 26px; }
.panel-label { color: #4b5563; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.panel-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pbtn {
  border: 1px solid #262b33; background: #171b21; color: #9ca3af;
  font-size: 12.5px; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.pbtn:hover { border-color: #384049; color: #d1d5db; }
.pbtn.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel .tip { color: #4b5563; font-size: 11.5px; margin-top: 28px; line-height: 1.6; }

.phone {
  /* 桌面端手机预览框：宽度 430px（≈ iPhone Pro Max 逻辑宽度，原 390 偏窄），
     高度随浏览器高度自适应（780–932px），矮屏也不会撑破页面 */
  width: 430px; height: clamp(780px, calc(100vh - 48px), 932px); flex-shrink: 0;
  border-radius: 46px; padding: 11px;
  background: #1c1f25;
  box-shadow: 0 0 0 1.5px #2b3038, 0 30px 70px rgba(0,0,0,.55);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column; position: relative;
}

.statusbar {
  height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 13px; font-weight: 600; color: var(--t1);
  background: var(--card);
}
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-sig, .sb-wifi, .sb-bat { display: block; background: var(--t1); border-radius: 1px; }
.sb-sig { width: 15px; height: 10px; clip-path: polygon(0 60%,20% 60%,20% 100%,0 100%,0 60%,28% 40%,48% 40%,48% 100%,28% 100%,28% 40%,56% 20%,76% 20%,76% 100%,56% 100%,56% 20%); }
.sb-wifi { width: 14px; height: 10px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sb-bat { width: 22px; height: 11px; border-radius: 3px; }

.appbar { flex-shrink: 0; background: var(--card); }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.tabbar { flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line); }

.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 12px; background: var(--card);
}
.searchbar .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.searchbar .sinput {
  flex: 1; height: 34px; border-radius: 17px; background: var(--bg);
  display: flex; align-items: center; padding: 0 13px; gap: 7px;
  font-size: 13px; color: var(--t3); cursor: pointer;
}
.searchbar .sinput svg { flex-shrink: 0; }
.searchbar .icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--t2); position: relative; }

/* 搜索页 */
.s-search-box {
  flex: 1; height: 34px; border-radius: 17px; background: var(--bg);
  display: flex; align-items: center; padding: 0 13px; gap: 7px;
  color: var(--t3);
}
.s-search-box svg { flex-shrink: 0; }
.s-search-input {
  flex: 1; height: 100%; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--t1);
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.s-search-input::-webkit-search-cancel-button,
.s-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.s-search-clear { display: flex; align-items: center; justify-content: center; color: var(--t3); cursor: pointer; flex-shrink: 0; }
.s-search-btn { flex-shrink: 0; font-size: 15px; color: var(--brand); font-weight: 600; cursor: pointer; }

.hero { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px 0; padding: 4px 8px 16px; }
.hero-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; }
.hero-ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.hero-txt { font-size: 11.5px; color: var(--t2); }

.banner {
  margin: 0 14px 16px; border-radius: var(--r); padding: 18px 20px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.banner::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.banner .b-tag { display: inline-block; font-size: 11px; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; }
.banner .b-title { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.banner .b-desc { font-size: 12.5px; opacity: .9; margin-top: 5px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 12px; }
.sec-head .s-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.sec-head .s-more { font-size: 12px; color: var(--t3); }

.tabs { display: flex; gap: 18px; padding: 0 14px 12px; }
.tabs .t { font-size: 13.5px; color: var(--t2); padding-bottom: 6px; position: relative; cursor: pointer; }
.tabs .t.is-on { color: var(--t1); font-weight: 600; }
.tabs .t.is-on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 18px; height: 2.5px; border-radius: 2px; background: var(--brand); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 20px; }
.card {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
}
.thumb {
  height: 132px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.thumb .mol { position: absolute; opacity: .5; }
.thumb .code {
  position: relative; font-size: 15px; font-weight: 700; color: rgba(0,0,0,.34);
  letter-spacing: .5px; font-family: ui-monospace, Consolas, monospace;
}
.card-body { padding: 9px 10px 11px; }
.card-name { font-size: 13px; line-height: 1.4; color: var(--t1); height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-spec { font-size: 11px; color: var(--t3); margin-top: 4px; }
.card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; }
.card-price .cur { font-size: 11px; color: var(--price); font-weight: 600; }
.card-price .num { font-size: 17px; color: var(--price); font-weight: 700; letter-spacing: -.5px; }
.card-price .unit { font-size: 11px; color: var(--t3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-sold { font-size: 11px; color: var(--t3); }
.chip-stock { font-size: 10.5px; padding: 1.5px 7px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }
.chip-out { background: #f2f3f5; color: var(--t3); }

.tabbar { display: flex; padding: 7px 0 max(9px, env(safe-area-inset-bottom)); }
.tb-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; color: var(--t3); position: relative; }
.tb-item.is-on { color: var(--brand); }
.tb-item .tb-ico { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.tb-item .tb-txt { font-size: 10.5px; }
.tb-badge {
  position: absolute; top: -3px; right: 50%; margin-right: -20px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--price); color: #fff; font-size: 10px; line-height: 15px;
  text-align: center; font-weight: 600;
}

.navbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px 12px; background: var(--card); }
.navbar .back { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--t1); cursor: pointer; }
.navbar .nav-title { font-size: 15px; font-weight: 600; flex: 1; text-align: center; margin-right: 30px; }

.detail-hero {
  height: 300px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.detail-hero .code { font-size: 30px; font-weight: 800; color: rgba(0,0,0,.26); font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; position: relative; }
.pager { position: absolute; bottom: 14px; right: 16px; background: rgba(0,0,0,.35); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 20px; }

.price-block { background: var(--card); padding: 16px 14px 14px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; }
.price-main { display: flex; align-items: baseline; gap: 3px; }
.price-main .cur { font-size: 14px; color: var(--price); font-weight: 600; }
.price-main .num { font-size: 28px; color: var(--price); font-weight: 700; letter-spacing: -1px; }
.price-main .unit { font-size: 12px; color: var(--t3); margin-left: 3px; }
.price-side { font-size: 11.5px; color: var(--t3); text-align: right; line-height: 1.6; }
.d-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin-top: 10px; letter-spacing: -.2px; }
.d-sub { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.d-tag { font-size: 11px; padding: 2.5px 8px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); }

.promo {
  margin-top: -1px; background: var(--card); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line);
}
.promo .p-label { font-size: 12px; color: var(--t3); flex-shrink: 0; }
.promo .p-tag { font-size: 11.5px; background: #fff0ef; color: var(--price); padding: 2.5px 8px; border-radius: 5px; border: 1px solid #ffdedb; }
.promo .p-arrow { margin-left: auto; color: var(--t3); }

.block { background: var(--card); margin-top: 9px; padding: 14px; }
.block-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.kv { display: flex; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 92px; color: var(--t3); flex-shrink: 0; }
.kv .v { flex: 1; color: var(--t1); word-break: break-all; }

/* 物料描述（长文本整体展示）与物料附件（下载列表） */
.mat-desc { font-size: 13px; line-height: 1.8; color: var(--t1); word-break: break-word; white-space: pre-wrap; }
.mat-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mat-file:last-child { border-bottom: none; }
.mat-file .mf-name { flex: 1; font-size: 13px; color: var(--t1); word-break: break-all; }

.buybar {
  position: sticky; bottom: 0; z-index: 30;
  flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0,0,0,.05);
  padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 9px;
}
.buybar .bi { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--t2); width: 42px; cursor: pointer; }
.buybar .bi.is-fav { color: var(--brand); }
.btn { flex: 1; height: 42px; border: none; border-radius: 21px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-price { background: var(--price); color: #fff; }
.btn-price.btn-off { background: #c9cdd4; }
.btn:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qty button { width: 27px; height: 27px; border: none; background: #fafbfc; font-size: 15px; color: var(--t2); cursor: pointer; font-family: inherit; }
.qty span { width: 38px; text-align: center; font-size: 13px; }

.cart-item { display: flex; gap: 11px; padding: 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.cbox {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #d0d4da;
  flex-shrink: 0; margin-top: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cbox.is-on { background: var(--brand); border-color: var(--brand); }
.cbox.is-on::after { content: ''; width: 4px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg) translateY(-1px); }
.ci-thumb { width: 76px; height: 76px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(0,0,0,.3); font-family: ui-monospace, monospace; }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-size: 13.5px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci-spec { font-size: 11.5px; color: var(--t3); background: var(--bg); padding: 2px 7px; border-radius: 5px; display: inline-block; margin-top: 5px; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ci-price .cur { font-size: 11px; color: var(--price); font-weight: 600; }
.ci-price .num { font-size: 16px; color: var(--price); font-weight: 700; }

.cart-bar {
  flex-shrink: 0; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.cart-bar .selall { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t2); cursor: pointer; }
.cart-bar .cbox { margin-top: 0; }
.cart-total { margin-left: auto; text-align: right; }
.cart-total .lbl { font-size: 11px; color: var(--t3); }
.cart-total .amt { font-size: 11.5px; color: var(--price); }
.cart-total .amt b { font-size: 18px; font-weight: 700; letter-spacing: -.5px; }
.cart-bar .btn { flex: 0 0 110px; height: 40px; font-size: 14px; }

.order-card { background: var(--card); border-radius: var(--r); margin: 0 14px 10px; overflow: hidden; }
.oc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.oc-no { font-size: 12px; color: var(--t3); }
.oc-state { font-size: 12.5px; font-weight: 600; }
.st-wait { color: var(--price); }
.st-done { color: var(--t3); }
.st-ship { color: var(--brand); }
.oc-body { display: flex; gap: 11px; padding: 13px 14px; }
.oc-foot { padding: 11px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.oc-total { font-size: 12.5px; color: var(--t2); }
.oc-total b { color: var(--price); font-size: 15px; }
.mini-btn { font-size: 12.5px; padding: 5px 14px; border-radius: 16px; border: 1px solid #dcdfe4; background: #fff; color: var(--t1); cursor: pointer; font-family: inherit; }
.mini-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-btn.gray { background: #f2f3f5; border-color: #e5e6eb; color: var(--t3); }

/* 订单详情页（点击「我的订单」卡片进入） */
.od-kv { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.od-k { font-size: 12.5px; color: var(--t3); flex-shrink: 0; }
.od-v { font-size: 13px; color: var(--t1); text-align: right; word-break: break-all; }
.od-v.pay-done { color: #0e9f6e; font-weight: 600; }
.od-v.pay-confirm { color: var(--brand); font-weight: 600; }
.od-v.pay-wait { color: #f53f3f; font-weight: 600; }
.od-total { color: var(--price); font-size: 16px; font-weight: 700; }
.od-title { font-size: 13.5px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.od-line { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.od-line:last-child { border-bottom: none; }
.od-l-name { font-size: 13.5px; color: var(--t1); font-weight: 500; }
.od-l-spec { font-size: 12px; color: var(--t3); margin-top: 3px; }
.od-l-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.od-l-price { color: var(--price); font-size: 14px; font-weight: 600; }
.od-l-price i { font-style: normal; font-size: 11px; color: var(--t3); font-weight: 400; }
.od-l-qty { font-size: 12.5px; color: var(--t2); }
.od-actions { padding: 0 14px; }
.order-card[data-act] { cursor: pointer; }
/* 加购「+」按钮点击缩放回弹动效（装修组件内联生成，用属性选择器统一加） */
[data-act="addcart"] { transition: transform .15s ease; }
[data-act="addcart"]:active { transform: scale(.82); }

/* 付款状态文字颜色：付款完成=绿 / 付款待确认=主题色 / 未付款=红（统一加粗） */
.ci-spec.pay-done { color: #0e9f6e; font-weight: 600; }
.ci-spec.pay-confirm { color: var(--brand); font-weight: 600; }
.ci-spec.pay-wait { color: #f53f3f; font-weight: 600; }

.mine-head {
  position: relative;
  padding: 22px 16px 46px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
}
.mine-user { display: flex; align-items: center; gap: 12px; }
.mine-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.mine-name { font-size: 16px; font-weight: 600; }
.mine-co { font-size: 12px; opacity: .85; margin-top: 3px; }
/* 头像未登录时点击去登录 */
.mine-avatar[data-act] { cursor: pointer; transition: transform .08s; }
.mine-avatar[data-act]:active { transform: scale(.93); }

.mine-card {
  margin: -34px 14px 0; background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 15px 8px; display: grid; grid-template-columns: repeat(4,1fr);
}
.mine-stat { text-align: center; cursor: pointer; }
.mine-stat .n { font-size: 19px; font-weight: 700; color: var(--t1); letter-spacing: -.5px; }
.mine-stat .n.hot { color: var(--price); }
.mine-stat .l { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.menu { background: var(--card); border-radius: var(--r); margin: 10px 14px 0; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.menu-row:last-child { border-bottom: none; }
.menu-row .m-ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--brand-soft); color: var(--brand); }
.menu-row .m-arrow { margin-left: auto; color: var(--t3); font-size: 15px; }

.checkout-block { background: var(--card); border-radius: var(--r); margin: 10px 14px 0; padding: 14px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13.5px; }
.ck-row .k { color: var(--t2); }
.ck-row .v { color: var(--t1); font-weight: 500; }
.ck-row .v.blue { color: var(--brand); }
.addr { display: flex; gap: 10px; align-items: flex-start; }
.addr-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.addr-txt { font-size: 13px; line-height: 1.55; }
.addr-name { font-weight: 600; margin-bottom: 3px; }
.addr-detail { color: var(--t2); font-size: 12.5px; }

.fee-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--t2); }
.fee-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--t1); font-weight: 600; font-size: 14px; }
.fee-row.total span:last-child { color: var(--price); font-size: 17px; font-weight: 700; }

.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.82); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5;
  padding: 18px 28px; border-radius: 14px; max-width: 300px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 99;
}
.toast.is-on { opacity: 1; animation: toastPop .28s ease-out; }
@keyframes toastPop {
  0%   { transform: translate(-50%,-50%) scale(.55); opacity: 0; }
  55%  { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
  75%  { transform: translate(-50%,-50%) scale(.97); }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

/* ---- 在线客服：悬浮按钮 + 浮层 ---- */
.kf-fab {
  position: absolute; right: 14px; top: 64px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.22); cursor: grab;
  font-size: 10px; line-height: 1; letter-spacing: 1px;
  transition: transform .08s;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.kf-fab:active { transform: scale(.92); cursor: grabbing; }
.kf-fab.on-tab { top: 64px; }   /* 右上角固定，不受底部导航影响 */
.kf-mask {
  position: absolute; inset: 0; z-index: 90;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.kf-mask.is-on { opacity: 1; pointer-events: auto; }
.kf-sheet {
  width: 100%; height: 80%; background: #fff;
  border-radius: 14px 14px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(30px); transition: transform .2s;
}
.kf-mask.is-on .kf-sheet { transform: translateY(0); }
.kf-sheet-head {
  height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--t1); background: #fff;
}
.kf-sheet-close { cursor: pointer; color: var(--t3); display: flex; padding: 4px; }
.kf-sheet-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.kf-menu { padding: 10px 14px 14px; background: #f7f8fa; flex: 1; }
.kf-menu-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 16px 14px; margin-top: 10px;
  color: var(--brand); cursor: pointer; box-shadow: var(--shadow);
}
.kf-menu-item:active { background: var(--brand-bg2); }
.kf-menu-t { font-size: 15px; font-weight: 600; color: var(--t1); }
.kf-menu-s { font-size: 12px; color: var(--t3); margin-top: 3px; }

/* ---- 分类页 ---- */
.cat-wrap { display: flex; align-items: flex-start; }
.cat-side { width: 98px; flex-shrink: 0; background: var(--card); padding-bottom: 24px; }
.cat-l {
  padding: 14px 6px; font-size: 12.5px; color: var(--t2);
  text-align: center; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.cat-l.is-on { background: var(--bg); color: var(--brand); font-weight: 600; }
.cat-l.is-on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; background: var(--brand); border-radius: 0 2px 2px 0;
}
.cat-n { font-size: 10px; color: var(--t3); font-weight: 400; }
.cat-main { flex: 1; padding: 10px 12px 20px; min-width: 0; }
.cat-goods {
  display: flex; gap: 10px; background: var(--card); border-radius: 10px;
  padding: 10px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow);
}
.cg-thumb {
  width: 68px; height: 68px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: rgba(0,0,0,.3);
  font-family: ui-monospace, Consolas, monospace;
}
.cg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cg-name { font-size: 13px; line-height: 1.4; }
.cg-spec { font-size: 11px; color: var(--t3); margin-top: 4px; }
.cg-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.cg-price { font-size: 15.5px; font-weight: 700; color: var(--price); letter-spacing: -.3px; }
.cg-price i { font-size: 10.5px; font-weight: 400; color: var(--t3); font-style: normal; }

/* 企业内质量标准等级（ERP 物料档案「级别分类」）—— 商品行内的等级标记
   ⚠️ 它只是个属性标签，与同一行的「规格 · 编码」同级 ⇒ 刻意**不**强调
   （勿再改成品牌色/加粗，那会喧宾夺主）。此处仅保留类名，样式全部继承 .cg-spec。 */
.cg-qg { color: inherit; font-weight: 400; }
/* 分类页顶部「质量标准」筛选条（选项与 PC 侧栏、后台下拉同源：ERP 档案 0052 全量 7 项） */
/* 分类页排序条：默认 / 价格 / 最新上架（2026-10-10） */
.sort-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 4px; background: var(--bg);
}
.sort-i {
  font-size: 12px; padding: 4px 14px; border-radius: 20px;
  background: var(--card); color: var(--t2); border: 1px solid var(--line); cursor: pointer;
}
.sort-i.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 600; }
.sort-arrow { font-style: normal; font-size: 11px; margin-left: 2px; }
.sort-arrow.dim { opacity: .45; }

.qg-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px 2px; background: var(--bg);
}
.qg-t { font-size: 11px; color: var(--t3); flex-shrink: 0; }
.qg-i {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: var(--card); color: var(--t2); border: 1px solid var(--line); cursor: pointer;
}
.qg-i.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 600; }
/* 停用项提示（ERP `enable=2`，如「GMP级」）—— 该等级仍可点击筛选（老物料可能挂着它），
   故只加一枚极小灰字：⚠️ 勿改成红/黄/品牌色，它只是个状态说明，不是警示、也不是卖点。 */
.qg-off { font-style: normal; font-size: 9px; color: var(--t3); margin-left: 3px; opacity: .85; }
/* ⭐ 等级名单「取不到」与「数据陈旧」两种故障提示（2026-10-04 起不再有兜底副本）。
   ⚠️ 这里用警示色是**有意**的：它说的是「数据没拿到 / ERP 不可达」，是运维线索，
      不是商品属性标签（属性标签一律灰，见 `.qg-off`）。
   ⚠️ 别做成"友好空态"或干脆不显示 —— 用户要的是「故障看得见、能追查」。 */
.qg-bar.qg-err { border-bottom: 1px solid #f3c7c7; background: #fef2f2; }
.qg-err .qg-t { color: #b91c1c; }
.qg-msg { font-size: 11px; color: #b91c1c; line-height: 1.5; word-break: break-all; }
.qg-err b, .qg-stale b {
  font-size: 11px; color: #b91c1c; text-decoration: underline;
  cursor: pointer; flex-shrink: 0; margin-left: auto;
}
.qg-stale {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 11px; line-height: 1.5; word-break: break-all;
  color: #92400e; background: #fffbeb; border-bottom: 1px solid #f3dfa8;
}

/* ---- 结算页商品行 ---- */
.ck-goods { display: flex; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ck-goods:last-child { border-bottom: none; }

/* ---- 空状态 ---- */
.empty { text-align: center; padding: 70px 20px; color: var(--t3); font-size: 13.5px; line-height: 1.7; }

/* ---- 对账中心 ---- */
.fin-hero {
  margin: 0 14px; border-radius: var(--r); padding: 18px 18px 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.fin-hero::after {
  content: ''; position: absolute; right: -40px; bottom: -50px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1);
}
.fh-label { font-size: 12.5px; opacity: .88; }
.fh-num { font-size: 32px; font-weight: 700; letter-spacing: -1.2px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fh-num .cur { font-size: 17px; font-weight: 600; margin-right: 2px; }
.fh-split { display: flex; gap: 0; margin-top: 16px; position: relative; }
.fs-item { flex: 1; }
.fs-item + .fs-item { border-left: 1px solid rgba(255,255,255,.22); padding-left: 16px; }
.fs-n { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-l { font-size: 11.5px; opacity: .8; margin-top: 2px; }
.fh-note { font-size: 11.5px; opacity: .82; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }

.seg { display: flex; gap: 8px; padding: 16px 14px 12px; }
.seg-i {
  font-size: 12.5px; padding: 6px 15px; border-radius: 16px;
  background: var(--card); color: var(--t2); cursor: pointer;
  border: 1px solid var(--line);
}
.seg-i.is-on { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 600; }

.fin-item { background: var(--card); border-radius: var(--r); margin: 0 14px 10px; overflow: hidden; }
.fi-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0; }
.fi-no { font-size: 12.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.fi-state { font-size: 12px; font-weight: 600; }
.fi-body { padding: 10px 14px 12px; }
.fi-amt { font-size: 20px; font-weight: 700; color: var(--t1); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.fi-amt small { font-size: 12px; font-weight: 400; color: var(--t3); margin-left: 6px; letter-spacing: 0; }
.fi-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fi-tag { font-size: 11px; color: var(--t2); background: var(--bg); padding: 2.5px 9px; border-radius: 5px; }
.fi-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; background: #fafbfc; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--t2);
}
.fi-foot b { font-variant-numeric: tabular-nums; }
.fi-foot .hot { color: var(--price); font-weight: 600; }
.fi-foot .ok { color: #0e9f6e; font-weight: 600; }

/* ---- 发票管理 ---- */
.inv-hero {
  margin: 0 14px; border-radius: var(--r); padding: 17px 18px;
  background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
}
.ih-label { font-size: 12.5px; color: var(--t3); }
.ih-num { font-size: 25px; font-weight: 700; color: var(--t1); letter-spacing: -.9px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.ih-btn {
  height: 36px; padding: 0 18px; border-radius: 18px; border: none;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}

.inv-item { background: var(--card); border-radius: var(--r); margin: 0 14px 10px; overflow: hidden; }
.ii-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 0; }
.ii-type { font-size: 13px; font-weight: 600; color: var(--t1); }
.ii-state { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.st-issued { background: #e8f6ee; color: #0e9f6e; }
.st-waiting { background: #fff2e8; color: var(--brand); }
.st-void { background: #f2f3f5; color: var(--t3); }
.ii-body { padding: 9px 14px 13px; }
.ii-no { font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.ii-grid { display: flex; gap: 0; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ii-cell { flex: 1; }
.ii-cell + .ii-cell { border-left: 1px solid var(--line); padding-left: 12px; }
.ii-cn { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ii-cn.hot { color: var(--price); }
.ii-cl { font-size: 11px; color: var(--t3); margin-top: 3px; }

.inv-block { background: var(--card); border-radius: var(--r); margin: 10px 14px 0; padding: 14px; }
.ib-title { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }

@media (max-width: 820px) {
  .stage { gap: 0; padding: 0; }
  .panel { display: none; }
  .statusbar { display: none; }  /* 真手机有自己的状态栏，隐藏模拟状态栏 */
  body { background: var(--bg); }  /* 手机端背景改浅色，防深色露出 */
  .phone { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
  .phone-screen { border-radius: 0; }
}

/* ==================== 装修配置渲染页 ==================== */
/* ⭐ 装修容器【不注入任何配色】——背景与文字全走站点主题变量，
   这样用户切主题时装修区会跟着一起变（与 PC 端口径一致）。 */
.decor-page{
  padding-bottom: 62px;
  min-height: 100%;
  background: var(--bg);
  color: var(--t1);
}

/* ==================== 登录 / 注册 ==================== */
.auth-wrap {
  min-height: 100%;
  padding: 60px 26px 30px;
  background: var(--page);
  box-sizing: border-box;
}
.auth-logo { font-size: 22px; font-weight: 700; color: var(--t1); text-align: center; }
.auth-sub { font-size: 13px; color: var(--t3); text-align: center; margin: 8px 0 34px; }
.auth-form { margin-bottom: 22px; }
.af-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 10px; padding: 13px 14px; margin-bottom: 12px;
  border: 1px solid var(--line);
}
.af-ico { color: var(--t3); display: flex; flex-shrink: 0; }
.af-item input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--t1); font-family: inherit; }
.af-item input::placeholder { color: var(--t3); }
.af-eye { color: var(--t3); display: flex; flex-shrink: 0; cursor: pointer; padding: 2px; }
.af-eye:active { color: var(--brand); }
.af-select { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--t1); font-family: inherit; -webkit-appearance: none; appearance: none; }
.af-item select.af-select { color: var(--t3); }
.af-item select.af-select:has(option[value=""]:checked) { color: var(--t3); }
.reg-inv-toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 10px; padding: 13px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); cursor: pointer;
}
.reg-inv-txt { flex: 1; font-size: 14px; color: var(--t2); }
.reg-inv-arrow {
  width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.8px solid var(--t3); border-bottom: 1.8px solid var(--t3);
  transform: rotate(45deg); margin-top: -4px;
  transition: transform .2s;
}
.reg-inv-arrow.open { transform: rotate(225deg); margin-top: 4px; }
.reg-inv-body { margin: -2px 0 12px; }
.reg-inv-body .af-item { background: var(--card); }
.auth-links {
  display: flex; justify-content: space-between; margin-top: 16px;
  font-size: 13px; color: var(--brand);
}
.auth-links span { cursor: pointer; }

/* 注册/设密码：iframe 内嵌官方页 */
.reg-frame-wrap {
  width: 100%;
  height: 74vh;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.reg-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 忘记密码：图形验证码图 */
.af-captcha { border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
/* 验证码 SDK 容器内嵌适配 */
#fpwdCaptchaBox .tianai-captcha-slider,
#fpwdCaptchaBox .tianai-captcha {
  transform: scale(0.86); transform-origin: top left;
}

/* 空状态 / 加载提示 */
.empty-hint { text-align: center; font-size: 13px; color: var(--t3); padding: 48px 20px; }
.decor-page img{ max-width: 100%; }

/* ⭐ 功能页的「装修内容带」（2026-10-11）：分类页顶部 / 购物车页底部。
   容器本身不加视觉（交给里面的装修组件），只保证图片不撑破。 */
.decor-band{ display: block; }
.decor-band img{ max-width: 100%; }

/* ---- 物流轨迹弹层 / 支付页 ---- */
.avt-sheet { position: fixed; inset: 0; z-index: 300; }
.avt-sheet[hidden] { display: none; }
.avt-sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.avt-sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78%;
  background: #fff; border-radius: 14px 14px 0 0; overflow-y: auto;
  animation: sheetUp .2s ease;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.avt-sheet-head {
  position: sticky; top: 0; background: #fff; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.avt-sheet-title { font-size: 15px; font-weight: 600; color: var(--t1); }
.avt-sheet-close { color: var(--t3); cursor: pointer; padding: 4px 6px; font-size: 14px; }

/* 微信扫码支付弹层 */
.payqr-wrap { padding: 18px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.payqr-amount { font-size: 24px; font-weight: 700; color: var(--price); }
.payqr-box { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.payqr-box img, .payqr-box canvas { width: 100%; height: 100%; }
.payqr-tip { font-size: 13.5px; color: var(--t1); font-weight: 500; }
.payqr-no { font-size: 12px; color: var(--t3); word-break: break-all; text-align: center; }
.payqr-status { font-size: 13px; color: var(--brand); min-height: 18px; }

.lg-top { padding: 14px 16px; background: var(--brand-bg2, #fff7f1); }
.lg-line { display: flex; align-items: center; padding: 3px 0; font-size: 13px; }
.lg-line .k { color: var(--t3); width: 68px; flex-shrink: 0; }
.lg-line .v { color: var(--t1); font-weight: 500; }
.lg-body { padding: 10px 16px 0; }
.lg-item { display: flex; gap: 10px; padding-bottom: 16px; position: relative; }
.lg-item::before {
  content: ''; position: absolute; left: 4px; top: 14px; bottom: -2px;
  width: 1.5px; background: #ececec;
}
.lg-item:last-child::before { display: none; }
.lg-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #d8d8d8;
  margin-top: 5px; flex-shrink: 0; z-index: 1;
}
.lg-item.is-first .lg-dot { background: var(--price, #ff5000); box-shadow: 0 0 0 3px rgba(255,80,0,.15); }
.lg-txt { font-size: 13.5px; color: var(--t1); line-height: 1.5; }
.lg-item.is-first .lg-txt { color: var(--price, #ff5000); font-weight: 500; }
.lg-time { font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.lg-empty { text-align: center; color: var(--t3); font-size: 13px; padding: 26px 0 30px; }

.pay-opt {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; margin-top: 10px; cursor: pointer;
}
.pay-opt.is-on { border-color: var(--price, #ff5000); background: var(--brand-bg2, #fff7f1); }
.po-name { font-size: 14.5px; font-weight: 600; color: var(--t1); }
.po-desc { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.pay-bar {
  position: sticky; bottom: 0; background: #fff; padding: 10px 14px 14px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.04);
}

/* ---- 发票页标签/勾选 ---- */
.inv-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 46px; z-index: 10; }
.inv-tab {
  flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: var(--t2);
  border-bottom: 2px solid transparent; cursor: pointer;
}
.inv-tab.is-on { color: var(--price, #ff5000); font-weight: 600; border-bottom-color: var(--price, #ff5000); }
.inv-pick {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; margin-top: 9px; cursor: pointer;
}
.inv-pick.is-on { border-color: var(--price, #ff5000); background: var(--brand-bg2, #fff7f1); }
.ip-no { font-size: 14px; font-weight: 600; color: var(--t1); }
.ip-sub { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.ip-amt { font-size: 14.5px; font-weight: 600; color: var(--price, #ff5000); }

/* ---- 自动收货倒计时 ---- */
.rc-hint {
  margin: 0 12px 10px; padding: 7px 10px; border-radius: 6px;
  background: #fff7e6; color: #b26a00; font-size: 11.5px; line-height: 1.5;
}
.rc-hint em { font-style: normal; color: #d48a3a; }

/* 发票编辑弹层表单 */
.sheet-form { padding: 6px 16px 14px; }
.sf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sf-k { width: 68px; font-size: 13px; color: var(--t2); flex-shrink: 0; }
.sf-v { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13.5px; color: var(--t1); background: var(--card); }
/* 收货地址：省/市/区三级联动 */
.sf-region { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sf-region .sf-v { padding: 0 4px; font-size: 12.5px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }

/* 确认订单备注输入 */
.ck-memo { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13px; color: var(--t1); background: var(--card); }

/* 收货地址簿 */
.addr-list { padding: 12px 14px; }
.addr-card {
  background: var(--card); border-radius: 10px; padding: 14px;
  margin-bottom: 12px; border: 1px solid var(--line);
}
.addr-card.is-def { border-color: var(--brand); }
.addr-main { cursor: pointer; }
.addr-top { display: flex; align-items: center; gap: 8px; }
.addr-recv { font-size: 15px; font-weight: 600; color: var(--t1); }
.addr-mobile { font-size: 13px; color: var(--t2); }
.addr-def-tag {
  font-size: 11px; color: #fff; background: var(--brand);
  padding: 1px 8px; border-radius: 10px;
}
.addr-txt { font-size: 13px; color: var(--t2); line-height: 1.5; margin-top: 8px; }
.addr-ops {
  display: flex; gap: 18px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--t2);
}
.addr-ops span { cursor: pointer; }
.addr-ops .del { color: #e8382f; }

/* 结算页地址块 */
.checkout-block .addr { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.addr-ico { font-size: 20px; flex-shrink: 0; }
.addr-txt { flex: 1; min-width: 0; }
.addr-name { font-size: 14.5px; font-weight: 600; color: var(--t1); }
.addr-detail { font-size: 12.5px; color: var(--t2); margin-top: 4px; line-height: 1.5; }

/* 地址选择弹层 */
.addr-pick-list { padding: 6px 16px 8px; max-height: 46vh; overflow-y: auto; }
.addr-pick {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; cursor: pointer;
}
.addr-pick.is-def { border-color: var(--brand); background: var(--brand-bg2, #fff7f1); }
.addr-pick .addr-recv { font-size: 14px; font-weight: 600; color: var(--t1); }
.addr-pick .addr-txt { margin-top: 4px; }
.addr-pick-actions { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--t2); flex-shrink: 0; margin-left: 10px; }
.addr-pick-actions span { cursor: pointer; }
.addr-pick-actions .del { color: #e8382f; }
