* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #F0701A; --blue-d: #D65A0C; --blue-l: #FDF0E3;
  --navy: #D65A0C; --gold: #C9A24B; --gold-l: #F7EFDD;
  --teal: #0F6E56; --teal-l: #E1F5EE;
  --amber: #854F0B; --amber-l: #FAEEDA;
  --red: #A32D2D; --red-l: #FCEBEB;
  --ink: #1c1f23; --ink2: #4a5058; --ink3: #8a9199;
  --line: #e3e6ea; --bg: #f5f6f8; --card: #fff;
}
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: 13px; }
input, select { font-family: inherit; font-size: 13px; }
img { max-width: 100%; }

/* ---------- 公告条 ---------- */
.annc { background: #2A2018; color: #E8D9C8; font-size: 12px; }
.annc-in { max-width: 1400px; margin: 0 auto; padding: 6px 16px; display: flex; justify-content: space-between; gap: 12px; }
.annc-r { opacity: .85; }
@media (max-width: 900px) { .annc-r { display: none; } }

/* ---------- 顶栏 ---------- */
.top { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(214,90,12,.07); }
.top-in { max-width: 1400px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-mark { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--blue);
  color: #fff; font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.logo-txt { font-size: 18px; font-weight: 800; color: var(--blue-d); letter-spacing: -.3px; line-height: 1.15; }
.logo-txt small { display: block; font-size: 9.5px; font-weight: 500; color: var(--ink3); letter-spacing: 2.2px; }
.search { flex: 1; max-width: 560px; display: flex; border: 2px solid var(--blue); border-radius: 9px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: none; padding: 10px 12px 10px 34px; font-size: 13.5px; background: transparent; }
.search input:focus { outline: none; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-size: 14px; }
.search { position: relative; }
.search-btn { background: var(--blue); color: #fff; padding: 10px 18px; font-size: 13px; font-weight: 600; }
.search-btn:hover { background: var(--blue-d); }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
/* 内页顶栏右侧动作区（track / mylist / cart / product 共用）。
   原先只在 cart.css 里定义，track.html 没加载 cart.css —— 结果按钮各占一行竖排。
   放到公共样式里，任何页面都能用。 */
.pd-top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.wa-link { display: flex; align-items: center; gap: 7px; color: var(--blue); }
.wa-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wa-txt { line-height: 1.2; text-align: left; }
.wa-txt small { display: block; font-size: 10px; color: var(--ink3); }
.wa-txt b { font-size: 12.5px; }
.acct { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.acct:hover { border-color: var(--blue); background: var(--blue-l); }
.acct-ico { font-size: 15px; }
.acct-txt { line-height: 1.2; text-align: left; }
.acct-txt small { display: block; font-size: 10px; color: var(--ink3); }
.acct-txt b { font-size: 12.5px; color: var(--ink); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px;
  background: var(--blue-d); color: #fff; font-size: 13px; font-weight: 600; }
.cart-btn:hover { background: var(--blue-d); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 11px;
  min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.tier-chip { font-size: 12px; padding: 5px 10px; border-radius: 20px; background: var(--blue-l); color: var(--blue); white-space: nowrap; }
.tier-chip.none { background: var(--gold-l); color: var(--amber); }

/* ---------- 按钮体系 ---------- */
.btn-pri { display: inline-block; background: var(--blue); border: none; color: #fff; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.btn-pri:hover { background: var(--blue-d); }
.btn-pri.lg { padding: 12px 26px; font-size: 14.5px; border-radius: 9px; }
.btn-teal { display: inline-block; background: var(--teal); border: none; color: #fff; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.btn-teal:hover { background: #0a5542; }
.btn { padding: 7px 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink2); }
.btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 布局 ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 16px; display: flex; gap: 16px; align-items: flex-start; }
.side { width: 210px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: sticky; top: 62px; }
.side h4 { font-size: 12px; color: var(--ink3); padding: 8px 10px 6px; font-weight: 600; }
.cat-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px;
  color: var(--ink2); font-size: 13px; cursor: pointer; }
.cat-item:hover { background: var(--bg); }
.cat-item.on { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.cat-item .ci-ico { font-size: 15px; width: 20px; flex: none; text-align: center; line-height: 1; }
.cat-item .ci-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item i { font-style: normal; font-size: 11px; color: var(--ink3); margin-left: auto; flex: none; }
/* 暂时没货的类目照样显示，只是淡一点，不隐藏 */
.cat-item.zero { opacity: .5; }
.cat-item.zero:hover { opacity: .85; }
/* 分类树（上级展开下级） */
.cat-item .ci-caret { flex: none; width: 18px; text-align: center; font-size: 10px; color: var(--ink3); cursor: pointer; transition: transform .16s; user-select: none; }
.cat-item .ci-caret:hover { color: var(--blue); }
.cat-item .ci-caret.open { transform: rotate(90deg); }
.cat-kids { margin: 1px 0 3px 20px; padding-left: 8px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.cat-kids .cat-item { padding: 5px 8px; }
.cat-kids .cat-item .ci-ico { display: none; }
.cat-item.kid .ci-nm { font-weight: 400; }
.cat-kids .cat-kids { margin-left: 14px; }
.main { flex: 1; min-width: 0; }

/* ---------- 工具条 ---------- */
.bar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--ink2); }
.crumb b { color: var(--ink); }
.sub-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 14px; background: var(--bg); color: var(--ink2); font-size: 12px; cursor: pointer; border: 1px solid transparent; }
.chip.on { background: var(--blue-l); color: var(--blue); border-color: #f2cfae; }
.bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink2); }
.count { font-size: 12px; color: var(--ink3); }

/* ---------- 商品网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s, border-color .16s; }
.card:hover { transform: translateY(-2px); border-color: #f2cfae; box-shadow: 0 8px 22px rgba(214,90,12,.13); }
.thumb { height: 150px; background: linear-gradient(160deg, #F2F5F8, #E8EDF3); display: flex; align-items: center; justify-content: center; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-size: 26px; font-weight: 700; color: #c3c9d1; letter-spacing: 1px; }
.tagmark { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: .5px; }
.tagmark.HOT { background: var(--red-l); color: var(--red); }
.tagmark.NEW { background: var(--teal-l); color: var(--teal); }
.cbody { padding: 10px 11px; flex: 1; display: flex; flex-direction: column; }
.csku { font-size: 11px; color: var(--ink3); font-family: ui-monospace, Menlo, monospace; }
.cname { font-size: 13px; margin: 3px 0 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.cmeta { font-size: 11.5px; color: var(--ink3); }
.cprice { margin: 6px 0 8px; }
.cprice > div { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cprice b { font-size: 17px; color: var(--red); }
.cprice small { color: var(--ink3); font-size: 11px; }
.cprice .cprice-ctn { flex: 0 0 100%; font-size: 11px; color: var(--ink3); margin-top: 1px; }
.cprice .lock { font-size: 12px; color: var(--amber); }
.cqty { margin-top: auto; display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.cqty button { width: 26px; height: 27px; border: 0; background: var(--bg); cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink2); padding: 0; }
.cqty button:hover { background: var(--blue-l); color: var(--blue); }
.cqty input { width: 36px; height: 27px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--ink); padding: 0; }
.cadd { margin-top: 7px; padding: 7px;   /* 推到卡片底部，与同行卡片按钮对齐 */ border-radius: 7px; background: var(--blue-l); color: var(--blue); text-align: center; font-size: 12.5px; font-weight: 600;  cursor: pointer; }
.card.incart .cadd { background: var(--teal); color: #fff; }
.card:not(.incart) .cadd:hover { background: var(--blue); color: #fff; }
a.card { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
a.card:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 18px 0 30px; flex-wrap: wrap; }
.pager button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink2); }
.pager button.on { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
/* ---------- 分页条：每页条数 + 页码（后台商品列表 / 选品车共用） ---------- */
.pgbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pgbar .pager { margin: 0; justify-content: flex-start; gap: 5px; }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }
.pgsize { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  color: var(--ink2); font-size: 12.5px; font-family: inherit; cursor: pointer; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink3); }

/* ---------- 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(40,26,16,.48); z-index: 80; display: none; }
.mask.on { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw; background: #fff; z-index: 90;
  transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer-sm { width: 380px; }
.drawer.on { transform: none; }
.dhead { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.dhead h3 { font-size: 15px; font-weight: 600; }
.dhead .x { margin-left: auto; font-size: 20px; color: var(--ink3); line-height: 1; padding: 0 4px; }
.dbody { flex: 1; overflow-y: auto; padding: 14px 16px; }
.dfoot { border-top: 1px solid var(--line); padding: 12px 16px; }

/* 详情 */
.dimg { height: 220px; background: linear-gradient(160deg, #F2F5F8, #E8EDF3); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.dimg .ph { font-size: 48px; font-weight: 700; color: #c3c9d1; }
.dtitle { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.dsku { font-size: 12px; color: var(--ink3); font-family: ui-monospace, Menlo, monospace; margin-bottom: 10px; }
.dprice { background: var(--red-l); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; }
.dprice .big { font-size: 24px; color: var(--red); font-weight: 700; }
.dprice .sub { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dtable td { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink2); }
.dtable td:first-child { width: 96px; color: var(--ink3); }
.addrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; font-size: 16px; color: var(--ink2); background: #fff; }
.stepper button:hover { background: var(--bg); }
.stepper input { width: 52px; height: 32px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* 选品车 */
.ci { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ci .thumb2 { width: 54px; height: 54px; flex: none; background: var(--bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #c3c9d1; font-weight: 700; }
.ci .info { flex: 1; min-width: 0; }
.ci .nm { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci .mt { font-size: 11.5px; color: var(--ink3); margin-top: 2px; }
.ci .ops { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ci .del { color: var(--ink3); font-size: 12px; }
.ci .del:hover { color: var(--red); }
.sum { background: var(--bg); border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .total b { color: var(--red); font-size: 17px; }
.hint { font-size: 11.5px; color: var(--ink3); padding: 8px 0 0; line-height: 1.6; }

/* ---------- 登录弹窗 ---------- */
.login-tip { font-size: 13px; color: var(--ink2); line-height: 1.7; margin-bottom: 12px; }
.login-tip b { color: var(--blue-d); }
.login-tip a { color: var(--blue); font-weight: 600; }
.login-demo { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.login-demo small { color: var(--ink3); display: block; margin-bottom: 6px; }
.demo-code { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); font-size: 12px; color: var(--ink2); cursor: pointer; }
.demo-code:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }

/* ---------- 后台 ---------- */
.adm { max-width: 900px; margin: 0 auto; padding: 30px 20px; }
.adm h1 { font-size: 20px; margin-bottom: 4px; }
.adm .s { color: var(--ink3); font-size: 13px; margin-bottom: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.step h3 { font-size: 14px; margin-bottom: 6px; }
.step h3 em { font-style: normal; background: var(--blue); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-right: 8px; }
.step p { font-size: 13px; color: var(--ink2); margin-bottom: 10px; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 34px; text-align: center; color: var(--ink3); background: var(--bg); }
.drop.over { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.rep { margin-top: 12px; font-size: 13px; }
.rep .ok { color: var(--teal); }
.rep .bad { color: var(--red); }
.rep table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.rep td, .rep th { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.rep th { background: var(--bg); }
code { background: var(--bg); padding: 1px 5px; border-radius: 3px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }

/* ---------- 横向导航 ---------- */
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-in { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; align-items: center; }
/* nowrap：窄屏时若不加，按钮会被压扁成「☰/全/部/分/类」竖排 */
.nav-cats { padding: 11px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav-cats:hover { color: var(--blue); }
.nav-link { padding: 11px 16px; font-size: 13.5px; color: var(--ink2); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--blue); }
.nav-link.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }
.nav-link.adm-link { margin-left: auto; color: var(--ink3); }
.nav-right { margin-left: auto; }
.nav-link.adm-link + .nav-right { margin-left: 0; }

/* ---------- Hero（Miniso 风白底 banner）---------- */
.hero-wrap { margin-top: 6px; }
.hero { flex: 1; min-width: 0; display: block; }
.banner { position: relative; border-radius: 16px; overflow: hidden; min-height: 400px; align-self: stretch; min-width: 0;
  background: #fff; border: 1px solid #f4e7d8; box-shadow: 0 10px 28px rgba(214,90,12,.08); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.slide.on { opacity: 1; visibility: visible; }
.hl-mark.sm { font-size: 34px; margin: 10px 0 12px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.svc-chips span { background: var(--blue-l); color: var(--blue-d); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 9px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; max-width: 430px; }
.rg-chips span { background: #fff; border: 1.5px solid var(--blue); color: var(--blue-d); font-weight: 600; font-size: 12.5px; padding: 5px 13px; border-radius: 20px; }
.b-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--blue-d); font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.b-arrow:hover { background: #fff; }
.b-arrow.prev { left: 12px; }
.b-arrow.next { right: 12px; }
.b-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.b-dot { width: 9px; height: 9px; border-radius: 6px; background: rgba(214,90,12,.28); cursor: pointer; transition: .25s; }
.b-dot.on { background: var(--blue); width: 24px; }
.hero-img { position: absolute; right: 0; top: 0; height: 100%; width: 56%; object-fit: cover; object-position: center right; z-index: 1; }
.banner::before { content: ""; position: absolute; left: 38%; top: 0; width: 20%; height: 100%; z-index: 2;
  background: linear-gradient(90deg, #fff 8%, rgba(255,255,255,0) 100%); pointer-events: none; }
.hero-txt { position: relative; z-index: 3; padding: 38px 20px 38px 46px; max-width: 48%; }
.b-kicker { display: inline-block; font-size: 11px; letter-spacing: 2.5px; font-weight: 700; color: var(--blue);
  background: var(--blue-l); border-radius: 20px; padding: 5px 13px; margin-bottom: 4px; }
.hl-mark { font-size: 46px; font-weight: 900; color: var(--blue); letter-spacing: 1.5px; line-height: 1;
  margin: 12px 0 16px; font-family: "Arial Rounded MT Bold", -apple-system, "PingFang SC", sans-serif; }
.hl-dot { color: #FFC107; }
.hero-txt h2 { font-size: 27px; font-weight: 800; line-height: 1.28; color: var(--ink); margin-bottom: 10px; letter-spacing: -.3px; }
.hero-txt p { font-size: 13.5px; color: var(--ink2); margin-bottom: 16px; line-height: 1.65; }
.hero-stats { display: flex; gap: 26px; margin-bottom: 20px; }
.hero-stats b { display: block; font-size: 21px; font-weight: 800; color: var(--blue); letter-spacing: -.4px; line-height: 1.2; }
.hero-stats span { font-size: 11px; color: var(--ink3); }

/* ---------- 信任条 ---------- */
.trust { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.tr-ico { font-size: 24px; }
.tr b { display: block; font-size: 13.5px; color: var(--ink); }
.tr small { font-size: 11.5px; color: var(--ink3); }

/* ---------- 分类图标墙 ---------- */
.sec-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { font-size: 19px; color: var(--ink); letter-spacing: -.3px; }
.sec-head h2 span { font-size: 13px; font-weight: 400; color: var(--ink3); margin-left: 8px; }
.sec-more { font-size: 13px; color: var(--blue); font-weight: 600; cursor: pointer; }

/* ---------- 数据带 / 关于 ---------- */
.stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.stat b { font-size: 21px; color: var(--blue-d); display: block; }
.stat span { font-size: 12px; color: var(--ink3); }
.aboutus { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; margin: 6px 0 30px; }
.aboutus h2 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.aboutus p { color: var(--ink2); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.foot { background: linear-gradient(180deg, #FFF9F5, #FCEFE2); border-top: 1px solid #F6E3D0; color: #6B5545; margin-top: 30px; }
.foot-in { max-width: 1400px; margin: 0 auto; padding: 36px 16px 26px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.foot-col h5 { color: var(--blue-d); font-size: 13.5px; margin-bottom: 12px; letter-spacing: .4px; }
.foot-col a, .foot-col span { display: block; font-size: 12.5px; padding: 3.5px 0; color: #6B5545; }
.foot-col a:hover { color: var(--blue); }
.fc-brand p { font-size: 12.5px; line-height: 1.7; margin: 12px 0; max-width: 340px; color: #6B5545; }
/* 页脚 logo 与页头保持一致：橙字标 + 灰色副标 */
/* 防 .foot-col span 命中 logo 方块，强制还原为页头同款 H 方标 */
.foot .logo-mark { display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; font-size: 21px; font-weight: 800; color: #fff; border-radius: 10px; }
.fc-brand .logo-txt { color: var(--blue-d); font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.fc-brand .logo-txt small { color: var(--ink3); font-size: 9.5px; font-weight: 500; letter-spacing: 2.2px; }
.foot-contact span { display: block; font-size: 12.5px; padding: 2.5px 0; }
.foot-bar { border-top: 1px solid #F2DFCC; text-align: center; color: #9A8574; font-size: 12px; padding: 15px 0 20px; }

/* ---------- 后台布局 ---------- */
.adm-shell { display: flex; min-height: 100vh; background: var(--bg); }
.adm-side { width: 200px; flex: none; background: #33291F; color: #cfd6df; padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-logo { color: #fff; font-weight: 700; font-size: 15px; padding: 6px 12px 14px; letter-spacing: -.2px; }
.adm-side a { display: block; padding: 9px 12px; border-radius: 7px; color: #cfd6df; font-size: 13.5px; margin: 2px 0; cursor: pointer; }
.adm-side a:hover { background: #2a3546; color: #fff; }
.adm-side a.on { background: var(--blue); color: #fff; }
.adm-side .grp { font-size: 11px; color: #77828f; padding: 12px 12px 4px; }
.adm-main { flex: 1; padding: 20px 24px; min-width: 0; }
.adm-main h1 { font-size: 19px; margin-bottom: 4px; }
.adm-main .desc { color: var(--ink3); font-size: 13px; margin-bottom: 18px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.acard h3 { font-size: 14px; margin-bottom: 8px; }
.acard p { font-size: 13px; color: var(--ink2); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi b { font-size: 24px; color: var(--blue-d); display: block; }
.kpi span { font-size: 12px; color: var(--ink3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; padding: 8px 9px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.tbl td { padding: 8px 9px; border: 1px solid var(--line); color: var(--ink2); vertical-align: top; }
.tbl .st { padding: 2px 8px; border-radius: 4px; font-size: 11.5px; white-space: nowrap; }
.st.up { background: var(--teal-l); color: var(--teal); }
.st.draft { background: var(--amber-l); color: var(--amber); }
.st.off { background: #eef0f2; color: var(--ink3); }
.st.pend { background: var(--blue-l); color: var(--blue); }
.rowbtn { padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 11.5px; margin-right: 4px; background: #fff; }
.rowbtn:hover { border-color: var(--blue); color: var(--blue); }
.fld { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; align-items: center; }
.fld label { font-size: 12.5px; color: var(--ink3); width: 88px; flex: none; }
.fld input, .fld select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; flex: 1; min-width: 160px; font-family: inherit; font-size: 13px; }
.mut { color: var(--ink3); font-size: 12px; }
.ok-msg { color: var(--teal); font-size: 13px; }

/* ---------- 分销申请页 rep.html ---------- */
.rep-page { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }
.rep-hero { background: linear-gradient(135deg, #D65A0C, #F0701A); color: #fff; border-radius: 16px; padding: 36px 38px; margin-bottom: 20px; box-shadow: 0 10px 26px rgba(214,90,12,.22); }
.rep-hero h1 { font-size: 24px; margin-bottom: 10px; }
.rep-hero p { opacity: .9; max-width: 620px; font-size: 14px; line-height: 1.7; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.perm { list-style: none; margin: 12px 0; }
.perm li { padding: 7px 0 7px 26px; position: relative; color: var(--ink2); font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.perm li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .wa-txt { display: none; }
}
@media (max-width: 900px) {
  .wrap { flex-wrap: wrap; }
  .side { width: 100%; position: static; display: block; padding: 10px 10px 12px; }
  .side h4 { padding: 0 2px 8px; }
  /* 分类：改成两列网格（原来是 flex 自动折行，长短不齐看着乱），并给足点按高度 */
  #catList { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px; }
  .cat-item { width: auto; border: 1px solid var(--line); padding: 8px 10px; font-size: 12.5px; min-height: 36px; }
  .cat-kids { display: contents; }
  .cat-item.kid { background: var(--bg); border-style: dashed; }
  .cat-item.kid2 { font-size: 12px; opacity: .9; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .top-in { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; }
  /* 导航栏：子项不压缩，改为横向滑动。
     原写法没有 flex:none，「☰ 全部分类」在窄屏会被压成竖排文字 */
  .nav-in { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 12px; }
  .nav-in::-webkit-scrollbar { display: none; }
  .nav-in > * { flex: 0 0 auto; }
  .nav-right { margin-left: 0; }
  .kpis, .stats, .trust { grid-template-columns: repeat(2, 1fr); }
  .rep-grid { grid-template-columns: 1fr; }
  .adm-shell { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .adm-side .grp { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .acct-txt { display: none; }
  .hero-txt h2 { font-size: 22px; }
}

/* ===== v2 新增：轻提示 / 账户面板 / 区块副标题 ===== */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: rgba(58,42,31,.95); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  max-width: 86vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.acct-box {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px;
}
.acct-av {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-d); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none;
}
.acct-code { font-weight: 700; font-size: 15px; color: var(--ink); }
.acct-tier { font-size: 12.5px; color: var(--ink3); margin-top: 2px; }

.sec-sub { font-size: 14px; font-weight: 400; color: var(--ink3); margin-left: 6px; }
.sec-head h2 { display: flex; align-items: baseline; }

/* ===== 登录 / 注册 / 管理员 ===== */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.auth-tabs .at {
  flex: 1; padding: 9px 4px; font-size: 13px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--ink3); cursor: pointer; font-family: inherit;
}
.auth-tabs .at:hover { color: var(--ink); }
.auth-tabs .at.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.err-msg {
  background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; margin: 8px 0;
}
@keyframes shake { 0%,100% { transform: translateX(0);} 25% { transform: translateX(-5px);} 75% { transform: translateX(5px);} }
.shake { animation: shake .28s ease; border-color: #c0392b !important; }
.drawer .fld { flex-direction: column; align-items: stretch; gap: 5px; }
.drawer .fld label { width: auto; font-size: 12.5px; }
.drawer .fld input, .drawer .fld select { min-width: 0; width: 100%; padding: 10px 12px; font-size: 14px; }
.lnk {
  background: none; border: none; color: var(--blue); font-size: 12.5px; cursor: pointer;
  font-family: inherit; padding: 6px 0; text-decoration: underline;
}
.tier-chip.adm { background: var(--blue-l); color: var(--blue-d); }
.tier-chip.pend { background: var(--gold-l); color: var(--amber); }
.nav-admin { color: var(--blue) !important; font-weight: 600; }
/* 后台门禁 */
.adm-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.gate-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  width: 100%; max-width: 380px; box-shadow: 0 6px 28px rgba(0,0,0,.08);
}
.gate-card h3 { font-size: 18px; margin: 14px 0 4px; }
.gate-card .fld { flex-direction: column; align-items: stretch; gap: 5px; }
.gate-card .fld label { width: auto; }
.gate-card .fld input { width: 100%; min-width: 0; }
.adm-who { font-size: 12px; color: #9aa5b1; padding: 0 12px 6px; word-break: break-all; }
.rowbtn.danger { color: #c0392b; border-color: #f0c9c5; }
.rowbtn.danger:hover { background: #fdecea; border-color: #c0392b; color: #c0392b; }
.sw { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.sw input { width: 16px; height: 16px; }

/* 后台侧栏待办角标 */
.adm-side a .sbadge{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#e74c3c;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:middle}

/* 后台改价弹窗 */
.pmodal { position: fixed; inset: 0; background: rgba(40,26,16,.45); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.pcard { background: var(--card); border-radius: 12px; padding: 20px; width: 420px; max-width: 94vw; max-height: 90vh; overflow: auto; }
.pcard h3 { font-size: 17px; margin-bottom: 6px; }
.pcard .fld { flex-direction: column; align-items: stretch; gap: 5px; }
.pcard .fld label { width: auto; }
.pcard .fld input { width: 100%; min-width: 0; }

/* Hero 自适应：手机端高度改由内容撑开（见文件末尾 900px 断点），此处只管平板 */
@media (min-width: 901px) and (max-width: 1180px) {
  .banner { min-height: 320px; }
}

/* ---------- 接地气改版：banner 质感 + 数字块 + WhatsApp 卡 ---------- */
/* ---------- WhatsApp / 看货卡 ---------- */
@media (max-width: 1180px) {
  .hero-txt { padding: 30px 16px 30px 32px; }
  .hl-mark { font-size: 38px; }
  .hero-img { width: 66%; }
  .banner::before { left: 28%; width: 26%; }
}
/* Hero 移动端：改成「文字在上、图在下」。
   原来 .slide 是 flex 行布局，图又占 100% 宽 —— 文案会被挤成一条窄列，
   手机上看起来就是文字被图片压住、标签竖排。用 grid 把三屏叠在同一格，
   容器高度改由内容撑开，不再写死 min-height。 */
@media (max-width: 900px) {
  .banner { display: grid; min-height: 0; }
  .slide { position: static; grid-area: 1 / 1; flex-direction: column; align-items: stretch; }
  .hero-txt { max-width: 100%; padding: 20px 18px 16px; }
  .hero-img { position: static; width: 100%; height: 168px; object-position: center; }
  .banner::before { display: none; }
  .hero-stats { gap: 14px 22px; flex-wrap: wrap; margin-bottom: 16px; }
  .hero-stats b { font-size: 18px; }
  .hl-mark { font-size: 33px; margin: 8px 0 10px; }
  .hl-mark.sm { font-size: 25px; margin: 6px 0 10px; }
  .hero-txt h2 { font-size: 21px; line-height: 1.32; margin-bottom: 8px; }
  .hero-txt p { font-size: 13px; margin-bottom: 12px; }
  .svc-chips, .rg-chips { margin-bottom: 14px; }
  .svc-chips span { font-size: 12.5px; padding: 6px 12px; }
  .rg-chips { max-width: 100%; }
  .btn-pri.lg { padding: 11px 22px; font-size: 14px; }
  /* 轮播控件移到图片区底部，不再压住文案 */
  .b-arrow { top: auto; bottom: 10px; transform: none; width: 32px; height: 32px; font-size: 18px; }
  .b-arrow.prev { left: 10px; }
  .b-arrow.next { right: 10px; }
  .b-dots { bottom: 20px; }
}

/* 三级分类 chips */
.sub-chips.sub3 { margin-top: 6px; }
.sub-chips.sub3 .chip { background: var(--bg); font-size: 12px; padding: 4px 10px; }
.sub-chips.sub3 .chip.on { background: var(--blue-d); color: #fff; }
.sub-chips.sub3:empty { display: none; }

/* ===== 选品车商品图片 + 修改订单提示 ===== */
.ci .thumb2 { object-fit: contain; }
.edit-tip { background: #FDF0E3; border: 1px solid #F6D9B8; color: #8A4E12; border-radius: 8px;
  padding: 7px 10px; font-size: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.edit-tip .ce { color: var(--blue-d); font-weight: 700; cursor: pointer; white-space: nowrap; }
.tolist { font-size: 12.5px; color: var(--blue-d); }

/* ===== 我的清单（已提交订单） ===== */
.ol { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #FFFDFA; }
.ol.canceled { opacity: .62; background: #FAFAFA; }
.ol-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ol-id { font-weight: 800; font-size: 13.5px; color: var(--ink); }
.ol-st { font-size: 11px; padding: 1px 7px; border-radius: 20px; margin-left: 6px; }
.ol-st.new { background: #E9F7EF; color: #17795a; }
.ol-st.canceled { background: #F1F1F1; color: #888; }
.ol-t { font-size: 11.5px; color: var(--ink3); }
.ol-m { font-size: 12.5px; color: var(--ink2); margin: 4px 0 6px; }
.ol-imgs { display: flex; gap: 4px; margin-bottom: 6px; }
.ol-imgs img, .ol-imgs span { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #c3c9d1; font-weight: 700; }
.ol-ops { display: flex; flex-wrap: wrap; gap: 2px; }
.rowbtn.pri { color: var(--blue-d); border-color: #F3CFAE; background: #FFF6EC; font-weight: 700; }
.rowbtn.pri:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.ol-detail { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 4px; }
.ol-detail .ci:last-child { border-bottom: none; }

/* ===== 后台 Banner 编辑卡 ===== */
.bcard { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 10px; background: #FFFDFA; }
.bcard h4 { font-size: 12.5px; margin-bottom: 6px; color: var(--blue-d); }
.bcard .fld { margin-bottom: 6px; }

/* ============================================================
   移动端精修（2026-10）
   只调间距、字号、可点区域，不动配色与结构。
   排在文件最后，同权重规则会覆盖前面的写法。
   ============================================================ */

/* 任何图片都不许超出容器，避免某处撑出横向滚动条 */
img, svg, video { max-width: 100%; }

/* ---------- 平板 / 手机共用（≤900） ---------- */
@media (max-width: 900px) {
  .logo-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
  .logo-txt { font-size: 16px; }
  .logo-txt small { font-size: 8.5px; letter-spacing: 1.6px; }
  .top-actions { gap: 8px; }
  .pd-top-actions { gap: 8px; flex-wrap: nowrap; }
  .cart-btn { padding: 8px 12px; }
  .trust { gap: 10px; }
  .tr { padding: 12px; gap: 10px; }
  .tr b { font-size: 13px; }
  .tr small { font-size: 11px; }
  /* 手机上「加入选品车」按钮给足点按高度 */
  .cadd { padding: 9px 6px; }
}

/* ---------- 手机（≤480） ---------- */
@media (max-width: 480px) {
  .annc-in { padding: 5px 12px; }
  .top-in { padding: 9px 12px; gap: 8px; }
  .wrap { padding: 12px; gap: 12px; }
  .hero-wrap { margin-top: 2px; }

  /* Hero */
  .banner { border-radius: 12px; }
  .hero-txt { padding: 16px 14px 14px; }
  .hero-txt h2 { font-size: 19.5px; }
  .hl-mark { font-size: 28px; }
  .hl-mark.sm { font-size: 22px; }
  .hero-img { height: 150px; }
  .hero-stats { gap: 12px 18px; }
  .hero-stats b { font-size: 17px; }
  .hero-stats span { font-size: 10.5px; }
  .btn-pri.lg { display: block; width: 100%; }

  /* 信任条：两列，卡片更紧凑 */
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tr { padding: 10px 11px; gap: 9px; }
  .tr b { font-size: 12.5px; }
  .tr small { font-size: 10.5px; }

  /* 分类 chips 墙 */
  .side { padding: 10px; border-radius: 10px; }
  #catList { gap: 5px; }
  .cat-item { padding: 6px 9px; font-size: 12.5px; gap: 6px; }
  .cat-item .ci-ico { font-size: 13px; width: 16px; }
  .cat-item .ci-caret { width: 14px; }

  /* 商品卡：两列等宽，图片高度和字号同步收一点 */
  .grid { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb { height: 128px; }
  .cbody { padding: 9px 10px; }
  .csku { font-size: 10.5px; }
  .cname { font-size: 12.5px; line-height: 1.35; min-height: 34px; margin: 2px 0 4px; }
  .cmeta, .cprice small { font-size: 11px; }
  .cprice b { font-size: 16px; }
  .cadd { font-size: 13px; }
  .cqty button { width: 32px; height: 32px; font-size: 15px; }
  .cqty input { width: 34px; height: 32px; font-size: 13px; }

  /* 工具条：数量靠左、两个下拉靠右，独占一行 */
  .bar { padding: 9px 11px; gap: 8px; border-radius: 10px; }
  .bar .right { width: 100%; margin-left: 0; gap: 6px; }
  .bar .right .count { margin-right: auto; }
  .select { padding: 7px 8px; }

  /* 抽屉铺满整屏，手机上更好点 */
  .drawer { width: 100%; max-width: 100%; }
  .dbody { padding: 12px 14px; }
  .dfoot { padding: 10px 14px 14px; }

  /* 页脚单列 */
  .foot-in { grid-template-columns: 1fr; gap: 16px; padding: 24px 14px 16px; }
  .foot-bar { font-size: 11.5px; padding: 12px 12px 16px; }

  .pager button { padding: 8px 12px; }
}

/* ===== 商品上传：图片池 / 识别结果卡片 ===== */
.up-pool { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.up-pimg { width: 132px; border: 1px solid var(--line); border-radius: 8px; padding: 6px;
  background: #fff; text-align: center; }
/* 大表（几百张图）只渲染当前页，行归属用小输入框填条号 —— 不再每张图一个下拉框 */
.up-pimg img { width: 100%; height: 96px; object-fit: contain; background: #fafbfc; border-radius: 5px; }
.up-pimg select, .up-pimg input.up-imrow { width: 100%; margin-top: 4px; font-size: 11.5px; padding: 3px 4px;
  border: 1px solid var(--line); border-radius: 5px; box-sizing: border-box; }

.up-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
  background: #fff; }
.up-row:hover { border-color: #f0c39a; }
.up-rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.up-rhead b { font-size: 13px; }
.up-rthumb { margin-left: auto; display: flex; gap: 6px; }
.up-rthumb img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; }

.up-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.up-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.up-f label { font-size: 11.5px; color: var(--ink3); display: flex; align-items: center; gap: 4px; }
.up-f input { padding: 5px 7px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px;
  width: 100%; box-sizing: border-box; background: #fff; }
.up-f input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-l); }
.up-f.up-miss input { border-color: #fecdca; background: #fffbfa; }
.up-f.up-miss label { color: #b42318; }
.up-f.up-man input { border-color: #fedf89; background: #fffcf5; }
.up-f.up-man label { color: var(--amber); }
.up-tag { display: inline-block; font-size: 10px; padding: 0 5px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--ink3); background: #f8f9fb; font-weight: 600; }

.up-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.up-bar .mut { font-size: 12px; }
.up-bar input[type=number] { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }

@media (max-width: 900px) {
  .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 后台「分类管理」：三栏级联（一级 / 二级 / 三级） ---------- */
.catcols { display: flex; gap: 12px; align-items: flex-start; }
.catcol { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column; max-height: 66vh; }
.catcol > h4 { font-size: 12.5px; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--line);
  color: var(--ink3); display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; }
.catcol > h4 b { color: var(--ink2); }
.catlist { overflow-y: auto; flex: 1; }
.catrow { display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  border-bottom: 1px solid #f2f0ed; cursor: pointer; font-size: 12.5px; }
.catrow:hover { background: var(--blue-l); }
.catrow.on { background: #FBE4CE; box-shadow: inset 3px 0 0 var(--blue-d); }
.catrow .cc { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--blue-d);
  font-weight: 700; flex: none; letter-spacing: .5px; }
.catrow .cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.catrow .ce { flex: none; font-size: 11px; color: var(--ink3); max-width: 34%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.catrow .ct { flex: none; font-size: 11px; color: var(--ink3); background: var(--bg); border-radius: 9px; padding: 1px 7px; }
.catrow .ca { flex: none; display: none; gap: 2px; }
.catrow:hover .ca, .catrow.on .ca { display: flex; }
.catrow .ca button { border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 11px;
  line-height: 1; padding: 3px 5px; color: var(--ink3); }
.catrow .ca button:hover { color: var(--blue-d); border-color: var(--blue); }
.catrow .ca button.del:hover { color: var(--red); border-color: var(--red); }
.catrow.off .cn { color: #b9b2aa; text-decoration: line-through; }
.catrow.editing { background: #FFFBF5; cursor: default; }
.catrow input { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; min-width: 0; }
.catrow input.ced { width: 66px; flex: none; font-family: ui-monospace, Menlo, Consolas, monospace; }
.catempty { padding: 16px 12px; color: var(--ink3); font-size: 12px; text-align: center; }
.catbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.catbar .btn, .catbar .btn-pri { font-size: 12.5px; }
.cat-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); margin-top: 8px; }
.cat-legend code { background: var(--blue-l); color: var(--blue-d); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 900px) { .catcols { flex-direction: column; } .catcol { max-height: 40vh; width: 100%; } }
