/* =================== FCMACS 品牌主题 =================== */
:root {
  /* —— 画布与表面 —— */
  --paper: #F4F7FB;            /* 冷调纸白画布 */
  --surface: #FFFFFF;
  --surface-2: #EAF1F9;
  --ink: #0C2238;              /* 深海军墨 主文本 */
  --ink-2: #3A4A5C;
  /* —— 品牌与语义色 —— */
  --primary: #0F4C9C;          /* 专业科研蓝（主） */
  --primary-dark: #0A3A78;
  --primary-light: #5A7CA8;
  --accent: #1565D8;           /* 亮蓝（价格/库存/CTA） */
  --accent-dark: #0F4C9C;
  --primary-rgb: 15,76,156;     /* 主色 RGB，节日主题统一接管 */
  --hero-overlay: linear-gradient(180deg, rgba(15,76,156,.45), rgba(15,76,156,.7));  /* Hero 蒙版，节日换色 */
  --festival-emoji: "";         /* 节日大 emoji 水印（默认无） */
  --link: #1F6FB8;             /* 链接蓝 */
  --bg: #F4F7FB;
  --bg-soft: #EAF1F9;
  --bg-section: #F4F7FB;
  --card: #FFFFFF;
  --text: #0C2238;
  --text-2: #3A4A5C;
  --muted: #6B7C90;
  --border: #E1E8F0;
  --danger: #D6453F;
  --ok: #2E9E6B;
  --brand-l: #E4EFFB;          /* 极浅蓝底 */
  --brand-yellow: #FCBC00;     /* 品牌 logo 黄（现货物料个数 / 加入购物车按钮） */
  --member-red: #E53935;       /* 会员优惠价红 */
  --energy-l: #EAF1F9;
  --warn: #C9962A;
  --warn-l: #FBF4E4;
  --ok-l: #E2F4EA;
  --danger-l: #FBE7E6;
  /* —— 字体 —— */
  --font-disp: "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Space Grotesk", "Noto Sans SC", ui-monospace, monospace;
  /* —— 圆角 / 阴影 —— */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 3px rgba(12,34,56,.06), 0 6px 18px rgba(12,34,56,.05);
  --sh-1: 0 1px 2px rgba(12,34,56,.05), 0 2px 8px rgba(12,34,56,.04);
  --sh-2: 0 4px 14px rgba(12,34,56,.07), 0 12px 32px rgba(12,34,56,.06);
  --sh-brand: 0 6px 20px rgba(var(--primary-rgb),.22);
  --max: 1280px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* 签名底纹：井格点阵（微孔板 / 显微网格） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(var(--primary-rgb),.07) 1px, transparent 1px);
  background-size: 22px 22px; background-position: 0 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 62%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 62%);
}
/* 编辑式展示标题：衬线 + 授权感 */
.section-title .zh, .hero .slogan, .about h1, .auth-wrap h2,
.article h1, .detail .info h1, .instock-banner h2 {
  font-family: var(--font-disp);
}
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ============ Header ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 26px; padding: 14px 18px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 56px; width: auto; display: block; }
.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.main-nav a.active {
  color: #fff; font-weight: 600;
  background: var(--primary); border-radius: 6px; padding: 8px 14px;
}
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -16px;
  height: 2px; background: var(--accent);
}
.search-box { display: flex; border: 1.5px solid var(--primary); border-radius: 4px; overflow: hidden; height: 36px; }
.search-box input { border: none; padding: 0 14px; outline: none; width: 220px; }
.search-box button { border: none; background: var(--primary); color: #fff; padding: 0 18px; font-size: 14px; }
.search-box button:hover { background: var(--primary-dark); }

/* ============ Top account bar (above header) ============ */
.account-bar {
  background: #f7f8fa; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.account-bar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.account-bar a { color: var(--muted); margin-left: 14px; }
.account-bar a:hover { color: var(--primary); }

/* ============ Layout ============ */
main { padding: 24px 18px 60px; min-height: 50vh; }
.section-title { display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 50px 0 28px; text-align: center; }
.section-title .en { font-size: 32px; color: rgba(var(--primary-rgb),0.18); font-weight: 700; letter-spacing: 6px; text-transform: uppercase; line-height: 1; }
.section-title .zh { font-size: 20px; color: var(--text); font-weight: 600; margin-top: 6px; }
.section-title.has-more { justify-content: space-between; flex-direction: row; }
.section-title.has-more .zh-group { display: flex; flex-direction: column; align-items: center; }
.section-title .more { font-size: 13px; color: var(--muted); }

/* ============ Hero（轮播）============ */
.hero {
  position: relative;
  height: 460px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s ease;
}
.hero-slide.on { opacity: 1; }
/* 每帧独立蒙版，保证文字可读 */
.hero-slide::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
/* 节日大 emoji 水印：由 .theme-xxx 设置 --festival-emoji，纯 CSS，零 DOM 改动 */
.hero::after {
  content: var(--festival-emoji, "");
  position: absolute; right: 18px; bottom: 4px; z-index: 4;
  font-size: 150px; line-height: 1; opacity: .22; pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero .hero-logo { height: 110px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.45)); margin-bottom: 14px; }
.hero .slogan { font-size: 30px; font-weight: 600; letter-spacing: 8px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero .slogan span { display: block; }
/* 左右箭头（向右滑动图标点击有反应） */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.32); color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.hero-nav:hover { background: rgba(0,0,0,.6); }
.hero-nav.prev { left: 18px; }
.hero-nav.next { right: 18px; }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; margin: 0 auto; display: flex; gap: 8px; justify-content: center; }
.hero .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); display: inline-block; cursor: pointer; transition: transform .2s, background .2s; }
.hero .dots i:hover { transform: scale(1.35); }
.hero .dots i.on { background: #fff; }

/* ============ Main Business 4 宫格 ============ */
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.biz-card { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(var(--primary-rgb),.15); }
.biz-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; }
.biz-card:hover .bg { transform: scale(1.06); }
.biz-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--primary-rgb),.05), rgba(var(--primary-rgb),.7)); }
.biz-card .info { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 12px; }
.biz-card h4 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.biz-card .en { font-size: 12px; opacity: .9; letter-spacing: 1px; }

/* ============ 视频学院（XIAOFU ACADEMY）=========== */
.academy { position: relative; background: var(--primary) url('/static/img/bg1.jpg') center/cover no-repeat; padding: 60px 0; margin-top: 40px; color: #fff; }
.academy::before { content: ""; position: absolute; inset: 0; background: rgba(var(--primary-rgb),.82); }
.academy > .container { position: relative; }
.academy .section-title .en { color: rgba(255,255,255,.4); }
.academy .section-title .zh { color: #fff; }
.academy .video-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 12px; }
.video-card { display: block; width: 100%; padding: 0; border: none; background: #000; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/9; color: #fff; text-align: left; cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.video-card.large { aspect-ratio: 16/10; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 56px; pointer-events: none; }
.video-card .play::after { content: "▶"; width: 80px; height: 80px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.video-card .thumb { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .85; }
.video-card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }
.video-stack { display: grid; gap: 18px; grid-template-rows: 1fr 1fr; }
.academy .more-btn { display: inline-block; margin: 28px auto 0; padding: 8px 22px; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 24px; }
.academy .more-btn:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.academy .center-row { text-align: center; }

/* ============ Promotions ============ */
.promo-section { background: #fff; padding: 20px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo-card { background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s; border: 1px solid var(--border); }
.promo-card:hover { transform: translateY(-3px); }
.promo-card .img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(120deg, #1565D8, #0F4C9C); display: grid; place-items: center; color: #0F4C9C; font-size: 28px; font-weight: 700; position: relative; overflow: hidden; }
.promo-card .img.alt1 { background: linear-gradient(120deg, #1F6FB8, #1F6FB8); }
.promo-card .img.alt2 { background: linear-gradient(120deg, #6a3df5, #8b5cf6); color: #fff; }
.promo-card .img.alt3 { background: linear-gradient(120deg, #1565D8, #0F4C9C); color: #fff; }
.promo-card .img.alt4 { background: linear-gradient(120deg, #18a999, #0b8f7e); color: #fff; }
.promo-card .body { padding: 14px 16px; }
.promo-card h4 { margin: 0 0 4px; font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.5; }
.promo-card .date { font-size: 12px; color: var(--muted); }

/* ============ Company News（左侧大图+右侧编号列表）=========== */
.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.news .bigimg { aspect-ratio: 4/3; border-radius: var(--radius); background: url('/static/img/bg2.jpg') center/cover; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.news .list { display: flex; flex-direction: column; gap: 18px; }
.news .item { display: flex; gap: 22px; padding: 14px 0; border-bottom: 1px dashed var(--border); cursor: pointer; align-items: flex-start; }
.news .item:hover .title { color: var(--primary); }
.news .item .num { font-size: 36px; color: var(--primary); font-weight: 700; line-height: 1; font-family: Georgia, serif; flex-shrink: 0; }
.news .item .title { font-size: 16px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.news .item .desc { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.news .item .date { font-size: 12px; color: var(--muted); }
.news .more-row { margin-top: 30px; text-align: center; }
.news .more-btn { display: inline-block; padding: 8px 80px; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; }
.news .more-btn:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

/* ============ Cards / Grid (catalog / detail) ============ */
.grid { display: grid; gap: 16px; }
.grid.cats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.kb { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(var(--primary-rgb),.12); }
.cat-card { text-align: center; cursor: pointer; }
.cat-card .ico { font-size: 30px; }
.cat-card h4 { margin: 8px 0 2px; font-size: 15px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 12px; }

.prod-card { display: flex; flex-direction: column; cursor: pointer; }
.prod-card .brand { color: var(--primary); font-weight: 700; font-size: 12px; }
.prod-card .name { font-weight: 500; margin: 4px 0; min-height: 40px; color: var(--text); }
.prod-card .spec { color: var(--muted); font-size: 12px; }
.prod-card .price { margin-top: auto; font-weight: 700; color: var(--member-red); font-size: 16px; }
.prod-card .price .lock { color: var(--muted); font-size: 12px; font-weight: 500; }
.prod-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }

.kb-card { cursor: pointer; }
.kb-card .tag { display: inline-block; background: #E4EFFB; color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.kb-card h4 { margin: 8px 0 6px; font-size: 16px; }
.kb-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ============ Catalog page ============ */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.filter-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; align-self: start; position: sticky; top: 110px; }
.filter-box h4 { margin: 0 0 8px; font-size: 14px; color: var(--primary); }
/* 产品查询左侧「首页」标签 */
.filter-home-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border-radius: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none; box-shadow: 0 2px 8px rgba(15,76,156,.18);
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.filter-home-tab svg { width: 18px; height: 18px; flex: none; }
.filter-home-tab:hover { color: #fff; text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
/* 品牌筛选置顶：select 撑满侧栏，与下方分类筛选分隔 */
.brand-filter-block { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.brand-filter-block h4 { margin: 0 0 8px; }
.brand-filter-block #catBrand { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); }
/* 品牌筛选：手工输入模糊查询 + 自动带出下拉候选 */
.bf-wrap { position: relative; }
.bf-input {
  width: 100%; box-sizing: border-box; padding: 8px 30px 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); font-size: 13px;
}
.bf-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.bf-input[readonly] { background: #f5f7fa; color: var(--muted); cursor: default; }
.bf-clear {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.bf-clear:hover { color: var(--primary); }
.bf-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  max-height: 260px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(15,40,70,.16); padding: 4px;
}
.bf-opt {
  padding: 8px 10px; border-radius: 5px; font-size: 13px; color: var(--text);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-opt:hover, .bf-opt.active { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); }
.bf-opt.selected { color: var(--primary); font-weight: 700; }
.bf-noresult { padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.filter-box ul { list-style: none; padding: 0; margin: 0 0 14px; }
.filter-box li a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text); }
.filter-box li a.active, .filter-box li a:hover { background: #E4EFFB; color: var(--primary); text-decoration: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.toolbar input[type=text] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; min-width: 240px; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
/* 后台「联系人 / 账号」批量操作条：与上方查询工具条视觉分离，勾选后按钮才可用 */
.contact-batch-bar { justify-content: flex-start; gap: 8px; padding: 10px 12px; background: #f4f8ff; border: 1px solid var(--border); border-radius: 8px; }
.contact-batch-bar .muted { margin-right: auto; }
.contact-batch-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.contact-sel, #contactSelAll { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
/* 联系人表 9 列较宽：窄屏在表格内部横向滚动，避免撑宽整个后台页面。
   grid 的 1fr 列默认 min-width:auto 会被宽内容撑开，需显式置 0 让滚动容器生效。 */
.contacts-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
#adminContent { min-width: 0; }

/* —— 产品查询 / 现货推荐 搜索框（美观 + 强辨识度） —— */
.search-field {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 0 6px 0 14px; height: 46px;
  flex: 1 1 340px; max-width: 480px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.search-field:hover { border-color: #b9c6da; }
.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.14);
  background: #fff;
}
.search-field .sf-ico { width: 20px; height: 20px; color: var(--primary); flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; height: 100%; color: var(--ink); font-family: var(--font-body);
}
.search-field input::placeholder { color: #9aa7b4; }
.search-field .sf-clear {
  display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: #eef2f6; color: #8a94a2; cursor: pointer; font-size: 12px; flex: none;
  transition: background .15s;
}
.search-field .sf-clear:hover { background: #e0e6ec; color: #5b6776; }
.search-field.has-value .sf-clear { display: inline-flex; }
.search-field .sf-btn {
  border: none; background: var(--primary); color: #fff;
  height: 34px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer; flex: none;
  transition: background .15s, transform .15s var(--ease);
}
.search-field .sf-btn:hover { background: var(--primary-dark); }
.search-field .sf-btn:active { transform: scale(.97); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pagination button.pg { border: 1px solid var(--border); background: #fff; padding: 6px 12px; border-radius: 6px; min-width: 34px; }
.pagination button.pg.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button.pg.disabled { opacity: .4; cursor: not-allowed; }
.pagination .pg-dots { color: var(--muted); padding: 6px 4px; user-select: none; }

/* 历史订单页签 */
.orders-summary { display: flex; gap: 24px; flex-wrap: wrap; margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.orders-summary b { color: var(--text); font-size: 16px; }
.history-toolbar { align-items: center; }
.history-toolbar input[type=text] { min-width: 280px; }
.history-toolbar input[type=date] { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; }
/* 会员折扣配置页：销售价目表分区（会员优惠价优先来源） */
.pl-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 6px 0 4px; }
.pl-block h4 { margin: 0 0 4px; }
.pl-block .disc-toolbar { margin: 10px 0 6px; }
/* 「金蝶单据实时同步中」状态提示（仅展示，不触发同步，同步由后台轮询自动完成） */
.biz-sync-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1; }
.biz-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #10b981); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: bizSyncPulse 1.8s ease-out infinite; }
/* 「我的订单」物流状态筛选分隔标签 */
.ord-flt-sep { font-size: 12px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
@keyframes bizSyncPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.45); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@media (prefers-reduced-motion: reduce) {
  .biz-sync-dot { animation: none; }
}
.orders-table tbody .order-row { cursor: pointer; transition: background .12s; }
.orders-table tbody .order-row:hover { background: #F1F6FB; }
.more-link { float: right; font-size: 13px; font-weight: 500; color: var(--primary); text-decoration: none; margin-top: 4px; }
.more-link:hover { text-decoration: underline; }

/* 结算页：客户类型判定与优惠价 */
.cust-type-box { display: flex; gap: 18px; align-items: center; margin: 12px 0 2px; padding: 10px 14px;
  background: #F1F6FB; border: 1px solid #CDE9DD; border-radius: 8px; font-size: 14px; flex-wrap: wrap; }
.cust-type-box b { color: var(--primary); font-size: 16px; }
.checkout-summary .disc { color: var(--primary); }
.checkout-table td.pref-cell b { font-size: 14px; }

/* 每页行数：可折叠，默认隐藏（点击「每页 N ▾」展开） */
.ps-wrap { position: relative; }
.ps-toggle.link-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; color: var(--muted); cursor: pointer; font-size: 13px; }
.ps-toggle.link-btn:hover { color: var(--primary); border-color: var(--primary); }
.ps-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(12,34,56,.12); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.ps-menu .ps-opt { border: none; background: none; text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--text); font-size: 13px; }
.ps-menu .ps-opt:hover { background: #EFF4F2; }
.ps-menu .ps-opt.active { background: var(--primary); color: #fff; }


/* ============ Product detail ============ */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail .info h1 { margin: 0 0 6px; font-size: 24px; }
.detail .brand { color: var(--primary); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.spec-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 120px; background: #fafbfc; }
.price-box { background: #fafbfc; border-radius: var(--radius); padding: 16px; margin: 12px 0; border: 1px solid var(--border); }
.price-box .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.price-box .member { color: var(--member-red); font-size: 22px; font-weight: 800; }
.price-box .list { color: var(--muted); text-decoration: line-through; }
.price-box .price-tag { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.price-box .member.big, .price-box .list.big { font-size: 26px; font-weight: 800; }
.price-box .member.big { color: var(--member-red); }
.price-box .list.big { color: var(--text); text-decoration: none; }
.locked-note { background: #EAF5F1; border: 1px solid #CDE9DD; color: #0A3A78; padding: 14px; border-radius: var(--radius); }

/* 企业注册：单位搜索下拉 */
.unit-list { position: relative; margin-top: 6px; border: 1px solid var(--border); border-radius: 6px; background: #fff; max-height: 220px; overflow-y: auto; z-index: 20; }
.unit-search-wrap { position: relative; }
.unit-search-wrap input#unitSearch { padding-right: 34px; }
.unit-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: #e9ecf1; color: #666; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.unit-clear:hover { background: #d9dee6; color: #333; }
.unit-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.unit-item:last-child { border-bottom: none; }
.unit-item:hover { background: #F1F6FB; }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text); }

/* 注册：账户类型选择卡片（描述清晰可见） */
.utype-opt { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0; cursor: pointer; color: var(--text); font-weight: 400; transition: border-color .15s, background .15s; }
.utype-opt.checked { border-color: var(--primary); background: #F1F6FB; }
.utype-opt input[type=radio] { margin-top: 3px; }
.utype-body { display: flex; flex-direction: column; gap: 3px; }
.utype-main { font-weight: 600; color: var(--text); }
.utype-desc { font-size: 13px; color: var(--muted); }
.btn { border: none; border-radius: 8px; padding: 10px 18px; font-weight: 600; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-brand); }
.btn-accent { background: var(--accent); color: #fff; }
/* 加入购物车按钮：品牌 logo 黄（仅作用于购物车按钮，不影响后台同步按钮） */
.add-cart { background: var(--brand-yellow) !important; color: #0C2238 !important; }
.add-cart:hover { background: #E9AE00 !important; }
#addInquiry { background: var(--brand-yellow) !important; color: #0C2238 !important; }
#addInquiry:hover { background: #E9AE00 !important; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-warning { background: var(--brand-yellow); color: #3A2E00; box-shadow: var(--sh-brand); }
.btn-warning:hover { background: #E9AE00; }
.btn-secondary { background: #F1F6FB; border: 1px solid var(--border); color: var(--primary-dark); }
.btn-secondary:hover { background: #DFE7E3; }
.btn:hover { opacity: .92; }

/* ============ Auth ============ */
.auth-wrap { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-wrap h2 { margin-top: 0; color: var(--primary); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; color: var(--muted); }
.field input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; }
.error { color: var(--danger); font-size: 13px; margin-bottom: 10px; }
/* 登录/注册：忘记密码入口、短信验证码行 */
.auth-links { text-align: right; margin: -4px 0 14px; }
.auth-links a { font-size: 13px; color: var(--primary); }
.sms-row { display: flex; gap: 8px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-btn { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; font-size: 13px; }
.sms-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============ 商务审批弹窗（金蝶客户/联系人字段） ============ */
.kd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.kd-grid .field { margin-bottom: 10px; }
.kd-in { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: #fff; }
.kd-in:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(192,57,43,.12); }
.kd-grid .req { color: var(--danger); font-weight: 700; }
@media (max-width: 560px) { .kd-grid { grid-template-columns: 1fr; } }

/* ============ Knowledge ============ */
.article { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.article h1 { margin-top: 0; color: var(--primary); }
.md h1, .md h2, .md h3 { color: var(--primary-dark); }
.md code { background: #f5f6f8; padding: 1px 6px; border-radius: 4px; font-family: monospace; }
.md pre { background: #0C2238; color: #e6edf3; padding: 14px; border-radius: 8px; overflow: auto; }
.md ul, .md ol { padding-left: 22px; }
.md blockquote { border-left: 4px solid var(--accent); margin: 10px 0; padding: 4px 14px; color: var(--muted); background: #fafbfc; }

/* ============ Account / Inquiry ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-table th, .list-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.list-table th { background: #fafbfc; color: var(--muted); font-weight: 600; }

/* ============ Admin ============ */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.admin-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; align-self: start; position: sticky; top: 110px; }
.admin-side button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; border-radius: 6px; color: var(--text); margin-bottom: 2px; }
.admin-side button.active { background: var(--primary); color: #fff; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-cards .card { text-align: center; }
.stat-cards .card.drill { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.stat-cards .card.drill:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 18px rgba(37,99,235,.14); }
.stat-cards .card.drill:active { transform: translateY(0); }
.stat-cards .drill-hint { color: var(--primary); font-weight: 600; opacity: 0; transition: opacity .12s ease; }
.stat-cards .card.drill:hover .drill-hint { opacity: 1; }
.stat-cards .card.drill:hover .num { text-decoration: underline; }
.stat-cards .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-cards .lbl { color: var(--muted); font-size: 13px; }
.toolbar-top { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar-top input, .toolbar-top select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; }

/* ============ Chat ============ */
.float-actions { position: fixed; right: 18px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.fa-btn { width: 44px; height: 44px; border-radius: 4px; background: var(--primary); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 18px; box-shadow: 0 4px 10px rgba(var(--primary-rgb),.25); position: relative; }
/* 客服未读消息角标 */
.cs-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e23b3b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; font-weight: 600; }
/* 有未读客服消息时：气泡持续脉冲 + 外圈红点，确保用户一定注意到 */
.fa-btn.has-unread { animation: csFabPulse 1.4s ease-in-out infinite; }
.fa-btn.has-unread::after { content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #e23b3b; box-shadow: 0 0 0 2px #fff; }
@keyframes csFabPulse {
  0%   { box-shadow: 0 4px 10px rgba(var(--primary-rgb),.25), 0 0 0 0 rgba(226,59,59,.55); }
  70%  { box-shadow: 0 4px 10px rgba(var(--primary-rgb),.25), 0 0 0 12px rgba(226,59,59,0); }
  100% { box-shadow: 0 4px 10px rgba(var(--primary-rgb),.25), 0 0 0 0 rgba(226,59,59,0); }
}
.fa-btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.cs-panel { position: fixed; right: 18px; bottom: 80px; width: 340px; height: 460px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; z-index: 100; }
[hidden] { display: none !important; }
.cs-header { background: var(--primary); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.cs-header button { background: none; border: none; color: #fff; font-size: 20px; }
.cs-body { flex: 1; padding: 12px; overflow-y: auto; background: #f7f8fa; }
.msg { margin-bottom: 10px; max-width: 80%; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.msg.user { background: var(--primary); color: #fff; margin-left: auto; }
.msg.cs { background: #fff; border: 1px solid var(--border); margin-right: auto; }
.cs-input { display: flex; border-top: 1px solid var(--border); }
.cs-input input { flex: 1; border: none; padding: 10px; outline: none; }
.cs-input button { border: none; background: var(--primary); color: #fff; padding: 0 16px; }

/* ============ Footer ============ */
.site-footer { background: #0C2238; color: #b8c1cc; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding: 50px 18px 30px; }
.footer-col h4 { color: #fff; margin: 0 0 16px; font-size: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 13px; }
.footer-col a { color: #b8c1cc; }
.footer-col a:hover { color: var(--accent); }
.footer-col .contact li { padding: 6px 0; }
.footer-mid { padding: 24px 18px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-mid h5 { color: #fff; font-size: 14px; margin: 0 0 6px; }
.footer-mid p { margin: 0; font-size: 12px; line-height: 1.8; color: #98a3b0; }
.copyright { padding: 18px; text-align: center; font-size: 12px; color: #7d8893; border-top: 1px solid rgba(255,255,255,.06); }
.copyright a { color: #98a3b0; }
.copyright a:hover { color: var(--accent); }

/* ============ About page ============ */
.about { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.about h1 { color: var(--primary); margin-top: 0; }
.about .lead { font-size: 16px; color: var(--text-2); margin-bottom: 24px; line-height: 1.8; }
.about .values { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.about .vcard { padding: 20px; background: #fafbfc; border-left: 3px solid var(--accent); border-radius: 4px; }
.about .vcard h4 { margin: 0 0 6px; color: var(--primary); font-size: 15px; }
.about .vcard p { margin: 0; color: var(--muted); font-size: 13px; }

/* ============ Misc ============ */
.tag-pill { display: inline-block; background: #E4EFFB; color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #eef1f5; color: #555; }
.tag-ok { background: #e6f7ec; color: #1a7f37; }
.tag-bad { background: #fdeaea; color: #c0392b; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; gap: 16px; overflow-x: auto; }
  .search-box input { width: 140px; }
  .business-grid, .promo-grid { grid-template-columns: 1fr 1fr; }
  .academy .video-row { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .footer-top, .footer-mid { grid-template-columns: 1fr; }
  .catalog, .detail, .admin, .two-col { grid-template-columns: 1fr; }
  .filter-box, .admin-side { position: static; }
}
@media (max-width: 600px) {
  .business-grid, .promo-grid { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero .slogan { font-size: 22px; letter-spacing: 4px; }
  .hero .hero-logo { height: 70px; }
  .section-title .en { font-size: 22px; letter-spacing: 3px; }
}

/* ============ 现货推荐（金蝶即时库存） ============ */
.prod-card { position: relative; }
.badge-instock {
  display: inline-block; background: #0F4C9C; color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  letter-spacing: 1px; vertical-align: middle;
}
.prod-card > .badge-instock { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* 库存分级徽标：充足(绿) / 紧张(橙) / 无库存(灰) */
.stock-badge {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 3px 9px; border-radius: 10px; vertical-align: middle; white-space: nowrap;
}
.stock-ok   { background: #e6f6ec; color: #1c7a3e; border: 1px solid #b6e2c6; }
.stock-tight{ background: #fff3e0; color: #c96a16; border: 1px solid #f4cf9b; }
.stock-out  { background: #f0f2f4; color: #8a94a2; border: 1px solid #dde2e7; }
/* 表格行内徽标略小，与数字对齐 */
.prod-table .stock-badge { font-size: 12px; padding: 2px 7px; }
.prod-table td.num .stock-badge { margin: 0; }

.instock-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, #0F4C9C 0%, #1565D8 100%);
  color: #fff; border-radius: 10px; padding: 22px 28px; margin-bottom: 18px;
}
.instock-banner h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 1px; }
.instock-banner p { margin: 0; font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.6; }
.instock-banner p b { color: var(--brand-yellow); }
.instock-stat { text-align: center; flex-shrink: 0; }
.instock-stat span { display: block; font-size: 34px; font-weight: 700; color: var(--brand-yellow); line-height: 1.1; }
.instock-stat small { font-size: 12px; color: rgba(255,255,255,.75); }

.instock-card .sku { font-size: 12px; color: #8a94a2; font-family: ui-monospace, monospace; }
.instock-card h4 { margin: 6px 0; font-size: 14px; line-height: 1.5; color: #0C2238; }
.instock-card .meta { font-size: 12px; color: #6b7684; min-height: 18px; }
.stock-line { margin-top: 8px; font-size: 13px; color: #1c7a3e; }
.stock-line b { font-size: 16px; }
.stock-line.locked { color: #8a94a2; font-size: 12px; }
.instock-card .price .member { color: var(--member-red); font-weight: 700; font-size: 16px; }
.instock-card .price .list { color: #98a2ad; text-decoration: line-through; font-size: 12px; margin-left: 6px; }

.inv-table thead th {
  background: #f2f6fa; color: #37475a; font-size: 12px;
  text-align: left; padding: 8px 10px; font-weight: 600;
}
.inv-table td b { color: #1c7a3e; }
.muted.tiny { font-size: 12px; color: #98a2ad; }

/* 商品卡片多维属性（多级分类 / 产品线 / 品牌） */
.attrs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 4px; }
.attr { font-size: 11px; color: #45556a; line-height: 1.5; }
.attr i { font-style: normal; color: #8a97a6; margin-right: 4px; }
.attr::before { content: ""; }
.instock-card .attrs { margin: 6px 0; }
.detail .spec-table td:first-child { white-space: nowrap; color: #6b7886; width: 84px; }

/* ====== 产品查询（合并现货推荐 + 产品查询）====== */
.catalog.merged { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.kd-filter { position: sticky; top: 12px; }
.mode-toggle { display: flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mode-toggle button { flex: 1; border: 0; background: #f4f7fa; padding: 9px 0; font-size: 13px; color: #55657a; cursor: pointer; }
.mode-toggle button.active { background: var(--primary); color: #fff; font-weight: 600; }
.instock-row { margin-bottom: 14px; font-size: 13px; color: #37475a; }
.instock-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.lvl-block { margin-bottom: 16px; }
.lvl-title { font-size: 12px; color: #8a97a6; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.lvl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lvl-chip { border: 1px solid var(--border); background: #fff; border-radius: 18px; padding: 6px 12px; font-size: 12px; color: #37475a; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 5px; }
.lvl-chip:hover { border-color: var(--primary); color: var(--primary); }
.lvl-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.lvl-chip .cnt { font-size: 10px; background: rgba(0,0,0,.06); border-radius: 9px; padding: 0 6px; color: inherit; }
.lvl-chip.active .cnt { background: rgba(255,255,255,.25); }
.lvl-chip.l2 { font-size: 12px; padding: 5px 11px; }
.lvl-chip.l3 { font-size: 11px; padding: 4px 10px; background: #fafcfe; }
.lvl-chip.pl { background: #f7f3ff; border-color: #e3d6fb; }
.lvl-chip.pl:hover, .lvl-chip.pl.active { border-color: #7c4dff; color: #7c4dff; }
.lvl-chip.pl.active { background: #7c4dff; border-color: #7c4dff; color: #fff; }

/* ============ 可折叠筛选组（现货页：产品线 / 品牌） ============ */
.clps { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.clps-head {
  display: flex; align-items: center; width: 100%; gap: 8px;
  padding: 10px 12px; border: none; background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--primary); text-align: left;
  transition: background .15s var(--ease);
}
.clps-head:hover { background: #FFF8DD; }
.clps-head .clps-t { flex: none; }
.clps-head .clps-hint { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: auto; }
.clps-head .clps-pick {
  font-weight: 600; font-size: 12px; color: #7A5B00; background: var(--brand-yellow);
  border-radius: 999px; padding: 1px 9px; margin-left: auto; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clps-head .clps-arrow {
  flex: none; width: 8px; height: 8px; margin-left: 6px;
  border-right: 2px solid #8a97a6; border-bottom: 2px solid #8a97a6;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.clps.open .clps-head .clps-arrow { transform: rotate(-135deg) translateY(-2px); }
.clps-body { display: none; padding: 4px 12px 12px; border-top: 1px solid var(--border); }
.clps.open .clps-body { display: block; }
.clps-ul { margin: 8px 0 0; }
.clps-body .lvl-chips { margin-top: 8px; }

/* 筛选悬停：品牌黄色高亮（产品线 / 品牌 / 分类 chip 与列表项） */
.filter-box li a:hover { background: var(--brand-yellow); color: #3A2E00; }
.lvl-chip:hover { background: var(--brand-yellow); border-color: var(--brand-yellow); color: #3A2E00; }
.lvl-chip.pl:hover { background: var(--brand-yellow); border-color: var(--brand-yellow); color: #3A2E00; }
.lvl-chip:hover .cnt { background: rgba(0,0,0,.10); }
.filter-box .clps-ul li a:hover { background: var(--brand-yellow); color: #3A2E00; }
.reset-btn { width: 100%; margin-top: 6px; }
@media (max-width: 880px) {
  .catalog.merged { grid-template-columns: 1fr; }
  .kd-filter { position: static; }
}

/* ====== 产品查询表格视图 ====== */
.table-wrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 10px; }
.prod-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.prod-table thead th {
  background: #f4f7fb; color: #45556a; font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12px;
}
.prod-table th.num, .prod-table td.num { text-align: right; }
.prod-table th.sortable { cursor: pointer; user-select: none; }
.prod-table th.sortable:hover { color: var(--primary); }
.prod-table th.sortable.sorted { color: var(--primary); }
.sort-label { font-size: 13px; color: var(--muted); margin-left: 8px; }
.sort-select { height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font-size: 13px; background: #fff; }
.prod-table tbody td { padding: 10px 12px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.prod-table tbody tr:hover { background: #F1F6FB; }
.prod-table .sku { font-family: ui-monospace, monospace; color: #6b7886; white-space: nowrap; }
.prod-table .pname { max-width: 320px; }
.prod-table .pname a { color: #0C2238; font-weight: 500; }
.prod-table .pname a:hover { color: var(--primary); }
.prod-table .instock-num { color: #1c7a3e; }
.prod-table .lock { color: #98a2ad; font-size: 12px; }
.prod-table .op .btn-sm { padding: 5px 12px; font-size: 12px; }

/* ============ 购物车角标 ============ */
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 4px;
  background: var(--danger); color: #fff; border-radius: 9px;
  font-size: 11px; line-height: 16px; font-weight: 700; vertical-align: middle;
}

/* ============ 购物车 / 结算 ============ */
.cart-table td.num, .checkout-table td.num { text-align: right; }
.cart-table .sku, .checkout-table .sku { font-family: ui-monospace, monospace; color: #6b7886; white-space: nowrap; }
.cart-table .pname a, .checkout-table .pname a { color: #0C2238; font-weight: 500; }
.cart-table .pname a:hover, .checkout-table .pname a:hover { color: var(--primary); }

.qty-edit { display: inline-flex; align-items: center; gap: 4px; }
.qty-edit button {
  width: 26px; height: 26px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; font-size: 15px; line-height: 1; color: var(--primary);
}
.qty-edit button:hover { background: var(--bg-soft); }
.qty-edit input.qty-input {
  width: 48px; height: 26px; text-align: center; border: 1px solid var(--border);
  border-radius: 6px; padding: 0 4px;
}

.cart-foot, .checkout-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-top: 18px; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.cart-summary, .checkout-summary { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.cart-total { font-size: 15px; }
.cart-total b, .cart-summary b { color: var(--primary); font-size: 18px; }
.cart-actions { display: flex; gap: 10px; }

.checkout-foot { display: block; }
.checkout-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
}
.checkout-fields .field { display: flex; flex-direction: column; margin-bottom: 0; }
.checkout-fields .field label { width: auto; margin-bottom: 5px; font-size: 13px; }
.checkout-fields .field-wide { grid-column: 1 / -1; }
.checkout-actions { display: flex; gap: 12px; margin: 16px 0 4px; }
.checkout-fields .field input {
  width: 100%; max-width: none; box-sizing: border-box;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px;
}
.req { color: var(--danger); font-weight: 600; }
.checkout-summary { margin: 16px 0 8px; }
.warn { color: var(--danger); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .checkout-fields { grid-template-columns: 1fr; }
}

/* ============ 顶部轻提示 Toast（醒目动态渐变，不含 URL） ============ */
.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 99999;
  max-width: min(88vw, 520px);
  padding: 12px 12px 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  background: linear-gradient(120deg,
    hsl(var(--toast-hue, 210) 92% 55%),
    hsl(calc(var(--toast-hue, 210) + 50) 88% 50%),
    hsl(calc(var(--toast-hue, 210) + 110) 85% 52%));
  background-size: 220% 220%;
  /* 只保留背景流动动画：入场/退场一律交给 transition。
     切勿再用 animation + fill-mode:forwards 控制 opacity/transform——
     动画值位于级联的动画层，优先级高于任何普通声明，
     会导致移除 .show 后 toast 依然可见（表现为点 × 关不掉）。 */
  animation: toastBg 3.2s ease infinite;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -140%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1),
              opacity .24s ease,
              visibility 0s linear .3s;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;             /* 隐藏时不可交互，避免挡住页面点击 */
}
.app-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;             /* 显示时允许点击 × 关闭 */
  transition: transform .3s cubic-bezier(.22, 1, .36, 1),
              opacity .2s ease,
              visibility 0s;
  cursor: pointer;
}
.app-toast-msg { flex: 1; }
.app-toast-close {
  border: none; background: rgba(255,255,255,.25); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer; flex: none;
  padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.app-toast-close:hover { background: rgba(255,255,255,.45); transform: rotate(90deg); }
.app-toast.toast-error {
  background: linear-gradient(120deg, #ff5f6d, #ff9966, #ff5f6d);
  background-size: 220% 220%;
}
.app-toast.toast-success {
  background: linear-gradient(120deg, #11998e, #38ef7d, #11998e);
  background-size: 220% 220%;
}
@keyframes toastBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== 通用弹窗（售罄提示等） ===== */
.app-modal-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modalMaskIn .16s ease-out;
}
.app-modal {
  background: #fff; border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
  width: 100%; max-width: 420px;
  padding: 22px 22px 18px;
  animation: modalIn .18s ease-out;
}
.app-modal-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fef2f2; color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin-bottom: 12px;
}
.app-modal-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.app-modal-body { font-size: 14px; line-height: 1.6; color: #475569; }
.app-modal-body .soldout-list {
  margin-top: 10px; padding: 10px 12px;
  background: #f8fafc; border-radius: 8px;
  font-size: 13px; color: #64748b; max-height: 160px; overflow: auto;
}
.app-modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.app-modal-actions .btn { min-width: 76px; }
/* 右上角关闭按钮 × */
.app-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border: none; background: transparent;
  font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer;
  border-radius: 8px; transition: background .15s, color .15s;
}
.app-modal-close:hover { background: #f1f5f9; color: #334155; }
.app-modal { position: relative; }
@keyframes modalMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============================================================
   移动端适配（手机 / 小平板竖屏）
   设计目标：按手机屏幕宽度自适应布局，菜单折叠为汉堡抽屉，
   宽表格转为可横向滑动，按钮与表单触控友好（≥40px）。
   ============================================================ */
/* 汉堡按钮桌面端默认隐藏 */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  /* ---------- 顶部导航：logo + 汉堡 + 全宽搜索 + 抽屉菜单 ---------- */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
    position: relative;
  }
  .logo { align-self: flex-start; }
  .logo img { height: 42px; }
  .nav-toggle {
    position: absolute;
    top: 10px;
    right: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    border: none;
    background: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 5;
  }
  .nav-toggle i { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; }
  .nav-toggle:active { background: var(--primary-dark); }
  .search-box {
    order: 2;
    width: 100%;
    height: 40px;
  }
  .search-box input { width: 100%; flex: 1; }
  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
    display: none;                 /* 默认收起，点击汉堡展开 */
    background: #fff;
    border-top: 1px solid var(--border);
    margin: 0 -14px;
    padding: 4px 14px 10px;
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 13px 10px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active {
    background: transparent;
    color: var(--primary);
    border-radius: 0;
    padding: 13px 10px;
  }
  .main-nav a.active::after { display: none; }
  .cart-badge { margin-left: 6px; }

  /* ---------- 顶部账户条 ---------- */
  .account-bar .container { flex-wrap: wrap; height: auto; padding: 6px 0; gap: 4px 6px; }
  .account-bar a { margin-left: 0; margin-right: 14px; }

  /* ---------- 容器与间距 ---------- */
  main { padding: 16px 14px 56px; }
  .container { padding: 0 14px; }
  .section-title { margin: 32px 0 18px; }
  .section-title .en { font-size: 22px; letter-spacing: 3px; }

  /* ---------- 首页 Hero ---------- */
  .hero { height: 300px; border-radius: 0; }
  .hero .hero-logo { height: 62px; }
  .hero .slogan { font-size: 20px; letter-spacing: 3px; }

  /* ---------- 卡片网格：两列起步 ---------- */
  .business-grid, .promo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .biz-card { height: 150px; }
  .biz-card h4 { font-size: 18px; }
  .grid.cats { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .grid.products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .grid.kb { grid-template-columns: 1fr; }
  .news .item { gap: 14px; }
  .news .item .num { font-size: 28px; }
  .academy { padding: 40px 0; }
  .academy .video-row { gap: 14px; }

  /* ---------- 产品查询 / 现货 ---------- */
  .catalog.merged { grid-template-columns: 1fr; gap: 14px; }
  .kd-filter { position: static; }
  .toolbar { gap: 8px; }
  .toolbar input[type=text] { min-width: 0; width: 100%; flex: 1 1 100%; }
  .search-field { flex: 1 1 100%; max-width: none; height: 44px; }
  .search-field .sf-btn { padding: 0 16px; }
  .history-toolbar input[type=text] { min-width: 0; width: 100%; }
  .toolbar-top input, .toolbar-top select { flex: 1 1 100%; }
  .lvl-chip { padding: 8px 13px; }   /* 加大触控区域 */
  .lvl-chip.l2 { padding: 7px 12px; }
  .lvl-chip.l3 { padding: 6px 11px; }
  .clps-head { padding: 12px; }      /* 折叠标题加大触控区域 */

  /* ---------- 表格：移动端横向滑动，不撑破页面 ---------- */
  .table-wrap {
    margin: 0 -14px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }
  .prod-table, .list-table, .cart-table, .checkout-table, .orders-table {
    width: 100%;
    font-size: 13px;
  }
  .prod-table td, .list-table td,
  .cart-table td, .checkout-table td, .orders-table td {
    white-space: nowrap;
  }
  /* 但商品名称允许换行，避免单行过宽 */
  .prod-table .pname, .list-table .pname { white-space: normal; max-width: 150px; }
  .prod-table .pname a { white-space: normal; }
  .prod-table thead th, .list-table th,
  .cart-table thead th, .checkout-table thead th, .orders-table thead th {
    position: sticky; top: 0;
  }

  /* ---------- 商品详情 ---------- */
  .detail { gap: 16px; }
  .detail .info h1 { font-size: 20px; }
  .spec-table td:first-child { width: 84px; white-space: nowrap; }
  .price-box .member.big, .price-box .list.big { font-size: 22px; }

  /* ---------- 购物车 / 结算 ---------- */
  .cart-foot, .checkout-foot { padding: 14px; gap: 12px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .qty-edit button { width: 30px; height: 30px; }
  .qty-edit input.qty-input { width: 44px; height: 30px; }
  .cart-summary, .checkout-summary { flex-wrap: wrap; gap: 10px; }

  /* ---------- 即时库存横幅 ---------- */
  .instock-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
  }
  .instock-stat {
    align-self: stretch;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .instock-stat span { font-size: 26px; }
  .instock-stat small { font-size: 12px; }

  /* ---------- 多列布局统一单列 ---------- */
  .two-col { grid-template-columns: 1fr; }
  .footer-top, .footer-mid { grid-template-columns: 1fr; gap: 24px; padding-left: 14px; padding-right: 14px; }

  /* ---------- 关于 / 文章 / 登录注册 ---------- */
  .about { padding: 24px 18px; }
  .article { padding: 22px 16px; }
  .auth-wrap { margin: 24px 14px; padding: 22px 18px; }

  /* ---------- 管理后台：侧栏横向化 ---------- */
  .admin { grid-template-columns: 1fr; }
  .admin-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-side button { width: auto; flex: 1 1 auto; text-align: center; margin-bottom: 0; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  /* ---------- 客服面板：手机全屏抽屉 ---------- */
  .float-actions { right: 14px; bottom: 18px; }
  .fa-btn { width: 46px; height: 46px; font-size: 20px; }
  .cs-panel {
    right: 0; left: 0; bottom: 0; top: auto;
    width: 100%;
    height: 78vh;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 480px) {
  .business-grid, .promo-grid { grid-template-columns: 1fr; }
  .grid.products { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 260px; }
  .hero .slogan { font-size: 18px; letter-spacing: 2px; }
  .section-title .en { font-size: 18px; letter-spacing: 2px; }
  .cart-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .cart-actions .btn { width: 100%; }
  .cust-type-box { gap: 8px; }
}

/* 横屏小高度时，客服抽屉不要盖住太多 */
@media (max-width: 768px) and (max-height: 520px) {
  .cs-panel { height: 90vh; }
}


/* ============================================================
   强制手机模式（网页端「手机版」按钮切换：给 <body> 加 .mobile-view）
   复用上方 @media(max-width:768px)/(max-width:480px) 的同款布局，
   使桌面宽度下也能呈现手机版样式。
   ============================================================ */
/* --- 768 强制版 --- */
body.mobile-view .header-inner {
  flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
    position: relative;
}
body.mobile-view .logo {
  align-self: flex-start;
}
body.mobile-view .logo img {
  height: 42px;
}
body.mobile-view .nav-toggle {
  position: absolute;
    top: 10px;
    right: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    border: none;
    background: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 5;
}
body.mobile-view .nav-toggle i {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px;
}
body.mobile-view .nav-toggle:active {
  background: var(--primary-dark);
}
body.mobile-view .search-box {
  order: 2;
    width: 100%;
    height: 40px;
}
body.mobile-view .search-box input {
  width: 100%; flex: 1;
}
body.mobile-view .main-nav {
  order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
    display: none;                 
    background: #fff;
    border-top: 1px solid var(--border);
    margin: 0 -14px;
    padding: 4px 14px 10px;
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.mobile-view .main-nav.open {
  display: flex;
}
body.mobile-view .main-nav a {
  padding: 13px 10px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
}
body.mobile-view .main-nav a:last-child {
  border-bottom: none;
}
body.mobile-view .main-nav a.active {
  background: transparent;
    color: var(--primary);
    border-radius: 0;
    padding: 13px 10px;
}
body.mobile-view .main-nav a.active::after {
  display: none;
}
body.mobile-view .cart-badge {
  margin-left: 6px;
}
body.mobile-view .account-bar .container {
  flex-wrap: wrap; height: auto; padding: 6px 0; gap: 4px 6px;
}
body.mobile-view .account-bar a {
  margin-left: 0; margin-right: 14px;
}
body.mobile-view main {
  padding: 16px 14px 56px;
}
body.mobile-view .container {
  padding: 0 14px;
}
body.mobile-view .section-title {
  margin: 32px 0 18px;
}
body.mobile-view .section-title .en {
  font-size: 22px; letter-spacing: 3px;
}
body.mobile-view .hero {
  height: 300px; border-radius: 0;
}
body.mobile-view .hero .hero-logo {
  height: 62px;
}
body.mobile-view .hero .slogan {
  font-size: 20px; letter-spacing: 3px;
}
body.mobile-view .business-grid, body.mobile-view .promo-grid {
  grid-template-columns: 1fr 1fr; gap: 12px;
}
body.mobile-view .biz-card {
  height: 150px;
}
body.mobile-view .biz-card h4 {
  font-size: 18px;
}
body.mobile-view .grid.cats {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
}
body.mobile-view .grid.products {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
body.mobile-view .grid.kb {
  grid-template-columns: 1fr;
}
body.mobile-view .news .item {
  gap: 14px;
}
body.mobile-view .news .item .num {
  font-size: 28px;
}
body.mobile-view .academy {
  padding: 40px 0;
}
body.mobile-view .academy .video-row {
  gap: 14px;
}
body.mobile-view .catalog.merged {
  grid-template-columns: 1fr; gap: 14px;
}
body.mobile-view .kd-filter {
  position: static;
}
body.mobile-view .toolbar {
  gap: 8px;
}
body.mobile-view .toolbar input[type=text] {
  min-width: 0; width: 100%; flex: 1 1 100%;
}
body.mobile-view .history-toolbar input[type=text] {
  min-width: 0; width: 100%;
}
body.mobile-view .toolbar-top input, body.mobile-view .toolbar-top select {
  flex: 1 1 100%;
}
body.mobile-view .lvl-chip {
  padding: 8px 13px;
}
body.mobile-view .lvl-chip.l2 {
  padding: 7px 12px;
}
body.mobile-view .lvl-chip.l3 {
  padding: 6px 11px;
}
body.mobile-view .table-wrap {
  margin: 0 -14px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
}
body.mobile-view .prod-table, body.mobile-view .list-table, body.mobile-view .cart-table, body.mobile-view .checkout-table, body.mobile-view .orders-table {
  width: 100%;
    font-size: 13px;
}
body.mobile-view .prod-table td, body.mobile-view .list-table td, body.mobile-view .cart-table td, body.mobile-view .checkout-table td, body.mobile-view .orders-table td {
  white-space: nowrap;
}
body.mobile-view .prod-table .pname, body.mobile-view .list-table .pname {
  white-space: normal; max-width: 150px;
}
body.mobile-view .prod-table .pname a {
  white-space: normal;
}
body.mobile-view .prod-table thead th, body.mobile-view .list-table th, body.mobile-view .cart-table thead th, body.mobile-view .checkout-table thead th, body.mobile-view .orders-table thead th {
  position: sticky; top: 0;
}
body.mobile-view .detail {
  gap: 16px;
}
body.mobile-view .detail .info h1 {
  font-size: 20px;
}
body.mobile-view .spec-table td:first-child {
  width: 84px; white-space: nowrap;
}
body.mobile-view .price-box .member.big, body.mobile-view .price-box .list.big {
  font-size: 22px;
}
body.mobile-view .cart-foot, body.mobile-view .checkout-foot {
  padding: 14px; gap: 12px;
}
body.mobile-view .checkout-fields {
  grid-template-columns: 1fr;
}
body.mobile-view .qty-edit button {
  width: 30px; height: 30px;
}
body.mobile-view .qty-edit input.qty-input {
  width: 44px; height: 30px;
}
body.mobile-view .cart-summary, body.mobile-view .checkout-summary {
  flex-wrap: wrap; gap: 10px;
}
body.mobile-view .instock-banner {
  flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
}
body.mobile-view .instock-stat {
  align-self: stretch;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
body.mobile-view .instock-stat span {
  font-size: 26px;
}
body.mobile-view .instock-stat small {
  font-size: 12px;
}
body.mobile-view .two-col {
  grid-template-columns: 1fr;
}
body.mobile-view .footer-top, body.mobile-view .footer-mid {
  grid-template-columns: 1fr; gap: 24px; padding-left: 14px; padding-right: 14px;
}
body.mobile-view .about {
  padding: 24px 18px;
}
body.mobile-view .article {
  padding: 22px 16px;
}
body.mobile-view .auth-wrap {
  margin: 24px 14px; padding: 22px 18px;
}
body.mobile-view .admin {
  grid-template-columns: 1fr;
}
body.mobile-view .admin-side {
  position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.mobile-view .admin-side button {
  width: auto; flex: 1 1 auto; text-align: center; margin-bottom: 0;
}
body.mobile-view .stat-cards {
  grid-template-columns: repeat(2, 1fr);
}
body.mobile-view .float-actions {
  right: 14px; bottom: 18px;
}
body.mobile-view .fa-btn {
  width: 46px; height: 46px; font-size: 20px;
}
body.mobile-view .cs-panel {
  right: 0; left: 0; bottom: 0; top: auto;
    width: 100%;
    height: 78vh;
    border-radius: 16px 16px 0 0;
}
/* --- 480 强制版 --- */
body.mobile-view .business-grid, body.mobile-view .promo-grid {
  grid-template-columns: 1fr;
}
body.mobile-view .grid.products {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
body.mobile-view .stat-cards {
  grid-template-columns: repeat(2, 1fr);
}
body.mobile-view .hero {
  height: 260px;
}
body.mobile-view .hero .slogan {
  font-size: 18px; letter-spacing: 2px;
}
body.mobile-view .section-title .en {
  font-size: 18px; letter-spacing: 2px;
}
body.mobile-view .cart-actions {
  flex-direction: column; align-items: stretch; gap: 8px;
}
body.mobile-view .cart-actions .btn {
  width: 100%;
}
body.mobile-view .cust-type-box {
  gap: 8px;
}
/* 强制手机模式（网页端手动切换）下：切换按钮保持可见，方便随时切回电脑版。
   真实手机端由下方 @media(max-width:768px) 隐藏，无需此按钮。 */
body.mobile-view .view-toggle-btn { z-index: 95; }

/* ============================================================
   桌面端「手机版」切换浮动按钮（真实移动端自动隐藏）
   放在左下角，避免与右侧「客服/电话/回到顶部」悬浮列重叠
   ============================================================ */
.view-toggle-btn {
  position: fixed; left: 14px; bottom: 24px; z-index: 95;
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px;
  border: none; background: var(--primary); color: #fff;
  border-radius: 22px; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.view-toggle-btn:active { background: var(--primary-dark); }
.view-toggle-btn .ico { font-size: 17px; line-height: 1; }

/* 网页端强制手机模式：把内容收束成手机宽度的居中视口，预览更逼真 */
body.mobile-view {
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 0 100vmax #eef1f5;
  min-height: 100vh;
}
@media (max-width: 768px) { .view-toggle-btn { display: none; } }

/* ============================================================
   产品图标：按名称匹配生物 · 试剂 · 实验类目小图标（便于区分识别）
   ============================================================ */
.prod-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 96px; margin-bottom: 14px;
  border-radius: var(--radius);
  background: #EAF1F9; /* 回退 */
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic) 14%, #fff), color-mix(in srgb, var(--ic) 5%, #fff));
  border: 1px solid color-mix(in srgb, var(--ic) 18%, #fff);
}
.prod-ic { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ic); }
.prod-ic svg { width: 42px; height: 42px; display: block; }
.prod-ic em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--ic); }
.row-ic { display: inline-flex; vertical-align: middle; margin-right: 7px; color: var(--ic); }
.row-ic svg { width: 18px; height: 18px; display: block; }

/* 移动端：产品卡片里的图标缩略区略缩小 */
@media (max-width: 768px) {
  .prod-thumb { height: 84px; }
  .prod-ic svg { width: 38px; height: 38px; }
}

/* ---- 产品说明书区块（详情页 + 后台） ---- */
.btn-sm { padding: 5px 12px; font-size: 12px; line-height: 1.4; }
.manual-box { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfe; }
.manual-box h3 { margin: 0 0 8px; font-size: 16px; }
.manual-ok { color: #1c7a3e; font-weight: 600; margin: 0 0 10px; }
.manual-none { color: #b8860b; font-weight: 600; margin: 0 0 8px; }
.manual-box .muted { margin: 4px 0; }
.manual-box .btn { margin-right: 8px; }
/* 详情页「产品说明书」：仅保留 查看/下载/重新抓取 操作，隐藏说明性注释文案（📄已找到/⚠暂未找到/加载中…） */
#manualBody > p { display: none; }

/* 详情页说明书：已找到官方 PDF 时通过「查看说明书」新窗口打开、「下载说明书」下载，
   不内嵌预览（避免大体积 PDF 拖慢详情页加载） */
.manual-pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }

/* 产品二维码：详情页可下载/打印 */
.qr-box { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfe; text-align: center; }
.qr-box h3 { margin: 0 0 6px; font-size: 16px; }
.qr-box .muted { margin: 4px 0 10px; font-size: 13px; }
.qr-img-wrap { display: flex; justify-content: center; }
.qr-img-wrap img { width: 200px; height: 200px; border: 6px solid #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.08); background: #fff; }
.qr-actions { margin-top: 12px; }
.qr-actions .btn { margin: 0 5px; }
.spin { display: inline-block; animation: manual-spin 1s linear infinite; }
@keyframes manual-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---- 品牌可搜索下拉（说明书抓取：按品牌批量抓取） ---- */
.sel { position: relative; }
.sel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 12px; font-size: 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--muted);
}
.sel-btn:hover { border-color: #9db4d8; }
.sel.open .sel-btn { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sel-label.picked { color: var(--text); font-weight: 600; }
.sel-arrow { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.sel.open .sel-arrow { transform: rotate(-135deg) translateY(-2px); }

.sel-panel {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16,24,40,.14); overflow: hidden;
}
.sel-search { padding: 8px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.sel-search input {
  width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--border);
  border-radius: 7px; box-sizing: border-box;
}
.sel-search input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sel-list { list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; }
.sel-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px;
}
.sel-item .si-name { font-weight: 600; color: var(--text); }
.sel-item .si-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sel-item .si-meta b { color: #b45309; font-weight: 600; }
.sel-item:hover, .sel-item.hl { background: #eef4ff; }
.sel-item.hl .si-name { color: #2563eb; }
.sel-item.on { background: #e7f0ff; }
.sel-item.on .si-name { color: #2563eb; }
.sel-item.on::after { content: '✓'; color: #2563eb; font-weight: 700; margin-left: 6px; }
.sel-empty { padding: 16px 12px; text-align: center; color: var(--muted); font-size: 13px; list-style: none; }
.sel-foot { padding: 7px 12px; border-top: 1px solid var(--border); background: #fafbfc; font-size: 12px; }
@media (max-width: 768px) {
  .sel-panel { position: static; margin-top: 6px; }
  .sel-item { flex-direction: column; gap: 2px; }
  .sel-item .si-meta { white-space: normal; }
}

/* ---- 产品说明书统计卡：可点击穿透 ---- */
.stat-click { cursor: pointer; transition: box-shadow .15s, transform .15s; position: relative; }
.stat-click:hover { box-shadow: 0 6px 18px rgba(37,99,235,.16); transform: translateY(-2px); }
.stat-click:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.stat-click .lbl { color: #2563eb; }

/* ================= 联系我们 · 地图与交通导航 ================= */
.contact-map {
  margin: 34px auto 10px;
  max-width: 1180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(var(--primary-rgb), .06);
}
.contact-map.is-full { max-width: none; margin-top: 40px; }

.cm-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0; }
.cm-head .section-title { padding: 0; }
.cm-body { display: grid; grid-template-columns: 320px 1fr; gap: 0; }

/* 左：公司信息 */
.cm-info { padding: 18px 24px; border-right: 1px solid var(--border); }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.cm-list li { display: flex; gap: 11px; align-items: flex-start; }
.cm-list .ic { font-size: 17px; line-height: 1.35; flex-shrink: 0; }
.cm-list b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.cm-list p { margin: 2px 0 0; font-size: 14px; color: var(--ink); line-height: 1.55; }
.cm-list a { color: var(--link); text-decoration: none; }
.cm-list a:hover { text-decoration: underline; }

/* 右：地图 */
.cm-map-wrap { position: relative; min-height: 320px; }
.cm-map { width: 100%; height: 100%; min-height: 320px; position: relative; background: var(--bg-soft); }
.cm-map-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; flex-direction: column; gap: 8px; text-align: center; padding: 20px;
}
.cm-map-fallback { display: flex; align-items: center; justify-content: center; }
.cm-map-fallback .fb-inner { text-align: center; padding: 28px 20px; }
.cm-map-fallback .fb-pin { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.cm-map-fallback .fb-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.cm-marker {
  background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

/* 路线规划条 */
.cm-route { padding: 16px 24px 20px; border-top: 1px solid var(--border); background: #fbfdff; }
.cm-route-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.cm-origin-label {
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; flex-shrink: 0;
}
.cm-origin-box { position: relative; flex: 1; display: flex; gap: 8px; }
.cm-origin-box input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s;
}
.cm-origin-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,101,216,.10); }
.cm-locate { white-space: nowrap; padding: 8px 13px; font-size: 13px; }

.cm-mode-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-mode {
  padding: 7px 14px; border: 1px solid var(--border); background: #fff; border-radius: 20px;
  font-size: 13px; cursor: pointer; color: var(--ink-2); transition: all .15s; white-space: nowrap;
}
.cm-mode:hover { border-color: var(--accent); color: var(--accent); }
.cm-mode.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.cm-ext { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cm-link {
  background: none; border: 1px dashed var(--border); border-radius: 6px; color: var(--link);
  font-size: 12.5px; padding: 4px 10px; cursor: pointer; transition: all .15s;
}
.cm-link:hover { border-color: var(--accent); background: #eef4ff; }

.cm-result { margin-top: 13px; font-size: 14px; color: var(--ink); }
.cm-sum {
  background: #eef4ff; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  padding: 11px 14px; line-height: 1.7;
}
.cm-sum b { color: var(--primary); }
.cm-steps { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.cm-err { color: #b91c1c; background: #fef2f2; border-left: 3px solid #dc2626; padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* 起点自动补全下拉 */
.cm-ac {
  position: absolute; top: calc(100% + 4px); left: 0; right: 88px; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(12,34,56,.13); max-height: 264px; overflow-y: auto;
}
.cm-ac-item { padding: 9px 13px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.cm-ac-item:last-child { border-bottom: none; }
.cm-ac-item:hover { background: #eef4ff; }
.cm-ac-item b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.cm-ac-item span { font-size: 12px; color: var(--muted); }

/* 首页精简版：地图矮一些，信息更紧凑 */
.contact-map.is-slim .cm-map-wrap, .contact-map.is-slim .cm-map { min-height: 260px; }
.contact-map.is-slim .cm-info { padding: 16px 20px; }
.contact-map.is-slim .cm-route { padding: 14px 20px 18px; }

@media (max-width: 860px) {
  .cm-body { grid-template-columns: 1fr; }
  .cm-info { border-right: none; border-bottom: 1px solid var(--border); }
  .cm-route-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .cm-origin-label { font-size: 12px; }
  .cm-ac { right: 0; }
  .cm-mode-row { flex-direction: column; align-items: stretch; }
  .cm-mode-row .btn { width: 100%; }
  .cm-modes { justify-content: space-between; }
  .cm-mode { flex: 1; text-align: center; padding: 7px 6px; }
}

/* 地图模块内联 SVG 图标尺寸 */
.cm-list .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); display: inline-flex; margin-top: 1px; }
.cm-list .ic svg { width: 100%; height: 100%; }
.cm-locate svg, .cm-mode svg { width: 15px; height: 15px; vertical-align: -2px; }
.cm-mode { display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.cm-map-fallback .fb-pin svg { width: 40px; height: 40px; color: var(--primary); }
.cm-map-fallback .fb-pin { display: flex; justify-content: center; margin-bottom: 12px; }
.cm-locate { display: inline-flex; align-items: center; gap: 5px; }

/* ============ 说明书批量上传拖拽区 ============ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dropzone:hover { border-color: var(--primary); }
.dropzone.drag {
  border-color: var(--primary);
  background: rgba(37,99,235,.06);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) inset;
}
.dropzone .dz-inner { pointer-events: none; }
.dropzone .dz-inner a { pointer-events: auto; }

/* ============================================================
   节假日主题（22j）：按当前日期自动切换首页风格
   每个节日覆盖主色组 + Hero 蒙版 + 角标 emoji，全局联动
   ============================================================ */

/* 节日角标：固定在右侧中部，不挡 sticky header 与右下浮动按钮 */
.festival-badge {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 45;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), .18);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: default;
}
.festival-badge .fb-emoji { font-size: 18px; line-height: 1; }
.festival-badge .fb-close {
  margin-left: 2px; border: none; background: transparent; color: var(--muted);
  font-size: 15px; line-height: 1; cursor: pointer; padding: 0 0 0 4px;
}
.festival-badge .fb-close:hover { color: var(--text); }

/* 首页 Hero 节日口号（slogan 下方小字） */
.hero .festival-slogan {
  margin-top: 14px; font-size: 15px; font-weight: 500; letter-spacing: 2px;
  color: #fff; opacity: .92; text-shadow: 0 1px 6px rgba(0,0,0,.45);
}

/* —— 元旦：冰蓝 → 松绿，辞旧迎新 —— */
.theme-newyear {
  --primary: #1B6CA8; --primary-dark: #12517E; --primary-light: #5FA8D6;
  --accent: #0E7C7B; --accent-dark: #0B5E5D; --link: #1B6CA8;
  --primary-rgb: 27,108,168; --brand-l: #E6F1F8;
  --hero-overlay: linear-gradient(180deg, rgba(27,108,168,.42), rgba(14,124,123,.72));
  --festival-emoji: "🎊";
}
/* —— 春节：朱红 → 鎏金，家国团圆 —— */
.theme-spring {
  --primary: #C8102E; --primary-dark: #8E0B20; --primary-light: #E0556B;
  --accent: #D4AF37; --accent-dark: #B8932C; --link: #C8102E;
  --primary-rgb: 200,16,46; --brand-l: #FBE9EC; --member-red: #C8102E;
  --hero-overlay: linear-gradient(180deg, rgba(200,16,46,.52), rgba(212,175,55,.25));
  --festival-emoji: "🏮";
}
/* —— 清明：柳绿 → 苔绿，青绿慎远 —— */
.theme-qingming {
  --primary: #4A7C59; --primary-dark: #355A40; --primary-light: #7FA98C;
  --accent: #7A8B6F; --accent-dark: #5C6B52; --link: #4A7C59;
  --primary-rgb: 74,124,89; --brand-l: #E9F1EB;
  --hero-overlay: linear-gradient(180deg, rgba(74,124,89,.4), rgba(53,90,64,.72));
  --festival-emoji: "🌿";
}
/* —— 五一：暖橙 → 草绿，劳作生长 —— */
.theme-labour {
  --primary: #E8842B; --primary-dark: #B5631C; --primary-light: #F0A860;
  --accent: #6B8E23; --accent-dark: #4F6B18; --link: #E8842B;
  --primary-rgb: 232,132,43; --brand-l: #FCEFE1; --brand-yellow: #E8842B;
  --hero-overlay: linear-gradient(180deg, rgba(232,132,43,.4), rgba(107,142,35,.72));
  --festival-emoji: "🌻";
}
/* —— 端午：艾草绿 → 龙舟蓝，传统水波 —— */
.theme-dragon {
  --primary: #2E7D52; --primary-dark: #1E5638; --primary-light: #5AA67C;
  --accent: #1565C0; --accent-dark: #0F4C9C; --link: #2E7D52;
  --primary-rgb: 46,125,82; --brand-l: #E6F1EA;
  --hero-overlay: linear-gradient(180deg, rgba(46,125,82,.42), rgba(21,101,192,.7));
  --festival-emoji: "🐉";
}
/* —— 中秋：夜空蓝 → 暖金月，月夜团圆 —— */
.theme-mid {
  --primary: #1A2A4F; --primary-dark: #101C36; --primary-light: #4A5E8A;
  --accent: #E8C547; --accent-dark: #C9A82E; --link: #1A2A4F;
  --primary-rgb: 26,42,79; --brand-l: #E7EAF3;
  --hero-overlay: linear-gradient(180deg, rgba(26,42,79,.55), rgba(26,42,79,.82));
  --festival-emoji: "🌕";
}
/* —— 国庆：正红 → 亮金，庄重华诞 —— */
.theme-national {
  --primary: #DE2910; --primary-dark: #A81E0A; --primary-light: #E8624C;
  --accent: #FFD700; --accent-dark: #D4AF37; --link: #DE2910;
  --primary-rgb: 222,41,16; --brand-l: #FCE7E2; --member-red: #DE2910;
  --hero-overlay: linear-gradient(180deg, rgba(222,41,16,.5), rgba(168,30,10,.78));
  --festival-emoji: "✦";
}

/* ============================================================
   产品对比（22k）：对比按钮 / 浮动对比栏 / 对比表 / 智能建议
   ============================================================ */
.prod-card { position: relative; }

/* 卡片底部对比按钮 */
.card-actions { margin-top: 10px; display: flex; }
.cmp-toggle {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--primary); color: var(--primary);
  background: transparent; transition: background .15s, color .15s, border-color .15s;
  width: 100%;
}
.cmp-toggle:hover { background: rgba(var(--primary-rgb), .08); }
.cmp-toggle.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cmp-toggle-sm { width: auto; padding: 4px 10px; font-size: 12px; margin-top: 4px; }

/* 详情页对比按钮行 */
.detail-compare-row { margin-top: 12px; }

/* 浮动对比栏 */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
}
.compare-bar.show { display: block; animation: cmpSlideUp .2s ease; }
.cmp-bar-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cmp-bar-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cmp-bar-label b { color: var(--primary); }
.cmp-chips { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; overflow-x: auto; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: rgba(var(--primary-rgb), .1); color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), .25); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px;
}
.cmp-chip-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.cmp-x { border: none; background: transparent; color: var(--primary); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cmp-x:hover { color: var(--member-red); }
.cmp-bar-actions { display: flex; gap: 8px; margin-left: auto; }
.cmp-bar-actions .is-disabled { opacity: .45; cursor: not-allowed; }

/* 对比页 */
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.compare-title { font-size: 24px; margin: 0 0 4px; }
.compare-head-actions { display: flex; gap: 8px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: top; text-align: left; font-size: 13px; }
.compare-table .cmp-rowhead { background: #f6f8fb; font-weight: 600; color: var(--text); position: sticky; left: 0; z-index: 2; white-space: nowrap; min-width: 84px; }
.compare-table .cmp-corner { z-index: 3; }
.compare-table thead .cmp-col { background: var(--surface); min-width: 180px; vertical-align: top; }
.cmp-prod { position: relative; }
.cmp-prod-ico { font-size: 26px; }
.cmp-prod-name { font-weight: 700; font-size: 14px; margin: 6px 0 2px; line-height: 1.3; }
.cmp-prod-no { color: var(--muted); font-size: 12px; }
.cmp-prod-link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--primary); }
.cmp-col-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--member-red); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.cmp-cell { color: var(--text); }
.cmp-cell .tag-best { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ok, #1F9D55); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.locked-cell { color: var(--muted); font-size: 12px; }

/* 智能建议 */
.advice { margin: 26px 0 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(var(--primary-rgb), .04), transparent); }
.advice-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.advice-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary); background: rgba(var(--primary-rgb), .12); padding: 3px 10px; border-radius: 6px; }
.advice-head h3 { margin: 0; font-size: 18px; }
.advice-hero { font-size: 15px; line-height: 1.6; margin: 6px 0 14px; }
.advice-hero b { color: var(--member-red); }
.advice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.advice-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.advice-card-tag { font-size: 13px; font-weight: 700; color: var(--ok, #1F9D55); margin-bottom: 4px; }
.advice-card-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.35; }
.advice-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.advice-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.compare-empty { text-align: center; padding: 60px 20px; }
.compare-empty-ico { font-size: 48px; margin-bottom: 8px; }
.compare-tip { margin-top: 16px; font-size: 12px; }
.compare-tip code { background: #f0f3f7; padding: 1px 6px; border-radius: 4px; }

/* 对比提示 toast */
.cmp-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: rgba(20,28,40,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; }
.cmp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 浮动对比栏显示时：抬起底部内容与右下浮动按钮，避免遮挡 */
body.has-compare-bar { padding-bottom: 64px; }
body.has-compare-bar .float-actions { bottom: 76px; }

@keyframes cmpSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .compare-bar.show { animation: none; }
  .cmp-toast, .cmp-toast.show { transition: opacity .2s; transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .cmp-bar-inner { font-size: 12px; }
  .cmp-chip-name { max-width: 90px; }
  .compare-head { flex-direction: column; align-items: flex-start; }
  .advice-cards { grid-template-columns: 1fr; }
}

/* ============ 路由切换加载反馈 ============ */
#routeProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 40% 100%; }
#routeProgress.active { opacity: 1; animation: rpMove 1s linear infinite; }
@keyframes rpMove { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
.route-loading { min-height: 52vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 15px; }
.route-loading .spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 首页装修（后台维护入口） ============ */
.thumb-sm { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #f3f5f8; }
.card-block { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-block h4 { margin: 0 0 10px; font-size: 16px; }
.card-block h5 { margin: 0 0 8px; font-size: 14px; color: var(--primary); }

/* ============ 视频灯箱 ============ */
.video-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.video-modal.open { display: block; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.vm-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(880px, 92vw); background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vm-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #111; color: #fff; }
.vm-title { font-size: 14px; opacity: .9; padding-right: 12px; }
.vm-close { background: none; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.vm-close:hover { color: var(--member-red); }
.vm-body { background: #000; }
.vm-video { width: 100%; display: block; max-height: 74vh; background: #000; }
.article-video { margin: 16px 0; }
.article-video .vm-video { max-height: none; border-radius: var(--radius); }
body.no-scroll { overflow: hidden; }

/* ============ 促销政策：红底白字促销横幅（政策名 + 文案） ============ */
.promo-banner {
  display: flex; align-items: flex-start; gap: 8px;
  background: linear-gradient(135deg, #e23744, #ff5a3c);
  color: #fff; border-radius: 8px; padding: 8px 10px; margin: 6px 0 4px;
  box-shadow: 0 3px 10px rgba(226, 55, 68, .28);
  font-size: 13px; line-height: 1.35;
}
.promo-banner-text { min-width: 0; font-weight: 600; word-break: break-word; }
.promo-banner-body { min-width: 0; }
.promo-banner-body b { display: block; font-weight: 800; margin-bottom: 2px; }
.promo-banner-detail { padding: 12px 14px; font-size: 14px; margin: 10px 0 6px; }
/* 表格行内促销标签：渐变药丸 + 图标 + 文案，与卡片横幅同色系，醒目且不占空间 */
.promo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 240px; margin-right: 6px; vertical-align: middle;
  padding: 2px 10px 2px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #e23744, #ff5a3c);
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 2px 6px rgba(226, 55, 68, .3);
  white-space: nowrap; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-tag:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(226, 55, 68, .4); }
.promo-tag-ico { flex: 0 0 auto; font-size: 12px; line-height: 1; }
.promo-tag-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}

/* ===== 促销政策后台：详情弹窗 / 字段键值 ===== */
.promo-billno { color: #c0392b; font-weight: 600; text-decoration: underline; cursor: pointer; }
.promo-billno:hover { color: #e74c3c; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex;
  align-items: flex-start; justify-content: center; z-index: 1000; overflow: auto; padding: 40px 12px; }
.modal { background: #fff; border-radius: 10px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal-h { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eee; font-size: 15px; }
.modal-x { border: none; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #888; }
.modal-x:hover { color: #333; }
.modal-b { padding: 16px 18px; }
.modal-b h4 { margin: 16px 0 8px; font-size: 13px; color: #444; border-left: 3px solid #c0392b; padding-left: 8px; }
.kv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.kv { display: flex; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px dashed #f0f0f0; }
.kv .k { color: #888; min-width: 90px; flex: 0 0 auto; }
.kv .v { color: #222; word-break: break-all; }
.promo-entry { border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fafafa; }
.promo-entry-h { font-weight: 600; color: #c0392b; margin-bottom: 4px; font-size: 13px; }
@media (max-width: 640px) { .kv-list { grid-template-columns: 1fr; } }

/* ====== 售后申请弹窗 ====== */
.as-section { margin-bottom: 16px; }
.as-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink, #0C2238); margin-bottom: 8px; }
.as-label em { color: var(--danger, #D6453F); font-style: normal; }
.as-items { max-height: 260px; overflow: auto; border: 1px solid var(--border, #E1E8F0); border-radius: 8px; }
.as-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--border, #E1E8F0); cursor: pointer; transition: background .12s; }
.as-item:last-child { border-bottom: none; }
.as-item:hover { background: #F4F8FD; }
.as-item .as-chk { flex: none; width: 16px; height: 16px; cursor: pointer; }
.as-item-thumb { flex: none; width: 40px; height: 40px; border-radius: 6px; background: #eef3f9; display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.as-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.as-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-item-main b { font-size: 13px; font-weight: 600; color: var(--ink, #0C2238); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-item-main small { font-size: 11px; color: var(--muted, #6B7C90); }
.as-item-qty { flex: none; display: flex; align-items: center; gap: 4px; font-size: 12px; color: #55657a; }
.as-item-qty .as-qty { width: 56px; padding: 4px 6px; border: 1px solid var(--border, #E1E8F0); border-radius: 5px; font-size: 12px; }
.as-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.as-field .as-select, .as-field .as-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border, #E1E8F0); border-radius: 6px; font-size: 13px; background: #fff; color: var(--ink, #0C2238); }
.as-field .as-select:disabled { background: #f4f6f8; color: #aab; }
.as-remark { margin-top: 14px; }
.as-remark .as-input { resize: vertical; }
.as-warn { margin: 12px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--warn-l, #FBF4E4); color: #9a6b00; font-size: 12px; }
.as-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border, #E1E8F0); }
@media (max-width: 640px) { .as-fields { grid-template-columns: 1fr; } }

/* 我的订单 · 金蝶业务单据全流程 */
.kd-biz-wrap { margin-top: 28px; padding-top: 18px; border-top: 1px dashed #e3e8ee; }
.kd-biz-wrap .section-h { font-size: 16px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; }
.kd-biz-wrap .section-h .muted { font-size: 13px; font-weight: 400; }
.flow-steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; margin-bottom: 12px; }
.flow-step { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #f6f8fa; border: 1px solid #e6eaef; min-width: 150px; }
.flow-step.done { background: #eafaf0; border-color: #bfe6cd; }
.flow-step.idle { opacity: .7; }
.flow-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #cdd5dd; color: #fff; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.flow-step.done .flow-dot { background: #2e9e5b; }
.flow-info { display: flex; flex-direction: column; }
.flow-label { font-weight: 600; font-size: 14px; color: #222; }
.flow-meta { font-size: 12px; color: #6b7886; }
.flow-arrow { align-self: center; color: #b6c0cb; font-size: 18px; padding: 0 6px; }
.biz-table tr.biz-row { cursor: pointer; }
.biz-table tr.biz-row:hover { background: #f3f7fb; }
/* 金额为负（退货/退款）→ 用红色强调，提醒注意冲减 */
.num.neg, .kv .v.neg { color: #c0392b; font-weight: 600; }
@media (max-width: 760px) {
  .flow-steps { gap: 6px; }
  .flow-step { min-width: 0; flex: 1 1 45%; }
  .flow-arrow { display: none; }
}
/* 投诉(售后反馈) 步骤用琥珀色，与正常业务流区分 */
.flow-step.feedback { background: #fff7e9; border-color: #f0d9a8; }
.flow-step.feedback .flow-dot { background: #e8a33d; }

/* 我的订单 · 销售订单列表 + 按单全流程查询（流程图） */
.so-table tr.so-row { cursor: pointer; }
.so-table tr.so-row:hover { background: #f3f7fb; }
.so-table .so-link { color: var(--primary); font-weight: 600; }
.so-table .so-link:hover { text-decoration: underline; }
.so-flow { white-space: nowrap; }

/* 流程图：8 步横向节点，完成=绿 / 未完成=红 / 未发生=中性灰 */
.order-flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin: 14px 0 4px; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 16px; min-width: 116px; border-radius: 12px; border: 1px solid #e6eaef;
  background: #f6f8fa; transition: transform .12s ease, box-shadow .12s ease; }
.flow-node.clickable { cursor: pointer; }
.flow-node.clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(20,40,80,.12); }
.flow-node-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: #cdd5dd; color: #fff; font-size: 15px; font-weight: 700; }
.flow-node-label { font-weight: 600; font-size: 14px; color: #222; }
.flow-node-meta { font-size: 12px; color: #6b7886; }
.flow-node-arrow { align-self: center; color: #b6c0cb; font-size: 20px; padding: 0 8px; }
/* 完成（绿） */
.flow-node.done { background: #eafaf0; border-color: #bfe6cd; }
.flow-node.done .flow-node-dot { background: #2e9e5b; }
.flow-node.done .flow-node-label { color: #1f7a47; }
/* 未完成（红） */
.flow-node.pending { background: #fdecea; border-color: #f3c2bd; }
.flow-node.pending .flow-node-dot { background: #d9534f; }
.flow-node.pending .flow-node-label { color: #b23b34; }
/* 未发生（中性灰，通常用于可选步骤：退货/投诉 无单据） */
.flow-node.none { background: #f4f6f8; border-color: #e6eaef; opacity: .85; }
.flow-node.none .flow-node-dot { background: #c2ccd6; }
.flow-node.none .flow-node-label { color: #7a8694; }

/* 流程图图例 */
.flow-legend { display: flex; gap: 18px; margin: 6px 0 0; font-size: 13px; color: #6b7886; }
.flow-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.flow-legend .dot.done { background: #2e9e5b; }
.flow-legend .dot.pending { background: #d9534f; }
.flow-legend .dot.none { background: #c2ccd6; }

@media (max-width: 760px) {
  .order-flow { gap: 6px; }
  .flow-node { min-width: 0; flex: 1 1 42%; }
  .flow-node-arrow { display: none; }
}

/* 我的订单：5 色筛选标签（不同颜色 / 风格） */
/* 订单状态：统一为分段导航（文字 + 计数 + 主色下划线），去掉 6 种杂色药丸降低视觉噪音 */
.ord-tabs {
  display: flex; flex-wrap: nowrap; gap: 2px; margin: 0 0 10px;
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.ord-tabs::-webkit-scrollbar { display: none; }
.ord-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px 12px; border: 0; border-radius: 0; background: transparent;
  color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: color .15s var(--ease);
}
.ord-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background .15s;
}
.ord-tab:hover { color: var(--primary); }
.ord-tab.active { color: var(--primary-dark); }
.ord-tab.active::after { background: var(--primary); }
.ord-tab-cnt {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
  background: var(--bg-soft); color: var(--muted); font-variant-numeric: tabular-nums;
}
.ord-tab.active .ord-tab-cnt { background: var(--brand-l); color: var(--primary-dark); }

/* 物流快递单签收状态标签（订单列表 / 全流程单据列表） */
.tag-signed { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px;
              font-size: 11px; font-weight: 600; white-space: nowrap;
              background: #e9f7ee; color: #1f7a47; border: 1px solid #c7ecd4; }
.tag-transit { display: inline-block; padding: 1px 7px; border-radius: 4px;
               font-size: 11px; font-weight: 600; white-space: nowrap;
               background: #eef1f4; color: #6b7886; border: 1px solid #d7dde4; }

/* 发票查看弹窗 */
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.inv-row:last-child { border-bottom: none; }
.inv-name { font-weight: 600; min-width: 56px; }

/* 履约状态小徽标 */
.ful { display: flex; gap: 4px; flex-wrap: wrap; }
.mini { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid transparent; }
.mini-ship { background: #eaf1fb; color: #2f6fb5; border-color: #cfe0f5; }
.mini-recv { background: #e6f7f7; color: #1f8a8a; border-color: #c2eded; }
.mini-refund { background: #fdeceb; color: #c0392b; border-color: #f3c9c5; }
.mini-inv { background: #e9f7ee; color: #1f8a4c; border-color: #c7ecd4; }

/* 支付状态徽标 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #eafaf0; color: #1f7a47; }
.badge-warn { background: #fef3e2; color: #c87420; }
.badge-err { background: #fdecea; color: #b23b34; }

/* 全流程：售后分支（未关联的从订单另起一条线） */
.flow-main { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.flow-branch { margin-top: 16px; padding: 12px 14px; border: 1px dashed #d7dde4; border-radius: 12px; background: #fbfcfd; }
.flow-branch-label { font-size: 12px; color: #8a96a3; margin-bottom: 10px; font-weight: 600; }
.flow-branch-nodes { display: flex; flex-wrap: wrap; gap: 18px; }
.flow-branch-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-branch-from { font-size: 12px; color: #b04a3f; font-weight: 600; border-top: 2px solid #e0a39b; padding-top: 4px; width: 80px; text-align: center; }

/* ============================================================
   客户/商务视角（body.cust-view）：隐藏前台内部「提示/说明」文案，
   仅保留功能 / 数据 / 核心交互。放在全局作用域（不在任何 @media 内），
   桌面与移动端均生效；直接用类名命中段落级提示，CSS 会自动作用于
   异步渲染（库存 / 说明书 / 对比等）后插入的元素，不依赖 JS 二次打标。
   ============================================================ */
body.cust-view p.muted,
body.cust-view p.tiny,
body.cust-view p.compare-tip,
body.cust-view p.manual-ok,
body.cust-view p.manual-none,
body.cust-view .cust-hide { display: none !important; }

/* 产品描述为数据性内容（非提示文案），始终保留展示 */
.prod-desc { color: #555; line-height: 1.7; margin: 8px 0; }

/* ============================================================
   支付页（确认下单后的支付入口）
   ============================================================ */
.pay-box { max-width: 560px; margin: 18px 0 40px; }
.pay-card {
  border: 1px solid #e3e8ef; border-radius: 12px; padding: 22px 24px;
  background: #fff; box-shadow: 0 2px 10px rgba(7,55,99,.06);
}
.pay-row { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed #eef1f6; font-size: 15px; }
.pay-row span { color: #6b7686; }
.pay-row b { color: #1b2a3a; }
.pay-amount { border-bottom: none; }
.pay-amount b { color: var(--primary, #073763); font-size: 22px; }
.pay-tip { color: #4a5568; line-height: 1.8; margin: 14px 0; font-size: 14px; }
.pay-qr { margin: 16px 0; min-height: 64px; border: 1px dashed #d7deea; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px;
  background: #f8fafc; }
.pay-qr-ph { color: #9aa6b6; font-size: 14px; }
.pay-qr-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  word-break: break-all; text-align: center; color: #27313f; background: #fff;
  border: 1px solid #e3e8ef; border-radius: 8px; padding: 10px 12px; max-width: 100%; }
.pay-qr-tip { margin-top: 10px; color: #8a96a6; font-size: 13px; }
.pay-url { margin-top: 8px; color: #8a96a6; font-size: 12px; word-break: break-all; }
.pay-bank { background: #f8fafc; border: 1px solid #e3e8ef; border-radius: 10px;
  padding: 14px 16px; margin: 12px 0; font-size: 14px; color: #27313f; line-height: 1.9; }
.btn-block { display: block; width: 100%; margin-top: 8px; }
.pay-done { text-align: center; padding: 28px 16px; border: 1px solid #cfe9d8; border-radius: 12px; background: #f3fbf6; }
.pay-done-icon { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #2e9e5b; color: #fff; font-size: 30px; }
.pay-done-icon.pending { background: #e6a23c; }
.pay-done h3 { margin: 0 0 8px; color: #1f7a45; }
.pay-done .cart-actions { justify-content: center; margin-top: 16px; }
.pay-record-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; }
.pay-record-table td { padding: 11px 8px; border-bottom: 1px solid #eef1f6; font-size: 15px; }
.pay-record-table .pr-k { color: #6b7686; width: 40%; }
.pay-record-table .pr-v { color: #1b2a3a; text-align: right; font-weight: 600; }

/* 支付页收款二维码图片 */
.pay-qr-img { max-width: 220px; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(7,55,99,.12); }
.pay-qr-tip { margin-top: 10px; color: #8a96a6; font-size: 13px; }

/* 管理后台 · 支付收款配置 */
.pay-config { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 14px; }
.pay-config-block { border: 1px solid var(--border, #e3e8ef); border-radius: 12px; padding: 18px 20px; background: #fff; }
.pay-config-block h4 { margin: 0 0 12px; color: #1b2a3a; }
.pay-qr-preview { min-height: 120px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed #d7deea; border-radius: 10px; padding: 12px; margin-bottom: 12px; background: #f8fafc; }
.pay-qr-preview img { max-width: 200px; max-height: 200px; }
.pay-config-block input[type="file"] { display: block; margin-bottom: 12px; }
.pay-config-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) { .pay-config { grid-template-columns: 1fr; } }

/* 管理后台 · 会员折扣配置 */
.disc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.disc-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.disc-filters input, .disc-filters select { padding: 8px 10px; border: 1px solid var(--border, #e3e8ef); border-radius: 8px; min-width: 200px; }
.pl-filters input, .pl-filters select { min-width: 130px; }
.pl-filters #plGroup { min-width: 120px; }
.pl-filters .btn { align-self: center; }
.disc-group { margin-bottom: 18px; }
.disc-group-title { font-weight: 700; font-size: 15px; color: #1b2a3a; margin: 6px 0 8px;
  padding-left: 10px; border-left: 4px solid var(--primary, #2563eb); }
.disc-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.disc-form .field label { font-size: 13px; color: #5b6675; }
.disc-form .field input, .disc-form .field select { padding: 8px 10px; border: 1px solid var(--border, #e3e8ef); border-radius: 8px; }
/* 行状态圆点标签：已审核(绿) / 未审核(橙) */
.ok-dot { color: #16a34a; font-weight: 600; }
.ok-dot::before, .warn-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; background: currentColor; }
.warn-dot { color: #d97706; font-weight: 600; }
/* 产品线别名管理区 */
.disc-aliases { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--border, #e3e8ef); }
.disc-aliases .disc-group-title { border-left-color: var(--accent, #f59e0b); }
.alias-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.alias-toolbar input { padding: 8px 10px; border: 1px solid var(--border, #e3e8ef); border-radius: 8px; min-width: 200px; }

/* ============================================================
   商城风格改版（2026-10-29）：产品卡片 / 详情 / 购物车 / 结算
   色调沿用品牌主题（--primary 蓝 / --brand-yellow / --member-red）
   ============================================================ */

/* ---------- 工具栏：视图切换（卡片 / 列表） ---------- */
.view-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; background: #fff; flex-shrink: 0;
}
.view-toggle button {
  border: none; background: transparent; padding: 7px 14px;
  font-size: 13px; color: var(--ink-2); transition: all .15s;
}
.view-toggle button + button { border-left: 1px solid var(--border); }
.view-toggle button.active { background: var(--primary); color: #fff; font-weight: 600; }
.view-toggle button:not(.active):hover { background: var(--bg-soft); color: var(--primary); }

/* ---------- 商城卡片网格 ---------- */
.mall-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  margin-bottom: 18px;
}
/* 产品查询专用横版卡片：一行三个紧凑卡片，左图右信息 */
.mall-grid.hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mall-grid.hgrid .mall-card {
  flex-direction: row; align-items: stretch; min-height: 120px;
}
.mall-grid.hgrid .mall-card .mc-thumb {
  flex: 0 0 92px; width: 92px; height: auto; min-height: 120px;
  border-bottom: 0; border-right: 1px solid var(--border); padding: 0;
  display: flex; flex-direction: column;
}
/* 图片上提占满视觉区，品牌条贴在下沿 */
.mall-grid.hgrid .mall-card .mc-thumb-visual { flex: 1; min-height: 0; }
.mall-grid.hgrid .mall-card .mc-thumb-brand { font-size: 11px; padding: 4px 3px; border-top: 1px solid var(--border); }
/* logo 完整显示：contain + 留白，避免被 cover 裁切掉边缘文字 */
.mall-grid.hgrid .mall-card .mc-thumb-img { object-fit: contain; padding: 8px; }
.mall-grid.hgrid .mall-card .mc-thumb .prod-ic svg { width: 34px; height: 34px; }
.mall-grid.hgrid .mall-card .mc-thumb .prod-ic em { font-size: 10px; }
.mall-grid.hgrid .mall-card .mc-body { padding: 9px 11px; gap: 3px; flex: 1; min-width: 0; }
/* 目录号 + 库存：置顶的一行，紧凑展示 */
.mall-grid.hgrid .mall-card .mc-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mall-grid.hgrid .mall-card .mc-meta .mc-spec { font-size: 10px; line-height: 1.4; }
.mall-grid.hgrid .mall-card .mc-meta .stock-badge { font-size: 10px; padding: 1px 6px; flex-shrink: 0; }
/* 名称接管原品牌行：clamp 提到 3 行，长名称可完整换行 */
.mall-grid.hgrid .mall-card .mc-name { -webkit-line-clamp: 3; min-height: 0; font-size: 12px; line-height: 1.35; }
.mall-grid.hgrid .mall-card .mc-price-row { margin-top: auto; gap: 5px; }
.mall-grid.hgrid .mall-card .mc-price-row .mc-member { font-size: 15px; }
.mall-grid.hgrid .mall-card .mc-price-row .mc-catalog { font-size: 14px; }
.mall-grid.hgrid .mall-card .mc-price-row .mc-mp-tag { font-size: 10px; padding: 1px 5px; }
.mall-grid.hgrid .mall-card .mc-foot { justify-content: flex-end; padding-top: 6px; }
.mall-grid.hgrid .mall-card .mc-foot .cmp-toggle { margin-right: auto; }
.mall-grid.hgrid .mall-card .mc-foot .btn { font-size: 11px; padding: 5px 10px; }
/* 横版角标：避免与右侧信息重叠 */
.mall-grid.hgrid .mall-card .mc-flag { top: 5px; right: 5px; font-size: 10px; }
.mall-grid.hgrid .mall-card .mc-promo-flag { top: 5px; left: 5px; font-size: 10px; }
.mall-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 0; cursor: pointer; border: 1px solid var(--border);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.mall-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--primary) 32%, #fff);
}
/* 视觉区：品牌色调渐变底 + 类目大图标（无实拍图时的示意图位） */
.mall-card .mc-thumb {
  height: 148px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  background: #EAF1F9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic, var(--primary)) 16%, #fff), color-mix(in srgb, var(--ic, var(--primary)) 5%, #fff));
  border-bottom: 1px solid var(--border);
}
/* 图片视觉区：品牌条上方的独立容器，图片绝对定位到此层，不遮挡下方品牌 */
.mall-card .mc-thumb-visual {
  flex: 1; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* 品牌条：从信息区移到主图下方，既填补图片空白，又给名称腾出一行 */
.mall-card .mc-thumb-brand {
  flex: none; align-self: stretch; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--primary); background: var(--brand-l);
  padding: 3px 6px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mall-card .mc-thumb .prod-ic svg { width: 56px; height: 56px; }
.mall-card .mc-thumb .prod-ic em { font-size: 12px; }
/* 产品主图：覆盖在占位徽标之上，加载失败(onerror)移除后自动露出底层徽标 */
.mc-thumb, .prod-thumb, .pd-visual { position: relative; overflow: hidden; }
.mc-thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; background: #fff;
}
/* 角标：现货（右上，绿）/ 促销（左上，橙红） */
.mc-flag, .mc-promo-flag {
  position: absolute; top: 10px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; line-height: 1.2; z-index: 2;
}
.mc-flag { right: 10px; background: var(--ok-l); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, #fff); }
.mc-promo-flag { left: 10px; background: #FFF3E0; color: #E07800; border: 1px solid #F5C78A; }
.mall-card .mc-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 14px; flex: 1; }
.mc-brand {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--primary); background: var(--brand-l);
  padding: 2px 8px; border-radius: 4px;
}
.mc-name {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.mc-promo-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #E07800;
  border: 1px solid #F5C78A; background: #FFF9F0; border-radius: 3px;
  padding: 0 5px; margin-right: 5px; vertical-align: 1px;
}
.mc-spec { font-size: 12px; color: var(--muted); }
.mc-stock { font-size: 12px; }
.mc-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; min-height: 26px; }
.mc-price-row .mc-member { font-size: 20px; font-weight: 800; color: var(--member-red); }
.mc-price-row .mc-catalog { font-size: 18px; font-weight: 700; color: var(--accent-dark); }
.mc-price-row .mc-list { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.mc-price-row .mc-mp-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; background: var(--member-red); padding: 2px 7px; border-radius: 4px; letter-spacing: .5px; }
.mc-price-row .lock { font-size: 12px; color: var(--warn); background: var(--warn-l); padding: 2px 8px; border-radius: 4px; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.mc-foot .add-cart { border-radius: 999px; }

/* ---------- 详情页（商城布局） ---------- */
.pd-main {
  display: grid; grid-template-columns: 380px 1fr; gap: 30px;
  padding: 26px; margin-bottom: 18px;
}
.pd-gallery { display: flex; flex-direction: column; gap: 10px; }
.pd-visual {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: #EAF1F9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic, var(--primary)) 16%, #fff), color-mix(in srgb, var(--ic, var(--primary)) 5%, #fff));
  border: 1px solid var(--border);
}
.pd-visual .prod-ic svg { width: 110px; height: 110px; }
.pd-visual .prod-ic em { font-size: 14px; }
.pd-visual-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* 完整显示产品主图：官网抗体页的实验数据图是横幅流式图，cover 会裁掉
     左右坐标轴/峰形，实物竖图也会丢瓶口瓶底；contain 配白底留边更安全。 */
  object-fit: contain; z-index: 1; background: #fff;
}
.pd-gallery-note { text-align: center; font-size: 12px; color: var(--muted); }
.pd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-brand-row { display: flex; align-items: center; gap: 10px; }
.pd-brand {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--brand-l); padding: 3px 10px; border-radius: 4px;
}
.pd-title { font-family: var(--font-disp); font-size: 26px; line-height: 1.4; margin: 0; color: var(--text); }
.pd-sub { font-size: 13px; color: var(--muted); }
/* 价格面板：浅蓝底色块，会员价大红字（商城惯例） */
.pd-price-panel {
  background: linear-gradient(135deg, var(--brand-l), #F5F9FF);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #fff);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-price-line { display: flex; align-items: baseline; gap: 12px; }
.pd-price-tag { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pd-member { font-size: 32px; font-weight: 800; color: var(--member-red); }
.pd-catalog { font-size: 28px; font-weight: 800; color: var(--accent-dark); }
.pd-price-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.pd-price-meta s { color: var(--muted); }
.pd-price-panel.locked .pd-lock-row { font-weight: 600; color: var(--warn); }
.pd-login { font-size: 14px; font-weight: 600; }
/* 数量 + 加购 + 立即购买 */
.pd-buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pd-qty-label { font-size: 14px; color: var(--ink-2); }
.pd-qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pd-qty button {
  width: 36px; height: 40px; border: none; background: #fff; font-size: 18px; color: var(--ink-2);
}
.pd-qty button:hover { background: var(--bg-soft); color: var(--primary); }
.pd-qty input {
  width: 56px; height: 40px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 15px; outline: none;
}
.pd-cart-btn { border-radius: 999px; padding: 11px 26px; font-weight: 600; }
.pd-buy-btn { border-radius: 999px; padding: 11px 26px; font-weight: 600; }
.pd-services {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px;
  border-top: 1px dashed var(--border); font-size: 13px; color: var(--ink-2);
}
/* 详情下方：参数/描述/说明书 + 库存/二维码 两栏 */
.pd-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.pd-col-main, .pd-col-side { display: flex; flex-direction: column; gap: 18px; }
.pd-sec { padding: 20px 22px; }
.pd-sec h3 {
  margin: 0 0 14px; font-size: 16px; padding-left: 10px; position: relative;
}
.pd-sec h3::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 2px; background: var(--primary);
}
.pd-sec .spec-table td:first-child { width: 110px; color: var(--muted); }
/* 详情侧栏 · 即时库存（结构化区块：仓库名称所有人可见，不受客户视角 p.muted 隐藏规则影响） */
.pd-inv { display: flex; flex-direction: column; gap: 10px; }
.pd-inv-badge { display: flex; align-items: center; gap: 8px; }
.pd-inv-src { font-size: 11px; color: var(--muted); }
.pd-inv-label { font-size: 12px; color: var(--muted); }
.pd-inv-whs { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-inv-wh {
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--brand-l); padding: 4px 10px; border-radius: 6px;
}
.pd-inv-note { font-size: 12px; color: var(--muted); }
/* 详情侧栏 · 相关推荐紧凑列表（替代原页底大卡片区，无需滑到底部） */
.pd-rel-list { display: flex; flex-direction: column; }
.pd-rel-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px dashed var(--border); text-decoration: none; position: relative;
}
.pd-rel-item:last-child { border-bottom: none; }
.pd-rel-item:hover .pd-rel-name { color: var(--primary); }
.pd-rel-thumb {
  position: relative; overflow: hidden; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic, var(--primary)) 16%, #fff), color-mix(in srgb, var(--ic, var(--primary)) 5%, #fff));
  border: 1px solid var(--border);
}
.pd-rel-thumb .prod-ic { flex-direction: row; gap: 0; }
.pd-rel-thumb .prod-ic svg { width: 26px; height: 26px; }
.pd-rel-thumb .prod-ic em { display: none; }
.pd-rel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #fff; }
.pd-rel-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pd-rel-name {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-rel-meta { font-size: 11px; color: var(--muted); }
.pd-rel-price { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.pd-rel-price .lock { font-size: 11px; font-weight: 500; color: var(--muted); }
.pd-rel-mp { color: var(--member-red); }
.pd-rel-flag {
  position: absolute; top: 8px; right: 2px; font-size: 10px; font-weight: 700;
  color: var(--ok); background: var(--ok-l); padding: 2px 7px; border-radius: 999px;
}

/* ---------- 购物车（商城风） ---------- */
.cart-title { font-family: var(--font-disp); margin: 6px 0 16px; }
.cart-mall { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.cart-list { padding: 0; overflow: hidden; }
.cart-list-head, .cart-item {
  display: grid;
  /* 商品行 6 列：缩略图 / 信息 / 单价 / 数量 / 小计 / 操作（表头 5 列共用此网格） */
  grid-template-columns: 84px minmax(0,1fr) 110px 130px 110px 70px;
  gap: 12px; align-items: center; padding: 14px 18px;
}
.cart-list-head {
  background: var(--bg-soft); font-size: 13px; color: var(--ink-2); font-weight: 600;
  border-bottom: 1px solid var(--border); padding: 10px 18px;
}
.cart-item { border-bottom: 1px solid var(--border); transition: background .15s; }
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #FAFCFF; }
.ci-thumb {
  width: 74px; height: 74px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #EAF1F9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ic, var(--primary)) 14%, #fff), color-mix(in srgb, var(--ic, var(--primary)) 5%, #fff));
  border: 1px solid var(--border);
}
.ci-thumb .prod-ic svg { width: 34px; height: 34px; }
.ci-thumb .prod-ic em { display: none; }
.ci-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-name { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.45; }
.ci-name:hover { color: var(--primary); }
.ci-meta { font-size: 12px; color: var(--muted); }
.ci-stock { font-size: 12px; }
.ci-price .val { font-weight: 600; color: var(--accent-dark); }
.ci-price .val .mc-member { color: var(--member-red); font-weight: 800; }
.ci-list { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.cs-list { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.ci-subtotal .val { font-weight: 800; color: var(--member-red); font-size: 15px; }
.ci-price .lbl, .ci-subtotal .lbl { display: none; font-size: 11px; color: var(--muted); }
.ci-op { text-align: right; }
.cart-list-head .h-price, .cart-list-head .h-qty, .cart-list-head .h-sub, .cart-list-head .h-op { text-align: center; }
.cart-item .ci-price, .cart-item .ci-qty, .cart-item .ci-subtotal { text-align: center; }
.cart-item .ci-op { text-align: right; }
/* 结算汇总侧栏 */
.cart-settle { padding: 20px; position: sticky; top: 76px; }
.cart-settle h3 { margin: 0 0 12px; font-size: 16px; }
.cs-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.cs-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 12px; font-size: 14px;
}
.cs-total .amount { font-size: 24px; font-weight: 800; color: var(--member-red); }
.cs-checkout { margin: 14px 0 8px; border-radius: 999px; font-weight: 600; padding: 11px; }
.cs-tip { margin: 8px 0 0; text-align: center; }

/* ---------- 结算页 ---------- */
.co-items { padding: 18px 20px; margin-bottom: 16px; }
.co-sec-title {
  margin: 0 0 12px; font-size: 16px; padding-left: 10px; position: relative;
}
.co-sec-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 2px; background: var(--primary);
}
.checkout-foot.card { padding: 20px 22px; }
/* 个人用户结算提示：下单转为询价 */
.co-personal-tip {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 6px; font-size: 13px;
  color: #8a5a00; background: #FFF8E6; border: 1px solid #F5DEA0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pd-main { grid-template-columns: 300px 1fr; gap: 22px; }
  .pd-cols { grid-template-columns: 1fr; }
  /* 中等屏：横版卡片三列过挤，回退两列 */
  .mall-grid.hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mall-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
  /* 产品查询横版卡片：小屏回退为竖版两列 */
  .mall-grid.hgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .mall-grid.hgrid .mall-card { flex-direction: column; min-height: 0; }
  .mall-grid.hgrid .mall-card .mc-thumb { flex: none; width: 100%; height: 116px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .mall-grid.hgrid .mall-card .mc-body { padding: 12px; }
  .mall-grid.hgrid .mall-card .mc-name { min-height: 40px; font-size: 14px; }
  .mall-card .mc-thumb { height: 116px; }
  .mall-card .mc-thumb .prod-ic svg { width: 44px; height: 44px; }
  .pd-main { grid-template-columns: 1fr; padding: 18px; }
  .pd-visual { max-width: 320px; margin: 0 auto; }
  .cart-mall { grid-template-columns: 1fr; }
  .cart-settle { position: static; }
  /* 购物车窄屏：缩略图+信息一行，单价/数量/小计 第二行铺开 */
  .cart-list-head { display: none; }
  .cart-item { grid-template-columns: 74px minmax(0,1fr) auto; row-gap: 10px; }
  .cart-item .ci-thumb { grid-row: 1; }
  .cart-item .ci-info { grid-row: 1; grid-column: 2; }
  .cart-item .ci-op { grid-row: 1; grid-column: 3; align-self: start; }
  .cart-item .ci-price { grid-row: 2; grid-column: 1; }
  .cart-item .ci-qty { grid-row: 2; grid-column: 2; justify-self: start; }
  .cart-item .ci-subtotal { grid-row: 2; grid-column: 3; justify-self: end; }
  .ci-price .lbl, .ci-subtotal .lbl { display: inline; margin-right: 6px; }
}

/* 企查查工商校验结果展示（注册单位手填 + 校验） */
.qcc-result { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.qcc-result.qcc-ok { background: #ecf8f0; border: 1px solid #bfe3cd; }
.qcc-result.qcc-fail { background: #fdeeed; border: 1px solid #f3c6c2; }
.qcc-result .qcc-tbl { width: 100%; margin-top: 8px; border-collapse: collapse; }
.qcc-result .qcc-tbl td { padding: 2px 6px; vertical-align: top; }
.qcc-result .qcc-tbl td:first-child { width: 116px; white-space: nowrap; }
.unit-search-wrap { display: flex; gap: 8px; align-items: center; }
.unit-search-wrap input { flex: 1; }
.reg-info { margin: 0 0 12px; padding: 10px 12px; background: #f4f8ff; border: 1px solid #cfe0fb; border-radius: 8px; font-size: 13px; }
.reg-info .reg-info-t { color: #2b6cb0; font-weight: 600; margin-bottom: 6px; }
.reg-info .qcc-tbl { margin-top: 4px; }
.reg-bl { margin: 0 0 12px; padding: 10px 12px; background: #fff8f3; border: 1px solid #f3d9c4; border-radius: 8px; font-size: 13px; }
.reg-bl .reg-info-t { color: #b06a2b; font-weight: 600; margin-bottom: 8px; }
.bl-preview { margin-top: 8px; }
.bl-img { max-height: 160px; max-width: 100%; border: 1px solid var(--border); border-radius: 6px; }
.bl-thumb { max-height: 42px; max-width: 76px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; cursor: zoom-in; }
.bl-link { color: var(--primary); text-decoration: underline; }

/* ============================================================
   首页视觉升级（参考探索平台/Labgic/Innochem/优宁维/新景生物）：
   ① 海报帧轮播  ② Hero 左侧分类快捷导航  ③ 服务保障条
   ④ 栏目标题左对齐 + 品牌竖条  ⑤ 卡片交互微调
   ============================================================ */

/* ---- ① 海报帧：完整设计稿（如品牌墙），等比完整显示、不加蒙版不叠文字 ---- */
.hero-slide.poster {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #eef5fb;   /* 与海报浅蓝底融合，宽屏两侧不留生硬白边 */
}
.hero-slide.poster::after { display: none; }
/* 桌面端：海报帧让出左侧分类导航宽度，保证品牌墙完整可见、不被面板遮挡 */
@media (min-width: 993px) {
  .hero-slide.poster { inset: 0 0 0 246px; }
}
/* 海报帧下轮播圆点/箭头切换为深色主题（浅底可见） */
.hero.on-poster .dots i { background: rgba(15, 76, 156, .22); }
.hero.on-poster .dots i.on { background: var(--primary); }
.hero.on-poster .hero-nav { background: rgba(15, 76, 156, .16); color: var(--primary); box-shadow: 0 2px 10px rgba(9, 30, 66, .12); }
.hero.on-poster .hero-nav:hover { background: var(--primary); color: #fff; }

/* ---- ② Hero 左侧分类快捷导航（桌面端，探索平台/Innochem 招牌布局） ---- */
.hero-catnav {
  position: absolute; z-index: 5; top: 0; bottom: 0;
  left: max(18px, calc((100% - 1280px) / 2 + 18px));
  width: 226px;
  background: rgba(255, 255, 255, .96);
  border-radius: 0 0 var(--radius) 0;
  box-shadow: 0 10px 28px rgba(9, 30, 66, .16);
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-catnav .catnav-hd {
  flex-shrink: 0; padding: 13px 16px 11px;
  font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: 2px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), .09), transparent);
  border-bottom: 1px solid var(--border);
}
.hero-catnav .catnav-list { flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; }
.hero-catnav .catnav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 13px; color: var(--text); text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
}
.hero-catnav .catnav-item:hover { background: rgba(var(--primary-rgb), .08); color: var(--primary); padding-left: 21px; }
.hero-catnav .catnav-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-catnav .catnav-item .ct { font-size: 11px; color: var(--muted); background: var(--bg-soft, #f1f5f9); border-radius: 99px; padding: 1px 8px; }
.hero-catnav .catnav-item .arw { color: var(--muted); font-size: 15px; line-height: 1; transition: transform .15s, color .15s; }
.hero-catnav .catnav-item:hover .arw { transform: translateX(3px); color: var(--primary); }

/* ---- ③ 服务保障条 ---- */
.svc-strip { background: #fff; border-bottom: 1px solid var(--border); }
.svc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 16px 18px; }
.svc-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.svc-item .ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--primary-rgb), .08); color: var(--primary);
  transition: transform .2s, background .2s;
}
.svc-item:hover .ico { transform: scale(1.08); background: rgba(var(--primary-rgb), .14); }
.svc-item .ico svg { width: 21px; height: 21px; }
.svc-item .tx b { display: block; font-size: 14px; color: var(--text); line-height: 1.3; }
.svc-item .tx small { font-size: 12px; color: var(--muted); }

/* ---- ④ 栏目标题：左对齐 + 品牌渐变竖条（Labgic/优宁维风格） ---- */
.section-title {
  flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 12px;
  margin: 44px 0 22px; text-align: left;
}
.section-title::before {
  content: ""; align-self: center; flex-shrink: 0;
  width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light, var(--primary)));
}
.section-title .en { font-size: 13px; letter-spacing: 2px; color: var(--primary); opacity: .55; line-height: 1; }
.section-title .zh { font-size: 22px; margin-top: 0; line-height: 1.25; }
.section-title.has-more { justify-content: space-between; }
.section-title.has-more .zh-group { flex-direction: row; align-items: baseline; gap: 12px; }
/* 学堂深色横幅内保持居中排版 */
.academy .section-title { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.academy .section-title::before { display: none; }
.academy .section-title .en { font-size: 26px; }
.academy .section-title .zh { font-size: 20px; margin-top: 4px; }

/* ---- ⑤ 卡片交互微调 ---- */
.biz-card .info { transition: transform .25s; }
.biz-card:hover .info { transform: translateY(-3px); }
.promo-card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.promo-card:hover { border-color: rgba(var(--primary-rgb), .35); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .12); }

@media (max-width: 992px) {
  .hero-catnav { display: none; }
  .svc-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-row { padding: 12px 14px; gap: 10px; }
  .svc-item { gap: 9px; }
  .hero { height: 300px; }
}
/* 中等屏（平板）：降低轮播高度，减少海报帧上下留白 */
@media (min-width: 561px) and (max-width: 992px) {
  .hero { height: 360px; }
}

/* ============================================================
   产品查询 / 现货页 交互优化（参考 Innochem / 优宁维 / 探索平台 等 B2B 商城）
   ① 激活筛选标签条  ② 侧栏分区清晰化  ③ 卡片/工具栏视觉  ④ 空状态
   ============================================================ */

/* ---- ① 激活筛选标签条：已选条件以可移除标签展示（优宁维/探索平台招牌） ---- */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.af-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, #fff);
  color: var(--primary); font-size: 12px; font-weight: 600;
  padding: 4px 5px 4px 12px; border-radius: 999px; line-height: 1.5;
}
.af-chip.af-promo, .af-chip.af-img { background: #FFF3E0; border-color: #F5C78A; color: #C96A16; }
.af-chip .af-x {
  border: none; background: color-mix(in srgb, var(--primary) 16%, #fff);
  color: var(--primary); width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; font-size: 11px; line-height: 1; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.af-chip.af-promo .af-x, .af-chip.af-img .af-x { background: #F5C78A; color: #C96A16; }
.af-chip .af-x:hover { background: var(--primary); color: #fff; }
.af-chip.af-promo .af-x:hover, .af-chip.af-img .af-x:hover { background: #C96A16; color: #fff; }
.af-clear {
  border: none; background: transparent; color: var(--muted);
  font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 6px;
}
.af-clear:hover { color: var(--danger); }

/* ---- ② 侧栏分区清晰化 ---- */
.kd-filter .mode-toggle button {
  flex: 1; padding: 9px 0; font-size: 13px; font-weight: 600;
  background: #f3f6fa; color: var(--muted); border: none; cursor: pointer; transition: .15s;
}
.kd-filter .mode-toggle button.active { background: var(--primary); color: #fff; box-shadow: none; }
.kd-filter .lvl-block {
  padding: 6px 0 15px; margin-bottom: 15px;
  border-bottom: 1px dashed var(--border);
}
.kd-filter .lvl-block:last-of-type { border-bottom: none; margin-bottom: 4px; }
.kd-filter .lvl-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #8a97a6; letter-spacing: 1px; margin: 0 0 9px; font-weight: 600;
}
.kd-filter .lvl-title::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--primary);
}
.kd-filter .clps { margin-bottom: 14px; }
.kd-filter .clps-head {
  font-weight: 600; color: #37475a; padding: 10px 12px;
}
.kd-filter .clps-head .clps-t { font-size: 13px; letter-spacing: .5px; }
.kd-filter .clps.open .clps-head { background: color-mix(in srgb, var(--primary) 6%, #fff); }

/* ---- ③ 工具栏 / 卡片视觉 ---- */
.catalog.merged .toolbar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.catalog.merged #catCount {
  background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary);
  padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.mall-grid { gap: 18px; }
.mall-card .mc-body { gap: 8px; padding: 13px 14px 15px; }
.mall-card .mc-stock { margin-top: 1px; }
.mall-card .mc-foot { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.mall-card .add-cart { box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 22%, transparent); }
.mall-card .add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }

/* 列表视图表头吸顶感 + 行高 */
.prod-table thead th { position: sticky; top: 0; background: #f2f6fa; }
.prod-table tbody tr { transition: background .12s; }
.prod-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, #fff); }

/* ---- ④ 空状态 ---- */
.empty {
  text-align: center; color: var(--muted); padding: 56px 20px;
  background: #fafcfe; border: 1px dashed var(--border); border-radius: 14px; font-size: 14px;
}
.af-chip, .lvl-chip, .mall-card, .prod-table tbody tr { -webkit-tap-highlight-color: transparent; }

@media (max-width: 860px) {
  .catalog.merged { grid-template-columns: 1fr; }
  .kd-filter { position: static; }
}

/* ===== 产品主图管理弹窗（点击统计数字进入：缩略图网格 / 筛选 / 批量增删改） ===== */
.im-stat-card { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.im-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.im-stat-card .lbl { color: var(--accent); font-size: 12.5px; }

.img-mgr-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12, 34, 56, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.img-mgr-panel {
  width: min(1080px, 96vw); max-height: 92vh; background: #fff;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(12, 34, 56, .28);
  display: flex; flex-direction: column; overflow: hidden;
}
.img-mgr-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: #f7fafd;
}
.img-mgr-head h3 { margin: 0; font-size: 17px; color: var(--text); }
.img-mgr-close {
  border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 4px 8px; border-radius: 8px;
}
.img-mgr-close:hover { background: #eef3f8; color: var(--danger); }
.img-mgr-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.img-mgr-toolbar select, .img-mgr-toolbar input[type=text] {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; min-width: 150px;
}
.img-mgr-toolbar #imgMgrSearch { flex: 1; min-width: 220px; }
.img-mgr-bulk {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 10px 20px; background: #fbfdff; border-bottom: 1px solid var(--border);
}
.img-mgr-bulk-actions { display: flex; gap: 8px; margin-left: auto; }
.img-mgr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; padding: 18px 20px; overflow-y: auto; background: var(--bg);
}
.img-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  transition: box-shadow .12s, border-color .12s;
}
.img-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.img-card-empty { background: #fcfdff; }
.img-card-check { position: absolute; top: 10px; left: 10px; z-index: 2; }
.img-card-check input { width: 16px; height: 16px; cursor: pointer; }
.img-card-thumb {
  height: 150px; border-radius: 8px; background: #f1f5f9; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--border);
}
.img-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.img-card-thumb.img-noimg { color: var(--muted); font-size: 13px; }
.img-card-thumb.img-noimg span { opacity: .7; }
.img-card-meta { display: flex; flex-direction: column; gap: 2px; }
.img-card-sku { font-weight: 600; font-size: 13px; color: var(--text); word-break: break-all; }
.img-card-name { font-size: 12px; color: var(--text); line-height: 1.35; max-height: 2.7em; overflow: hidden; }
.img-card-sub { font-size: 12px; color: var(--muted); }
.img-card-src { font-size: 11px; margin-top: 2px; }
.img-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.img-card-actions .btn-sm { flex: 1; min-width: 44px; }
.img-mgr-foot {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  padding: 12px 20px; border-top: 1px solid var(--border); background: #f7fafd;
}
.img-lightbox-mask {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .78);
  display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.img-lightbox-box { max-width: 90vw; max-height: 86vh; text-align: center; }
.img-lightbox-box img { max-width: 90vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); background: #fff; }
.img-lightbox-box .muted { color: #cfd8e3; margin-top: 10px; }

.btn-danger { background: var(--danger); color: #fff; border: 1px solid var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }

@media (max-width: 640px) {
  .img-mgr-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .img-mgr-toolbar #imgMgrSearch { min-width: 100%; }
}

/* ==========================================================================
   账户中心 Account Center
   布局：左侧分组导航 + 右侧概览（欢迎卡 / 订单状态 / 最近订单 / 资料与安全）
   全部复用 :root 设计令牌；交互元素 ≥44px、focus-visible 可见、支持减少动效。
   ========================================================================== */
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 20px; }
.ac-head h2 { margin: 0 0 4px; font-size: 26px; }
.ac-head p { margin: 0; font-size: 13px; }

.ac-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.ac-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* —— 左侧栏 —— */
.ac-sidebar {
  position: sticky; top: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sh-1);
}
.ac-mini-profile {
  display: flex; align-items: center; gap: 12px; padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), var(--surface));
}
.ac-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .25);
}
.ac-avatar--lg { width: 66px; height: 66px; font-size: 28px; }
.ac-mini-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ac-mini-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mini-txt span { font-size: 12px; color: var(--muted); }

.ac-nav { padding: 8px 8px 12px; }
.ac-nav-group + .ac-nav-group { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.ac-nav-title { padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ac-nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px;
  border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 14px;
  cursor: pointer; transition: background .15s, color .15s;
}
.ac-nav-item:hover { background: var(--bg-soft); color: var(--primary); }
.ac-nav-item.active { background: var(--brand-l); color: var(--primary-dark); font-weight: 600; }
.ac-nav-ico { flex: none; display: grid; place-items: center; color: var(--primary-light); }
.ac-nav-item.active .ac-nav-ico { color: var(--primary); }
.ac-nav-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-nav-cnt {
  flex: none; min-width: 22px; padding: 1px 7px; border-radius: 20px;
  background: var(--bg-soft); color: var(--muted); font-size: 11px; font-weight: 600; text-align: center;
}
.ac-nav-item.active .ac-nav-cnt { background: #fff; color: var(--primary); }
.ac-nav-chev { flex: none; display: grid; place-items: center; color: #C3CCD6; }

/* —— 欢迎横幅 —— */
.ac-hero {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(115deg, var(--primary-dark) 0%, var(--primary) 52%, #1668C9 100%);
  box-shadow: var(--sh-2);
}
.ac-hero::before, .ac-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ac-hero::before { right: -70px; top: -110px; width: 280px; height: 280px; background: rgba(255, 255, 255, .07); }
.ac-hero::after { right: 60px; bottom: -140px; width: 220px; height: 220px; background: rgba(255, 255, 255, .05); }
.ac-hero > * { position: relative; z-index: 1; }
.ac-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ac-hero-id { min-width: 0; }
.ac-greet { font-size: 21px; font-weight: 600; }
.ac-greet b { font-weight: 700; }
.ac-hero-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ac-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
}
.ac-chip--ok { background: rgba(46, 158, 107, .22); border-color: rgba(160, 235, 195, .35); }
.ac-chip--warn { background: rgba(201, 150, 42, .25); border-color: rgba(255, 220, 150, .35); }
.ac-chip--plain { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ac-hero-sub { margin-top: 9px; font-size: 12px; color: rgba(255, 255, 255, .8); }
/* 权益/折扣说明卡片已下线，右侧仅保留操作按钮并垂直居中 */
.ac-hero-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 258px; }
.ac-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ac-hero-cta .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.ac-hero-cta .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }

/* —— 通用区块 —— */
.ac-section {
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sh-1);
}
.ac-section-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ac-section-h h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ac-section-cnt { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ac-section-h .more-link { float: none; margin-top: 0; }

/* —— 订单状态磁贴 —— */
.ac-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ac-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 96px; padding: 14px 8px; border-radius: 12px;
  color: var(--text-2); text-decoration: none; background: var(--paper); border: 1px solid var(--border);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.ac-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.ac-tile-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--primary); background: #fff; box-shadow: var(--sh-1);
}
.ac-tile-label { font-size: 13px; font-weight: 600; }
/* 长文案在窄屏用短标签替换，避免 5 等分磁贴里挤到换行 */
.ac-label-short { display: none; }
.ac-tile-badge {
  position: absolute; top: 8px; right: 12px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 20px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--member-red); box-shadow: 0 2px 6px rgba(229, 57, 53, .35);
}
.ac-tile--warn .ac-tile-ico { color: var(--warn); }
.ac-tile--info .ac-tile-ico { color: var(--accent); }
.ac-tile--danger .ac-tile-ico { color: var(--danger); }
.ac-tile--ok .ac-tile-ico { color: var(--ok); }

/* —— 最近订单 —— */
.ac-table-wrap { overflow-x: auto; }
.ac-order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-order-table th {
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-weight: 600; color: var(--muted); background: var(--bg-soft);
}
.ac-order-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ac-order-table tbody tr:last-child td { border-bottom: none; }
.ac-order-table tbody tr:hover { background: #FAFCFF; }
.ac-order-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-so-link { color: var(--link); font-weight: 600; text-decoration: none; }
.ac-so-link:hover { text-decoration: underline; }
.ac-ellip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ops { white-space: nowrap; }
.ac-ops .btn { margin-right: 6px; }
.ac-ops .btn:last-child { margin-right: 0; }
.ac-state { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ac-state--warn { background: var(--warn-l); color: #A3761A; }
.ac-state--danger { background: var(--danger-l); color: #B23B34; }
.ac-state--info { background: var(--brand-l); color: var(--primary-dark); }
.ac-state--ok { background: var(--ok-l); color: #1F7A47; }
.ac-state--muted { background: var(--bg-soft); color: var(--muted); }
.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0; color: var(--muted); }
.ac-empty-ico { color: #C3D0DE; }
.ac-empty p { margin: 0; font-size: 13px; }

/* —— 账户资料 / 账号安全 —— */
.ac-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ac-panel {
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sh-1); scroll-margin-top: 20px;
}
.ac-panel-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ac-panel-h h3 { margin: 0; font-size: 16px; }
.ac-panel-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-l); color: var(--primary); }
.ac-kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ac-kv > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.ac-kv dt { flex: none; width: 74px; color: var(--muted); font-size: 12px; }
.ac-kv dd { margin: 0; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sec-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ac-sec-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--primary); }
.ac-sec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-sec-txt b { font-size: 13px; }
.ac-sec-txt span { font-size: 11.5px; color: var(--muted); }
.ac-sec-tip { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--bg-soft); color: var(--text-2); font-size: 12px; }

/* —— 无障碍：键盘焦点清晰可见 —— */
.ac-nav-item:focus-visible,
.ac-tile:focus-visible,
.ac-hero-cta a:focus-visible,
.ac-sec-row .btn:focus-visible,
.ac-order-table a:focus-visible,
.ac-order-table .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* —— 响应式：≤980px 侧栏转横向导航；≤680px 磁贴与资料单列 —— */
@media (max-width: 980px) {
  .ac-layout { grid-template-columns: 1fr; gap: 16px; }
  .ac-sidebar { position: static; }
  .ac-mini-profile { display: none; }
  .ac-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
  .ac-nav-group, .ac-nav-group + .ac-nav-group { display: flex; flex-wrap: wrap; gap: 6px; border-top: none; margin-top: 0; padding-top: 0; }
  .ac-nav-title, .ac-nav-chev { display: none; }
  .ac-nav-item { min-height: 40px; padding: 7px 12px; border: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .ac-head h2 { font-size: 22px; }
  .ac-hero { padding: 20px; }
  .ac-hero-side { min-width: 0; width: 100%; }
  .ac-two-col { grid-template-columns: 1fr; }
  .ac-kv { grid-template-columns: 1fr; }
  .ac-nav-cnt { display: none; }
  /* 右侧预留空间，避开固定在右下角的悬浮工具条（回到顶部/电话/客服） */
  .ac-section-h { padding-right: 52px; }

  /* 5 个状态磁贴一行排满：主流商城移动端的做法，避免 3+2 / 2+2+1 的孤行 */
  .ac-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ac-tile { min-height: 0; gap: 7px; padding: 13px 2px 11px; }
  .ac-tile-ico { width: 38px; height: 38px; border-radius: 11px; }
  .ac-tile-ico .ac-ico { width: 22px; height: 22px; }
  .ac-tile-label { font-size: 11px; white-space: nowrap; }
  .ac-label-full { display: none; }
  .ac-label-short { display: inline; }
  .ac-tile-badge { top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }

  /* 最近订单：表格改卡片列表，字段自带标签，不再横向滚动挤压 */
  .ac-table-wrap { overflow: visible; }
  .ac-order-table, .ac-order-table tbody { display: block; }
  .ac-order-table thead { display: none; }
  .ac-order-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px;
    padding: 13px 14px; margin-bottom: 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-1);
  }
  .ac-order-table tbody tr:last-child { margin-bottom: 0; }
  .ac-order-table tbody tr:hover { background: var(--surface); }
  .ac-order-table td { padding: 0; border: none; }
  .ac-order-table td::before {
    content: attr(data-label); display: inline-block; margin-right: 6px;
    color: var(--muted); font-size: 11.5px; font-weight: 500;
  }
  /* 与上面的 td::before 同权重以上，确保订单号/状态/操作三列不显示字段标签 */
  .ac-order-table td.ac-c-order::before,
  .ac-order-table td.ac-c-state::before,
  .ac-order-table td.ac-c-ops::before { display: none; }
  .ac-c-order { grid-column: 1; grid-row: 1; font-size: 13.5px; }
  .ac-c-state { grid-column: 2; grid-row: 1; text-align: right; }
  .ac-c-unit  { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .ac-c-time  { grid-column: 1; grid-row: 3; }
  .ac-c-amt   { grid-column: 2; grid-row: 3; text-align: right; }
  .ac-c-ops   { grid-column: 1 / -1; grid-row: 4; padding-top: 6px; border-top: 1px dashed var(--border); }
}
@media (max-width: 420px) {
  .ac-tiles { gap: 4px; }
  .ac-tile { padding: 11px 1px 10px; }
  .ac-tile-ico { width: 34px; height: 34px; }
  .ac-tile-label { font-size: 10.5px; }
  .ac-greet { font-size: 18px; }
  .ac-avatar--lg { width: 54px; height: 54px; font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-tile, .ac-nav-item, .ac-hero { transition: none !important; }
  .ac-tile:hover { transform: none !important; }
}

/* ============================================================
   我的订单 · 订单中心（oc-*）
   与账户中心同一套设计语言：卡片容器、克制的语义色、清晰的
   视觉层级与键盘焦点；移动端表格纯 CSS 转卡片，DOM 与事件不变。
   ============================================================ */
.oc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 14px; }
.oc-head h2 { margin: 0 0 5px; font-size: 24px; }
.oc-note { margin: 0; max-width: 900px; font-size: 12.5px; line-height: 1.7; }
.oc-head-cnt {
  flex: none; display: flex; align-items: baseline; gap: 5px; padding: 9px 15px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--sh-1); white-space: nowrap;
}
.oc-head-cnt b { font-size: 20px; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.oc-head-cnt span { font-size: 12px; color: var(--muted); }

/* 顶部筛选卡片：标签栏 + 工具栏收进同一容器 */
.oc-card {
  padding: 14px 18px 12px; margin-bottom: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-1);
}
.oc-card .ord-tabs { margin-bottom: 12px; }
.oc-card .history-toolbar { margin: 0; justify-content: flex-start; gap: 8px; }
.oc-card .history-toolbar input[type=text] {
  flex: 1 1 260px; min-width: 0; max-width: 380px; height: 36px; padding: 0 12px 0 34px;
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa7b4' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center;
}
.oc-card .history-toolbar input[type=text]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.oc-card .history-toolbar .btn { height: 36px; padding: 0 14px; border-radius: 9px; }
.oc-card .history-toolbar .ps-wrap { margin-left: auto; }

/* 订单表格卡片 */
.oc-table-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sh-1); overflow: hidden;
}
/* postRender() 会把宽表格自动包进 .table-wrap；此处覆盖其边框/负边距，
   避免与订单卡片形成双层边框、以及窄屏卡片贴边 */
.oc-table-card .table-wrap { margin: 0; border: none; border-radius: 0; overflow: visible; }
.oc-table-card .orders-table { border: none; border-radius: 0; width: 100%; }
.oc-table-card .orders-table thead th {
  padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border-bottom: 1px solid var(--border); letter-spacing: .2px;
}
.oc-table-card .orders-table tbody td {
  padding: 14px 16px; font-size: 13px; border-bottom: 1px solid #EEF1F5; vertical-align: middle;
}
.oc-table-card .orders-table tbody tr:last-child td { border-bottom: none; }
.oc-table-card .orders-table tbody tr.so-row:hover { background: #F7FAFE; }
.oc-table-card .orders-table .so-link { color: var(--primary-dark); font-weight: 700; letter-spacing: .2px; }
.oc-table-card .orders-table .oc-unit { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.oc-table-card .orders-table .oc-c-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-table-card .orders-table .oc-c-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.oc-table-card .orders-table .oc-c-ops { white-space: nowrap; }
.oc-table-card .orders-table .oc-c-ops .btn { margin-right: 6px; border-radius: 7px; }
.oc-table-card .orders-table .oc-c-ops .btn:last-child { margin-right: 0; }

/* 空状态 / 分页 */
.oc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 42px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--sh-1);
}
.oc-empty-ico { color: #C3D0DE; }
.oc-empty .empty { padding: 0; }
.oc-pager { margin-top: 18px; }
.oc-pager button.pg { border-radius: 8px; padding: 7px 13px; }

/* 无障碍：键盘焦点清晰可见 */
.ord-tab:focus-visible,
.oc-card .btn:focus-visible,
.oc-card input:focus-visible,
.oc-table-card .btn:focus-visible,
.oc-table-card .so-link:focus-visible,
.oc-pager button.pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* 响应式：≤680px 表格转卡片、标签横向滚动、工具栏堆叠 */
@media (max-width: 680px) {
  .oc-head { flex-wrap: wrap; gap: 10px; }
  .oc-head h2 { font-size: 21px; }
  .oc-head-cnt { padding: 7px 12px; }
  .oc-card { padding: 12px 12px 10px; }
  .ord-tab { padding: 9px 10px 11px; font-size: 13px; }
  .oc-card .history-toolbar { gap: 8px; }
  .oc-card .history-toolbar input[type=text] { flex: 1 1 100%; max-width: none; }
  .oc-card .history-toolbar .ps-wrap { margin-left: 0; }
  .ac-hero-cta { justify-content: flex-start; }

  .oc-table-card { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .oc-table-card .table-wrap { margin: 0; overflow: visible; }
  .oc-table-card .orders-table, .oc-table-card .orders-table tbody { display: block; }
  .oc-table-card .orders-table thead { display: none; }
  .oc-table-card .orders-table tbody tr.so-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px;
    margin-bottom: 10px; padding: 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-1);
  }
  .oc-table-card .orders-table tbody tr.so-row:last-child { margin-bottom: 0; }
  .oc-table-card .orders-table tbody tr.so-row:hover { background: var(--surface); }
  .oc-table-card .orders-table tbody td {
    padding: 0; border: none; white-space: normal; font-size: 13px;
  }
  .oc-table-card .orders-table tbody td::before {
    content: attr(data-label); display: inline-block; margin-right: 6px;
    color: var(--muted); font-size: 11.5px; font-weight: 500;
  }
  .oc-table-card .orders-table tbody td.oc-c-no::before,
  .oc-table-card .orders-table tbody td.oc-c-amt::before,
  .oc-table-card .orders-table tbody td.oc-c-ops::before { display: none; }
  .oc-table-card .orders-table .oc-c-no { grid-column: 1; grid-row: 1; }
  .oc-table-card .orders-table .oc-c-amt { grid-column: 2; grid-row: 1; text-align: right; font-size: 14px; }
  .oc-table-card .orders-table .oc-c-unit { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .oc-table-card .orders-table .oc-c-time { grid-column: 1 / -1; grid-row: 3; }
  .oc-table-card .orders-table .oc-c-ops {
    grid-column: 1 / -1; grid-row: 4; padding-top: 8px !important;
    border-top: 1px dashed var(--border) !important;
  }
  .oc-table-card .orders-table .oc-c-ops .btn { margin-right: 8px; }
  .oc-pager { margin-top: 16px; }
}
@media (max-width: 420px) {
  .oc-head-cnt b { font-size: 18px; }
  .ord-tab { padding: 9px 8px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ord-tab, .ord-tab::after, .oc-table-card .orders-table tbody tr.so-row { transition: none !important; }
}

/* ============================================================
   「我的订单」状态语义色板 + 购买产品预览
   --st 主色 / --st-bg 浅底 / --st-bd 描边，每个状态一一对应
   ============================================================ */
[data-tone="all"],    .oc-doc-type--all   { --st: #5B6B7C; --st-bg: #EFF2F5; --st-bd: #DDE3E9; }
[data-tone="pay"],    .oc-doc-type--pay   { --st: #C8761C; --st-bg: #FFF4E5; --st-bd: #F3D9AC; }
[data-tone="ship"],   .oc-doc-type--ship  { --st: #2F6FB5; --st-bg: #EAF2FD; --st-bd: #CBDFF7; }
[data-tone="recv"],   .oc-doc-type--recv  { --st: #0E8C9A; --st-bg: #E6F6F7; --st-bd: #BEE7EA; }
[data-tone="after"],  .oc-doc-type--after { --st: #C23E2C; --st-bg: #FDEDEB; --st-bd: #F2C9C4; }
[data-tone="inv"],    .oc-doc-type--inv   { --st: #1F8A4C; --st-bg: #E9F7EE; --st-bd: #C4E9D2; }
[data-tone="signed"]                      { --st: #16855B; --st-bg: #E4F6EC; --st-bd: #BFE6D0; }
[data-tone="done"]                        { --st: #5B6B7C; --st-bg: #EFF2F5; --st-bd: #DDE3E9; }

/* 状态标签栏：图标 + 各自主题色（选中下划线、计数徽标同步换色） */
.ord-tab-ico { display: inline-flex; align-items: center; color: var(--st, var(--muted)); }
.ord-tab-ico svg { display: block; }
.ord-tab:hover { color: var(--st, var(--primary)); }
.ord-tab.active { color: var(--st, var(--primary-dark)); }
.ord-tab.active::after { background: var(--st, var(--primary)); }
.ord-tab-cnt { background: var(--st-bg, var(--bg-soft)); color: var(--st, var(--muted));
               border: 1px solid var(--st-bd, transparent); }
.ord-tab.active .ord-tab-cnt { background: var(--st, var(--primary)); color: #fff;
                               border-color: var(--st, var(--primary)); }

/* 订单行：主状态徽标 + 已签收标签 + 商品预览 */
.oc-no-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.oc-status { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px;
             border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap;
             background: var(--st-bg); color: var(--st); border: 1px solid var(--st-bd); }
.oc-status svg { flex: none; }
.oc-preview { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-width: 0; }
.oc-thumbs { display: inline-flex; flex: none; gap: 3px; }
.oc-thumb { width: 30px; height: 30px; flex: none; border-radius: 6px; overflow: hidden;
            border: 1px solid var(--border); background: var(--bg-soft);
            display: inline-grid; place-items: center; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-thumb-ph { display: inline-flex; color: #A9B6C4; }
.oc-preview-txt { min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; font-size: 11.5px; color: var(--text-2); }

/* 全流程弹窗：购买产品清单 */
.oc-flow-sec { margin: 12px 0 2px; padding: 12px 14px; border: 1px solid var(--border);
               border-radius: 12px; background: var(--bg-soft); }
.oc-flow-sec-h { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 13.5px; }
.oc-flow-sec-ico { display: inline-flex; color: var(--primary); }
#flowItems { max-height: 226px; overflow-y: auto; }
.oc-fi-list { display: flex; flex-direction: column; gap: 7px; }
.oc-fi-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px;
             background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.oc-fi-row .oc-thumb { width: 36px; height: 36px; }
.oc-fi-main { flex: 1; min-width: 0; }
.oc-fi-name { font-size: 12.5px; font-weight: 600; color: var(--text);
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-fi-sub { margin-top: 2px; font-size: 11px; color: var(--muted);
             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-fi-qty { flex: none; font-size: 12px; color: var(--text-2); }
.oc-fi-amt { flex: none; min-width: 84px; text-align: right; font-size: 12.5px;
             font-weight: 700; font-variant-numeric: tabular-nums; }
.oc-fi-total { display: flex; align-items: center; justify-content: space-between;
               padding: 9px 2px 1px; font-size: 12px; color: var(--muted); }
.oc-fi-total b { font-size: 14px; color: var(--text); }

/* 全流程单据列表：单据类型按类型配色 */
.oc-doc-type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
               border-radius: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
               background: var(--st-bg); color: var(--st); border: 1px solid var(--st-bd); }

/* 流程节点：圆点保留「完成绿/未完成红/未发生灰」状态色，内部换类型图标；
   底部加一条类型色短线，使不同单据环节也能一眼区分 */
.flow-node-dot svg { display: block; }
.flow-node[data-sttone="all"]   { --st: #5B6B7C; }
.flow-node[data-sttone="pay"]   { --st: #C8761C; }
.flow-node[data-sttone="ship"]  { --st: #2F6FB5; }
.flow-node[data-sttone="recv"]  { --st: #0E8C9A; }
.flow-node[data-sttone="after"] { --st: #C23E2C; }
.flow-node[data-sttone="inv"]   { --st: #1F8A4C; }
.flow-node::after { content: ""; width: 24px; height: 3px; border-radius: 3px;
                    background: var(--st, #c2ccd6); margin-top: -3px; }

@media (max-width: 680px) {
  .oc-preview-txt { max-width: 150px; }
  .oc-thumb { width: 28px; height: 28px; }
  .oc-status { font-size: 10.5px; }
  .oc-flow-sec { padding: 10px; }
  .oc-fi-amt { min-width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-status, .oc-preview, .oc-fi-row, .flow-node::after { transition: none !important; }
}

/* 物流状态标签：带图标，与行内状态徽标形成「业务状态 + 物流状态」双层区分 */
.tag-signed, .tag-transit { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.tag-signed svg, .tag-transit svg { flex: none; }

/* 无主图商品的占位缩略图：按品牌/编码稳定映射到 6 组柔和配色 */
.oc-thumb--ph1 { background: #EEF3FB; border-color: #DCE7F6; } .oc-thumb--ph1 .oc-thumb-ph { color: #6E8FC4; }
.oc-thumb--ph2 { background: #EAF6F3; border-color: #D2EBE4; } .oc-thumb--ph2 .oc-thumb-ph { color: #3F9E88; }
.oc-thumb--ph3 { background: #FFF3E6; border-color: #F6DEC0; } .oc-thumb--ph3 .oc-thumb-ph { color: #C98A3C; }
.oc-thumb--ph4 { background: #F1EEFA; border-color: #E1DAF3; } .oc-thumb--ph4 .oc-thumb-ph { color: #8A72C4; }
.oc-thumb--ph5 { background: #FDEEEC; border-color: #F5D7D2; } .oc-thumb--ph5 .oc-thumb-ph { color: #C8766C; }
.oc-thumb--ph6 { background: #EDF4E9; border-color: #DCEAD2; } .oc-thumb--ph6 .oc-thumb-ph { color: #6E9E55; }

/* ====== 全流程「单据明细」弹窗：目录号 / 物料名称 / 规格型号 / 数量 / 单价 / 金额 ======
   复用 .spec-table 基础边框，但要覆盖其「键值对表」的 td:first-child 灰底定宽样式；
   6 列在窄屏改为表内横向滚动，避免撑开 modal 与整页。 */
.biz-detail-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 2px; }
.biz-detail-tbl { min-width: 620px; font-size: 12.5px; margin: 0; }
.biz-detail-tbl thead th {
  padding: 8px 10px; border-bottom: 2px solid var(--border); text-align: left;
  font-size: 12px; font-weight: 700; color: #44546a; background: #f5f8fc; white-space: nowrap;
}
.biz-detail-tbl td { font-size: 12.5px; }
.biz-detail-tbl td:first-child { width: auto; background: transparent; color: inherit; white-space: nowrap; }
.biz-detail-tbl th.num, .biz-detail-tbl td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.biz-detail-tbl .bd-cat { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.biz-detail-tbl .bd-name { min-width: 200px; word-break: break-word; }
.biz-detail-tbl .bd-spec { min-width: 110px; max-width: 200px; word-break: break-word; color: var(--muted); }
body.mobile-view .biz-detail-tbl td:first-child { width: auto; }
.biz-detail-hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .biz-detail-tbl { min-width: 560px; } }

/* 产品主图「批量爬取」工具栏：窄屏下长 label + 下拉框不再撑破整页 */
.ic-toolbar label { min-width: 0; max-width: 100%; }
.ic-toolbar label select,
.ic-toolbar label input[type=text],
.ic-toolbar label input[type=number] { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .ic-toolbar { gap: 8px; }
  .ic-toolbar label { width: 100%; flex-wrap: wrap; white-space: normal; }
  .ic-toolbar label select,
  .ic-toolbar label input[type=text],
  .ic-toolbar label input[type=number] { flex: 1 1 100%; width: 100%; }
  .ic-toolbar .btn { flex: 1 1 auto; }
  /* 统计卡内联 repeat(3,1fr) 会被长数字撑开，改 minmax(0,1fr) 保证不溢出 */
  #adminContent .stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #adminContent .stat-cards .card { min-width: 0; overflow: hidden; }
  #adminContent .stat-cards .card .num { font-size: 18px; }
}

/* 左上角欢迎语：企业用户展示具体单位名称。过长时省略（hover 看全称），
   窄屏/手机版允许换行完整显示，避免把账户条撑出横向滚动。 */
.account-bar .container > span:first-child { min-width: 0; }
.ac-unit {
  display: inline-block; max-width: 260px; vertical-align: bottom;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 640px) {
  .account-bar .container > span:first-child { white-space: normal; }
  .ac-unit { max-width: none; overflow: visible; white-space: normal; }
}
body.mobile-view .account-bar .container > span:first-child { white-space: normal; }
body.mobile-view .ac-unit { max-width: none; overflow: visible; white-space: normal; }

/* ============================================================
   子品牌站点：福麦斯自主品牌 · 遵研 ZUNYAN（?site=zunyan）
   以酒红主色覆盖主题变量，复用全站组件；首页独立视觉见 .zy-*。
   ============================================================ */
body.site-zunyan {
  --paper: #FBF5F4;
  --surface: #FFFFFF;
  --surface-2: #F6E8E5;
  --ink: #3A1412;
  --ink-2: #5E3531;
  --primary: #8C2B27;          /* 遵研酒红（主） */
  --primary-dark: #6E1F1C;
  --primary-light: #B46660;
  --accent: #A8332D;
  --accent-dark: #8C2B27;
  --primary-rgb: 140,43,39;
  --hero-overlay: linear-gradient(180deg, rgba(110,31,28,.35), rgba(96,26,23,.62));
  --link: #8C2B27;
  --bg: #FBF5F4;
  --bg-soft: #F6E8E5;
  --bg-section: #FBF5F4;
  --card: #FFFFFF;
  --text: #3A1412;
  --text-2: #5E3531;
  --muted: #8A6B67;
  --border: #EBDAD7;
  --brand-l: #F6E4E1;
  --energy-l: #F6E8E5;
  --sh-brand: 0 6px 20px rgba(140,43,39,.22);
}
/* 页头 ZUNYAN 品牌页签 */
.main-nav a.brand-tab {
  color: #fff; font-weight: 700; letter-spacing: .5px;
  background: #8C2B27; border-radius: 6px; padding: 8px 13px;
  transition: background .18s, box-shadow .18s;
}
.main-nav a.brand-tab:hover { color: #fff; background: #6E1F1C; text-decoration: none; }
.main-nav a.brand-tab.active {
  color: #8C2B27; background: #F6E4E1; box-shadow: inset 0 0 0 1.5px #8C2B27;
}
/* 子品牌下：FCMACS 黄蓝页签，点击返回主品牌站 */
.main-nav a.brand-tab.to-main,
body.site-zunyan .main-nav a.brand-tab.active {
  color: #F0B000; font-weight: 800; letter-spacing: 1px;
  background: #0040A0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #F0B000;
}
.main-nav a.brand-tab.to-main:hover,
body.site-zunyan .main-nav a.brand-tab.active:hover {
  color: #0040A0; background: #F0B000; box-shadow: none; text-decoration: none;
}
body.site-zunyan .logo img { height: 50px; }

/* —— 子品牌首页 Hero —— */
.zy-hero { position: relative; overflow: hidden; color: #fff; }
.zy-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 480px at 82% 12%, rgba(212,140,120,.35), transparent 60%),
    radial-gradient(900px 520px at 8% 92%, rgba(110,31,28,.75), transparent 62%),
    linear-gradient(125deg, #7A221F 0%, #8C2B27 46%, #5E1A18 100%);
}
.zy-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .10;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.zy-hero-inner {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 64px;
  min-height: 430px; padding-top: 54px; padding-bottom: 64px;
}
.zy-hero-brand { flex: 0 0 280px; text-align: center; }
.zy-hero-brand img {
  width: 100%; max-width: 280px; height: auto;
  background: #fff; border-radius: 18px; padding: 26px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.zy-hero-txt { flex: 1; min-width: 0; }
.zy-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 4px; font-weight: 700;
  color: #F4D9D2; border: 1px solid rgba(255,255,255,.4); border-radius: 99px;
  padding: 5px 16px; margin-bottom: 18px;
}
.zy-hero h1 {
  font-family: var(--font-disp); font-size: 62px; line-height: 1.1; margin: 0 0 6px; font-weight: 900;
  letter-spacing: 4px;
}
.zy-hero h1 span { font-family: var(--font-mono); font-size: 40px; letter-spacing: 2px; font-weight: 700; color: #F0C9C1; }
.zy-lead { font-size: 21px; font-weight: 600; letter-spacing: 2px; margin: 12px 0; color: #fff; }
.zy-sub { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.86); max-width: 560px; margin: 0 0 26px; }
.zy-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.zy-btn {
  display: inline-block; border-radius: 8px; padding: 12px 28px; font-size: 15px; font-weight: 700;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.zy-btn:hover { text-decoration: none; transform: translateY(-2px); }
.zy-btn.primary { background: #fff; color: #8C2B27; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.zy-btn.primary:hover { background: #FBEDEA; color: #6E1F1C; }
.zy-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.66); }
.zy-btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.zy-stat { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.8); }
.zy-stat b { font-size: 18px; color: #fff; }
.zy-hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: 2;
  background: var(--bg);
  -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 42%, 78% 78%, 52% 30%, 27% 74%, 0 38%);
  clip-path: polygon(0 100%, 100% 100%, 100% 42%, 78% 78%, 52% 30%, 27% 74%, 0 38%);
}

/* —— 子品牌服务保障条 —— */
.zy-svc { background: var(--surface); border-bottom: 1px solid var(--border); }
.zy-svc-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.zy-svc-item {
  text-align: center; padding: 22px 10px; border-right: 1px solid var(--border);
}
.zy-svc-item:last-child { border-right: none; }
.zy-svc-item b { display: block; font-size: 16px; color: var(--primary); }
.zy-svc-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* —— 子品牌精选产品 —— */
.zy-products { padding: 8px 0 44px; }
.zy-title { text-align: center; margin: 44px 0 30px; }
.zy-title .en { font-size: 30px; font-weight: 800; letter-spacing: 6px; color: rgba(var(--primary-rgb),.16); line-height: 1; }
.zy-title .zh { font-size: 24px; font-weight: 700; color: var(--text); margin-top: 8px; font-family: var(--font-disp); }
.zy-title p { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.zy-products .grid.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zy-more { text-align: center; margin-top: 34px; }
.zy-more .zy-btn.primary { background: var(--primary); color: #fff; box-shadow: var(--sh-brand); }
.zy-more .zy-btn.primary:hover { background: var(--primary-dark); color: #fff; }

/* —— 关于遵研 —— */
.zy-about { background: linear-gradient(180deg, #fff, #FBF5F4); border-top: 1px solid var(--border); }
.zy-about-inner { display: flex; align-items: center; gap: 60px; padding-top: 54px; padding-bottom: 58px; }
.zy-about-txt { flex: 1; min-width: 0; }
.zy-about-txt .zy-eyebrow { color: var(--primary); border-color: rgba(var(--primary-rgb),.4); }
.zy-about-txt h2 { font-family: var(--font-disp); font-size: 32px; margin: 0 0 18px; color: var(--text); }
.zy-about-txt p { color: var(--text-2); font-size: 14px; line-height: 2; margin: 0 0 12px; }
.zy-about-badge {
  flex: 0 0 240px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 30px 24px; box-shadow: var(--sh-2);
}
.zy-about-badge img { width: 100%; max-width: 200px; }
.zy-about-badge span { display: block; margin-top: 16px; color: var(--primary); font-weight: 700; letter-spacing: 3px; }

/* —— 响应式 —— */
@media (max-width: 980px) {
  .zy-products .grid.products { grid-template-columns: repeat(3, 1fr); }
  .zy-hero-inner { gap: 34px; }
  .zy-hero-brand { flex-basis: 210px; }
  .zy-hero h1 { font-size: 50px; }
}
@media (max-width: 720px) {
  .zy-hero-inner { flex-direction: column; gap: 26px; text-align: center; padding-top: 34px; padding-bottom: 52px; }
  .zy-hero-brand { flex: none; }
  .zy-hero-brand img { max-width: 210px; padding: 20px 16px; margin: 0 auto; }
  .zy-hero h1 { font-size: 42px; }
  .zy-hero h1 span { font-size: 28px; }
  .zy-lead { font-size: 18px; }
  .zy-sub { margin-left: auto; margin-right: auto; }
  .zy-cta { justify-content: center; }
  .zy-svc-row { grid-template-columns: repeat(2, 1fr); }
  .zy-svc-item:nth-child(2) { border-right: none; }
  .zy-svc-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .zy-products .grid.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .zy-about-inner { flex-direction: column; gap: 26px; }
  .zy-about-badge { flex: none; width: 100%; }
}
body.mobile-view .zy-hero-inner { flex-direction: column; gap: 26px; text-align: center; padding-top: 34px; }
body.mobile-view .zy-hero-brand { flex: none; }
body.mobile-view .zy-hero-brand img { max-width: 210px; margin: 0 auto; }
body.mobile-view .zy-hero h1 { font-size: 40px; }
body.mobile-view .zy-cta { justify-content: center; }
body.mobile-view .zy-products .grid.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
body.mobile-view .zy-about-inner { flex-direction: column; }

/* —— 子品牌首页爆款角标 & 主标语 —— */
.zy-lead .zy-lead-sep { color: #F0C9C1; }
.zy-hot-card { position: relative; }
.zy-hot-flag {
  position: absolute; top: 0; left: 0; z-index: 3;
  background: linear-gradient(135deg, #FFD34E, #F0B000); color: #7A1F1B;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 10px 0 12px 0;
  box-shadow: 0 3px 10px rgba(240,176,0,.5), inset 0 -1px 0 rgba(122,31,27,.15);
}

/* ===== 我的售后/投诉单弹窗 ===== */
.ma-list { display: flex; flex-direction: column; gap: 12px; }
.ma-item { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 14px 16px; background: var(--card, #fff); }
.ma-ihead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.ma-st { font-size: 12px; padding: 3px 10px; border-radius: 10px; background: #e8f5e9; color: #256029; font-weight: 700; white-space: nowrap; }
.ma-st.bad { background: #fdecea; color: #a4262c; }
.ma-iline { display: flex; gap: 12px; font-size: 13px; padding: 4px 0; line-height: 1.5; }
.ma-iline > span:first-child { flex: 0 0 108px; color: var(--muted, #888); }
.ma-iline > span:last-child { flex: 1; word-break: break-all; }

/* ===== 品牌 Logo 库（产品主图 tab 内） ===== */
.bl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bl-head-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-summary { font-size: 13px; line-height: 1.6; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bl-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--card); text-align: center; position: relative; transition: opacity .15s; }
.bl-card.bl-off { opacity: .5; }
.bl-logo { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.bl-logo img { max-height: 68px; max-width: 100%; object-fit: contain; }
.bl-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-code { color: var(--muted); font-size: 12px; margin-top: 2px; }
.bl-meta { color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.5; }
.bl-ops { display: flex; gap: 6px; justify-content: center; margin-top: 8px; align-items: center; }
.bl-ops .btn { padding: 4px 10px; font-size: 12px; }
.bl-up { position: relative; overflow: hidden; cursor: pointer; color: var(--accent); font-size: 12px; padding: 4px 10px; border: 1px dashed var(--border); border-radius: 6px; }
.bl-up input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
@media (max-width: 860px) { .bl-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
