/* =============================================================
   BNK Lookup V2 — 设计系统
   参考客户提供的界面：白/浅灰底、近黑文字、深蓝主按钮、细线分隔、大留白
   ============================================================= */

:root {
  /* V11.09 起整套色板对齐 BNK 标志：近黑 + 暖白 + 极细分割线 */
  --ink:        #111315;
  --ink-2:      #3d4146;
  --ink-3:      #71767c;
  --ink-4:      #a3a7ac;
  --line:       #e2e0dc;
  --line-soft:  #eeedea;
  --bg:         #ffffff;
  --bg-2:       #f7f6f4;
  --bg-3:       #f1efeb;
  --navy:       #17181a;
  --navy-hover: #000000;
  --green:      #2e7d4f;
  --green-soft: #e9f4ee;
  --red:        #b3392e;
  --red-soft:   #fbeeec;
  --amber:      #8a5a12;
  --amber-soft: #fdf4e6;
  --radius:     0px;
  --radius-lg:  0px;
  --shadow:     0 1px 2px rgba(20,24,28,.05), 0 8px 24px rgba(20,24,28,.06);
  --shadow-lg:  0 12px 48px rgba(20,24,28,.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── 顶部提示条 ─────────────────────────────────────────── */
.announce {
  background: #17181a; color: #f2f1ef;
  font-size: 11.5px; letter-spacing: .02em;
  padding: 6px 0; text-align: center;
}
.announce .flag {
  display: inline-block; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  font-weight: 600; font-size: 9.5px; letter-spacing: .18em;
  padding: 2px 8px; border-radius: 0; margin-right: 12px;
}

/* ── 品牌栏 ─────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 200;
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .12em; }
.brand-sub  { font-size: 13px; color: var(--ink-2); font-weight: 400; }

.search {
  flex: 1 1 auto; max-width: 560px; position: relative;
}
.search input {
  width: 100%; height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 14px 0 40px; font-size: 13.5px; color: var(--ink);
  background: #fff; outline: none;
  transition: border-color .15s;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus { border-color: var(--ink-3); }
.search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--ink-3);
}

.topbar-right {
  display: flex; align-items: center; gap: 20px; flex: none;
  font-size: 13px;
}
.top-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); padding: 6px 2px; border: 0; background: none;
  position: relative;
}
.top-link:hover { color: var(--navy); }
.top-link .badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--green); color: #fff;
  font-size: 10.5px; font-weight: 600;
}
.top-link.highlight {
  outline: 2px solid #d94f4f; outline-offset: 3px; border-radius: 2px;
}
.top-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12px; }
.top-meta strong { color: var(--ink-2); font-weight: 500; }

/* 次级信息条 */
.subbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.subbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 28px;
  display: flex; align-items: center; gap: 18px;
  font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em;
}
.subbar .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* ── Hero 轮播 ──────────────────────────────────────────── */
.hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-slide {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px;
  align-items: center; min-height: 430px;
}
.hero-copy { max-width: 430px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04; font-weight: 600; letter-spacing: -.025em;
  white-space: pre-line; margin-bottom: 18px;
}
.hero-body {
  font-size: 14px; color: var(--ink-2); max-width: 360px;
  margin-bottom: 18px;
}
.hero-price {
  font-size: 13px; color: var(--ink-2); margin-bottom: 22px;
}
.hero-price b { font-weight: 600; color: var(--ink); }
.hero-art {
  justify-self: end; width: 100%; max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #eceef0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
/* 推广位关联产品后，图片与标题都可点进商品详情 */
.hero-art-link { display: block; width: 100%; height: 100%; }
.hero-art-link img { transition: transform .35s ease; }
.hero-art-link:hover img { transform: scale(1.02); }
.hero-link { color: inherit; text-decoration: none; }
.hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 34px; height: 2px; background: #d3d7db; border: 0; padding: 0;
  cursor: pointer; transition: background .2s;
}
.hero-dot.on { background: var(--ink); }
.hero-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 34px; height: 34px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.arrow-btn:hover { border-color: var(--ink-3); color: var(--ink); }

/* ── 按钮 ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; letter-spacing: .02em; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-link {
  background: none; border: 0; padding: 0; color: var(--navy);
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}

/* ── 区块标题 ───────────────────────────────────────────── */
.section { padding: 48px 0 8px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.section-title { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.section-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ── 品类宫格 ───────────────────────────────────────────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.cat-card { display: block; }
.cat-thumb {
  aspect-ratio: 1 / 1; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
  transition: background .18s;
}
.cat-card:hover .cat-thumb { background: #e8eaed; }
.cat-thumb img { width: 88%; height: 88%; object-fit: contain; }
.cat-icon {
  width: 54px; height: 54px; border: 1.5px solid var(--ink-4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cat-name { font-size: 13px; font-weight: 500; }
.cat-count { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ── 商品网格 ───────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 18px; }
.check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.check input { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }

.seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.seg button {
  height: 32px; padding: 0 14px; border: 0; background: #fff;
  font-size: 12.5px; color: var(--ink-2);
}
.seg button.on { background: var(--ink); color: #fff; }

select.sort {
  height: 32px; padding: 0 30px 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; font-size: 12.5px; color: var(--ink-2);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23747b83'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px;
}
.prod-card { display: flex; flex-direction: column; }
.prod-thumb {
  position: relative; aspect-ratio: 1 / 1; background: var(--bg-3);
  overflow: hidden; margin-bottom: 14px;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: transform .3s; }
.prod-card:hover .prod-thumb img { transform: scale(1.03); }
.prod-flag {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--ink); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.prod-flag.special { background: var(--ink); color: #fff; }
.prod-code { font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 3px; }
.prod-name {
  font-size: 13.5px; color: var(--ink); line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }
.prod-stock { font-size: 11.5px; margin-bottom: 8px; }
.prod-stock.in  { color: var(--green); }
.prod-stock.low { color: var(--amber); }
.prod-stock.out { color: var(--red); }
/* 价格块紧贴库存行、按钮贴底（不是价格贴底）：
   否则有批量档位的卡片会因多出几行小字把价格顶上去了，同一排卡片的价格对不齐 */
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.prod-price { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.prod-price .cur { font-size: 12px; font-weight: 500; margin-right: 1px; }
.prod-price .gst { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 3px; }
.prod-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }

/* 批量档位价（V11.17）：主价格下面一行行列出「10x batch buy $450.00」，
   多条优惠就多行；数字加粗、单位后缀只在末尾出现一次，避免每行都拖一条尾巴 */
.batch-tiers {
  margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.45;
}
.bt-rows { display: flex; flex-direction: column; gap: 1px; }
.batch-tier { white-space: nowrap; }
.batch-tier b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.batch-tier .bt-amt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bt-gst { display: block; font-size: 10px; color: var(--ink-4); text-align: right; margin-top: 2px; }
.batch-tiers.is-large { font-size: 12.5px; margin-top: 12px; padding-top: 12px; }

/* ── 商品详情页 ─────────────────────────────────────────── */
.crumbs {
  font-size: 11.5px; color: var(--ink-3); padding: 20px 0 0;
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 7px; color: var(--ink-4); }

.pd {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  padding: 26px 0 60px;
}
.pd-gallery { position: sticky; top: 96px; align-self: start; }
.pd-main {
  aspect-ratio: 1 / 1; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 12px;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; background: var(--bg-3); border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center; padding: 6px;
  cursor: pointer;
}
.pd-thumb.on { border-color: var(--ink); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.dim { position: relative; }
.pd-thumb .tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(20,24,28,.72); color: #fff; font-size: 8.5px;
  text-align: center; padding: 1px 0; letter-spacing: .04em;
}

.pd-info .brand-line { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.pd-title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.pd-code { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.pd-price-block {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin-bottom: 18px;
}
.pd-price { display: flex; align-items: baseline; gap: 10px; }
.pd-price .amount { font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.pd-price .cur { font-size: 17px; font-weight: 500; }
.pd-price .suffix { font-size: 12px; color: var(--ink-3); }
.pd-price-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.pd-price-note .save { color: var(--green); font-weight: 500; }

.pd-buy { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); height: 42px; overflow: hidden;
}
.qty button {
  width: 38px; height: 100%; border: 0; background: #fff; color: var(--ink-2);
  font-size: 16px; line-height: 1;
}
.qty button:hover { background: var(--bg-3); }
.qty input {
  width: 52px; height: 100%; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: center; font-size: 14px;
  font-family: inherit; outline: none;
}
.pd-buy .btn { flex: 1; }

.pd-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: none; border: 0; padding: 15px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500; color: var(--ink); text-align: left;
}
.acc-head .chev { color: var(--ink-3); transition: transform .2s; }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; padding-bottom: 18px; }
.acc-item.open .acc-body { display: block; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 400; color: var(--ink-3);
  padding: 9px 0; width: 42%; vertical-align: top;
}
.spec-table td { padding: 9px 0; color: var(--ink); }

.dim-wrap { background: var(--bg-2); padding: 20px; text-align: center; }
.dim-wrap img { max-height: 280px; margin: 0 auto; }

/* ── 购物车 / 订单编辑 ─────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; padding: 26px 0 70px; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.cart-line.fresh { animation: flash-in 1.4s ease; }
@keyframes flash-in {
  0% { background: #fff8e1; }
  100% { background: transparent; }
}
.cart-thumb { width: 88px; height: 88px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; padding: 8px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-size: 13.5px; margin-bottom: 3px; }
.cart-code { font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }
.cart-line-bottom { display: flex; align-items: center; gap: 16px; }
.cart-line-price { font-size: 13px; }
.cart-line-price .gst { font-size: 10.5px; color: var(--ink-3); }
.cart-line-right { text-align: right; }
.cart-line-total { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.icon-btn {
  width: 28px; height: 28px; border: 0; background: none; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--red); }

.summary {
  background: var(--bg-2); padding: 24px; position: sticky; top: 96px;
}
.summary h3 { font-size: 15px; margin-bottom: 16px; }
.sum-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 7px 0; color: var(--ink-2);
}
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.summary .btn { width: 100%; margin-top: 16px; }
.summary .btn + .btn { margin-top: 8px; }

/* ── 空状态 ─────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 68px 20px; color: var(--ink-3);
}
.empty h3 { font-size: 16px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.empty p { font-size: 13px; margin-bottom: 18px; }

/* ── 表格（后台）─────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: #fafbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 2px; text-transform: uppercase;
}
.tag.in   { background: var(--green-soft); color: var(--green); }
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.muted{ background: var(--bg-3); color: var(--ink-3); }
.tag.bad  { background: var(--red-soft); color: var(--red); }
.tag.info { background: #f1efeb; color: var(--ink); }

/* ── 表单 ───────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  color: var(--ink); background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── 登录页 ─────────────────────────────────────────────── */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-side {
  background: var(--bg-2); padding: 52px 56px; display: flex; flex-direction: column;
  justify-content: center; gap: 40px; border-right: 1px solid var(--line);
}
.auth-side h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; max-width: 380px; }
.auth-side p { font-size: 13.5px; color: var(--ink-2); max-width: 360px; margin-top: 16px; }
.auth-side .art { margin-top: 4px; opacity: .9; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; min-width: 0; box-sizing: border-box; }
.auth-box { width: 100%; max-width: 360px; }
.auth-box h2 { font-size: 21px; margin-bottom: 6px; }
.auth-box .lead { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.auth-demo {
  margin-top: 22px; padding: 14px 16px; background: var(--bg-2);
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.auth-demo b { color: var(--ink); font-weight: 500; }
.auth-demo-head {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.auth-demo > div:not(.auth-demo-head) {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 10px;
  padding: 3px 0; align-items: baseline;
}
.auth-demo span:nth-child(2) { font-variant-numeric: tabular-nums; }
.auth-demo span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--ink);
}

/* ── 后台布局 ───────────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-nav {
  border-right: 1px solid var(--line); padding: 20px 0; background: #fbfbfc;
}
.admin-nav .brand { padding: 0 20px 20px; display: block; }
.admin-nav .brand-name { font-size: 14px; letter-spacing: .08em; }
.admin-nav .brand-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; font-size: 13px; color: var(--ink-2);
  border-left: 2px solid transparent;
}
.admin-nav a:hover { background: #f2f3f5; color: var(--ink); }
.admin-nav a.on { color: var(--ink); font-weight: 500; border-left-color: var(--navy); background: #fff; }
.admin-nav .group-label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); padding: 18px 20px 6px;
}
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.admin-head h1 { font-size: 20px; }
.admin-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 30px; }
.stat { background: #fff; padding: 20px; }
.stat .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.stat .v { font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.stat .m { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

.card { border: 1px solid var(--line); }
.card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h3 { font-size: 13.5px; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }

/* ── 弹窗 ───────────────────────────────────────────────── */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,24,28,.42);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 24px; overflow-y: auto;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal.lg { max-width: 760px; }
.modal-head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 22px 24px; }
.modal-foot {
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: #fff;
}

/* ── Toast ──────────────────────────────────────────────── */
#toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; padding: 11px 16px;
  border-radius: var(--radius); font-size: 13px; box-shadow: var(--shadow);
  animation: slide-up .2s ease; max-width: 340px;
  pointer-events: auto;
}
.toast.ok { background: #1f5c3d; }
.toast.warn { background: #7a4f10; }
.toast.bad { background: #8f2f26; }
.toast.sticky { padding-right: 14px; }

/* ── 订单页：刚加购成功的确认条 ──────────────────────────── */
.po-flash {
  margin: 16px 0 0; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  background: #f1f7f3; border: 1px solid #cfe3d7; border-radius: var(--radius);
  font-size: 13px; color: #24503a; line-height: 1.5;
}
.po-flash-ic {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: #1f5c3d; color: #fff; display: grid; place-items: center;
}
.po-flash-ic svg { width: 11px; height: 11px; }
.po-flash strong { font-weight: 600; }
.po-flash-x {
  margin-left: auto; flex: 0 0 22px; width: 22px; height: 22px;
  border: 0; background: none; color: #5c7d6b; cursor: pointer;
  display: grid; place-items: center; border-radius: var(--radius);
}
.po-flash-x:hover { background: #e2eede; color: #24503a; }
.po-flash-x svg { width: 12px; height: 12px; }
.cart-line.fresh { animation: po-flash 2.4s ease-out; }
@keyframes po-flash {
  0%   { background: #eaf4ee; box-shadow: inset 3px 0 0 #1f5c3d; }
  70%  { background: #eaf4ee; box-shadow: inset 3px 0 0 #1f5c3d; }
  100% { background: transparent; box-shadow: inset 3px 0 0 transparent; }
}
@keyframes slide-up { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }


/* 订单页补充：模板里用到但先前未定义的类 */
.ord-no { font-weight: 500; }
.ord-date { font-size: 12px; color: var(--ink-3); }
.ord-hint {
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; margin-bottom: 16px;
}
.ord-total { font-weight: 600; }


/* 网格在只有 1~3 张卡片时不要被拉伸成空白列 */
.mp-group .prod-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }


/* 大表格滚动容器：避免 700+ 行把页面拉成几万像素 */
.tbl-scroll { max-height: 460px; overflow-y: auto; }
.tbl-scroll thead th {
  position: sticky; top: 0; background: #fff; z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slide { grid-template-columns: 1fr; min-height: auto; padding: 40px 28px 28px; }
  .hero-art { justify-self: stretch; max-width: none; order: -1; }
  .pd { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .topbar-right { gap: 14px; margin-left: auto; font-size: 12px; }
  .top-meta { display: none; }
  .subbar-inner { padding: 8px 16px; font-size: 11px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .section { padding: 32px 0 4px; }
  .section-title { font-size: 18px; }
  .hero-title { font-size: 30px; }
  .pd-title { font-size: 21px; }
  .cart-line { grid-template-columns: 68px 1fr; }
  .cart-thumb { width: 68px; height: 68px; }
  .cart-line-right { grid-column: 2; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 28px 20px; }
  .auth-box { max-width: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav {
    position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 400;
    transform: translateX(-100%); transition: transform .2s; background: #fff;
    overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .admin-nav.open { transform: none; }
  .admin-main { padding: 16px 16px 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modal { max-width: none; max-height: 92vh; }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .field-row { grid-template-columns: 1fr; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 9px 8px; }
  .toolbar { gap: 10px; }
  .toolbar-left, .toolbar-right { flex-wrap: wrap; }
}

/* 表格横向滚动容器 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 响应式工具类 ────────────────────────────────────────── */
.only-sm { display: none !important; }
.cart-badge {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.top-link.icon-only { padding: 6px; }

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .only-sm { display: inline-flex !important; }
  .topbar-right { gap: 12px; }
  /* 顶栏在窄屏下不换行，搜索框单独占一行 */
  .topbar-inner { flex-wrap: wrap; }
  .subbar-inner { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .subbar-inner::-webkit-scrollbar { display: none; }
}

/* ── 后台表格缩略图 ──────────────────────────────────────── */
.thumb-xs {
  width: 48px; height: 48px; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb-xs img { width: 100%; height: 100%; object-fit: contain; }

/* ── 后台文件选择（美化原生 input）────────────────────────── */
.file-input {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.file-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: var(--radius); padding: 7px 10px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2); transition: border-color .15s, background .15s;
}
.file-btn:hover { border-color: var(--ink-4); background: #eef0f2; }
.file-btn-label {
  font-weight: 500; color: var(--ink); flex: none;
  border-right: 1px solid var(--line); padding-right: 9px;
}
.file-btn-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-3); font-size: 12px;
}
.file-input:focus-visible + .file-btn { outline: 2px solid var(--navy); outline-offset: 1px; }

/* ── 购物车计数跳动反馈（加购后立即可见）────────────────── */
.top-link.cart-link.bump svg {
  animation: cart-bump .45s cubic-bezier(.3, 1.5, .5, 1);
}
.top-link.cart-link.bump .cart-badge {
  animation: badge-pop .45s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes badge-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* =============================================================
   V11.06 新增：客户视角预览 / 我的特价 / 我的订单 / 库存管理
   ============================================================= */

/* ── 管理员预览提示条 ───────────────────────────────────── */
.preview-bar {
  position: sticky; top: 0; z-index: 60;
  background: #fdf4e6; border-bottom: 1px solid #e8cfa4;
}
.preview-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.preview-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  background: var(--amber); color: #fff; padding: 3px 7px; flex: 0 0 auto;
}
.preview-text { font-size: 12.5px; color: var(--amber); flex: 1 1 auto; min-width: 0; }
.preview-text b { font-weight: 600; }
.preview-acts { flex: 0 0 auto; }

/* ── 我的特价与优惠 ─────────────────────────────────────── */
.mp-hero {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 30px 32px;
  margin-bottom: 26px;
}
.mp-eyebrow {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.mp-title { font-size: 24px; letter-spacing: -.015em; line-height: 1.2; }
.mp-lead { font-size: 13px; color: var(--ink-3); max-width: 620px; margin-top: 8px; }

.mp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 24px;
}
.mp-stat { background: #fff; padding: 16px 18px; }
.mp-stat-num { font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.mp-stat-num.is-saving { color: var(--green); }
.mp-stat-label { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.mp-notice {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  border: 1px solid #e8cfa4; background: var(--amber-soft);
  color: var(--amber); padding: 12px 16px; font-size: 12.5px;
  margin-bottom: 28px;
}
.mp-notice strong { font-weight: 600; }

.mp-group { margin-bottom: 38px; }
.mp-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
}
.mp-group-title { font-size: 14px; font-weight: 600; }
.mp-group-note { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.mp-group-count {
  font-size: 12px; color: var(--ink-3); flex: 0 0 auto;
  background: var(--bg-3); padding: 2px 9px; border-radius: 10px;
}

/* 特价专属：到期徽标 */
.sp-expiry {
  display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; padding: 2px 7px; background: var(--amber-soft); color: var(--amber);
}
.sp-expiry.urgent { background: var(--red-soft); color: var(--red); }

.mp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 24px;
}
.mp-foot-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.mp-foot-body { font-size: 12.5px; color: var(--ink-3); max-width: 680px; }

/* ── 我的订单 ───────────────────────────────────────────── */
.ord-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.ord-tabs { display: flex; gap: 2px; }
.ord-tab {
  border: 1px solid transparent; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--ink-3);
  padding: 7px 13px; border-radius: var(--radius);
}
.ord-tab:hover { background: var(--bg-3); color: var(--ink); }
.ord-tab.on { background: var(--navy); color: #fff; }
.ord-tab .n { opacity: .65; margin-left: 5px; font-size: 11.5px; }

.ord-search { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; }
.ord-search input {
  border: 1px solid var(--line); padding: 7px 11px; font: inherit; font-size: 12.5px;
  width: 100%; min-width: 0; border-radius: var(--radius);
}
.ord-search input:focus { outline: none; border-color: var(--navy); }

.ord-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ord-table th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ord-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ord-table tr:last-child td { border-bottom: 0; }
.ord-table .num { text-align: right; }
.ord-ref { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ord-actions { display: flex; gap: 6px; justify-content: flex-end; }

.ord-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-bottom: 20px; }
.ord-meta .k { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ord-meta .v { font-size: 13px; margin-top: 2px; }
.ord-totals { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ord-totals .row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.ord-totals .row.grand { font-weight: 600; font-size: 15px; padding-top: 8px; }
.ord-thumb { width: 42px; height: 42px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ord-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ── 后台：客户选择器 ───────────────────────────────────── */
.view-site-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 500; padding: 9px 12px;
  cursor: pointer; border-radius: var(--radius); text-align: left;
}
.view-site-btn:hover { background: var(--navy-hover); }
.view-site-btn .vs-arrow { opacity: .75; }
.vs-hint { font-size: 10.5px; color: var(--ink-4); margin-top: 6px; line-height: 1.4; }

.pick-lead { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.pick-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); max-height: 52vh; overflow-y: auto; }
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 0; font: inherit; text-align: left; cursor: pointer;
  padding: 11px 14px; width: 100%;
}
.pick-row:hover { background: var(--bg-2); }
.pick-main { min-width: 0; }
.pick-code { display: block; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-4); }
.pick-name { display: block; font-size: 13px; font-weight: 500; }
.pick-meta { display: flex; gap: 6px; flex: 0 0 auto; }
.pick-chip { font-size: 10.5px; padding: 2px 7px; background: var(--bg-3); color: var(--ink-3); white-space: nowrap; }
.pick-chip.on { background: var(--green-soft); color: var(--green); }

/* ── 后台：通用提示条 ───────────────────────────────────── */
.note-strip {
  border: 1px solid var(--line); border-left: 2px solid var(--ink);
  background: var(--bg-2); color: var(--ink-2);
  font-size: 12.5px; padding: 11px 15px; margin-bottom: 20px; line-height: 1.5;
}

/* ── 后台：库存管理 ─────────────────────────────────────── */
.stat-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.stat-row .stat { padding: 16px 18px; }
.stat-k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.stat-v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.stat-v.ok { color: var(--green); }
.stat-v.warn { color: var(--amber); }
.stat-v.bad { color: var(--red); }

.upload-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 1.5px dashed var(--line); background: var(--bg-2);
  padding: 30px 20px; cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--navy); background: #fbfcfd; }
.drop-icon { width: 26px; height: 26px; color: var(--ink-4); }
.drop-icon svg { width: 100%; height: 100%; }
.drop-title { font-size: 13px; font-weight: 500; }
.drop-sub { font-size: 11.5px; color: var(--ink-3); word-break: break-all; }

.upload-side { display: flex; flex-direction: column; gap: 12px; }
.last-import { border: 1px solid var(--line); padding: 12px 14px; background: var(--bg-2); }
.li-k { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.li-v { font-size: 12.5px; font-weight: 500; margin-top: 3px; word-break: break-all; }
.li-m { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.alert { border: 1px solid var(--line); background: var(--bg-2); padding: 13px 16px; font-size: 12.5px; }
.alert b { display: block; margin-bottom: 3px; }
.alert.ok { border-color: #bfe0cf; background: var(--green-soft); color: var(--green); }
.alert.warn { border-color: #e8cfa4; background: var(--amber-soft); color: var(--amber); }
.alert.bad { border-color: #e8c4c0; background: var(--red-soft); color: var(--red); }
.row-bad { background: #fdf7f6; }


/* 订单页补充：模板里用到但先前未定义的类 */
.ord-no { font-weight: 500; }
.ord-date { font-size: 12px; color: var(--ink-3); }
.ord-hint {
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; margin-bottom: 16px;
}
.ord-total { font-weight: 600; }


/* 特价卡片等高：名称固定两行，价格与按钮底对齐 */
.mp-group .prod-card { display: flex; flex-direction: column; height: 100%; }
.mp-group .prod-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  /* 固定两行高度：名字一行的卡片不会把下面的价格行顶高，整行卡片对齐 */
  height: 2.7em;
}
/* 品类名同样固定一行，避免有的商品没品类导致错位 */
.mp-group .prod-meta {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.6em;
}
.mp-group .prod-card .btn { margin-top: auto; }

/* 网格在只有 1~3 张卡片时不要被拉伸成空白列 */
.mp-group .prod-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }


/* 大表格滚动容器：避免 700+ 行把页面拉成几万像素 */
.tbl-scroll { max-height: 460px; overflow-y: auto; }
.tbl-scroll thead th {
  position: sticky; top: 0; background: #fff; z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mp-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .mp-grid { grid-template-columns: repeat(2, 1fr); }
  /* 四个指标在手机上排 2×2，避免竖排 4 行占满整屏 */
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
  .upload-grid { grid-template-columns: 1fr; }
  .ord-meta { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .preview-inner { padding: 8px 16px; flex-wrap: wrap; }
  .preview-text { flex-basis: 100%; order: 3; font-size: 11.5px; }
  .ord-search input { min-width: 0; width: 100%; }
  .ord-toolbar { align-items: stretch; }
  .ord-tabs { overflow-x: auto; }
  .ord-table th, .ord-table td { padding: 10px; }
  .mp-hero { padding: 20px 18px; }
}

/* =============================================================
   首页快捷入口（My prices / My orders）
   —— 用户反馈"我的订单入口不明显"，因此在 Hero 下方给一条
   双卡入口，既解决可发现性，也不动原有导航结构。
   ============================================================= */
.quick-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 20px 0 4px;
}
.quick-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick-card:hover {
  border-color: var(--ink-4);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.quick-icon {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--ink-2);
}
.quick-icon svg { width: 18px; height: 18px; }
.quick-copy { display: flex; flex-direction: column; min-width: 0; }
.quick-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.quick-sub { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.quick-arrow {
  margin-left: auto; color: var(--ink-4); font-size: 15px;
  transition: color .15s, transform .15s;
}
.quick-card:hover .quick-arrow { color: var(--ink); transform: translateX(2px); }

/* 顶栏入口：图标 + 文字，窄屏只留图标 */
.icon-text { white-space: nowrap; }
.icon-only { padding: 6px; }

/* =============================================================
   库存管理 —— 阈值表与逐商品编辑
   ============================================================= */
.th-table td { vertical-align: top; }
.th-table .th-global td { background: var(--bg-2); }
.th-note { font-size: 11.5px; color: var(--ink-3); font-weight: 400; line-height: 1.4; }
.th-cell { white-space: nowrap; }
.th-help {
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); background: var(--bg-2);
}
.qty-cell { font-variant-numeric: tabular-nums; }
.stock-filter input {
  width: 220px; padding: 7px 10px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.stock-filter input:focus { outline: none; border-color: var(--ink-3); }

/* 商品库存/阈值弹窗 */
.sk-item-head { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.sk-item-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sk-item-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.sk-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.sk-fact { background: var(--bg-2); padding: 11px 13px; }
.sk-fact-k { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.sk-fact-v { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sk-fact-note { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-top: 3px; line-height: 1.35; }

.sk-check {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.sk-check input { margin: 2px 0 0; flex: none; }

.th-ref {
  background: var(--bg-2); border-left: 2px solid var(--ink-4);
  padding: 11px 14px; margin-bottom: 4px;
}
.th-ref-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; }
.th-ref-k { color: var(--ink-3); }
.th-ref-v { font-weight: 500; font-variant-numeric: tabular-nums; }
.th-ref-note { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.th-form { margin-top: 4px; }
.th-form[hidden] { display: none; }

@media (max-width: 760px) {
  .quick-bar { grid-template-columns: 1fr; gap: 8px; padding: 14px 0 2px; }
  .quick-sub { display: none; }
  .sk-facts { grid-template-columns: 1fr; }
  .stock-filter input { width: 100%; }
}

/* Manual 标记：放在数字下方而不是同行，避免窄列里被挤掉 */
.qty-flag {
  display: inline-block; margin-top: 2px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); background: var(--bg-3); padding: 1px 5px; border-radius: 0;
}

/* =============================================================
   V11.09 — 品牌化（对齐 BNK 标志）+ 通知 + 特价管理
   ============================================================= */

/* ── 品牌区 ── */
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-div { width: 1px; height: 24px; background: var(--line); display: block; }
.brand-sub {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}
.brand-large img { width: 252px; height: auto; display: block; }
.admin-brand { padding: 0 0 4px; margin-bottom: 18px; }
.admin-brand img { height: 30px; width: auto; }

/* ── 顶栏微调：入口更少，留白更多 ── */
.topbar-inner { padding: 15px 28px; }
.top-link .badge { background: var(--bg-3); color: var(--ink); font-weight: 600; }
.subbar-disc { color: var(--ink); font-weight: 500; letter-spacing: .01em; }

/* ── 通知铃铛 ── */
.notif-btn { position: relative; padding: 6px 4px; }
.notif-btn svg { display: block; }
.notif-badge {
  position: absolute; top: -1px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
  animation: notif-pop .28s ease-out;
}
.notif-badge[hidden] { display: none; }
@keyframes notif-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.notif-btn.has-unread { color: var(--ink); }

.notif-panel {
  position: fixed; top: 96px; right: max(16px, calc((100vw - var(--maxw)) / 2 + 28px));
  width: 400px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(17,19,21,.16);
  z-index: 400; overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.notif-head h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.notif-mark {
  border: 0; background: none; padding: 0; font-size: 11.5px;
  color: var(--ink-3); text-decoration: underline;
}
.notif-mark:hover { color: var(--ink); }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: #fff; text-align: left; position: relative;
}
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread { background: #fcfaf8; }
.notif-ico {
  flex: none; width: 30px; height: 30px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.notif-ico svg { width: 15px; height: 15px; }
.notif-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.notif-body { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.notif-when { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.notif-unread-dot {
  position: absolute; top: 18px; right: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.notif-empty { padding: 34px 18px; text-align: center; }
.notif-empty p { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.notif-empty span { font-size: 12px; color: var(--ink-3); }
.notif-foot {
  padding: 12px 18px; border-top: 1px solid var(--line); text-align: center;
  font-size: 12px;
}
.notif-foot a { text-decoration: underline; color: var(--ink-2); }

/* ── 页脚（品牌收口）── */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; background: #fff; }
.foot-inner {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 40px;
  padding: 44px 28px 32px; align-items: start;
}
.foot-logo { width: 216px; height: auto; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 12px;
}
.foot-cols a, .foot-cols span {
  display: block; font-size: 12.5px; color: var(--ink-2); padding: 4px 0;
}
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal {
  border-top: 1px solid var(--line-soft); padding: 14px 28px 22px;
  font-size: 11px; color: var(--ink-4); letter-spacing: .02em;
}

/* ── 后台：客户特价页 ── */
.crumbs a:hover { color: var(--ink); }
.acct-bar {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  border: 1px solid var(--line); background: #fff; margin-bottom: 18px;
}
.acct-disc { padding: 20px 22px; border-right: 1px solid var(--line); }
.acct-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 6px;
}
.acct-value { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.acct-value span { font-size: 12px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.acct-hint { font-size: 11.5px; color: var(--ink-3); margin: 6px 0 12px; line-height: 1.45; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.acct-stat {
  padding: 20px 18px; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.acct-stat:last-child { border-right: 0; }
.acct-stat b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.acct-stat span { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.price-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.cell-strong { font-weight: 500; }
.cell-sub { font-size: 11.5px; color: var(--ink-3); }
.cust-link { font-weight: 500; border-bottom: 1px solid var(--ink); }
.cust-sub { font-size: 11.5px; color: var(--ink-3); }
.save-chip {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #fff; background: var(--ink); padding: 2px 6px;
}
.dup-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.dup-row:last-child { border-bottom: 0; }
.empty-inline { padding: 34px 22px; text-align: center; color: var(--ink-3); font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.tag.warn { background: var(--amber-soft); color: var(--amber); }

/* 弹窗里的价格计算与提示 */
.calc-strip { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.calc-strip b { font-weight: 600; }
.calc-box { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; padding-top: 10px; }
.calc-box b { color: var(--ink); font-size: 13px; }
.sp-who {
  font-size: 12px; color: var(--ink-3); margin: -4px 0 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.sp-warn {
  margin-top: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.5;
  background: var(--red-soft); color: var(--red); border-left: 2px solid var(--red);
}
.fixed-field {
  padding: 10px 12px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 12.5px;
}
.opt { color: var(--ink-4); font-weight: 400; }

/* ── 后台：Excel 导入 ── */
/* 导入面板嵌在「Customer Special prices」表格卡片里，所以要有上下分隔线，
   让它在视觉上属于这张表，而不是另一个页面。 */
.imp-inline {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.imp-inline[hidden] { display: none; }
.imp-inline-head { margin-bottom: 18px; }
.imp-inline-title { font-size: 14px; font-weight: 600; }
.imp-inline-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.review-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.review-summary .chip.muted { background: #fff; }
.imp-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.imp-step { display: flex; gap: 12px; }
.imp-step-num {
  flex: none; width: 22px; height: 22px; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.imp-step b { font-size: 13px; }
.imp-step p { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 3px 0 8px; }
.preset-strip {
  margin-top: 16px; padding: 10px 14px; font-size: 12.5px;
  background: var(--bg-2); border-left: 2px solid var(--ink);
}
.file-row { display: flex; align-items: center; gap: 12px; }
.file-native { display: none; }
.file-name { font-size: 12.5px; color: var(--ink-3); }
.imp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); color: var(--ink-3);
}
.chip.in { border-color: #cfe3d6; background: var(--green-soft); color: var(--green); }
.chip.warn { border-color: #f0e0c4; background: var(--amber-soft); color: var(--amber); }
.chip.bad { border-color: #f1d5d1; background: var(--red-soft); color: var(--red); }
.imp-table td { font-size: 12.5px; }
.imp-table tr.row-error td { background: #fdf7f6; }
.imp-note { font-size: 11.5px; color: var(--ink-3); max-width: 280px; }
.imp-note.is-error { color: var(--red); }
.imp-commit { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.imp-skip { font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
  .acct-bar { grid-template-columns: 1fr; }
  .acct-disc { border-right: 0; border-bottom: 1px solid var(--line); }
  .acct-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
  .imp-steps { grid-template-columns: 1fr; }
  .notif-panel { top: 78px; right: 10px; }
}

/* 描边按钮：商品卡里大量出现，用描边替掉满黑块，点击时反色 */
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline:disabled { background: var(--bg-2); color: var(--ink-4); border-color: var(--line); cursor: not-allowed; }
.btn-outline.is-added { background: var(--ink); color: #fff; }

/* 文件选择：<label> 当按钮用，必须压掉 .field label 的默认样式 */
.field label.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; margin: 0;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: #fff; background: var(--ink); cursor: pointer;
}
.field label.btn:hover { background: #000; }

/* 窄屏：文字副标隐藏后，分隔线也不要留下孤立的一根 */
@media (max-width: 760px) {
  .brand-div { display: none; }
  .brand-mark { height: 32px; }
  .brand-large img { width: 180px; }
  .notif-panel { top: 74px; }
  .acct-value { font-size: 26px; }
  .price-toolbar { align-items: stretch; }
  .price-toolbar > * { width: 100%; }
}

/* =============================================================
   V11.10 — 列表查询与分页（客户 / 产品）
   ============================================================= */
.list-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.list-search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 300px; max-width: 460px;
}
.list-search svg {
  position: absolute; left: 12px; width: 15px; height: 15px;
  color: var(--ink-3); pointer-events: none;
}
.list-search input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 0;
  padding: 0 12px 0 35px; font-size: 13px; color: var(--ink); background: #fff;
  outline: none; -webkit-appearance: none;
}
.list-search input:focus { border-color: var(--ink); }
.list-search input::placeholder { color: var(--ink-4); }
.list-select {
  height: 40px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink); padding: 0 10px; outline: none;
}
.list-select:focus { border-color: var(--ink); }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px 2px 4px; flex-wrap: wrap;
}
.pager-info { font-size: 12px; color: var(--ink-3); letter-spacing: .01em; }
.pager-info b { color: var(--ink); font-weight: 600; }
.pager-pages { display: flex; align-items: center; gap: 2px; }
.pager-num, .pager-step {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .12s, color .12s, background .12s;
}
.pager-num:hover, .pager-step:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pager-num.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager-step:disabled { color: var(--ink-4); cursor: not-allowed; background: var(--bg-2); }
.pager-gap { padding: 0 5px; color: var(--ink-4); font-size: 12px; }
.pager-size {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
}
.pager-size select {
  height: 32px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink); padding: 0 8px; outline: none;
}

@media (max-width: 760px) {
  .list-search { max-width: none; flex: 1 1 100%; }
  .pager { gap: 10px; }
  .pager-pages { order: 3; width: 100%; justify-content: center; }
}

/* ── V11.11 additions ───────────────────────────────────────── */
/* 批量特价编辑弹窗：商品行 = 勾选框 + 商品信息 + 价格输入 */
.bge-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #f0f2f4; }
.bge-row:last-child { border-bottom: 0; }
.bge-row:hover { background: #fafbfc; }
.bge-row .cell-strong { font-weight: 500; }
.bge-row .cell-sub { color: #747b83; font-size: 11.5px; margin-top: 2px; white-space: normal; }
.input-compact {
  height: 32px; padding: 0 8px; border: 1px solid #d8dce0; border-radius: 6px;
  background: #fff; font-size: 12.5px; color: #1c2126; font-family: inherit;
}
.input-compact:focus { outline: 2px solid #1c2126; outline-offset: -1px; }

/* 批量特价列表：日期与名称不换行，避免列被挤成三行 */
.nowrap { white-space: nowrap; }
/* 弹窗里的商品勾选框：.field input 的 width:100% 会把它拉满整行 */
.bge-row input[type="checkbox"] {
  width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0;
  accent-color: #1c2126; cursor: pointer;
}
.bge-row label { font-weight: 400; font-size: 13px; margin: 0; cursor: pointer; color: inherit; }
.bge-row label .cell-strong { font-weight: 500; font-size: 13px; }
.bge-row select.input-compact { min-width: 116px; }

/* 日期输入：文本按 dd/mm/yyyy 输入，右侧保留系统日历（测试记录 11.09 要求日/月/年顺序） */
.date-au { position: relative; display: flex; align-items: center; gap: 6px; }
.date-au input[type="text"] {
  flex: 1 1 auto; min-width: 0; letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}
.date-au input[type="text"].is-invalid { border-color: #c0392b; background: #fff7f6; }
.date-au-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #d8dce0; border-radius: 6px; background: #fff; color: #4a5158;
  cursor: pointer;
}
.date-au-btn:hover { background: #f4f6f7; color: #1c2126; }
.date-au-btn:focus-visible { outline: 2px solid #1c2126; outline-offset: 1px; }
/* 原生日期控件只用来唤起日历，不参与布局 */
.date-au-native {
  position: absolute; right: 0; bottom: 0; width: 1px; height: 1px;
  padding: 0; border: 0; opacity: 0; pointer-events: none;
}

/* ── V11.13：客户选择器 / 密码列 / 邮件预览 / 产品导入 ── */
.tag.ok { background: var(--green-soft); color: var(--green); }

/* 批量特价弹窗的客户选择：原生 select 会被弹窗边界裁掉，改成可搜索列表 */
.picker { position: relative; }
.picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.picker-btn:disabled { background: var(--bg-3); color: var(--ink-3); cursor: not-allowed; }
.picker-caret { color: var(--ink-3); font-size: 11px; }
.picker-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(20, 24, 28, .16);
  padding: 8px;
}
.picker-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 6px;
}
.picker-list { max-height: 240px; overflow: auto; }
.picker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.picker-item:hover { background: var(--bg-2); }
.picker-item.on { background: var(--bg-3); }
.picker-item-main { font-size: 13px; font-weight: 500; color: var(--ink); }
.picker-item-sub { font-size: 11.5px; color: var(--ink-3); }
.picker-empty { padding: 12px 10px; font-size: 12.5px; color: var(--ink-3); }

/* 客户表：登录邮箱 + 当前口令 */
.login-line { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.login-line:last-child { margin-bottom: 0; }
.login-email { color: #747b83; }
.login-pass {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

/* 邮件正文预览 */
.mail-body {
  margin: 0;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  max-height: 420px;
  overflow: auto;
}

.review-summary a.chip { text-decoration: none; }
.imp-done {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}
.imp-error {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}
.table-compact th, .table-compact td { padding: 7px 10px; font-size: 12.5px; }

/* ── 目录页筛选栏（V11.14：替代首页「Shop by category」）───────────
   一行内放：搜索框 · 类别下拉 · 只看特价 · GST 切换 · 排序。
   窄屏自动换行，搜索框单独占满一行。 */
.filterbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.f-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.f-search input {
  width: 100%; height: 36px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 12px 0 36px; font-size: 13px; color: var(--ink);
  background: #fff; outline: none; transition: border-color .15s;
}
.f-search input::placeholder { color: var(--ink-4); }
.f-search input:focus { border-color: var(--ink-3); }
.f-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; display: flex; pointer-events: none;
}
.f-search-icon svg { width: 15px; height: 15px; stroke: var(--ink-3); }

.f-select { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.f-select-label { font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.f-select select {
  height: 36px; max-width: 260px; padding: 0 30px 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 12.5px; color: var(--ink-2);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23747b83'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.f-select select:focus { outline: none; border-color: var(--ink-3); }

@media (max-width: 720px) {
  .filterbar { gap: 10px; padding: 12px; }
  .f-search { flex: 1 1 100%; }
  .f-select { flex: 1 1 auto; }
  .f-select select { width: 100%; max-width: none; }
}

/* ── 管理端：商品删除 / 归档 ───────────────────────────────── */
/* 破坏性操作用的实心红按钮：幽灵按钮看不出「这一下不可撤销」 */
.btn-solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-solid-danger:hover { background: #9c3127; border-color: #9c3127; }
/* 归档行整体压暗，和正常商品区分开 */
.table tr.row-archived td { background: #fafafa; color: var(--ink-3); }
.table tr.row-archived td .thumb-xs { opacity: .45; }
/* 窄屏（≤1200）把 Edit/Delete 挤紧一点，避免 1024 笔记本上删除按钮被裁掉 */
@media (max-width: 1200px) {
  .table [data-del], .table [data-restore] { padding: 0 10px; }
  .table [data-del] svg { display: none; }
  .table tbody td:first-child { width: 44px !important; }
  .table .thumb-xs { width: 34px; height: 34px; }
}

/* ── 账户页：送货分支自助维护 ─────────────────────────────── */
/* 窄屏四列会把 Edit / Remove 挤出屏幕，把 Suburb 折进地址列即可放下 */
.br-sub-inline { display: none; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .br-sub-col { display: none; }
  .br-sub-inline { display: block; }
  .table [data-branch-edit], .table [data-branch-del] { padding: 0 10px; font-size: 12px; }
}
