@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   国方酒业商城 · 统一设计系统 (UI Designer)
   深色科技风 · 品牌蓝 #0F52BA + 深色表面层 · 全站 token 驱动
   规范来源：guofang-website/ui-standard（ui-kit.css）
   ========================================================= */
:root {
  /* —— 设计规范 token（深色科技风，来自 ui-kit.css）—— */
  --brand: #0F52BA;          /* 主品牌蓝 */
  --brand-light: #4080E8;    /* 浅品牌蓝（渐变/高亮） */
  --brand-dark: #0A3D8F;     /* 深品牌蓝（hover） */
  --grad-brand: linear-gradient(135deg, #0F52BA 0%, #4080E8 100%);

  /* 深色表面层级（z 轴） */
  --bg-deep: #0A0E14;
  --bg-dark: #0F1419;
  --bg-surface: #161B22;
  --bg-elevated: #1C2333;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-brand: rgba(15, 82, 186, 0.3);

  /* 文字层级 */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.48);
  --text-dim: rgba(255, 255, 255, 0.3);

  /* 阴影 / 发光 */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 4px 24px rgba(15, 82, 186, 0.2);
  --shadow-brand-lg: 0 8px 40px rgba(15, 82, 186, 0.3);

  /* 圆角 */
  --r-sm: 6px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* 间距（4px 基准栅格） */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 80px;
  --s-11: 120px;

  /* 动效 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease-out-expo);
  --t: 0.5s var(--ease-out-expo);
  --t-slow: 0.9s var(--ease-out-expo);

  /* —— 语义色（兼容别名，映射到深色科技风）—— */
  --c-primary: var(--brand);
  --c-primary-dark: var(--brand-dark);
  --c-primary-light: rgba(15, 82, 186, 0.12);
  --c-gold: var(--brand-light);
  --c-gold-dark: var(--brand-dark);
  --c-gold-light: rgba(64, 128, 232, 0.14);
  --c-ink: var(--text-primary);
  --c-bg: var(--bg-dark);
  --c-white: #FFFFFF;
  --c-danger: #F25656;         /* 警示红（深色下提亮） */
  --c-success: #35C37A;         /* 成功绿（深色下提亮） */
  --c-gray-1: var(--text-primary);
  --c-gray-2: var(--text-secondary);
  --c-gray-3: var(--text-muted);
  --c-line: var(--border);
  --c-cream: var(--bg-surface);

  /* —— 字体统一规范（Inter / 中文回退 PingFang·微软雅黑）—— */
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* —— 字号层级固定 —— */
  --fs-h1: 30px;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-body: 14px;
  --fs-caption: 12px;

  /* —— 间距标准化（保留既有 4/8/16/24/32/48）—— */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;

  /* —— 圆角统一 —— */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-btn: 8px;

  /* —— 阴影统一（品牌蓝微染）—— */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(15, 82, 186, 0.18);

  /* —— 容器 / 留白 —— */
  --maxw: 1280px;
  --gutter-pc: 60px;
  --gutter-mobile: 16px;

  /* —— 排版 —— */
  --lh: 1.6;
  --ls-title: -0.3px;

  /* —— 兼容别名 —— */
  --c-accent: var(--c-gold);
  --c-text: var(--c-ink);
  --c-price: var(--c-gold);
  --c-sub: var(--c-gray-2);
  --radius: var(--radius-md);
  --shadow: var(--shadow-card);
  --shadow-hover: var(--shadow-card-hover);
}

/* ===================== 基础重置 ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: var(--lh);
  font-size: var(--fs-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  letter-spacing: var(--ls-title);
  font-weight: 800;
  line-height: 1.25;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-body); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
::selection { background: rgba(64, 128, 232, 0.22); color: var(--text-primary); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== 布局容器 ===================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter-pc); position: relative; z-index: 2; }
@media (max-width: 1024px) { .container { padding: 0 var(--sp-5); } }
@media (max-width: 640px)  { .container { padding: 0 var(--gutter-mobile); } }

/* 价格标签：突出品牌浅蓝 */
.price { color: var(--brand-light); font-weight: 700; font-family: var(--font-sans); }
.price .yen { font-size: .8em; }
.price .num { font-size: 1.25em; }
.price.internal { color: var(--c-danger); }

/* ===================== 按钮统一样式 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 var(--sp-4); border-radius: var(--radius-btn);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: var(--t);
  user-select: none; letter-spacing: var(--ls-title); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity var(--t-fast); pointer-events: none; }
.btn:hover::after { opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; background: var(--bg-elevated) !important; color: var(--text-muted) !important; border-color: var(--border) !important; box-shadow: none !important; transform: none !important; }
.btn-lg { height: 44px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* 主按钮：品牌渐变 + 发光阴影 */
.btn-primary { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.btn-primary:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--shadow-brand-lg); }

/* 次按钮：玻璃拟态描边 */
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); border: 1px solid var(--border-light); backdrop-filter: blur(8px); }
.btn-ghost:hover:not([disabled]) { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* 文字按钮：品牌浅蓝 */
.btn-text { background: none; color: var(--brand-light); height: auto; padding: 0; border: none; }
.btn-text:hover:not([disabled]) { color: #fff; }
.btn-text.danger { color: var(--text-muted); }
.btn-text.danger:hover:not([disabled]) { color: var(--c-danger); }

/* 兼容旧类 .btn-blue → 映射为主按钮 */
.btn-blue { background: var(--grad-brand); color: #fff; border-color: transparent; }
.btn-blue:hover:not([disabled]) { transform: translateY(-2px); }

/* 警示按钮 */
.btn-danger { background: var(--c-danger); color: #fff; border-color: transparent; }
.btn-danger:hover:not([disabled]) { background: #ff6b6f; }

/* ===================== 分割线 ===================== */
.divider { height: 1px; background: var(--border); border: none; margin: var(--sp-4) 0; }
.divider-gold { height: 3px; border: none; background: linear-gradient(90deg, var(--brand-light) 0%, rgba(64,128,232,.15) 70%, rgba(64,128,232,0) 100%); }

/* ===================== 图片规范 ===================== */
.img-frame { background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%); border-radius: var(--radius-md); overflow: hidden; position: relative; }
.img-frame::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 9%; height: 16%; background: radial-gradient(ellipse at center, rgba(64,128,232,.32), rgba(64,128,232,0) 72%); filter: blur(2px); pointer-events: none; }
.img-frame img { width: 100%; height: 100%; object-fit: contain; }
.img-ph { background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%); }

/* ===================== 顶部条 ===================== */
.topbar { background: var(--bg-deep); color: var(--text-muted); font-size: var(--fs-caption); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a:hover { color: var(--text-primary); }
.topbar .tb-right { display: flex; gap: var(--sp-4); align-items: center; }
.topbar .tb-right span.sep { color: var(--border-light); }

/* ===================== 主导航（通栏 · 深色半透毛玻璃） ===================== */
.header { background: rgba(15, 20, 25, 0.72); backdrop-filter: blur(20px) saturate(1.3); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; height: 64px; gap: var(--sp-4); }
.header .logo img { height: 40px; }
.nav { display: flex; align-items: center; gap: var(--sp-1); flex: 1; min-width: 0; }
.nav > a { padding: 22px 14px; font-size: 15px; color: var(--text-secondary); font-weight: 500; position: relative; white-space: nowrap; flex-shrink: 0; transition: color .15s; }
.nav > a:hover { color: var(--text-primary); }
.nav > a.nav-text::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .18s; }
.nav > a.nav-text:hover::after { transform: scaleX(1); }
.nav > a.nav-text.active::after { transform: scaleX(1); }

/* 搜索框：浅描边 + 玻璃 */
.search { display: flex; align-items: center; border: 1px solid var(--border-light); border-radius: var(--radius-btn); overflow: hidden; height: 40px; flex-shrink: 0; background: rgba(255, 255, 255, 0.04); }
.search input { border: none; background: transparent; width: 210px; padding: 0 14px; color: var(--text-primary); }
.search input::placeholder { color: var(--text-muted); }
.search .s-submit { height: 100%; border: none; border-radius: 0; padding: 0 22px; background: var(--grad-brand); color: #fff; }
.search .s-submit:hover { filter: brightness(1.1); }
.search-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--brand-light); flex-shrink: 0; }
.cart-btn {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--border-light);
  color: var(--text-secondary); border-radius: var(--radius-btn); padding: 8px 16px; background: rgba(255,255,255,0.04); position: relative; flex-shrink: 0; font-weight: 600; transition: all .15s;
}
.cart-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.cart-badge {
  position: absolute; top: -8px; right: -8px; background: var(--brand); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; padding: 0 4px;
}

/* 汉堡菜单（移动端） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--brand-light); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===================== 分类下拉 ===================== */
.cate-menu { position: relative; flex-shrink: 0; }
.cate-menu > a { display: inline-flex; align-items: center; gap: 6px; padding: 22px 14px; font-weight: 600; color: var(--brand-light); white-space: nowrap; transition: color .15s; }
.cate-menu > a:hover { color: #fff; }
.cate-drop {
  position: absolute; top: 64px; left: 0; width: 220px; background: var(--bg-surface);
  box-shadow: var(--shadow-md); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 10px 12px;
  display: none; grid-template-columns: 1fr; gap: 4px; z-index: 60;
}
.cate-menu:hover .cate-drop { display: grid; }
.cate-drop a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; }
.cate-drop a:hover { background: var(--bg-elevated); }
.cate-drop .ct-name { font-weight: 600; color: var(--text-primary); }
.cate-drop .ct-brands { font-size: var(--fs-caption); color: var(--text-muted); margin-top: 2px; }

/* ===================== 通用区块 ===================== */
.section { padding: var(--sp-5) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-4); }
.section-head h2 { font-size: var(--fs-h2); color: var(--text-primary); letter-spacing: var(--ls-title); }
.section-head .more { color: var(--brand-light); font-size: 13px; }
.section-head .more:hover { color: #fff; }

/* ===================== 首屏轮播 Banner ===================== */
.hero-carousel { position: relative; overflow: hidden; }
.hero-slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hslide { flex: 0 0 100%; min-height: 380px; color: #fff; position: relative; display: flex; align-items: center; overflow: hidden; }
.hslide::before { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; background: radial-gradient(circle, var(--cat-glow, rgba(64,128,232,.22)), rgba(0,0,0,0) 70%); pointer-events: none; }
.hslide-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; padding: 56px var(--gutter-pc); position: relative; }
.hslide-text { max-width: 560px; }
.hslide .hbadge { display: inline-block; border: 1px solid var(--cat-line, rgba(64,128,232,.6)); border-radius: 20px; padding: 4px 14px; font-size: var(--fs-caption); margin-bottom: 18px; color: var(--cat-accent, var(--brand-light)); letter-spacing: var(--ls-title); }
.hslide .htitle { font-family: var(--font-sans); font-size: 40px; line-height: 1.25; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; color: #fff; text-shadow: 0 1px 0 var(--cat-glow, rgba(64,128,232,.55)), 0 0 18px var(--cat-glow, rgba(64,128,232,.28)); }
.hslide .hdesc { font-size: 16px; opacity: .9; max-width: 520px; margin-bottom: 24px; line-height: 1.7; }
.hslide .hvisual { width: 300px; height: 220px; background: var(--cat-soft, rgba(64,128,232,.12)); border: 1px solid var(--cat-line, rgba(64,128,232,.38)); border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--cat-accent, var(--brand-light)); flex-shrink: 0; }
.hslide .hvisual svg { width: 110px; height: 110px; display: block; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat-glow, rgba(64,128,232,.4)); cursor: pointer; transition: all .2s; border: none; padding: 0; }
.hero-dots .dot.active { background: var(--cat-accent, var(--brand-light)); width: 28px; border-radius: 6px; }

/* 分类落地页顶栏 Banner（三大产品分类独立主题，与首页轮播共用 GF.CAT_THEMES） */
.cat-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--cat-line, var(--border)); margin-bottom: var(--sp-4); color: #fff; }
.cat-banner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, var(--cat-glow, rgba(64,128,232,.22)), rgba(0,0,0,0) 70%); pointer-events: none; }
.cat-banner-inner { display: flex; align-items: center; gap: 24px; padding: 28px var(--gutter-pc); position: relative; }
.cat-banner .cb-vis { width: 96px; height: 96px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--cat-soft, rgba(64,128,232,.12)); border: 1px solid var(--cat-line, var(--border)); display: grid; place-items: center; color: var(--cat-accent, var(--brand-light)); }
.cat-banner .cb-vis svg { width: 52px; height: 52px; display: block; }
.cat-banner .cb-text { min-width: 0; }
.cat-banner .cb-badge { display: inline-block; border: 1px solid var(--cat-line, var(--border)); border-radius: 20px; padding: 3px 12px; font-size: var(--fs-caption); margin-bottom: 10px; color: var(--cat-accent, var(--brand-light)); letter-spacing: var(--ls-title); }
.cat-banner .cb-title { font-family: var(--font-sans); font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin: 0 0 8px; color: #fff; text-shadow: 0 1px 0 var(--cat-glow, rgba(64,128,232,.4)), 0 0 16px var(--cat-glow, rgba(64,128,232,.25)); }
.cat-banner .cb-desc { font-size: 14px; line-height: 1.65; opacity: .9; margin: 0; }

/* 品牌专区（复用产品分类「type-btn」标签样式，logo 可后台自定义更换） */
.quick-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.quick-cats .tb-icon img { width: 60%; height: 60%; object-fit: contain; }
.quick-cats .tb-arrow { margin-left: auto; }

/* 产品分类（酒 / 空调 / 工控设备） */
.type-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.type-btn {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-4);
  text-decoration: none; color: var(--text-primary);
  box-shadow: var(--shadow-sm); transition: var(--t);
  position: relative; overflow: hidden;
}
.type-btn::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-brand); opacity: .8; transition: var(--t);
}
.type-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand-lg); border-color: var(--border-brand); }
.type-btn:hover::before { width: 6px; opacity: 1; }
.tb-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 26px; color: #fff;
  background: rgba(64, 128, 232, .12); border: 1px solid var(--border-brand);
}
.tb-icon svg { width: 26px; height: 26px; display: block; }
.tb-main { display: flex; flex-direction: column; line-height: 1.2; }
.tb-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.tb-sub { font-size: var(--fs-caption); color: var(--brand-light); letter-spacing: 1px; margin-top: 2px; }
.tb-desc { flex: 1; font-size: 12px; color: var(--text-muted); text-align: right; padding-left: var(--sp-2); }
.tb-arrow { font-size: 22px; color: var(--brand-light); margin-left: var(--sp-1); flex-shrink: 0; }
@media (max-width: 768px) {
  .type-nav { grid-template-columns: 1fr; }
  .tb-desc { display: none; }
  .tb-arrow { margin-left: auto; }
}

/* ===================== 模块标题：品牌蓝装饰线 ===================== */
.sec-deco { position: relative; }
.sec-deco h2 { padding-left: 16px; position: relative; }
.sec-deco h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; border-radius: 3px; background: var(--grad-brand); }

/* ===================== 活动专区 ===================== */
.act-zone .act-countdown { display: flex; align-items: center; gap: 5px; font-family: var(--font-sans); }
.act-countdown .cd-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.act-countdown .cd-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; background: var(--bg-elevated); color: var(--brand-light); font-weight: 700; font-size: 15px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.act-countdown i { color: var(--text-primary); font-style: normal; font-weight: 700; }
.act-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.act-card { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--t); border: 1px solid var(--border); display: flex; flex-direction: column; }
.act-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-brand); }
.act-card .ac-banner { height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 0 20px; color: #fff; background: var(--grad-brand); position: relative; overflow: hidden; }
.act-card .ac-banner::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(64,128,232,.4), rgba(64,128,232,0) 70%); }
.act-card .ac-title { font-family: var(--font-sans); font-size: 19px; font-weight: 800; }
.act-card .ac-sub { font-size: 12px; opacity: .88; margin-top: 4px; }
.act-card .ac-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; gap: 10px; }
.act-card .ac-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.act-card .ac-row .k { color: var(--text-muted); }
.act-card .promo-tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 4px; font-weight: 500; }
.act-card .ac-foot { margin-top: auto; }
.act-card .ac-foot .btn { width: 100%; }

/* ===================== 礼盒送礼专区 ===================== */
.gift-zone .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 1024px) { .gift-zone .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .gift-zone .grid { grid-template-columns: 1fr; } }
.gift-zone .card .thumb { background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.gift-zone .card .body { border-top: 1px solid var(--border); }

/* ===================== 商品网格（PC4/平板2/手机1） ===================== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }

.card {
  --mouse-x: 50%; --mouse-y: 0%;
  position: relative; overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: var(--t); display: flex; flex-direction: column;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(64, 128, 232, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: 1;
}
.card > * { position: relative; z-index: 2; }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); border-color: var(--border-brand); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 1/1; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); display: grid; place-items: center; position: relative; }
.card .thumb::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 8%; height: 15%; background: radial-gradient(ellipse at center, rgba(64,128,232,.3), rgba(64,128,232,0) 72%); filter: blur(2px); pointer-events: none; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.4; height: 42px; overflow: hidden; color: var(--text-primary); }
.card .brand { font-size: var(--fs-caption); color: var(--text-muted); margin: 6px 0; }
.card .price { margin-top: auto; }
.card .price .num { font-size: 1.4em; }
.card .old { color: var(--text-muted); text-decoration: line-through; font-size: var(--fs-caption); margin-left: 6px; font-weight: 400; }

/* 活动标签：品牌蓝底白字统一尺寸 */
.tag { display: inline-block; background: var(--brand); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; font-weight: 500; }
.tag-gift { display: inline-block; background: var(--brand-light); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.tag-internal { display: inline-block; background: var(--c-gold-light); color: var(--text-primary); border: 1px solid var(--brand-light); font-size: 11px; padding: 1px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.card .price .tag-internal { margin-top: 2px; }

/* ===================== 页脚（深底 · 浅描边） ===================== */
.footer { background: var(--bg-deep); color: var(--text-muted); margin-top: var(--sp-6); padding: var(--sp-6) 0 var(--sp-4); border-top: 1px solid var(--border); }
.footer .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-4); }
.footer .cols .col-center { text-align: center; }
.footer h4 { color: var(--text-primary); font-size: var(--fs-body); margin-bottom: 12px; font-weight: 700; }
.footer a { display: block; color: var(--text-muted); font-size: var(--fs-caption); padding: 4px 0; transition: color .15s; }
.footer a:hover { color: var(--brand-light); }
.footer .copy { border-top: 1px solid var(--border); margin-top: var(--sp-4); padding-top: var(--sp-3); font-size: var(--fs-caption); text-align: center; color: var(--text-dim); }

/* ===================== 面包屑 ===================== */
.crumb { font-size: 13px; color: var(--text-muted); padding: 14px 0; }
.crumb a:hover { color: var(--brand-light); }

/* ===================== 列表筛选 ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-surface); padding: var(--sp-3) 18px; border-radius: var(--radius-md); margin-bottom: var(--sp-3); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.filters .fl { display: flex; gap: 8px; align-items: center; }
.filters .chip { border: 1px solid var(--border); background: var(--bg-surface); border-radius: 20px; padding: 6px 16px; cursor: pointer; font-size: 13px; color: var(--text-secondary); transition: all .15s; }
.filters .chip:hover { border-color: var(--brand-light); color: var(--text-primary); }
.filters .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filters select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; background: var(--bg-elevated); color: var(--text-primary); }

/* ===================== 商品详情 ===================== */
.pd { display: grid; grid-template-columns: 460px 1fr; gap: var(--sp-5); background: var(--bg-surface); padding: var(--sp-4); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.pd .gallery .main { border: 1px solid var(--border); border-radius: var(--radius-md); aspect-ratio: 1/1; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); overflow: hidden; position: relative; }
.pd .gallery .main::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 8%; height: 15%; background: radial-gradient(ellipse at center, rgba(64,128,232,.3), rgba(64,128,232,0) 72%); filter: blur(2px); pointer-events: none; }
.pd .gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.pd .info h1 { font-size: 26px; margin-bottom: 8px; }
.pd .info .brand { color: var(--text-muted); margin-bottom: 14px; }
.pd .info .brand a { color: var(--brand-light); }
.pd .info .brand a:hover { color: #fff; }
.pd .info .sub { color: var(--text-muted); margin-bottom: 18px; }
.pd .price-box { background: var(--c-primary-light); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 20px; border: 1px solid var(--border-brand); }
.pd .price-box .label { font-size: 13px; color: var(--text-muted); }
.pd .price-box .price { font-size: 30px; }
.pd .price-box .old { color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.pd .qty { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pd .qty .ctrl { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pd .qty .ctrl button { width: 38px; height: 38px; border: none; background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; font-size: 18px; transition: background .15s; }
.pd .qty .ctrl button:hover { background: rgba(64,128,232,.18); }
.pd .qty .ctrl input { width: 54px; height: 38px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); }
.pd .actions { display: flex; gap: 14px; }
.pd .specs { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 16px; }
.pd .specs .row { display: flex; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.pd .specs .k { width: 110px; color: var(--text-muted); }
.pd .desc { margin-top: 18px; color: var(--text-secondary); line-height: 1.8; }

/* ===================== 空状态 ===================== */
.empty { text-align: center; padding: 70px 0; color: var(--text-muted); }
.empty .big { font-size: 56px; margin-bottom: 12px; }

/* ===================== 购物车 / 订单列表 ===================== */
.list-table { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.list-table .row { display: grid; align-items: center; padding: var(--sp-3) 20px; border-bottom: 1px solid var(--border); gap: 14px; }
.cart-row { grid-template-columns: 40px 90px 1fr 130px 130px 130px 40px; }
.cart-row .thumb { width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row .qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); width: fit-content; }
.cart-row .qty-ctrl button { width: 30px; height: 30px; border: none; background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; transition: background .15s; }
.cart-row .qty-ctrl button:hover { background: rgba(64,128,232,.18); }
.cart-row .qty-ctrl input { width: 44px; height: 30px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); }
.cart-foot { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-3) 20px; background: var(--bg-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-md); margin-top: var(--sp-3); border: 1px solid var(--border); }
.cart-foot .total { font-size: 16px; color: var(--text-secondary); }
.cart-foot .total .price { font-size: 24px; }
.check-all { display: flex; align-items: center; gap: 8px; }

/* ===================== 结算 ===================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-4); align-items: start; }
.panel { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-4); margin-bottom: var(--sp-3); border: 1px solid var(--border); }
.panel h3 { font-size: 17px; margin-bottom: var(--sp-3); color: var(--text-primary); }
/* CSV 导入面板：全宽，内部块级元素统一垂直间距 */
.import-panel > * + * { margin-top: var(--sp-4); }
#import-preview > * + * { margin-top: var(--sp-4); }
.addr-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: .15s; background: var(--bg-surface); }
.addr-item.active { border-color: var(--brand-light); background: var(--c-primary-light); }
.addr-item .who { font-weight: 600; color: var(--text-primary); }
.addr-item .line { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.pay-method { display: flex; gap: 12px; flex-wrap: wrap; }
.pm-ic { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.pay-method .pm { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 18px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: all .15s; color: var(--text-secondary); background: var(--bg-surface); }
.pay-method .pm:hover { border-color: var(--brand-light); color: var(--text-primary); }
.pay-method .pm.active { border-color: var(--brand-light); background: var(--c-primary-light); color: var(--text-primary); }
.order-summary .li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.order-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.order-summary .total .price { font-size: 26px; }
.summary-sticky { position: sticky; top: 80px; }

/* ===================== 支付页 ===================== */
.pay-wrap { max-width: 560px; margin: 0 auto; background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 36px; text-align: center; border: 1px solid var(--border); }
.pay-wrap .amount { font-size: 14px; color: var(--text-muted); }
.pay-wrap .amount .price { font-size: 34px; display: block; margin-top: 6px; color: var(--brand-light); }
.qr { width: 220px; height: 220px; margin: 24px auto; border: 1px solid var(--border); border-radius: var(--radius-md); display: grid; place-items: center; background: #fff; }
.pay-method-label { font-size: 15px; margin-bottom: 6px; color: var(--text-primary); }
.pay-note { color: var(--text-muted); font-size: 13px; margin-top: 16px; }

/* 对公转账收款账户卡片（支付页展示） */
.corp-account { position: relative; text-align: left; background: var(--c-primary-light); border: 1px solid var(--brand-light); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
.corp-account h4 { margin: 0 0 8px; font-size: 14px; color: var(--text-primary); padding-right: 76px; }
.corp-account.no-copy h4 { padding-right: 0; }
.corp-account .row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.corp-account .row:last-child { border-bottom: none; }
.corp-account .row .k { color: var(--text-muted); flex-shrink: 0; }
.corp-account .row .v { font-weight: 600; word-break: break-all; text-align: right; color: var(--text-primary); }
.corp-account .remark { margin-top: 8px; font-size: 12px; color: var(--brand-light); background: var(--c-gold-light); border-radius: var(--radius-sm); padding: 6px 10px; }
.corp-copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1; font-weight: 600; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: all .15s; }
.corp-copy:hover { background: var(--brand-dark); }
.corp-copy:active { transform: scale(.96); }
.corp-copy.copied { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.corp-account .row.corp-remark { background: var(--c-gold-light); border-radius: var(--radius-sm); padding: 6px 8px; margin-top: 4px; border-bottom: none; }
.corp-account .row.corp-remark .v { color: var(--brand-light); }
.pay-status { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: var(--sp-4) 0; }
.pay-status .icon { font-size: 56px; }
.pay-status .big { font-size: 18px; font-weight: 700; color: var(--brand-light); }
.corp-details { text-align: left; margin-top: var(--sp-3); }
.corp-details > summary { cursor: pointer; display: inline-block; color: var(--brand-light); }

/* 待确认收款徽标（品牌浅蓝实心） */
.pill.corp { background: var(--brand-light); color: #fff; }
.pill.corp-sub { background: var(--c-gold-light); color: var(--brand-light); border: 1px solid var(--brand-light); }

/* ===================== 站点设置（后台） ===================== */
.site-row { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.site-item { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 220px; }
.site-item label { font-weight: 600; color: var(--brand-light); }
.up-preview { display: flex; align-items: center; justify-content: center; min-height: 80px; min-width: 220px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); }
.up-preview img { max-height: 64px; max-width: 200px; object-fit: contain; }
.site-item input[type="file"] { font-size: 13px; color: var(--text-muted); }
.remark-tip { margin-top: var(--sp-3); font-size: 12px; color: var(--text-muted); }

/* ===================== 用户中心 ===================== */
.auth-wrap { max-width: 560px; margin: 40px auto; background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 34px; border: 1px solid var(--border); }
.auth-wrap h2 { text-align: center; color: var(--text-primary); margin-bottom: 22px; }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; transition: border-color .15s; background: var(--bg-elevated); color: var(--text-primary); }
.field input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(64,128,232,.15); }
.auth-switch { text-align: center; margin-top: var(--sp-3); font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--brand-light); }

.agree { display: flex; align-items: flex-start; gap: 8px; margin: 14px 2px 2px; font-size: 13px; line-height: 1.6; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.agree input { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--brand-light); cursor: pointer; }
.agree a { color: var(--brand-light); white-space: nowrap; }

.doc { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 36px 40px; margin: 28px auto; max-width: 860px; border: 1px solid var(--border); }
.doc h1 { text-align: center; color: var(--text-primary); font-size: 24px; margin-bottom: 8px; }
.doc-meta { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.doc-lead { background: var(--bg-elevated); border-left: 3px solid var(--brand-light); padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.doc h2 { color: var(--brand-light); font-size: 17px; margin: 26px 0 10px; }
.doc p { color: var(--text-secondary); font-size: 14px; line-height: 1.9; margin: 10px 0; }
.doc-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
@media (max-width: 680px) { .doc { padding: 24px 18px; } }

.order-card { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-3); overflow: hidden; border: 1px solid var(--border); }
.order-card .oh { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.order-card .ob { padding: 14px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); }
.order-card .ob .thumb { width: 60px; height: 60px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.order-card .ob .meta { flex: 1; }
.order-card .of { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.status { font-weight: 600; }
.status.unpaid { color: var(--brand-light); }
.status.paid { color: var(--c-success); }
.status.shipped { color: var(--c-success); }
.status.completed { color: var(--text-muted); }
.status.canceled { color: var(--text-dim); }

/* ===================== 反馈 / 提示 ===================== */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(10,14,20,.94); color: #fff; padding: 12px 22px; border-radius: var(--radius-sm); z-index: 999; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; border: 1px solid var(--border-light); }
.toast.show { opacity: 1; }
.notice { background: var(--c-gold-light); border: 1px solid rgba(64,128,232,.3); color: var(--brand-light); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: var(--sp-3); }

/* ===================== 响应式（导航/栅格回收） ===================== */
@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-deep);
    box-shadow: var(--shadow-md); padding: 8px 0; z-index: 49; border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav > a { padding: 14px var(--gutter-pc); font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav > a.nav-text::after { display: none; }
  .cate-menu { width: 100%; }
  .cate-menu > a { padding: 14px var(--gutter-pc); color: var(--brand-light); }
  .cate-menu:hover .cate-drop { display: none; }
  .nav.open .cate-menu .cate-drop {
    display: grid; position: static; width: 100%; max-width: 100%;
    box-shadow: none; border-radius: 0; padding: 8px 0; grid-template-columns: 1fr; background: var(--bg-surface);
  }
  .nav.open .cate-menu .cate-drop a { padding: 12px var(--gutter-pc); }
  .pd { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .quick-cats { grid-template-columns: 1fr; }
  .header .search { display: none; }
  .search-toggle { display: inline-flex; margin-left: auto; }
  .search.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; width: 100%; height: auto;
    padding: 10px 16px; background: var(--bg-deep); box-shadow: var(--shadow-md); z-index: 49; gap: 8px; border-bottom: 1px solid var(--border);
  }
  .search.open input { width: 100%; flex: 1; }
  .search.open .s-submit { height: 40px; }
  .cart-btn { padding: 8px 10px; font-size: 13px; }
  .hero-slides .hslide { min-height: 320px; }
  .hslide-inner { padding: 40px var(--gutter-mobile); }
  .hslide .htitle { font-size: 30px; }
  .hslide .hvisual { display: none; }
  .act-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cart-row { grid-template-columns: 70px 1fr 90px; }
  .cart-row .hide-sm { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .pd { padding: var(--sp-3); }
  .hslide .htitle { font-size: 26px; }
  .cat-banner-inner { padding: 20px var(--gutter-mobile); }
  .cat-banner .cb-vis { display: none; }
  .cat-banner .cb-title { font-size: 21px; }
}

/* ===================== 管理后台（深色科技风） ===================== */
.admin-bar { background: var(--bg-deep); color: #fff; border-bottom: 1px solid var(--border); }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.admin-bar .brand { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 20px; }
.admin-bar .brand .admin-logo { height: 28px; width: auto; max-width: 160px; object-fit: contain; border-radius: var(--radius-sm); }
.admin-bar .right { display: flex; gap: var(--sp-4); align-items: center; font-size: 13px; }
.admin-bar a { color: var(--text-secondary); }
.admin-bar a:hover { color: var(--brand-light); }
.admin-tabs { display: flex; gap: 8px; margin: 22px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-tabs .atab { padding: 10px 22px; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.admin-tabs .atab:hover { color: var(--text-primary); }
.admin-tabs .atab.active { color: var(--brand-light); border-bottom-color: var(--brand-light); }
table.admin { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table.admin th, table.admin td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
table.admin th { background: var(--bg-elevated); color: var(--brand-light); font-weight: 600; }
table.admin tr:hover td { background: var(--bg-elevated); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.pill.on { background: rgba(53,195,122,.14); color: var(--c-success); }
.pill.off { background: rgba(255,255,255,.06); color: var(--text-muted); }
.pill.unpaid { background: var(--c-gold-light); color: var(--brand-light); }
.pill.paid { background: rgba(53,195,122,.14); color: var(--c-success); }
.pill.shipped { background: rgba(53,195,122,.14); color: var(--c-success); }
.pill.completed { background: rgba(255,255,255,.06); color: var(--text-muted); }
.pill.canceled { background: rgba(255,255,255,.06); color: var(--text-dim); }
.pill.closed { background: rgba(255,255,255,.06); color: var(--text-dim); }
.pill.refunded { background: var(--c-gold-light); color: var(--brand-light); }
.pill.refund-req { background: rgba(242,86,86,.16); color: var(--c-danger); }
.pill.normal { background: rgba(255,255,255,.06); color: var(--text-muted); }
.pill.silver { background: rgba(255,255,255,.08); color: #9fb6cf; }
.pill.gold { background: var(--c-gold-light); color: var(--brand-light); }
.pill.vip { background: rgba(170,120,230,.16); color: #c89cf0; }
.link-btn { color: var(--brand-light); cursor: pointer; margin-right: 10px; }
.link-btn.danger { color: var(--c-danger); }
.link-btn:hover { text-decoration: underline; }
.modal-mask { position: fixed; inset: 0; background: rgba(10,14,20,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: var(--bg-surface); border-radius: var(--radius-lg); width: 560px; max-width: 94vw; max-height: 90vh; overflow: auto; padding: 26px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.modal--product { width: 896px; max-width: 94vw; }
.order-detail-modal { width: 840px; }
.modal h3 { color: var(--text-primary); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; background: var(--bg-elevated); color: var(--text-primary); }
.form-grid textarea { resize: vertical; min-height: 64px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.admin-toolbar .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-toolbar .chip { border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; cursor: pointer; font-size: 13px; color: var(--text-secondary); transition: all .15s; }
.admin-toolbar .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-toolbar .toolbar-actions { display: flex; gap: 12px; align-items: center; }

/* ===================== 数据看板 / 收款 / 会员 / 导入 ===================== */
.stat-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-cards.sm { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: var(--t); }
.stat-card:hover { border-color: var(--border-brand); transform: translateY(-2px); }
.stat-card .t { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .v { font-size: 22px; font-weight: 800; color: var(--brand-light); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.bar-row .bl { width: 70px; color: var(--text-muted); text-align: right; }
.bar-row .btrack { flex: 1; height: 10px; background: var(--bg-elevated); border-radius: 6px; overflow: hidden; }
.bar-row .bfill { display: block; height: 100%; background: var(--grad-brand); border-radius: 6px; }
.bar-row .bv { width: 140px; color: var(--text-muted); }

/* ===================== 会员中心（多 Tab） ===================== */
.uc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.uc-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.uc-id { flex: 1; }
.uc-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.uc-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.lv-pill { background: var(--c-gold-light); color: var(--brand-light); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.uc-points { color: var(--text-muted); font-size: 13px; }
.uc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.uc-tab { background: none; border: none; cursor: pointer; padding: 10px 16px; font-size: 14px; color: var(--text-muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; transition: color .15s, border-color .15s; }
.uc-tab:hover { color: var(--text-primary); }
.uc-tab.active { color: var(--brand-light); border-bottom-color: var(--brand-light); }
@media (max-width: 640px) {
  .uc-tabs { gap: 4px; }
  .uc-tab { padding: 8px 12px; font-size: 13px; }
}
.invite-tip { background: var(--c-primary-light); color: var(--brand-light); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px; font-size: 13px; border: 1px solid var(--border-brand); }

/* ===================== 礼品卡 ===================== */
.gc-balance { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: 0 6px 24px rgba(15,82,186,.28); }
.gc-b-label { font-size: 13px; opacity: .85; }
.gc-b-num { font-size: 38px; font-weight: 800; margin: 6px 0; }
.gc-b-tip { font-size: 12px; opacity: .8; }
.gc-redeem { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 20px; margin-top: var(--sp-3); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.gc-r-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.gc-r-row { display: flex; gap: 10px; }
.gc-input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; text-transform: uppercase; background: var(--bg-elevated); color: var(--text-primary); }
.gc-list-title { font-size: 14px; font-weight: 700; margin: 22px 4px 12px; color: var(--text-primary); }
.gc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gc-card { background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-light); border-radius: var(--radius-md); padding: 14px; }
.gc-card-amt { font-size: 22px; font-weight: 800; color: var(--brand-light); }
.gc-card-code { font-size: 13px; color: var(--text-muted); margin-top: 6px; letter-spacing: 1px; }
.gc-card-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.gc-card-prod { border-left-color: var(--c-success); }
.gc-card-prod-tag { font-size: 13px; font-weight: 700; color: var(--c-success); margin-bottom: 4px; }
.gc-items { display: flex; flex-direction: column; gap: 12px; }
.gc-item { display: flex; align-items: center; gap: 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.gc-item-img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.gc-item-info { flex: 1; min-width: 0; }
.gc-item-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.gc-item-meta { font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.gc-item-code { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.gc-item-status.done { font-size: 12px; color: var(--c-success); font-weight: 700; padding: 6px 10px; background: rgba(53,195,122,.14); border-radius: 18px; }
.gc-item .btn { flex-shrink: 0; }
.claim-prod { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; border: 1px solid var(--border); }
.claim-prod-img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); }
.claim-prod-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.claim-prod-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.claim-sub { font-size: 14px; font-weight: 700; color: var(--brand-light); margin-bottom: 10px; }
.claim-addrs { display: flex; flex-direction: column; gap: 8px; }
.addr-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; cursor: pointer; background: var(--bg-surface); color: var(--text-secondary); }
.addr-opt.on { border-color: var(--brand-light); background: var(--c-primary-light); }
.claim-empty { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.claim-new { display: none; flex-direction: column; gap: 10px; margin-top: 12px; }
.claim-new input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 14px; background: var(--bg-elevated); color: var(--text-primary); }
.gc-use { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); cursor: pointer; }
.gc-use input { width: 18px; height: 18px; }
.gc-empty { font-size: 13px; color: var(--text-muted); }
.discount { color: var(--brand-light); font-weight: 700; }

/* ===================== 物流时间线 ===================== */
.logi-no { padding: 12px 18px; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.timeline { padding: 16px 18px 4px 26px; position: relative; }
.tl-item { position: relative; padding: 0 0 18px 18px; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; }
.tl-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-light); }
.tl-desc { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tl-loc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.tl-time { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.tl-empty { color: var(--text-muted); font-size: 13px; }

/* ===================== 会员卡 ===================== */
.member-card { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-4); border: 1px solid var(--border); }
.mc-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.mc-level { font-size: 24px; font-weight: 800; color: var(--brand-light); }
.mc-points { font-size: 16px; color: var(--brand-light); font-weight: 700; }
.mc-progress { margin: 18px 0 22px; }
.mc-bar { height: 12px; background: var(--bg-elevated); border-radius: 8px; overflow: hidden; }
.mc-bar span { display: block; height: 100%; background: var(--grad-brand); }
.mc-tip { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.mc-bt { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 18px 0 12px; }
.mc-blist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.mc-b { background: var(--c-primary-light); color: var(--brand-light); border-radius: 14px; padding: 5px 14px; font-size: 13px; }

/* 等级体系：卡片化表格，优化边距与视觉层次 */
.mc-table { background: var(--bg-surface); border-radius: var(--radius-md); padding: var(--sp-3); border: 1px solid var(--border); }
.mc-thead {
  display: grid; grid-template-columns: 110px 120px 1fr; gap: 12px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--text-muted);
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.mc-row {
  display: grid; grid-template-columns: 110px 120px 1fr; gap: 12px;
  padding: 14px 16px; font-size: 14px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  align-items: center; margin-bottom: 8px; transition: all .15s;
}
.mc-row:last-child { margin-bottom: 0; }
.mc-row.on {
  border-color: var(--brand-light);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--c-gold-light) 100%);
  box-shadow: var(--shadow-card-hover);
}
.mc-name { font-weight: 700; color: var(--brand-light); }
.mc-min { color: var(--text-muted); }
.mc-bs { color: var(--text-secondary); line-height: 1.5; }
.mc-rule { font-size: 12px; color: var(--text-muted); margin-top: 16px; padding-left: 4px; }

@media (max-width: 640px) {
  .member-card { padding: var(--sp-3); }
  .mc-level { font-size: 20px; }
  .mc-points { font-size: 14px; }
  .mc-thead { display: none; }
  .mc-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px; padding: 14px;
  }
  .mc-row .mc-name { grid-column: 1 / 2; }
  .mc-row .mc-min { grid-column: 2 / 3; text-align: right; }
  .mc-row .mc-bs { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); }
}

/* ===================== 分享卡 ===================== */
.share-card { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-4); border: 1px solid var(--border); }
.sc-head { font-size: 18px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 18px; }
.sc-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.sc-code-box { text-align: center; background: var(--c-primary-light); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; border: 1px solid var(--border-brand); }
.sc-code { font-size: 32px; font-weight: 800; letter-spacing: 4px; color: var(--brand-light); margin: 6px 0 12px; }
.sc-link-box { margin-bottom: 14px; }
.sc-link { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; background: var(--bg-elevated); }
.sc-stat { text-align: center; font-size: 13px; color: var(--text-muted); margin: 14px 0; }
.sc-stat b { color: var(--brand-light); }
.sc-invited { border-top: 1px dashed var(--border); padding-top: 12px; }
.sc-irow { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }

/* ===================== 表单 / 输入框 / 搜索 ===================== */
.search-input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; min-width: 220px; font-size: 13px; background: var(--bg-elevated); color: var(--text-primary); }
.search-input:focus { border-color: var(--brand-light); outline: none; }
.ok-box { margin-top: 12px; background: rgba(53,195,122,.14); color: var(--c-success); border: 1px solid rgba(53,195,122,.3); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; }
.err-box { margin-top: 12px; background: rgba(242,86,86,.14); color: var(--c-danger); border: 1px solid rgba(242,86,86,.3); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; }
.warn-box { margin-top: 8px; background: var(--c-gold-light); color: var(--brand-light); border: 1px solid rgba(64,128,232,.3); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; }

/* ===================== 图片上传 ===================== */
.uploader { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-prev { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: contain; background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface)); border: 1px solid var(--border); }
.upload-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.up-hint { color: var(--text-muted); font-size: 12px; }
.gallery-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gallery-prev .thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: contain; border: 1px solid var(--border); background: var(--bg-elevated); }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 18px; text-align: center; color: var(--text-muted); font-size: 13px; transition: all .15s; cursor: pointer; background: var(--bg-surface); }
.dropzone.dz-over { border-color: var(--brand-light); background: var(--c-primary-light); color: var(--brand-light); }
.dz-hint .link-btn { font-weight: 600; }
.uploader.dz-over { outline: 2px dashed var(--brand-light); outline-offset: 4px; border-radius: var(--radius-md); }
.gthumb { position: relative; }
.gthumb .thumb { width: 64px; height: 64px; }
.gthumb-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; line-height: 16px; text-align: center; border-radius: 50%; background: var(--c-danger); color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.gthumb-x:hover { background: #ff6b6f; }

/* ===================== 后台数据看板响应式 ===================== */
@media (max-width: 980px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .stat-cards.sm { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
}

/* ===================== 优惠券（领券中心 / 我的券 / 活动领券） ===================== */
.coupon-head { margin: var(--sp-6) 0 var(--sp-2); }
.coupon-head h1 { font-size: var(--fs-h1); font-family: var(--font-sans); letter-spacing: var(--ls-title); }
.coupon-head .sub { color: var(--text-muted); font-size: var(--fs-body); margin-top: 6px; }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-3); }
.cp-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg-surface); border: 1px solid var(--brand-light); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: var(--sp-4); transition: var(--t);
}
.cp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.cp-card.done { opacity: .5; border-color: var(--border); }
.cp-amt { flex-shrink: 0; width: 84px; text-align: center; color: var(--brand-light);
  font-weight: 900; font-size: 40px; line-height: 1; }
.cp-amt .yen { font-size: 20px; margin-right: 2px; }
.cp-info { flex: 1; min-width: 0; }
.cp-name { font-weight: 600; font-size: var(--fs-h3); color: var(--text-primary); }
.cp-rule { color: var(--text-secondary); font-size: var(--fs-body); margin-top: 2px; }
.cp-valid { color: var(--text-muted); font-size: var(--fs-caption); margin-top: 2px; }
.cp-stock { color: var(--text-dim); font-size: var(--fs-caption); margin-top: 2px; }
.cp-claim { flex-shrink: 0; }

.mycp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-3); }
.mycp-item {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-light);
  border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-sm);
}
.mycp-item.st-used { opacity: .5; border-left-color: var(--text-dim); }
.mycp-item.st-expired { opacity: .5; border-left-color: var(--c-danger); }
.mycp-amt { flex-shrink: 0; width: 72px; text-align: center; color: var(--brand-light);
  font-weight: 900; font-size: 32px; line-height: 1; }
.mycp-amt .yen { font-size: 16px; margin-right: 2px; }
.mycp-info { flex: 1; min-width: 0; }
.mycp-pill { flex-shrink: 0; font-size: var(--fs-caption); padding: 3px 10px; border-radius: 20px;
  background: var(--c-gold-light); color: var(--brand-light); font-weight: 600; }
.mycp-item.st-used .mycp-pill { background: rgba(255,255,255,.06); color: var(--text-muted); }
.mycp-item.st-expired .mycp-pill { background: rgba(242,86,86,.16); color: var(--c-danger); }

.cp-filter { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.cpf { border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted);
  padding: 8px 20px; border-radius: 40px; font-size: var(--fs-body); cursor: pointer; transition: all .15s; }
.cpf.active { border-color: var(--brand); color: #fff; background: var(--brand); }

.cp-group { margin-top: var(--sp-4); }
.cp-group-h { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--sp-2); color: var(--text-primary); }
.uc-cta { margin-bottom: var(--sp-3); }

.coupon-select { width: 100%; padding: 10px 12px; border: 1px solid var(--brand-light); border-radius: var(--radius-sm);
  background: var(--bg-elevated); font-size: var(--fs-body); color: var(--text-primary); }
.coupon-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(64,128,232,.15); }

/* 活动领券弹窗 */
.cp-modal { width: 320px; max-width: 86vw; text-align: center; padding: var(--sp-6) var(--sp-4); }
.cp-modal-amt { color: var(--brand-light); font-weight: 900; font-size: 56px; line-height: 1; }
.cp-modal-amt .yen { font-size: 26px; margin-right: 3px; }
.cp-modal-name { font-size: var(--fs-h2); font-weight: 700; margin-top: 8px; }
.cp-modal-rule { color: var(--text-muted); font-size: var(--fs-body); margin-top: 6px; }
.cp-modal-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.cp-modal-actions .btn { flex: 1; }

/* 整箱特惠 */
.case-tag {
  margin-top: 6px; display: inline-block; font-size: 12px; color: var(--brand-light);
  background: rgba(64,128,232,.12); border: 1px solid rgba(64,128,232,.4);
  padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.case-box { margin: 16px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-label {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--brand);
  padding: 2px 9px; border-radius: 4px;
}
.case-info { font-size: 13px; color: var(--c-sub); }
.case-hint { margin: 8px 0 4px; font-size: 13px; color: var(--text-muted); }
.case-hint .ok { color: var(--brand-light); font-weight: 600; }
.case-hint b { color: var(--brand-light); }
.cart-case { margin-top: 3px; font-size: 11px; color: var(--brand-light); font-weight: 600; }
.cart-case.ok { color: var(--brand-light); }

/* ===================== 规范工具类（统一收敛 JS 内联样式） ===================== */
.text-sub { color: var(--text-muted); font-size: 12px; }
.filter-label { color: var(--text-muted); font-size: 13px; }
.thumb-sm { width: 56px; height: 56px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%); display: grid; place-items: center; flex-shrink: 0; }
.thumb-sm img { width: 100%; height: 100%; object-fit: contain; }
.order-item { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0; border-bottom: 1px dashed var(--border); }
.order-item:last-child { border-bottom: none; }
.cart-head { background: var(--bg-elevated); font-weight: 600; color: var(--brand-light); }
.af-row { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); align-items: center; }
.tl-body { padding-left: 0; }
.thumb-xs { width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%); display: grid; place-items: center; flex-shrink: 0; }
.thumb-xs img { width: 100%; height: 100%; object-fit: contain; }
.panel--narrow { max-width: 860px; }
.panel--mid { max-width: 820px; }
.modal--narrow { max-width: 560px; }
.info-box { background: var(--c-primary-light); border-radius: var(--radius-md); padding: var(--sp-3); font-size: 13px; border: 1px solid var(--border-brand); }
.text-primary { color: var(--brand-light); }
.text-muted { color: var(--text-muted); }

/* ===================== 规范标准组件（来自 ui-kit.css，统一风格） ===================== */
/* 区块标题：标签 + 标题 + 渐变短线 + 描述 */
.section-header { text-align: center; margin-bottom: var(--s-9); }
.section-tag {
  display: inline-block; padding: 5px 14px;
  background: rgba(64, 128, 232, 0.08); color: var(--brand-light);
  border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  margin-bottom: var(--s-4);
}
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: var(--s-4); color: var(--text-primary); letter-spacing: -0.5px; }
.section-line { width: 48px; height: 2px; background: var(--grad-brand); margin: 0 auto var(--s-4); }
.section-desc { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }
/* 徽章 */
.badge { padding: 5px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; display: inline-block; }
.badge-primary { background: var(--brand); color: #fff; font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 0 20px rgba(15,82,186,0.3); }
.badge-secondary { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border-light); }
.badge-brandcolor { color: #fff; }
/* 顶栏导航（规范结构，供后台或自定义页使用） */
.site-header { position: sticky; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--t); background: rgba(15,20,25,0.72); backdrop-filter: blur(20px) saturate(1.3); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1280px; margin: 0 auto; padding: 0 var(--s-8); }
.main-nav { display: flex; gap: var(--s-1); }
.nav-link { padding: 8px 16px; border-radius: var(--r-sm); font-size: 16px; font-weight: 500; color: var(--text-secondary); transition: var(--t-fast); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 2px; left: 16px; right: 16px; height: 1.5px; background: var(--brand); transform: scaleX(0); transition: transform var(--t-fast); }
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand-light); }
/* 页脚（规范结构） */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); position: relative; z-index: 2; padding: var(--s-9) 0 var(--s-7); }
.footer-bottom { text-align: center; padding-top: var(--s-6); font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: var(--s-7); }
/* 进入动画 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 后台品牌管理 */
.brand-admin-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.brand-admin-item { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.brand-admin-item .ba-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; display: grid; place-items: center; overflow: hidden; }
.brand-admin-item .ba-logo img { width: 78%; height: 78%; object-fit: contain; }
.brand-admin-item .ba-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.brand-admin-item .ba-name { font-weight: 700; }
.brand-admin-item .ba-info .form-input { padding: 8px 10px; font-size: 13px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-primary); transition: border-color .15s; }
.brand-admin-item .ba-info .form-input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(64,128,232,.15); }
.brand-admin-item .ba-info .form-input::placeholder { color: var(--text-muted); }
.brand-admin-item .ba-upload { flex: 1; }
.brand-admin-item .ba-upload input { width: 100%; }
.ba-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.ba-head h3 { margin-bottom: 0; }

/* 品牌-分类关系管理：全局分类池 */
.cat-pool { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); padding: var(--sp-4); margin-top: var(--sp-4); }
.cat-pool-title { font-size: 13px; color: var(--text-muted); margin-bottom: var(--sp-3); }
.cat-pool-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(64,128,232,0.12); color: var(--brand-light); border: 1px solid rgba(64,128,232,0.35); font-size: 13px; }
.cat-chip-x { cursor: pointer; opacity: .7; font-weight: 700; line-height: 1; }
.cat-chip-x:hover { opacity: 1; }
.cat-pool-add { display: flex; gap: var(--sp-2); align-items: center; }
.cat-pool-add .form-input { max-width: 240px; flex: 1; }

/* 品牌行内的分类勾选 chips */
.ba-cats { margin-top: var(--sp-3); }
.ba-cats-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.ba-cats-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cat-toggle { cursor: pointer; user-select: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg-surface); transition: all var(--transition-fast); }
.cat-toggle:hover { border-color: var(--brand-light); color: var(--text-primary); }
.cat-toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); }
