/* ==========================================================================
   澎启集采 · 设计系统
   风格参考：小米商城 —— 白底、大量留白、橙色点缀、商品图居中、卡片轻阴影
   ========================================================================== */

:root {
  --brand: #ff5a00;
  --brand-dark: #e14f00;
  --brand-soft: #fff2ec;
  --ink: #1a1a1a;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --muted: #9a9a9a;
  --line: #e8e8e8;
  --line-2: #f0f0f0;
  --bg: #f5f5f5;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .10);
  --max: 1226px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* 角标等外扩元素可能带来几像素横向溢出，统一裁掉，避免出现横向滚动条 */
html { overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

body > main { flex: 1 0 auto; }

#pq-header, #pq-footer { flex-shrink: 0; }

/* ------------------------------------------------------------ 顶部工具条 */
.topbar {
  background: #fafafa;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
}
.topbar .wrap { display: flex; align-items: center; height: 36px; gap: 18px; }
.topbar .spacer { flex: 1; }
.topbar a { color: var(--ink-3); transition: color .15s; }
.topbar a:hover { color: var(--brand); }
.topbar .sep { width: 1px; height: 12px; background: var(--line); }

/* ------------------------------------------------------------ 主导航 */
.header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header .wrap { display: flex; align-items: center; height: var(--nav-h); gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #ff7a2f, #ff4d00);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px rgba(255, 90, 0, .28);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 18px; letter-spacing: .5px; }
.logo-text span { font-size: 10px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav > a, .nav > .nav-item > a {
  display: block; padding: 0 10px; height: 40px; line-height: 40px;
  font-size: 14.5px; color: var(--ink-2); border-radius: 6px; transition: color .15s;
  white-space: nowrap;
}
.nav > a:hover, .nav > .nav-item > a:hover { color: var(--brand); }
.nav > a.active { color: var(--brand); font-weight: 600; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.search {
  position: relative; display: flex; align-items: center;
  width: 240px; height: 42px; border: 1px solid var(--line);
  border-radius: 21px; background: #fff; transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 0, .10); }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 0 6px 0 18px; font-size: 13.5px;
}
.search input::placeholder { color: #b5b5b5; }
.search button {
  width: 44px; height: 34px; margin-right: 4px; border: 0; border-radius: 17px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  transition: background .15s;
}
.search button:hover { background: var(--brand-dark); }
.search button svg { width: 17px; height: 17px; }

.hot-words { position: absolute; top: 46px; left: 18px; font-size: 11.5px; color: var(--muted); }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 21px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13.5px; transition: all .16s; white-space: nowrap;
}
.cart-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute; top: -6px; right: 0; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff;
  font-size: 11px; line-height: 19px; text-align: center; font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 90, 0, .35);
}

.user-link { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.user-link svg { width: 17px; height: 17px; }
.user-link:hover { color: var(--brand); }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; }
.burger svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ 首页布局 */
.hero { padding-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 228px 1fr; gap: 16px; align-items: start; }

.cat-panel {
  background: #fff; border-radius: var(--radius); padding: 10px 0;
  box-shadow: var(--shadow-1);
}
.cat-item { position: relative; }
.cat-item > a {
  display: flex; align-items: center; gap: 11px; padding: 10px 18px;
  font-size: 14px; color: var(--ink-2); transition: all .15s;
}
.cat-item > a svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--ink-3); transition: color .15s; }
.cat-item > a .arrow { margin-left: auto; opacity: .45; width: 13px; height: 13px; }
.cat-item:hover > a { background: var(--brand-soft); color: var(--brand); }
.cat-item:hover > a svg { color: var(--brand); }

.cat-flyout {
  position: absolute; left: 100%; top: 0; z-index: 40;
  min-width: 520px; padding: 18px 22px; background: #fff;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-2); display: none;
}
.cat-item:hover .cat-flyout { display: block; }
.flyout-row { display: flex; gap: 14px; padding: 7px 0; }
.flyout-row b { width: 68px; flex-shrink: 0; font-size: 13px; color: var(--ink); }
.flyout-row .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.flyout-row a { font-size: 13px; color: var(--ink-3); }
.flyout-row a:hover { color: var(--brand); }

/* ------------------------------------------------------------ 轮播 */
.banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 400px; background: #eef1f6; box-shadow: var(--shadow-1);
}
.banner-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide {
  flex: 0 0 100%; height: 100%; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 64px; color: #fff; overflow: hidden;
}
.slide.tone-blue   { background: linear-gradient(115deg, #1e3a8a 0%, #2563eb 46%, #60a5fa 100%); }
.slide.tone-violet { background: linear-gradient(115deg, #4c1d95 0%, #7c3aed 46%, #c4b5fd 100%); }
.slide.tone-orange { background: linear-gradient(115deg, #9a3412 0%, #ea580c 46%, #fdba74 100%); }
.slide.tone-green  { background: linear-gradient(115deg, #064e3b 0%, #059669 46%, #6ee7b7 100%); }
.slide::after {
  content: ''; position: absolute; right: -80px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.slide::before {
  content: ''; position: absolute; right: 120px; top: -100px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.slide .tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 13px; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12px; letter-spacing: 1px; width: fit-content; backdrop-filter: blur(6px);
}
.slide h2 { margin: 16px 0 8px; font-size: 40px; line-height: 1.22; font-weight: 700; letter-spacing: -.5px; }
/* 品牌付费投放：轮播广告位整图铺满，不叠加装饰圆与内边距 */
.slide.ad-slide { padding: 0; display: block; }
.slide.ad-slide::before, .slide.ad-slide::after { display: none; }
.slide.ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide p { margin: 0; font-size: 15px; opacity: .88; }
.slide .cta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 24px; border-radius: 21px; background: #fff;
  color: #1a1a1a; font-weight: 600; font-size: 14px; width: fit-content;
  white-space: nowrap; flex: 0 0 auto; align-self: flex-start;
  transition: transform .16s, box-shadow .16s;
}
.slide .cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.slide .cta svg { width: 15px; height: 15px; transition: transform .18s; }
.slide .cta:hover svg { transform: translateX(3px); }

.banner-dots {
  position: absolute; bottom: 18px; left: 64px; display: flex; gap: 8px; z-index: 3;
}
.banner-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0;
  background: rgba(255, 255, 255, .45); transition: all .2s;
}
.banner-dots button.on { width: 22px; background: #fff; }

.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 62px; border: 0; border-radius: 6px;
  background: rgba(0, 0, 0, .20); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
.banner:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: rgba(0, 0, 0, .38); }
.banner-arrow.prev { left: 0; border-radius: 0 6px 6px 0; }
.banner-arrow.next { right: 0; border-radius: 6px 0 0 6px; }
.banner-arrow svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ 频道卡片 */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.channel-card {
  background: #fff; border-radius: var(--radius); padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--shadow-1); transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.channel-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.channel-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.channel-art { width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.channel-art svg { width: 30px; height: 30px; }
.channel-card.tone-blue   .channel-art { background: #eef4ff; color: #2563eb; }
.channel-card.tone-slate  .channel-art { background: #f0f2f5; color: #475569; }
.channel-card.tone-violet .channel-art { background: #f5efff; color: #7c3aed; }
.channel-card.tone-orange .channel-art { background: #fff1e8; color: #ea580c; }

/* ------------------------------------------------------------ 区块标题 */
.section { margin-top: 42px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.section-head .sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.section-head .more { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--brand); }
.section-head .more svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------ 商品卡 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.pcard {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  padding: 20px 16px 18px; transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .10); }
.pcard .thumb {
  width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center;
  margin-bottom: 14px; background: #fff; border-radius: 10px; overflow: hidden;
}
.pcard .thumb img { width: 86%; height: 86%; object-fit: contain; transition: transform .3s; }
.pcard:hover .thumb img { transform: scale(1.05); }
.pcard h3 {
  margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.pcard .meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pcard .row-end { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.price { color: var(--brand); font-weight: 600; }
.price .cur { font-size: 12px; }
.price .num { font-size: 20px; letter-spacing: -.4px; }
.price .unit { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.market { font-size: 12px; color: #b0b0b0; text-decoration: line-through; }

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 4px; font-size: 11px; line-height: 1; letter-spacing: .3px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid #ffd9c7;
}
.badge.gray { background: #f4f4f4; color: var(--ink-3); border-color: var(--line); }
.badge.dark { background: #1f2329; color: #fff; border-color: transparent; }
.badge.green { background: #eafaf1; color: #0f9d58; border-color: #c8ecd8; }
.badge.blue { background: #eef4ff; color: #2563eb; border-color: #d6e3ff; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; min-height: 20px; }

/* ------------------------------------------------------------ 品牌条 */
.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile {
  background: #fff; border-radius: var(--radius-sm); height: 84px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: all .18s; border: 1px solid transparent;
}
.brand-tile:hover { border-color: #ffd0b8; box-shadow: var(--shadow-1); transform: translateY(-2px); }
.brand-tile b { font-size: 15px; letter-spacing: .3px; }
.brand-tile span { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ 服务承诺 */
.service-row {
  margin-top: 40px; background: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 8px;
}
.service-row .cell { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.service-row .cell svg { width: 22px; height: 22px; color: var(--brand); }

/* ------------------------------------------------------------ 页脚 */
.footer { background: #fff; margin-top: 56px; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr) 1.5fr; gap: 24px; padding: 44px 0 34px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { font-size: 13px; color: var(--ink-3); }
.footer-cols a:hover { color: var(--brand); }
.footer-contact .tel { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.footer-contact p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--line-2); padding: 18px 0 26px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer-bottom .spacer { flex: 1; }

/* ------------------------------------------------------------ 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: all .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.dark { background: #1f2329; border-color: #1f2329; color: #fff; }
.btn.dark:hover { background: #000; color: #fff; }
.btn.lg { height: 48px; padding: 0 32px; border-radius: 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12.5px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; outline: 0;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; padding: 11px 14px; resize: vertical; min-height: 92px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 0, .10); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }
.field label .req { color: var(--brand); margin-left: 2px; }
.field .hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.hint, .muted { overflow-wrap: anywhere; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 24px; }

.breadcrumb { padding: 18px 0 4px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: #ccc; }

.empty {
  padding: 80px 20px; text-align: center; color: var(--muted);
  background: #fff; border-radius: var(--radius);
}
.empty svg { width: 56px; height: 56px; color: #dcdcdc; margin-bottom: 14px; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); font-weight: 500; }
.empty p { margin: 0 0 20px; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
  background: rgba(26, 26, 26, .94); color: #fff; padding: 12px 22px;
  border-radius: 24px; font-size: 13.5px; z-index: 999; opacity: 0;
  transition: opacity .22s, transform .22s; pointer-events: none; max-width: 84vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------ 列表页 */
.list-layout { display: grid; grid-template-columns: 210px 1fr; gap: 20px; margin-top: 16px; align-items: start; }
.filter-panel { background: #fff; border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--nav-h) + 16px); }
.filter-panel h4 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.filter-panel .grp + .grp { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.filter-panel a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--ink-3); }
.filter-panel a:hover { color: var(--brand); }
.filter-panel a.on { color: var(--brand); font-weight: 600; }
.filter-panel a span { color: var(--muted); font-size: 11.5px; }

/* 分类层级：一级 = 深色加粗带折叠箭头；二级 = 缩进 + 竖线引导 + 更浅更小 */
.filter-panel a.lv1 {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 7px 0; letter-spacing: -.1px;
}
.filter-panel a.lv1:hover { color: var(--brand); }
.filter-panel a.lv1.on { color: var(--brand); }
.filter-panel a.lv1 span { font-weight: 400; }
.filter-panel a.lv1.open { color: var(--brand); }
/* 展开指示：右侧小箭头，展开时旋转 */
.filter-panel a.lv1::after {
  content: ""; width: 5px; height: 5px; margin-left: 6px; flex: none;
  border-right: 1.4px solid #c8c8c8; border-bottom: 1.4px solid #c8c8c8;
  transform: rotate(-45deg); transition: transform .18s, border-color .18s;
  order: 1;
}
.filter-panel a.lv1.open::after { transform: rotate(45deg); border-color: var(--brand); }
.filter-panel a.lv1.all::after { display: none; }
/* 数字要排在箭头前面 */
.filter-panel a.lv1 span { order: 0; margin-left: auto; padding-right: 8px; }
.filter-panel a.lv1::after { order: 2; }

.sub-list {
  margin: 2px 0 6px; padding-left: 11px;
  border-left: 1.5px solid var(--line);
  display: flex; flex-direction: column;
}
.filter-panel a.sub {
  padding: 5px 0 5px 9px; font-size: 12.5px; color: var(--ink-3);
  border-radius: 0 6px 6px 0; transition: color .15s, background .15s;
}
.filter-panel a.sub:hover { color: var(--brand); background: #fff8f4; }
.filter-panel a.sub.on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.filter-panel a.sub.on span { color: var(--brand); }

.sortbar {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border-radius: var(--radius); padding: 8px 12px; margin-bottom: 16px; font-size: 13px;
}
.sortbar button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent;
  color: var(--ink-3); font-size: 13px; transition: all .15s;
}
.sortbar button:hover { color: var(--brand); }
.sortbar button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sortbar .count { margin-left: auto; color: var(--muted); font-size: 12.5px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: 13px;
}
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ------------------------------------------------------------ 详情页 */
.detail { display: grid; grid-template-columns: 480px 1fr; gap: 40px; background: #fff; border-radius: var(--radius); padding: 30px; margin-top: 16px; }
.gallery-main { aspect-ratio: 1/1; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 82%; height: 82%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 64px; height: 64px; border: 2px solid transparent; border-radius: 8px; background: #fafafa; padding: 4px; }
.gallery-thumbs button.on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.detail h1 { margin: 4px 0 10px; font-size: 24px; line-height: 1.4; font-weight: 600; }
.detail .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }
.price-box { background: linear-gradient(180deg, #fff6f1, #fffaf7); border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
.price-box .big { display: flex; align-items: baseline; gap: 8px; }
.price-box .big .num { font-size: 32px; font-weight: 700; color: var(--brand); letter-spacing: -.8px; }
.price-box .big .cur { font-size: 16px; color: var(--brand); font-weight: 600; }
.price-box .big .unit { font-size: 12px; color: var(--muted); }
.price-box .row { display: flex; gap: 24px; font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.price-box .row b { color: var(--ink); }

.tier-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.tier-table th, .tier-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-2); }
.tier-table th { color: var(--muted); font-weight: 400; background: #fcfcfc; }
.tier-table td { color: var(--ink-2); }
.tier-table td:last-child { color: var(--brand); font-weight: 600; }

.spec-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.spec-chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink-3); background: #fff; }
.spec-chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 42px; }
.qty button { width: 40px; height: 100%; border: 0; background: #fff; font-size: 17px; color: var(--ink-3); }
.qty button:hover { color: var(--brand); background: var(--brand-soft); }
.qty input { width: 64px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: 0; }

.buy-actions { display: flex; gap: 12px; margin-top: 24px; }
.buy-actions .btn { flex: 1; max-width: 200px; }

.merchant-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: 10px; margin-top: 22px; background: #fcfcfc; }
.merchant-card .avatar { width: 46px; height: 46px; border-radius: 10px; background: #1f2329; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.merchant-card b { font-size: 14px; }
.merchant-card p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.detail-body { background: #fff; border-radius: var(--radius); margin-top: 20px; padding: 28px 30px; }
.detail-body h3 { margin: 0 0 14px; font-size: 16px; }
.detail-body .prose { font-size: 14px; color: var(--ink-2); line-height: 2; }
.detail-body .prose img { margin: 16px 0; border-radius: 10px; }

/* ------------------------------------------------------------ 采购车 / 结算 */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 16px; align-items: start; }
.cart-table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-head, .cart-line {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px 126px 112px 52px;
  align-items: center; gap: 12px; padding: 14px 20px;
}
.cart-head { background: #fafafa; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cart-line { border-bottom: 1px solid var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .info { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cart-line .info img { width: 62px; height: 62px; object-fit: contain; background: #fbfbfb; border-radius: 8px; flex-shrink: 0; }
.cart-line .info h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line .info span { font-size: 11.5px; color: var(--muted); }
.cart-line .sub { color: var(--brand); font-weight: 600; font-size: 15px; }
.cart-del { border: 0; background: none; color: var(--muted); font-size: 12px; }
.cart-del:hover { color: var(--brand); }
.check { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

.summary { background: #fff; border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--nav-h) + 16px); }
.summary h3 { margin: 0 0 16px; font-size: 15px; }
.summary .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.summary .total b { font-size: 26px; color: var(--brand); letter-spacing: -.5px; }
.summary .btn { margin-top: 18px; }

/* ------------------------------------------------------------ 表单页（入驻/登录/后台） */
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 36px 34px; box-shadow: var(--shadow-1); }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.auth-card .lead { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.auth-card .foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-card .foot a { color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-error { background: #fff1f0; border: 1px solid #ffd6d2; color: #c0392b; padding: 10px 14px; border-radius: 8px; font-size: 12.5px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }

.form-card { background: #fff; border-radius: var(--radius); padding: 28px; margin-top: 18px; }
.form-card h2 { margin: 0 0 4px; font-size: 18px; }
.form-card .lead { margin: 0 0 24px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ 后台（商家 / 平台） */
.console { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--bg); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.side .brand b { font-size: 15px; }
.side .brand small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-3); margin-bottom: 4px;
}
.side nav a svg { width: 17px; height: 17px; }
.side nav a:hover { background: #f7f7f7; color: var(--ink); }
.side nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side .side-foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.side .side-foot button { border: 0; background: none; color: var(--ink-3); font-size: 12.5px; padding: 6px 8px; }
.side .side-foot button:hover { color: var(--brand); }

.main { padding: 24px 28px 60px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.main-head h1 { margin: 0; font-size: 21px; font-weight: 600; }
.main-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border-radius: 12px; padding: 18px 20px; }
.stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.table-wrap { background: #fff; border-radius: 12px; overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data th { background: #fafafa; font-weight: 500; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfcfc; }
table.data .prod { display: flex; gap: 10px; align-items: center; min-width: 240px; }
table.data .prod img { width: 42px; height: 42px; object-fit: contain; background: #fbfbfb; border-radius: 6px; flex-shrink: 0; }
table.data .prod b { font-weight: 500; font-size: 13px; display: block; line-height: 1.4; }
table.data .prod span { font-size: 11.5px; color: var(--muted); }
table.data .ops { display: flex; gap: 8px; flex-wrap: wrap; }
table.data .ops .link-btn { white-space: nowrap; }
.link-btn { border: 0; background: none; color: var(--brand); font-size: 12.5px; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn.gray { color: var(--ink-3); }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-3); }
.tabs button.on { background: #1f2329; border-color: #1f2329; color: #fff; }

.panel { background: #fff; border-radius: 12px; padding: 24px; }
.panel h3 { margin: 0 0 18px; font-size: 16px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 200;
  display: none; place-items: center; padding: 20px;
}
.modal-mask.show { display: grid; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head button { border: 0; background: none; font-size: 20px; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }
/* 上传区：file input 的固有宽度会把弹窗撑宽，这里允许收缩 */
.upload-box { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.upload-box > div { min-width: 0; flex: 1 1 200px; }
.upload-box input[type="file"] { max-width: 100%; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
  .header .wrap { gap: 16px; }
  .nav > a, .nav > .nav-item > a { padding: 0 9px; font-size: 14px; }
  .search { width: 220px; }
  .hero-grid { grid-template-columns: 200px 1fr; }
  .banner { height: 360px; }
  .slide h2 { font-size: 32px; }
}

@media (max-width: 980px) {
  .nav, .topbar .hide-sm { display: none; }
  .burger { display: grid; place-items: center; }
  .header .wrap { height: 64px; }
  .search { width: 180px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cat-panel { display: none; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-5, .p-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .service-row { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .detail { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .list-layout { grid-template-columns: minmax(0, 1fr); }
  /* 筛选面板在手机上收成一条可横向滑动的筛选条，别把首屏占满 */
  .filter-panel {
    position: static; padding: 10px 12px; border-radius: 10px;
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
    min-width: 0; max-width: 100%;
  }
  .filter-panel::-webkit-scrollbar { display: none; }
  .filter-panel .grp {
    display: flex; align-items: center; gap: 6px; flex: none;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
  }
  .filter-panel .grp + .grp { margin-left: 6px !important; padding-left: 8px !important; border-left: 1px solid var(--line-2) !important; }
  .filter-panel h4 { display: none; }
  .filter-panel a {
    display: inline-flex; align-items: center; flex: none;
    padding: 6px 12px; border-radius: 14px; background: #f6f6f6;
    font-size: 12.5px; white-space: nowrap;
  }
  .filter-panel a span { display: none; }
  .filter-panel a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  /* 手机端：一级胶囊（灰底加粗），二级胶囊（白底细边、字号更小）横向并排 */
  .filter-panel a.lv1 { font-size: 12.5px; font-weight: 600; padding: 6px 12px; background: #f0f0f2; color: var(--ink); }
  .filter-panel a.lv1::after { display: none; }
  .filter-panel a.lv1 span { display: none; margin: 0; padding: 0; }
  .filter-panel a.lv1.open { background: var(--brand-soft); color: var(--brand); }
  .filter-panel a.lv1.on { background: var(--brand); color: #fff; }
  .sub-list {
    display: flex !important; flex-direction: row !important; align-items: center; flex: none;
    margin: 0 !important; padding: 0 !important; border: 0 !important; gap: 6px;
  }
  .filter-panel a.sub {
    display: inline-flex; align-items: center; flex: none;
    padding: 5px 11px; border-radius: 13px; background: #fff;
    border: 1px solid var(--line); font-size: 12px; font-weight: 400;
  }
  .filter-panel a.sub.on { background: var(--brand-soft); color: var(--brand); border-color: #ffd2bb; font-weight: 600; }
  /* 排序条同样横向滚动，避免按钮被挤成竖排 */
  .sortbar {
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
    gap: 4px; padding: 6px 10px; margin-bottom: 12px;
  }
  .sortbar::-webkit-scrollbar { display: none; }
  .sortbar button { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; font-size: 12.5px; }
  .sortbar .count { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-head { display: none; }
  .cart-line { grid-template-columns: 30px 1fr 90px; row-gap: 10px; }
  .cart-line .qty { grid-column: 2; }
  .console { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; }
  .side .brand { padding: 0 12px 0 4px; }
  .side nav { display: flex; gap: 4px; }
  .side nav a { white-space: nowrap; margin: 0; }
  .side .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 18px 16px 50px; }
}

@media (max-width: 640px) {
  .banner { height: 300px; }
  .slide { padding: 0 24px; }
  .slide h2 { font-size: 24px; }
  .slide p { font-size: 13px; }
  .slide .cta { height: 38px; padding: 0 18px; font-size: 13px; margin-top: 18px; }
  .banner-dots { left: 24px; bottom: 14px; }
  .grid-4, .grid-5, .grid-3, .p-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { padding: 14px 12px; }
  .pcard h3 { font-size: 13px; min-height: 38px; }
  .price .num { font-size: 17px; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 26px 1fr; }
  .cart-line .qty { grid-column: 2; }
  .stat-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 19px; }
  .auth-card { padding: 26px 20px; }
  .search { display: none; }
  .user-link { display: none; }
  .topbar { display: none; }
}

/* ==========================================================================
   会员 / 品牌 / 运营位 —— v3 新增
   ========================================================================== */

/* 顶部公告条 */
.topbar .hl { color: var(--brand); font-weight: 500; }
.notice-bar {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; color: var(--ink-3);
  font-size: 12px; max-width: 420px; overflow: hidden;
}
.notice-bar:hover { color: var(--brand); }
.notice-bar svg { width: 13px; height: 13px; flex: none; color: var(--brand); }
.notice-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar em {
  font-style: normal; background: var(--brand-soft); color: var(--brand);
  border-radius: 8px; padding: 0 5px; font-size: 10.5px; flex: none;
}
.notice-panel {
  position: absolute; left: 0; right: 0; top: 36px; z-index: 260;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2); padding: 8px 0;
}
.notice-panel .notice-item { max-width: var(--max); margin: 0 auto; padding: 10px 16px; }
.notice-panel .notice-item b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.notice-panel .notice-item p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* 价格身份标签 */
.price-lock {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--brand); background: var(--brand-soft);
  border-radius: 14px; padding: 3px 10px;
}
.price-lock svg { width: 13px; height: 13px; }
/* 商品详情页的整块锁定提示 */
.price-lock-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8f3; border: 1px solid #ffe0cc; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 14px;
}
.price-lock-box > svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.price-lock-box b { display: block; font-size: 14px; color: #b23c00; margin-bottom: 6px; }
.price-lock-box p { margin: 0 0 12px; font-size: 12.5px; color: #8a6a55; line-height: 1.75; }
.ptag {
  display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 500;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 4px; padding: 1px 5px; vertical-align: 2px;
}
.punit { font-size: 11px; color: var(--muted); margin-left: 2px; }

/* 等级徽章 */
.lv-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; border-radius: 12px; padding: 2px 9px; font-weight: 500;
}
.lv-pill.v1 { background: #f0f1f3; color: #5b6470; }
.lv-pill.v2 { background: var(--brand-soft); color: var(--brand); }
.lv-pill.v3 { background: #fdf6e3; color: #a8791a; }
.lv-pill svg { width: 12px; height: 12px; }

/* 会员注册：类型选择 */
.reg-wrap { max-width: 720px; margin: 24px auto 60px; }
.reg-head { text-align: center; margin-bottom: 26px; }
.reg-head h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.5px; }
.reg-head p { margin: 0; color: var(--muted); font-size: 13px; }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
@media (max-width: 620px) { .type-cards { grid-template-columns: 1fr; } }
.type-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 18px; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .16s;
  display: flex; gap: 14px; align-items: flex-start;
}
.type-card:hover { border-color: #d8d8d8; transform: translateY(-1px); }
.type-card.on { border-color: var(--brand); box-shadow: 0 6px 20px rgba(255, 90, 0, .10); }
.type-card .ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: #f4f5f7; color: #5b6470;
}
.type-card.on .ico { background: var(--brand-soft); color: var(--brand); }
.type-card .ico svg { width: 20px; height: 20px; }
.type-card h3 { margin: 0 0 3px; font-size: 14.5px; }
.type-card p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.type-card .tick { margin-left: auto; color: var(--brand); opacity: 0; }
.type-card.on .tick { opacity: 1; }
.type-card .tick svg { width: 18px; height: 18px; }

/* 注册表单分区块 */
.reg-block { background: #fff; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.reg-block > h3 {
  margin: 0 0 18px; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.reg-block > h3 .step {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 11px; display: grid; place-items: center; flex: none;
}
.reg-block > h3 .sub { font-weight: 400; color: var(--muted); font-size: 12px; }
.reg-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 700px) { .reg-3 { grid-template-columns: 1fr; } }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { flex: none; white-space: nowrap; }
.form-error {
  display: none; background: #fff1f0; color: #cf1322; border-radius: 8px;
  padding: 10px 14px; font-size: 12.5px; margin-bottom: 16px;
}
.form-error.show { display: block; }
.reg-foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }
.reg-foot a { color: var(--brand); }

/* 品牌入驻：套餐卡 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; cursor: pointer; position: relative;
  display: flex; flex-direction: column; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.plan-card.on { border-color: var(--brand); box-shadow: 0 10px 26px rgba(255, 90, 0, .12); }
.plan-card .tag {
  position: absolute; right: 14px; top: -9px; background: var(--brand); color: #fff;
  font-size: 10.5px; border-radius: 10px; padding: 2px 9px; letter-spacing: .3px;
}
.plan-card .tag:empty { display: none; }
.plan-card h3 { margin: 0 0 4px; font-size: 15px; }
.plan-card .pdesc { margin: 0 0 14px; font-size: 12px; color: var(--muted); min-height: 32px; line-height: 1.6; }
.plan-card .pnum { font-size: 24px; font-weight: 600; color: var(--brand); letter-spacing: -.6px; }
.plan-card .pnum small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.plan-card ul { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); flex: 1; }
.plan-card li { position: relative; padding-left: 16px; font-size: 12px; color: var(--ink-3); line-height: 2; }
.plan-card li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* 品牌旗舰店 */
.shop-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 16px;
  background: #1f2329; color: #fff; min-height: 200px;
  display: flex; align-items: flex-end;
}
.shop-hero .bg { position: absolute; inset: 0; }
.shop-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,20,24,.86) 0%, rgba(18,20,24,.55) 55%, rgba(18,20,24,.32) 100%);
}
.shop-hero .inner { position: relative; padding: 30px 32px; display: flex; gap: 18px; align-items: center; width: 100%; }
.shop-logo {
  width: 68px; height: 68px; border-radius: 16px; flex: none;
  background: #fff; color: #1f2329; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; overflow: hidden;
}
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.4px; }
.shop-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; opacity: .92; }
.shop-hero .meta i { font-style: normal; opacity: .5; }
.shop-hero .plan-badge {
  background: rgba(255,255,255,.16); border-radius: 12px; padding: 2px 9px; font-size: 11.5px;
}
.shop-hero .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.shop-hero .right .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.shop-hero .right .btn.primary { background: var(--brand); border-color: var(--brand); }
.shop-notice {
  background: #fff; border-radius: var(--radius); margin-top: 14px;
  padding: 12px 18px; display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--ink-3);
}
.shop-notice svg { width: 14px; height: 14px; flex: none; color: var(--brand); margin-top: 3px; }
.shop-notice b { color: var(--ink-2); font-weight: 500; }
.shop-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: none;
}
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats button {
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 5px 14px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap;
}
.shop-cats button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 会员中心：资质与地址 */
.mem-head {
  background: #fff; border-radius: var(--radius); padding: 24px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.mem-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: #1f2329; color: #fff; display: grid; place-items: center;
  font-size: 19px; font-weight: 500;
}
.mem-head h1 { margin: 0 0 4px; font-size: 18px; }
.mem-head .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mem-badge {
  border-radius: 12px; padding: 1px 8px; font-size: 11px;
  background: #f0f1f3; color: #5b6470;
}
.mem-badge.pending { background: #fff7e6; color: #d48806; }
.mem-badge.active { background: #eafaf1; color: #0f9d58; }
.mem-badge.rejected { background: #fff1f0; color: #cf1322; }
.addr-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-3);
}
.addr-card b { color: var(--ink); font-size: 13px; margin-right: 8px; }
.addr-card .acts { margin-top: 8px; display: flex; gap: 12px; }
.addr-card .acts a { color: var(--brand); font-size: 12px; }

/* ==========================================================================
   商机广场（biz.html）
   ========================================================================== */
.nav > a.has-dot { position: relative; }
.nav > a.has-dot .nav-dot {
  position: absolute; top: 12px; right: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

.sq-main, .st-main { padding-bottom: 20px; }
.sq-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }

.sq-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(112deg, #fff 0%, #fff7f1 58%, #ffece0 100%);
  border: 1px solid #ffe0cc; border-radius: 18px;
  padding: 30px 32px; margin-top: 8px;
}
.sq-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: 2px; color: var(--brand);
  background: #fff; border: 1px solid #ffd9c2; border-radius: 20px; padding: 2px 12px; margin-bottom: 10px;
}
.sq-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -1px; }
.sq-hero p { margin: 0; font-size: 13.5px; color: var(--ink-3); max-width: 620px; line-height: 1.8; }
.sq-hero-act { text-align: right; }
.sq-hero-tip { margin-top: 8px; font-size: 12px; color: var(--muted); }

.sq-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sq-types { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 6px 16px; font-size: 13px; color: var(--ink-2); display: flex; align-items: baseline; gap: 6px;
}
.sq-chip i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.sq-chip:hover { border-color: #ffc4a3; color: var(--brand); }
.sq-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sq-chip.on i { color: rgba(255, 255, 255, .8); }

.sq-filter { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sq-filter select, .sq-filter input {
  height: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  padding: 0 14px; font-size: 12.5px; outline: none; min-width: 120px;
}
.sq-filter input { min-width: 210px; }
.sq-filter select:focus, .sq-filter input:focus { border-color: var(--brand); }

.sq-lock-tip {
  background: #fff8e6; border: 1px solid #ffe2a8; color: #8a5b00;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 12px;
}

.sq-list { display: flex; flex-direction: column; gap: 10px; }
.sq-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 18px 20px; cursor: pointer; transition: box-shadow .16s, border-color .16s, transform .16s;
}
.sq-card:hover { border-color: #ffd9c2; box-shadow: 0 8px 24px -12px rgba(255, 90, 0, .28); transform: translateY(-1px); }
.sq-tag {
  flex: none; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--c);
  background: #fff; border: 1px solid var(--c); opacity: .92;
  border-radius: 8px; padding: 4px 10px; min-width: 52px; text-align: center;
}
.sq-card-body { flex: 1; min-width: 0; }
.sq-card-body h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.sq-top { font-size: 10.5px; color: #fff; background: #1f2329; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.sq-card-body p { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.sq-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.sq-meta span { position: relative; }
.sq-card-act { flex: none; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 128px; }
.sq-co { font-size: 12px; color: var(--ink-3); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-phone { font-size: 13px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.sq-hidden { font-size: 11.5px; color: #b8860b; background: #fff8e6; border-radius: 4px; padding: 2px 8px; }

.sq-pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 0 6px; font-size: 12.5px; color: var(--ink-3); }

.sq-rules { margin-top: 34px; background: #fff; border-radius: 14px; padding: 24px 28px; }
.sq-rules h2 { margin: 0 0 14px; font-size: 16px; }
.sq-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sq-rules-grid div { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.sq-rules-grid b {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-size: 11px; display: grid; place-items: center; margin-top: 1px;
}

/* 弹层 */
.sq-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(16, 20, 28, .42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.sq-mask[hidden] { display: none; }
.sq-modal {
  background: #fff; border-radius: 16px; width: 640px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(16, 24, 40, .4);
}
.sq-modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 10px; flex: none; }
.sq-modal-head b { font-size: 16px; }
.sq-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.sq-modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.sq-modal-body h2 { margin: 4px 0 8px; font-size: 19px; letter-spacing: -.3px; }
.sq-content { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; background: #fafafa; border-radius: 10px; padding: 14px 16px; }
.sq-contact { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sq-contact > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.sq-contact span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.sq-contact b { font-weight: 600; }
.sq-contact.locked b { color: #8a8a8a; }
.sq-lock-note { grid-column: 1 / -1; background: #fff8e6; border-color: #ffe2a8 !important; color: #8a5b00; font-size: 12px; }
.sq-lock-note a { color: var(--brand); font-weight: 600; }
.sq-modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.sq-field { margin-bottom: 12px; }
.sq-field > label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.sq-field input, .sq-field textarea, .sq-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; outline: none; background: #fff;
}
.sq-field input:focus, .sq-field textarea:focus, .sq-field select:focus { border-color: var(--brand); }
.sq-field textarea { resize: vertical; }
.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sq-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sq-typepick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sq-typepick button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 4px; text-align: center;
}
.sq-typepick button b { display: block; font-size: 13px; }
.sq-typepick button i { font-style: normal; font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.sq-typepick button.on { border-color: var(--brand); background: var(--brand-soft); }
.sq-typepick button.on b { color: var(--brand); }
.sq-hint { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }
.sq-err { display: none; background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; }
.sq-err.show { display: block; }

/* ==========================================================================
   附近门店（stores.html）
   ========================================================================== */
.st-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(112deg, #fff 0%, #f6faff 55%, #eaf2ff 100%);
  border: 1px solid #dbe8fb; border-radius: 18px; padding: 30px 32px; margin-top: 8px;
}
.st-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: 2px; color: #2563eb;
  background: #fff; border: 1px solid #d6e3ff; border-radius: 20px; padding: 2px 12px; margin-bottom: 10px;
}
.st-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -1px; }
.st-hero p { margin: 0; font-size: 13.5px; color: var(--ink-3); max-width: 620px; line-height: 1.8; }
.st-hero-act { text-align: right; }
.st-hero-tip { margin-top: 8px; font-size: 12px; color: var(--muted); }

.st-filter {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff; border-radius: 14px; padding: 14px 16px; margin: 18px 0 12px;
  box-shadow: var(--shadow-1);
}
.st-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.st-filter select, .st-filter input {
  height: 36px; border: 1px solid var(--line); border-radius: 18px; padding: 0 14px;
  font-size: 12.5px; outline: none; background: #fff; min-width: 120px;
}
.st-filter input { flex: 1; min-width: 200px; }
.st-filter select:focus, .st-filter input:focus { border-color: var(--brand); }

.st-lock {
  background: #fff8e6; border: 1px solid #ffe2a8; color: #8a5b00;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px;
}
.st-lock.ok { background: #f0faf4; border-color: #c8ecd8; color: #0f6e56; }
.st-lock a { color: var(--brand); font-weight: 600; }

.st-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 12px; }
.st-head h2 { margin: 0; font-size: 17px; }
.st-sort { font-size: 12px; color: var(--muted); }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.st-card { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.st-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.st-logo {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #ff8a3d, #ff5a00);
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 600;
}
.st-title { flex: 1; min-width: 0; }
.st-title h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.st-sub { font-size: 11.5px; color: var(--muted); }
.st-badge { color: #b8860b; background: #fff8e6; border-radius: 4px; padding: 0 5px; font-size: 10.5px; }
.st-dist { flex: none; font-size: 12px; color: #2563eb; background: #eef4ff; border-radius: 12px; padding: 2px 9px; }
.st-line { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin-bottom: 4px; }
.st-line i { font-style: normal; flex: none; width: 30px; color: var(--muted); font-size: 11.5px; padding-top: 2px; }
.st-line span.locked { color: #9a9a9a; }
.st-line em { font-style: normal; font-size: 10.5px; color: #b8860b; background: #fff8e6; border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.st-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.st-tags span { font-size: 11px; color: #2563eb; background: #eef4ff; border-radius: 10px; padding: 1px 8px; }
.st-card-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }

.st-join {
  margin-top: 26px; background: #1f2329; color: #fff; border-radius: 16px;
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.st-join h3 { margin: 0 0 6px; font-size: 17px; }
.st-join p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); max-width: 640px; line-height: 1.8; }
.st-join .btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.st-join .btn:hover { border-color: #fff; color: #fff; }
.st-join .btn.primary { background: var(--brand); border-color: var(--brand); }

@media (max-width: 980px) {
  .sq-filter { margin-left: 0; width: 100%; }
  .sq-filter input { flex: 1; min-width: 0; }
  .sq-typepick { grid-template-columns: repeat(3, 1fr); }
  .sq-card { flex-wrap: wrap; }
  .sq-card-act { align-items: flex-start; text-align: left; min-width: 0; width: 100%; flex-direction: row; gap: 12px; }
  .st-grid { grid-template-columns: 1fr; }
  .sq-hero, .st-hero { padding: 22px; }
  .sq-hero h1, .st-hero h1 { font-size: 24px; }
}

/* ==========================================================================
   规格 SKU / 运费 / 退款 / 分批发货 —— v6 新增
   ========================================================================== */

/* ---------- 商品详情：规格选择 ---------- */
.spec-pick { margin: 16px 0 4px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.spec-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.spec-label { flex: none; width: 52px; font-size: 12.5px; color: var(--muted); line-height: 30px; }
.spec-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-val {
  min-height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; line-height: 28px;
}
.spec-val:hover { border-color: #cfcfcf; }
.spec-val.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.spec-val.out { color: #c4c4c4; border-style: dashed; }
.spec-val.out.on { color: var(--brand); border-style: solid; }
.spec-tip { font-size: 12px; color: var(--muted); margin-top: 2px; }

.qty-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 4px; }
.qty-label { font-size: 13px; color: var(--ink-3); }
.qty-total { font-size: 12.5px; color: var(--muted); }
.qty-total b { color: var(--brand); font-size: 17px; margin-left: 4px; }

.member-tip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-top: 14px;
}
.member-tip svg { width: 15px; height: 15px; flex: none; }
.member-tip.ok { background: #eafaf1; color: #0b7a45; }
.member-tip.warn { background: #fff7e6; color: #a06500; }
.member-tip a { color: var(--brand); font-weight: 500; margin-left: auto; }

.freight-line {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-3); margin-top: 16px;
  background: #fafafa; border-radius: 8px; padding: 10px 14px;
}
.freight-line svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }

.param-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.param-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.param-table td:first-child { width: 140px; color: var(--muted); background: #fafafa; }

.mini-spec {
  display: inline-block; font-size: 10.5px; color: var(--brand);
  background: var(--brand-soft); border-radius: 3px; padding: 0 4px; margin-right: 4px;
}

/* 移动端固定购买栏（桌面隐藏） */
.buy-bar { display: none; }

/* ---------- 采购车：卡片式 ---------- */
.cart-list { background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-list-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; background: #fafafa; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--muted);
}
.cart-list-head .hint { margin-left: auto; }
.ck { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.ck input { width: 18px; height: 18px; accent-color: var(--brand); }
.ck-item {
  display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.ck-item:last-child { border-bottom: 0; }
.ck-img { flex: none; }
.ck-img img { width: 78px; height: 78px; object-fit: contain; background: #fbfbfb; border-radius: 10px; }
.ck-info { flex: 1; min-width: 0; }
.ck-info h4 { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.ck-spec {
  display: inline-block; font-size: 11.5px; color: var(--ink-3);
  background: #f4f5f7; border-radius: 4px; padding: 1px 7px; margin-bottom: 6px;
}
.ck-meta { font-size: 11.5px; color: var(--muted); }
.ck-price-m { margin-top: 6px; }
.ck-qty { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ck-sub { font-size: 15px; font-weight: 600; color: var(--brand); }
.ck-del { border: 0; background: none; font-size: 12px; color: var(--muted); padding: 0; }
.ck-del:hover { color: var(--brand); }
.cart-tip-line {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
}
.cart-tip-line a { color: var(--ink-3); }

.freight-groups { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.fg { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 3px 0; }

/* ---------- 结算：按商家分组 ---------- */
.gate-tip {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
}
.gate-tip svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.gate-tip b { display: block; font-size: 14px; margin-bottom: 4px; }
.gate-tip p { margin: 0; font-size: 12.5px; line-height: 1.7; opacity: .85; }
.gate-tip.warn { background: #fff7e6; color: #8a5b00; }
.gate-tip .btn { margin-left: auto; flex: none; align-self: center; }

.shop-group { background: #fff; border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.sg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: #fafafa; border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.sg-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.sg-brand svg { width: 15px; height: 15px; color: var(--brand); }
.sg-freight { font-size: 12.5px; color: var(--ink-3); }
.sg-freight .free { font-style: normal; color: #0f9d58; }
.sg-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f6f6f6; align-items: flex-start; }
.sg-item:last-of-type { border-bottom: 0; }
.sg-item img { width: 64px; height: 64px; object-fit: contain; background: #fbfbfb; border-radius: 8px; flex: none; }
.sg-info { flex: 1; min-width: 0; }
.sg-info h4 { margin: 0 0 5px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.sg-meta { font-size: 12px; color: var(--muted); }
.sg-sub { color: var(--brand); font-size: 14.5px; flex: none; }
.sg-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 18px; background: #fcfcfc; font-size: 12px; color: var(--muted);
}

/* ---------- 下单成功 ---------- */
.success-pad { text-align: center; padding: 56px 24px; }
.ok-badge {
  width: 64px; height: 64px; border-radius: 50%; background: #eafaf1; color: #0f9d58;
  display: grid; place-items: center; margin: 0 auto 20px;
}
.ok-badge svg { width: 30px; height: 30px; }
.ok-no {
  display: inline-flex; flex-direction: column; gap: 6px;
  background: #fafafa; border-radius: 12px; padding: 18px 34px; margin-bottom: 26px;
}
.ok-no span { font-size: 12px; color: var(--muted); }
.ok-no b { font-size: 22px; letter-spacing: 1px; }
.ok-no .ok-amount { font-size: 13px; color: var(--brand); }
.ok-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.trunc { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- 底部标签栏（仅手机） ---------- */
.tabbar { display: none; }

/* ==========================================================================
   手机版（<= 900px）—— 前台整体重排
   ========================================================================== */
@media (max-width: 900px) {
  :root { --nav-h: 56px; }

  .topbar { display: none; }
  .header .wrap { height: 56px; gap: 8px; padding: 0 12px; }
  .nav { display: none; }
  .burger { display: none; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text b { font-size: 15px; }
  .logo-text span { display: none; }
  .header-right { flex: 1; gap: 6px; justify-content: flex-end; }
  .header-right .search {
    display: flex; order: -1; flex: 1; max-width: none; height: 36px; margin: 0;
  }
  .header-right .search input { height: 36px; font-size: 13px; }
  .user-link, .cart-btn { padding: 0 6px; }
  .user-link span, .cart-btn span { display: none; }
  .user-link svg, .cart-btn svg { width: 22px; height: 22px; }

  .wrap { padding: 0 12px; }
  .breadcrumb { display: none; }
  .section { margin-top: 24px; }
  .section-head h2 { font-size: 18px; }

  /* 商品详情 */
  .detail { grid-template-columns: 1fr; gap: 16px; padding: 14px; margin-top: 8px; }
  .gallery-main { border-radius: 10px; }
  .detail h1 { font-size: 19px; }
  .detail .sub { font-size: 13px; margin-bottom: 12px; }
  .detail .price-box { padding: 14px; }
  .price-box .big .num { font-size: 28px; }
  .tier-table { font-size: 12px; }
  .buy-actions { display: none; }
  .merchant-card { padding: 12px; }
  .detail-body { padding: 18px 16px; margin-top: 12px; }

  /* 固定购买栏：贴在底部标签栏上方 */
  .buy-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 62px; z-index: 220;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  }
  .buy-bar .bb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .buy-bar .bb-info b { font-size: 18px; color: var(--brand); }
  .buy-bar .bb-info span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buy-bar .btn { flex: none; height: 38px; padding: 0 16px; font-size: 13px; }
  body:has(.buy-bar:not([hidden])) { padding-bottom: 128px; }

  /* 购物车 / 结算 */
  .cart-layout { grid-template-columns: 1fr; gap: 14px; }
  .summary { position: static; padding: 16px; }
  .summary .total b { font-size: 24px; }
  .ck-item { gap: 10px 12px; padding: 14px 12px; flex-wrap: wrap; }
  .ck-img img { width: 68px; height: 68px; }
  .ck-info { flex: 1 1 0; }
  /* 数量 + 小计整体换行，撑满一行，避免右侧被裁切 */
  .ck-qty {
    flex: 1 1 100%; width: auto; margin-left: 0;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
  }
  .ck-sub { order: 3; }
  .cart-list-head { padding: 10px 12px; }
  .form-card { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .sg-item { padding: 12px; }
  .sg-item img { width: 56px; height: 56px; }
  .success-pad { padding: 36px 16px; }

  /* 底部标签栏 */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
    background: #fff; border-top: 1px solid var(--line);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  }
  .tabbar .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 0; font-size: 10.5px; color: #9a9a9a; position: relative;
  }
  .tabbar .tab svg { width: 22px; height: 22px; }
  .tabbar .tab.on { color: var(--brand); }
  .tab-badge {
    position: absolute; top: 2px; right: 50%; transform: translateX(20px);
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--brand); color: #fff; font-size: 10px; font-style: normal;
    line-height: 16px; text-align: center;
  }

  /* 页脚在手机上收敛 */
  .footer { margin-top: 28px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-cols .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .grid-4, .grid-5, .grid-3, .p-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcard { padding: 10px; }
  .pcard h3 { font-size: 12.5px; }
  .spec-label { width: 44px; }
  .spec-val { padding: 0 11px; font-size: 12px; }
  .buy-bar .btn { padding: 0 12px; }
}

/* ==========================================================================
   控制台 · 订单卡片 / 发货 / 退款 / 合并 / 轨迹 —— v4
   ========================================================================== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--ink-3); font-size: 12px; }
/* 内联图标统一尺寸：漏写尺寸的 svg 会被拉到整行宽 */
.oline svg, .orf svg, .oship svg, .ship-line svg, .refund-line svg, .otrace svg { width: 14px; height: 14px; flex: none; }
.btn.xs { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 14px; }
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-row .opt { flex: 1 1 220px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; transition: all .15s; }
.opt:hover { border-color: #ffc9ab; }
.opt.on { border-color: var(--brand); background: #fff8f3; box-shadow: 0 0 0 3px rgba(255, 90, 0, .06); }
.opt b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.opt span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.65; }
.cat-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 2px;
  height: 30px; padding: 0 12px; border-radius: 15px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-2);
}

/* ---------- 平台后台分类管理：一级 / 二级层级区分 ---------- */
.cat-card { margin-bottom: 12px; }
.cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-mark {
  width: 3px; height: 17px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #ff8a4c, var(--brand));
}
.cat-name { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; }
.cat-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cat-meta i {
  font-style: normal; font-size: 10.5px; line-height: 1;
  padding: 3px 5px; border-radius: 4px;
  color: var(--brand); background: var(--brand-soft);
}
.cat-acts { margin-left: auto; display: flex; gap: 10px; }
/* 二级区：缩进 + 左侧引导线，与一级形成从属关系 */
.cat-subs {
  margin: 11px 0 0 2px; padding-left: 14px;
  border-left: 2px solid #dcdce2;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cat-subs .cat-chip {
  height: 28px; padding: 0 9px 0 11px; border-radius: 14px;
  background: #f4f4f6; border-color: transparent;
  font-size: 12px; font-weight: 400; color: var(--ink-3);
}
.cat-subs .cat-chip:hover { background: #eeeef1; color: var(--ink-2); }
.cat-cnt {
  font-style: normal; color: #a8a8a8; font-size: 10.5px; margin-left: 4px;
  padding: 1px 4px; border-radius: 4px; background: #e9e9ee;
}
.cat-op { color: #a5a5a5; text-decoration: none; margin-left: 9px; font-size: 11.5px; }
.cat-op:hover { color: var(--brand); }
.cat-op.del { color: #d9a0a0; margin-left: 6px; font-size: 13px; line-height: 1; }
.cat-op.del:hover { color: #cf1322; }
.cat-none { font-size: 12px; color: #b8b8b8; padding: 4px 0; }
/* 手机上操作按钮整体换到下一行、靠左对齐，别浮在标题右端 */
@media (max-width: 900px) {
  .cat-acts { margin-left: 0; flex-basis: 100%; gap: 14px; margin-top: 2px; }
  .cat-acts .link-btn { font-size: 12px; }
  .cat-subs { margin-top: 9px; }
}

.olist { display: flex; flex-direction: column; gap: 12px; }
.ocard { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.ocard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 16px; background: #fafafa; border-bottom: 1px solid var(--line-2); }
.ocard-head b { font-size: 12.5px; }
.ocard-body { padding: 12px 16px; }
.obuyer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.obuyer b { font-size: 13px; }
.obuyer-addr { color: var(--ink-3); font-size: 12px; flex: 1 1 100%; }
.olines { padding: 8px 0; }
.oline { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; }
.oline-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oline-t em { font-style: normal; color: var(--ink-3); margin-left: 6px; font-size: 11.5px; }
.oline-q { color: var(--ink-3); flex: none; }
.oline-s { color: #2563eb; flex: none; font-size: 11.5px; min-width: 78px; text-align: right; }

.oships { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.oship { background: #fafafa; border-radius: 8px; padding: 9px 12px; }
.oship-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.oship-head b { font-weight: 500; }
.oship-items { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.otrace { margin-top: 6px; border-left: 2px solid #eee; padding-left: 10px; font-size: 11.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.otrace-box { background: #fafafa; border-radius: 8px; padding: 12px; min-height: 60px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.otrace-line { line-height: 1.6; border-bottom: 1px dashed #eee; padding-bottom: 6px; }
.otrace-line:last-child { border-bottom: 0; padding-bottom: 0; }

.orfs { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.orf { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; background: #fff8f3; border: 1px solid #ffe4d3; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.orf b { font-weight: 500; }
.orf-items { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.orf-amt { color: var(--brand); font-weight: 600; font-size: 14px; }
.orf-acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }

.ocard-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 16px; border-top: 1px solid var(--line-2); background: #fff; }
.osum { font-size: 12.5px; color: var(--ink-3); }
.osum b { color: var(--ink); font-weight: 600; }
.osum .amt { color: var(--brand); font-size: 15px; }
.oacts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.ship-lines { display: flex; flex-direction: column; gap: 2px; }
.ship-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.ship-line:last-child { border-bottom: 0; }
.sl-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-t em { font-style: normal; color: var(--ink-3); margin-left: 6px; font-size: 11.5px; }
.sl-q { flex: none; }

.mgroup { border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.mgroup-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafafa; font-size: 12.5px; }
.mgroup-head input { accent-color: var(--brand); }
.mgroup-body { padding: 6px 14px 10px; }
.mline { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line-2); }
.mline:last-child { border-bottom: 0; }
.mline input { accent-color: var(--brand); }
.mline .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mline-amt { flex: none; font-weight: 600; color: var(--brand); text-align: right; }
.mline-amt em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--ink-3); }

@media (max-width: 900px) {
  .ocard-head, .ocard-body, .ocard-foot { padding: 10px 12px; }
  .osum { flex: 1 1 100%; }
  .oacts { margin-left: 0; width: 100%; }
  .oacts .btn { flex: 1; }
  .orf { grid-template-columns: 1fr; }
  .orf-amt { text-align: left; }
  .orf-acts { justify-content: stretch; }
  .orf-acts .btn { flex: 1; }
  .mline .muted { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 20px; }
  .table-wrap { border-radius: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  /* 弹窗：宽度不超出屏幕，内部横向内容自己滚动 */
  .modal-mask { padding: 12px; }
  .modal {
    max-height: 92vh; border-radius: 12px;
    /* 各页弹窗写了行内 max-width，这里统一收口到屏幕内 */
    max-width: calc(100vw - 24px) !important;
    min-width: 0; width: 100%;
    grid-column: 1 / -1;
  }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-body > * { min-width: 0; }
  .sku-table { max-width: 100%; }
  .olist { gap: 10px; }

  /* 控制台手机版：顶部固定 + 横滑导航 */
  .console { display: block; }
  .side {
    position: sticky; top: 0; z-index: 300; height: auto;
    display: block; padding: 10px 12px 8px;
    border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  }
  .side .brand { padding: 0 156px 8px 0; }
  .side .brand b { font-size: 14.5px; }
  .side .brand small { font-size: 10px; }
  .side nav { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 2px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a {
    flex: none; margin: 0; padding: 8px 12px; border-radius: 16px;
    background: #f6f6f6; font-size: 12.5px; white-space: nowrap; gap: 6px;
    color: var(--ink-2);
  }
  .side nav a svg { width: 15px; height: 15px; }
  .side nav a:hover { background: #f0f0f0; }
  .side nav a.on { background: var(--brand-soft); color: var(--brand); }
  .side .side-foot {
    position: absolute; right: 10px; top: 10px; margin: 0; padding: 0;
    border: 0; display: flex; gap: 2px;
  }
  .side .side-foot button { font-size: 11.5px; padding: 4px 6px; white-space: nowrap; }
  .main { padding: 14px 12px 40px; }
  .main-head { margin-bottom: 14px; }
  .main-head h1 { font-size: 18px; }
  .main-head p { font-size: 12px; }
  .panel { padding: 14px; border-radius: 12px; }
  .tabs { gap: 5px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; height: 30px; padding: 0 12px; font-size: 12.5px; }

  /* 有底部标签栏的页面留出空间；商品详情有购买栏时不重复留白 */
  body:has(#pq-tabbar):not(:has(.buy-bar:not([hidden]))) {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .tabbar { padding-bottom: max(4px, env(safe-area-inset-bottom)); }

  /* 表格在手机上折叠成卡片（加 .flat 类即可） */
  table.data.flat { display: block; min-width: 0; }
  table.data.flat thead { display: none; }
  table.data.flat tbody { display: block; }
  table.data.flat tr {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2);
  }
  table.data.flat tr:last-child { border-bottom: 0; }
  table.data.flat td { display: block; padding: 0; border: 0; min-width: 0; }
  table.data.flat td:first-child { grid-column: 1 / -1; }
  table.data.flat td:last-child { grid-column: 1 / -1; }
  table.data.flat td[colspan] { grid-column: 1 / -1; }
  table.data.flat .prod { min-width: 0; }
  table.data.flat .prod img { width: 48px; height: 48px; }
  table.data.flat .ops { justify-content: flex-end; }
}



/* ==========================================================================
   登录 / 注册 · 品牌视觉分栏（v5）
   左：深色品牌区（无图片，纯渐变 + 光晕 + 网格，首屏零额外请求）
   右：白色表单区
   ========================================================================== */
.auth-page { padding: 40px 16px 64px; }
.auth-shell {
  max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 46% 54%;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(20, 20, 25, .12), 0 2px 6px rgba(20, 20, 25, .05);
}

/* ---------- 左侧品牌区 ---------- */
.auth-visual {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 40px 40px 34px; display: flex; flex-direction: column;
  background: linear-gradient(158deg, #1b1b20 0%, #14141a 46%, #232019 100%);
  color: #fff;
}
/* 橙色主光斑 */
.auth-visual::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px;
  right: -190px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .55) 0%, rgba(255, 90, 0, .16) 42%, transparent 68%);
  filter: blur(6px);
}
/* 底部冷光，让深色不发闷 */
.auth-visual::after {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px;
  left: -180px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 130, 255, .30) 0%, transparent 66%);
}
.av-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 30%, transparent 78%);
}
/* 斜向光带 */
.av-beam {
  position: absolute; z-index: -1; width: 150%; height: 180px; left: -25%; top: 46%;
  transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  pointer-events: none;
}

.av-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .4px; }
.av-brand .dot {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #ff7a2f, #ff5a00); box-shadow: 0 6px 16px rgba(255, 90, 0, .45);
  font-weight: 700; font-size: 15px; color: #fff;
}
.av-brand b { font-weight: 600; }
.av-brand span { color: rgba(255, 255, 255, .48); font-size: 12px; letter-spacing: 2px; }

.av-body { margin-top: auto; padding-top: 44px; }
.av-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 5px 11px; border-radius: 100px; font-size: 11.5px; letter-spacing: .6px;
  color: #ffc9a8; background: rgba(255, 90, 0, .13); border: 1px solid rgba(255, 90, 0, .28);
}
.av-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #ff7a2f; }
.av-body h2 {
  margin: 0 0 14px; font-size: 29px; line-height: 1.34; font-weight: 600; letter-spacing: -.4px;
}
.av-body h2 em { font-style: normal; color: #ff8a4c; }
.av-body > p { margin: 0; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .56); max-width: 330px; }

.av-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.av-points li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.av-points svg { width: 15px; height: 15px; flex: none; color: #ff8a4c; }

.av-stats {
  display: flex; gap: 26px; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.av-stats div { display: grid; gap: 2px; }
.av-stats b { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.av-stats b i { font-style: normal; font-size: 12px; color: #ff8a4c; margin-left: 1px; }
.av-stats span { font-size: 11px; color: rgba(255, 255, 255, .42); letter-spacing: .4px; }

/* ---------- 右侧表单区 ---------- */
.auth-panel { padding: 44px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel.wide { justify-content: flex-start; }
.ap-head { margin-bottom: 24px; }
.ap-head h1 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.4px; }
.ap-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.ap-head .ap-tabs { display: inline-flex; gap: 3px; margin-bottom: 22px; padding: 3px; background: #f4f4f6; border-radius: 10px; }
.ap-head .ap-tabs a {
  flex: none; text-align: center; padding: 8px 34px; border-radius: 8px;
  font-size: 13px; color: var(--ink-3); text-decoration: none; transition: .18s;
}
.ap-head .ap-tabs a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* 表单控件微调 */
.auth-panel .field { margin-bottom: 18px; }
.auth-panel .field > label { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.auth-panel .input { height: 46px; font-size: 14px; background: #fafafa; border-color: #ececec; }
.auth-panel .input:focus { background: #fff; }
.auth-panel .btn.primary.lg { height: 48px; font-size: 15px; margin-top: 6px; border-radius: 10px; }
.auth-panel .auth-alt { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-panel .auth-alt a { color: var(--brand); text-decoration: none; }
.auth-panel .auth-alt a:hover { text-decoration: underline; }
.auth-panel .auth-alt .dot { margin: 0 9px; color: #dcdcdc; }

/* 账号类型提示：改成两条并排小卡 */
.type-note { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; background: none; }
.type-note > div {
  display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px;
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 10px;
  font-size: 12px; line-height: 1.7; color: var(--ink-3);
}
.type-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }
.type-note b { color: var(--ink); font-weight: 600; }

/* 登录页测试账号折叠块 */
.auth-panel .demo-tip { margin-top: 20px; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.auth-panel .demo-tip summary { cursor: pointer; color: #8a8a8a; list-style: none; }
.auth-panel .demo-tip summary::-webkit-details-marker { display: none; }
.auth-panel .demo-tip summary::before { content: "＋ "; color: #c4c4c4; }
.auth-panel .demo-tip code { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 11.5px; color: #3d3d3d; }

/* ---------- 注册页：顶部品牌横条 + 浮起表单卡（内容再长也不塌） ---------- */
.reg-page { max-width: 860px; margin: 0 auto; padding: 40px 16px 64px; }
.reg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px 20px 0 0; padding: 30px 38px 76px; color: #fff;
  background: linear-gradient(122deg, #1b1b20 0%, #16161c 52%, #241f18 100%);
}
.reg-hero::before {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px;
  right: -140px; top: -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .40) 0%, rgba(255, 90, 0, .12) 44%, transparent 70%);
}
.reg-hero::after {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px;
  left: -130px; bottom: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 130, 255, .26) 0%, transparent 66%);
}
.reg-hero .av-grid { mask-image: radial-gradient(100% 100% at 82% 0%, #000 26%, transparent 76%); -webkit-mask-image: radial-gradient(100% 100% at 82% 0%, #000 26%, transparent 76%); }
.reg-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.reg-hero-main { margin-top: 26px; max-width: 460px; }
.reg-hero-main h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.36; font-weight: 600; letter-spacing: -.4px; }
.reg-hero-main h2 em { font-style: normal; color: #ff8a4c; }
.reg-hero-main p { margin: 0; font-size: 12.5px; line-height: 1.85; color: rgba(255, 255, 255, .58); }
.reg-hero-stats { display: flex; gap: 30px; margin-top: 24px; }
.reg-hero-stats div { display: grid; gap: 1px; }
.reg-hero-stats b { font-size: 18px; font-weight: 600; }
.reg-hero-stats b i { font-style: normal; font-size: 11.5px; color: #ff8a4c; margin-left: 1px; }
.reg-hero-stats span { font-size: 10.5px; color: rgba(255, 255, 255, .42); letter-spacing: .4px; }

.reg-card {
  position: relative; margin: -48px 18px 0; padding: 30px 34px 38px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 16px 44px rgba(20, 20, 25, .10), 0 1px 3px rgba(20, 20, 25, .05);
}
.reg-wrap { max-width: none; margin: 0; }
.reg-head { text-align: left; margin-bottom: 22px; }
.reg-head h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.4px; }
.reg-head p { margin: 0; color: var(--muted); font-size: 13px; }
.type-cards { gap: 12px; margin-bottom: 20px; }
.type-card { padding: 16px 15px; border-radius: 12px; }
.reg-block { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 12px; padding: 20px 20px; margin-bottom: 14px; }
.reg-block > h3 { font-size: 14px; margin-bottom: 16px; }
.reg-block .field > label { font-size: 12.5px; }
.reg-block .input, .reg-block .select { height: 44px; background: #fff; }
.reg-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.9; }
.reg-foot a { color: var(--brand); text-decoration: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .auth-page { padding: 0 0 32px; }
  .auth-shell { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; max-width: none; }
  .reg-page { padding: 0 0 32px; max-width: none; }
  .reg-hero { border-radius: 0; padding: 22px 18px 62px; }
  .reg-hero-top { display: block; }
  .reg-hero-main { margin-top: 14px; max-width: none; }
  .reg-hero-main h2 { font-size: 20px; line-height: 1.4; margin-bottom: 6px; }
  .reg-hero-main p { font-size: 12px; }
  .reg-hero-stats { margin-top: 16px; gap: 22px; }
  .reg-hero-stats b { font-size: 15px; }
  .reg-card { margin: -34px 10px 0; padding: 20px 16px 26px; border-radius: 16px; }
  .auth-visual { padding: 24px 20px 26px; min-height: 0; }
  .av-brand { font-size: 13.5px; }
  .av-brand .dot { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
  .av-body { padding-top: 18px; }
  .av-eyebrow { margin-bottom: 11px; font-size: 10.5px; padding: 4px 9px; }
  .av-body h2 { font-size: 20px; margin-bottom: 0; line-height: 1.4; }
  .av-body > p, .av-points, .av-stats, .av-beam { display: none; }
  .auth-panel { padding: 24px 18px 30px; }
  .auth-panel.wide { padding: 20px 16px 28px; }
  .ap-head { margin-bottom: 20px; }
  .ap-head h1 { font-size: 20px; }
  .auth-panel .input { height: 44px; font-size: 15px; }
  .reg-block { padding: 16px 14px; }
  .reg-3 { grid-template-columns: 1fr; }
}

/* 后台登录：无导航，桌面居中、手机贴顶通栏 */
.console-login { min-height: 100vh; display: grid; place-items: center; width: 100%; }
@media (max-width: 900px) {
  .console-login { min-height: 0; place-items: start stretch; }
}
