/* 自托管字体：原 Google Fonts CDN 被 CSP 拦截，改本地托管，CSP 保持严格 'self' */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/playfair-display-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/playfair-display-800.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/playfair-display-900.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }

/* =============================================================================
 * 高端轻奢 · UI 设计系统 (Design System)
 * 项目：二手书预约系统 · 客户前台 + 管理后台
 * 视觉基调：深邃黑(#1A1A2E) × 香槟金(#E2A300) × 米白底(#F8F6F3)
 *
 * ── 使用说明 ───────────────────────────────────────────────────────────────
 * 1. 引入：在 public/index.html / public/admin.html 的 <head> 中，于
 *    <link rel="stylesheet" href="/css/style.css" /> 之后追加：
 *      <link rel="stylesheet" href="/css/design-system.css" />
 *    本文件在 style.css 之后加载，按层叠顺序覆盖令牌与局部样式，无需改动业务 JS。
 *
 * 2. 换肤原理：重写 :root 中的 --primary / --bg / --card / --text 等令牌，
 *    style.css 中所有 var() 引用（按钮/标签/卡片/输入框…）会立即整体换色；
 *    本文件再覆盖少量硬编码橙色渐变（按钮/侧栏/销售 Hero…）为轻奢配色。
 *
 * 3. 间距：统一用 --sp-*（4px 网格：4/8/12/16/24/32/48/64）。语义别名
 *    --sp-xs/sm/md/lg/xl/2xl 对应 4/8/16/24/32/64。
 *
 * 4. 圆角：--radius-sm 10 / -md 14 / -lg 16(卡片·按钮) / -xl 20 / -pill 999。
 *
 * 5. 阴影：柔和弥散 --shadow-soft / --shadow-card / --shadow-float / --shadow-gold。
 *
 * 6. 字体：标题衬线 --font-serif(Playfair Display, 回退 Georgia)；
 *    正文无衬线 --font-sans(Inter, 回退系统字体)。字号用 --fs-*（clamp 响应式）。
 *
 * 7. 动效：--dur-hover .25s / --dur-switch .3s / --dur-modal .4s；
 *    缓动 --ease-out / --ease-inout / --ease-spring。
 *
 * 8. 组件：Button(.btn/.btn-primary/.btn-line) Input(.input/.inp) Card(.card)
 *    Modal(.modal-mask/.modal) Toast(.toast) Tabs(.tabbar/.tab) 均已接入。
 *    新增：玻璃顶栏(.topbar)·扫描搜索(.top-search)·沉浸式卡(.lux-card)·
 *    凸起购物车(.tab-cart)·骨架屏(.skeleton)·瀑布流(.lux-grid)。
 * ========================================================================== */

:root {
  /* ===== 颜色系统 · 品牌主色（深邃黑）100→900 ===== */
  --c-ink-100: #ECECF2;
  --c-ink-200: #C9C9D6;
  --c-ink-300: #9A9AB2;
  --c-ink-400: #6B6B85;
  --c-ink-500: #4A4A63;
  --c-ink-600: #34344A;
  --c-ink-700: #23233A;
  --c-ink-800: #1A1A2E;   /* Primary 500 主色 */
  --c-ink-900: #12121F;

  /* ===== 颜色系统 · 辅助色（香槟金）100→900 ===== */
  --c-gold-100: #FBF3DA;
  --c-gold-200: #F8E6B8;
  --c-gold-300: #F3D589;
  --c-gold-400: #EDC14D;
  --c-gold-500: #E2A300;   /* Accent 主金 */
  --c-gold-600: #C98F00;
  --c-gold-700: #B58900;
  --c-gold-800: #9A7300;
  --c-gold-900: #7A5B00;

  /* ===== 颜色系统 · 中性色（米白→深墨）100→900 ===== */
  --c-neutral-100: #F8F6F3;  /* 背景米白 */
  --c-neutral-150: #F2EFEA;
  --c-neutral-200: #EFEBE4;
  --c-neutral-300: #E4DED4;
  --c-neutral-400: #D6CFC2;
  --c-neutral-500: #B6AE9F;
  --c-neutral-600: #8A8475;
  --c-neutral-700: #5E5A4F;
  --c-neutral-800: #3A3830;
  --c-neutral-900: #1A1A2E;

  /* ===== 颜色系统 · 语义色（成功/警告/错误/信息）各 100→900 ===== */
  --c-success-100: #E7F1EC; --c-success-500: #2E7D5B; --c-success-600: #246A4C; --c-success-700: #1B5440;
  --c-warning-100: #FBF1DD; --c-warning-500: #C8821A; --c-warning-600: #B06E12; --c-warning-700: #8C560C;
  --c-error-100:   #FBEAE8; --c-error-500:   #C0493F; --c-error-600:   #A53B32; --c-error-700:   #822D26;
  --c-info-100:    #E9EFFB; --c-info-500:    #3A6FB0; --c-info-600:    #2F5C95; --c-info-700:    #244A78;

  /* ===== 兼容旧令牌（style.css 自动换肤） ===== */
  --primary: #1A1A2E;
  --primary-dark: #1A1A2E;
  --primary-light: #FBF3DA;
  --accent: #E2A300;
  --text: #1A1A2E;
  --text-soft: #6B6B76;
  --bg: #F8F6F3;
  --card: #FFFFFF;
  --border: #ECE7DF;
  --success: #2E7D5B;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 8px 24px rgba(26, 26, 46, 0.06);

  /* ===== 间距系统（4px 网格） ===== */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 32px; --sp-2xl: 64px;

  /* ===== 圆角系统 ===== */
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 16px; --radius-xl: 20px; --radius-pill: 999px;

  /* ===== 字体系统 ===== */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", "Songti SC", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --fs-display: clamp(30px, 7vw, 42px);
  --fs-h1: clamp(22px, 5.5vw, 30px);
  --fs-h2: clamp(19px, 4.5vw, 24px);
  --fs-h3: clamp(17px, 4vw, 20px);
  --fs-h4: 16px; --fs-h5: 15px; --fs-h6: 14px;
  --fs-body: 15px; --fs-sm: 13px; --fs-xs: 12px;
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* ===== 动效规范 ===== */
  --dur-fast: 0.2s; --dur-hover: 0.25s; --dur-switch: 0.3s; --dur-modal: 0.4s;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ===== 阴影系统（柔和弥散） ===== */
  --shadow-soft: 0 8px 24px rgba(26, 26, 46, 0.06);
  --shadow-card: 0 20px 60px rgba(26, 26, 46, 0.08);
  --shadow-float: 0 28px 70px rgba(26, 26, 46, 0.14);
  --shadow-gold: 0 12px 30px rgba(226, 163, 0, 0.22);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== 基础层（换肤 + 字体） ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2px;
  color: var(--c-ink-800);
  line-height: 1.25;
  margin: 0;
}
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); } h4 { font-size: var(--fs-h4); }
a { color: var(--c-gold-700); text-decoration: none; }
::selection { background: var(--c-gold-200); color: var(--c-ink-800); }

/* ===== 覆盖 style.css 中硬编码橙色渐变 → 轻奢配色 ===== */
.btn-primary {
  background: linear-gradient(135deg, #23233A, #1A1A2E);
  color: var(--c-gold-200);
  border: 1px solid rgba(226, 163, 0, 0.35);
  box-shadow: var(--shadow-gold);
}
.btn-primary:disabled { background: var(--c-neutral-300); color: #fff; border-color: transparent; box-shadow: none; cursor: not-allowed; }
.btn-success { background: linear-gradient(135deg, #3A9A73, #2E7D5B); color: #fff; box-shadow: 0 8px 20px rgba(46,125,91,.25); }
.btn-line { background: #fff; border: 1px solid var(--border); color: var(--c-ink-800); }
.btn-ghost { background: var(--c-gold-100); color: var(--c-gold-800); }
.btn-danger { background: #fff; border: 1px solid var(--c-error-100); color: var(--c-error-600); }

/* 顶部销售 Hero / 个人资料卡 → 深墨金 */
.profile, .sales-hero {
  background: linear-gradient(135deg, #23233A 0%, #1A1A2E 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(26, 26, 46, 0.28);
}
.profile .wxbtn .btn { background: rgba(255,255,255,.96); color: var(--c-ink-800); }
.profile .who .nick, .profile .nick { color: #fff; }

/* 侧栏 active / 进度条 / 头像 → 金 */
.sidebar .nav-item.active { background: linear-gradient(135deg, #23233A, #1A1A2E); color: var(--c-gold-200); box-shadow: 0 6px 16px rgba(26,26,46,.35); }
.bar-fill { background: linear-gradient(90deg, #F0C14B, #E2A300); }
.avatar-sm, .dist-cell .avatar-sm { background: linear-gradient(135deg, #23233A, #1A1A2E); color: var(--c-gold-200); }
.announce { background: linear-gradient(135deg, var(--c-gold-100), var(--c-gold-200)); color: var(--c-gold-800); border-bottom: 1px solid var(--c-gold-300); }
.section-title::before, .picker .row .lbl::before { background: var(--c-gold-500); }
.chip.active, .dd-option.active, .gi-day.active, .multi .chip.active { background: var(--c-ink-800); border-color: var(--c-ink-800); color: var(--c-gold-200); box-shadow: var(--shadow-gold); }
.tag { background: var(--c-gold-100); color: var(--c-gold-800); }
.tag.alt { background: var(--c-success-100); color: var(--c-success-600); }
.tag.new { background: var(--c-info-100); color: var(--c-info-600); }
.tag.used { background: var(--c-neutral-200); color: var(--c-neutral-700); }
.book .price, .oitem-amt, .cart-item .price, .bottombar .total .num, .cart-summary .total .num,
.pickup-code, .wd-amt, .coupon-card .cc-amt, .promo-stats .ps .pv, .sales-hero .h-value { color: var(--c-ink-800); }
.coupon-card { background: linear-gradient(135deg, var(--c-gold-100), var(--c-gold-200)); }
.coupon-card.active { border-color: var(--c-gold-500); background: linear-gradient(135deg, var(--c-gold-100), var(--c-gold-300)); }
.admin .stat, .stat { background: linear-gradient(135deg, #fff, var(--c-neutral-100)); border: 1px solid var(--border); }
.admin .stat .v { color: var(--c-ink-800); }
.admin .stat.alt .v { color: var(--c-success-600); }
.admin .stat.blue .v { color: var(--c-info-600); }
.admin .stat.purple .v { color: #7A4FD6; }
.admin .stat.red .v { color: var(--c-error-600); }
.tbl th { color: var(--c-gold-800); background: var(--c-gold-100); }
.pause-banner { background: linear-gradient(90deg, var(--c-ink-700), var(--c-ink-800)); }

/* ===== 通用组件增强（圆角 16 / 悬浮微动效） ===== */
.btn {
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), background var(--dur-hover) var(--ease-out);
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-block { width: 100%; }

.input, .inp, textarea, select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), font-size var(--dur-fast) var(--ease-out);
}
/* 表单聚焦字号放大：移动端可读性提升 + 避免 iOS 自动缩放 */
.input:focus, .inp:focus, textarea:focus, select:focus { border-color: var(--c-gold-500); box-shadow: 0 0 0 3px var(--c-gold-100); font-size: 16px; }

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.modal-mask { background: rgba(18, 18, 31, 0.5); backdrop-filter: blur(6px); }
.modal { border-radius: var(--radius-xl); animation: luxPop var(--dur-modal) var(--ease-spring); }
@keyframes luxPop { from { transform: translateY(12px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.toast {
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 46, 0.92);
  box-shadow: var(--shadow-float);
  font-family: var(--font-sans);
}
.login-card { border-radius: var(--radius-xl); box-shadow: var(--shadow-float); }

/* ===== 玻璃顶栏（Glassmorphism） ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 18px 18px 12px;
  background: rgba(248, 246, 243, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}
.topbar h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); color: var(--c-ink-800); letter-spacing: .4px; }
.topbar h1 .accent { color: var(--c-gold-500); }
.topbar p { margin: 4px 0 0; color: var(--text-soft); font-size: var(--fs-sm); }

/* 放大搜索框 + 微弱扫描动效 */
.top-search {
  position: relative; margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 13px 18px; box-shadow: var(--shadow-soft); overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.top-search:focus-within { border-color: var(--c-gold-500); box-shadow: 0 0 0 4px var(--c-gold-100); }
.top-search .ts-ico { flex: 0 0 auto; color: var(--c-ink-400); display: flex; }
.top-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 15px; color: var(--c-ink-800);
}
.top-search input::placeholder { color: var(--c-neutral-500); }
.top-search .scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold-400), transparent);
  opacity: 0; transform: translateY(0);
}
.top-search:focus-within .scanline { animation: luxScan 2.4s linear infinite; }
@keyframes luxScan {
  0%   { opacity: 0; transform: translateY(0); }
  10%  { opacity: .9; }
  50%  { opacity: .5; transform: translateY(46px); }
  90%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(0); }
}

/* ===== 瀑布流容器（移动端优先，两列） ===== */
.lux-grid { column-count: 2; column-gap: var(--sp-3); }
@media (min-width: 520px) { .lux-grid { column-count: 3; } }

/* ===== 沉浸式商品卡 ===== */
.book.lux-card {
  break-inside: avoid;
  display: block;
  position: relative;
  margin: 0 0 var(--sp-3);
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.book.lux-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.lux-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, #23233A 0%, #1A1A2E 60%, #2A2A40 100%);
  display: block; overflow: hidden;
}
.lux-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lux-cover::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to top, rgba(10,10,20,.92), rgba(10,10,20,.35) 55%, rgba(10,10,20,0));
}
.lux-cover .lux-cond {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--c-gold-500); color: #1A1A2E;
  font-size: 11px; font-weight: var(--fw-bold); padding: 3px 9px; border-radius: var(--radius-pill);
}
.lux-cover .lux-name {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  color: #fff; font-family: var(--font-serif); font-weight: var(--fw-bold);
  font-size: 16px; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lux-cover .lux-price {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  color: #fff; font-weight: var(--fw-black); font-size: 17px;
  background: rgba(26,26,46,.55); padding: 3px 10px; border-radius: var(--radius-pill);
  border: 1px solid rgba(226,163,0,.5);
}
.lux-meta { padding: 10px 12px 12px; font-size: var(--fs-xs); color: var(--text-soft); }
/* 悬停滑出的加入购物车区（桌面；移动端常显） */
.lux-add {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 10px;
  background: linear-gradient(to top, rgba(255,255,255,.97), rgba(255,255,255,0));
  transform: translateY(100%); opacity: 0;
  transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out);
}
.book.lux-card:hover .lux-add { transform: translateY(0); opacity: 1; }
@media (hover: none) {
  .lux-add { transform: translateY(0); opacity: 1; }
  .lux-cover .lux-name { bottom: 56px; }
}
.lux-add .stepper { background: #fff; border-radius: var(--radius-pill); padding: 2px 4px; box-shadow: var(--shadow-soft); }
.lux-add .cart-btn {
  flex: 1; height: 38px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  background: linear-gradient(135deg, #23233A, #1A1A2E); color: var(--c-gold-200);
  font-size: 14px; font-weight: var(--fw-semibold); font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur-fast) var(--ease-out);
}
.lux-add .cart-btn:active:not(:disabled) { transform: scale(.97); }
.lux-add .cart-btn:disabled { opacity: .5; cursor: not-allowed; background: var(--c-neutral-300); color: #fff; box-shadow: none; }

/* 非沉浸式（所需教材）卡片微调 */
.book:not(.lux-card) {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow-soft);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.book:not(.lux-card):hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ===== 底部导航 · 凸起购物车（呼吸灯） ===== */
.tabbar {
  background: rgba(248, 246, 243, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(26, 26, 46, 0.07);
  align-items: flex-end;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar .tab { color: var(--text-soft); transition: color var(--dur-fast), transform var(--dur-fast); }
.tabbar .tab .ico { filter: none; transition: transform var(--dur-fast) var(--ease-spring); }
.tabbar .tab.active { color: var(--c-ink-800); font-weight: var(--fw-bold); }
.tabbar .tab.active .ico { transform: scale(1.12); }
.tab-cart {
  position: relative; flex: 0 0 auto;
  width: 60px; height: 60px; margin: -22px 6px 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #23233A, #1A1A2E);
  color: var(--c-gold-300);
  border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 14px 30px rgba(26, 26, 46, 0.42);
  transition: transform var(--dur-hover) var(--ease-spring);
}
.tab-cart:active { transform: scale(.94); }
.tab-cart .breath {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 163, 0, 0.55);
  animation: luxBreath 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes luxBreath {
  0%   { box-shadow: 0 0 0 0 rgba(226, 163, 0, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(226, 163, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 163, 0, 0); }
}
.tab-cart .badge {
  position: absolute; top: -4px; right: -4px; margin: 0;
  background: var(--c-gold-500); color: #1A1A2E;
  border: 2px solid var(--bg); box-shadow: none;
}

/* ===== 骨架屏（Skeleton） ===== */
.skeleton {
  background: linear-gradient(100deg, #ECEAE4 30%, #F4F2EE 50%, #ECEAE4 70%);
  background-size: 200% 100%;
  animation: luxShimmer 1.3s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes luxShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-card { break-inside: avoid; margin: 0 0 var(--sp-3); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.sk-card .sk-cover { aspect-ratio: 3/4; }
.sk-card .sk-line { height: 12px; margin: 10px 12px; }

/* ===== 登录遮罩轻奢化 ===== */
.login-gate { background: radial-gradient(120% 120% at 50% 0%, #23233A 0%, #1A1A2E 100%); }
.login-title { color: var(--c-ink-800); font-family: var(--font-serif); }
.login-wx { background: linear-gradient(135deg, #34C77B, #2E7D5B); border-radius: var(--radius-lg); }
.login-wx:active { opacity: .92; }

/* ===== 通用 section 标题用衬线 ===== */
.section-title { font-family: var(--font-serif); font-size: 19px; }
.all-products-title span { font-family: var(--font-serif); }

/* ===== 滚动条（轻奢细线） ===== */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--c-neutral-300); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ===== 线性图标（Lucide / Feather 风格，统一 1.5px 描边） ===== */
.tab .ico svg, .ts-ico svg { width: 22px; height: 22px; display: block; }
.tab-cart .ico svg { width: 26px; height: 26px; }
.ico svg { stroke: currentColor; fill: none; }
/* 行内区块/标题小图标（section-title / dc-title 等） */
.sec-ico { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.sec-ico svg { width: 16px; height: 16px; }
/* 加载态旋转图标 */
.lucide-ico.spin { animation: luxSpin 1s linear infinite; transform-origin: center; }
@keyframes luxSpin { to { transform: rotate(360deg); } }
/* 菜单行图标与文字垂直居中对齐 */
.menu .item .head .left .ico { display: inline-flex; align-items: center; }

/* ===== TabBar 垂直对齐（修复图标与文字不齐） ===== */
.tabbar { align-items: flex-end; }
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 3px; padding: 6px 0 8px; min-height: 52px;
}
.tabbar .tab .ico { display: flex; align-items: center; justify-content: center; height: 24px; line-height: 1; }
.tabbar .tab .ico svg { display: block; }
.tabbar .tab-cart { margin-bottom: 8px; }

/* ===== 「我的」页隐藏搜索框 ===== */
.app.hide-search .top-search { display: none; }

/* ===== 后台 暗色 Hero / Profile 对比度强化 ===== */
.sales-hero { color: #fff; }
.sales-hero .h-label, .sales-hero .label, .sales-hero .sub, .sales-hero .foot, .sales-hero .small, .sales-hero .meta {
  color: rgba(255, 255, 255, 0.88); opacity: 1; font-weight: 500;
}
.sales-hero .h-sub { color: rgba(255, 255, 255, 0.82); opacity: 1; }
.sales-hero .h-value, .sales-hero .v, .sales-hero .num, .sales-hero .big, .sales-hero .h { color: #fff; font-weight: 800; }
.sales-hero .pill, .sales-hero .h-pill, .sales-hero .badge, .sales-hero .h-badge {
  color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12);
}
.sales-hero a, .sales-hero .link, .sales-hero .more { color: #fff; }
.profile { color: #fff; }
.profile .who .nick, .profile .nick, .profile .who .uid, .profile .uid, .profile .who .pid { color: #fff; }
.profile .label, .profile .meta, .profile .small { color: rgba(255, 255, 255, 0.8); }
.pause-banner { color: #fff; }
.pause-banner .label, .pause-banner .meta { color: rgba(255, 255, 255, 0.82); }

/* 侧栏：深底(#1F2329) 配 浅字（修复第八轮误设为深色的回归） */
.sidebar { color: rgba(255, 255, 255, 0.82); }
.sidebar .brand { color: #fff; }
.sidebar .group-title { color: rgba(255, 255, 255, 0.5); }
.sidebar .nav-item { color: rgba(255, 255, 255, 0.82); }
.sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar .nav-item.active {
  background: linear-gradient(135deg, #2A2A44, #1F1F36);
  color: var(--c-gold-200);
  box-shadow: inset 3px 0 0 var(--c-gold-500), 0 6px 16px rgba(0, 0, 0, 0.35);
  font-weight: 600;
}
.tbl td { color: var(--c-ink-800); }
.tbl .muted, .tbl .sub { color: var(--c-neutral-600); }

/* ===== 分销设置：左比例 / 右海报（两列布局，腾出纵向空间） ===== */
.dist-settings-cols { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.dist-settings-cols > .col-left  { flex: 1 1 280px; min-width: 260px; }
.dist-settings-cols > .col-right { flex: 1 1 360px; min-width: 300px; }
