/* ==========================================================================
   Ablumir Design System  —  唯一视觉真相源
   与《Ablumir 官网设计需求说明书 V1.0》第 2 章 1:1 对齐
   所有页面只引用 Token，禁止页面级硬编码色值
   ========================================================================== */

/* ---- 0. 品牌字体：Lato 自托管 ----
   font 栈里声明了 Lato 但此前没有 @font-face，访客机器上没装 Lato 时
   英文全部回退到微软雅黑 —— 400 字重也显得粗（详细信息表值列被指「加粗」即此）。
   字体源：Google Fonts 官方 Lato（OFL 授权），TTF 由 PDF 说明书共用。 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-BoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato Black';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-Black.woff2') format('woff2');
}

:root {
  /* ---- 2.1 色彩系统 ---- */
  --brand-primary: #236952;
  --brand-primary-dark: #17452F;
  --brand-primary-light: #E8F2ED;
  --brand-accent: #C00000;
  --brand-accent-light: #FDECEC;
  --text-primary: #1A1A1A;
  --text-secondary: #5C6670;
  --text-disabled: #9AA3AB;
  --line-default: #E3E7EA;
  --line-strong: #CBD2D8;
  --bg-page: #FFFFFF;
  --bg-subtle: #F6F8F9;
  --state-success: #1F9254;
  --state-success-bg: #E7F6EE;
  --state-warning: #D98B00;
  --state-warning-bg: #FDF4E3;
  --state-info: #1B6EC2;
  --state-info-bg: #E9F2FB;

  /* 图表 8 色色序（固定，跨报表语义一致） */
  --chart-1: #236952;
  --chart-2: #C00000;
  --chart-3: #1B6EC2;
  --chart-4: #D98B00;
  --chart-5: #7A5AF8;
  --chart-6: #0E9F9F;
  --chart-7: #8C6D3F;
  --chart-8: #4A5568;

  /* ---- 2.2 字体系统 ---- */
  --ff-display: "Lato Black", Lato, "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
  --ff-body: Lato, "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
  --ff-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  /* ：全站可读字体统一加大一号（正文 15→16、辅助 13→14、说明 12→13，
     标题各级同步 +1~2px）。改动只动 token，绝大多数规则走 var() 自动继承 */
  --fs-display: 50px;
  --fs-h1: 38px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-h4: 17px;
  --fs-body: 16px;
  --fs-body-s: 14px;
  --fs-caption: 13px;

  /* ---- 2.4 布局与栅格 ---- */
  /* 1920 及以下全流式铺满；更宽的屏（2K/4K）把内容定在 1520 居中，留白等比放大 */
  --content-max: none;
  --gutter: 24px;
  /* 桌面留白随视口放大：1440 下 80、1920 下正好 200（= (1920-1520)/2），
     超过 1920 后内容定宽 1520 居中、留白继续变宽。不写死 px，窄屏由下方断点接管。 */
  --pad-desktop: clamp(40px, calc((100vw - 1520px) / 2), 220px);
  --pad-tablet: 40px;
  --pad-mobile: 20px;
  --section-y: 67px;
  --section-y-tablet: 45px;
  --section-y-mobile: 34px;

  --r-card: 6px;
  --r-btn: 4px;
  --r-tag: 3px;
  --r-input: 4px;
  --r-pill: 999px;

  --sh-card: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --sh-pop: 0 8px 24px rgba(16, 24, 40, .12);
  --sh-drawer: 0 -4px 24px rgba(16, 24, 40, .14);

  --h-btn: 44px;
  --h-btn-sm: 34px;
  --h-input: 44px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ========================= Reset & Base ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  /* 页面正文不允许自由框选复制（版权与设计归属见页脚声明）。
     输入类控件必须例外 —— 否则搜索框、留言表单、后台编辑全都选不中，
     连「复制粘贴自己填的内容」都做不到，那是把功能一起禁掉了。 */
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"], [data-copyable] {
  -webkit-user-select: text;
  user-select: text;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-h1); line-height: 1.2; }
h2 { font-size: var(--fs-h2); line-height: 1.25; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }
h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 700; }
p { margin: 0 0 12px; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.num, .catno, table td.num, .mono {
  font-variant-numeric: tabular-nums;
  font-family: var(--ff-mono);
  font-size: .95em;
}
.nw { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand-primary); color: #fff;
  padding: 10px 18px; border-radius: var(--r-btn);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ========================= Layout ========================= */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}
/* 超过 1920 的屏幕（2K/4K）：正文不再无限铺开，定在 1520 居中，留白等比放大。
   只收正文容器，顶栏/页脚这些整宽色块仍铺满（它们内部各有一层 .wrap 对齐正文）。 */
@media (min-width: 1921px) {
  .wrap { max-width: 2000px; }
}
.section { padding: var(--section-y) 0; }
.section--subtle { background: var(--bg-subtle); }
.section--tight { padding: 45px 0; }

.section-head { margin-bottom: 40px; }
.section-head .eyebrow {
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-primary);
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head .lede {
  font-size: var(--fs-body); color: var(--text-secondary);
  max-width: 760px; margin: 0;
}
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--gutter); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ========================= Buttons ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h-btn); padding: 0 22px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--ff-body); font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-dark); text-decoration: none; color: #fff; }
.btn--accent { background: var(--brand-accent); color: #fff; }
.btn--accent:hover { background: #9A0000; color: #fff; text-decoration: none; }
.btn--ghost { background: #fff; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn--ghost:hover { background: var(--brand-primary-light); text-decoration: none; }
.btn--quiet { background: #fff; color: var(--text-primary); border-color: var(--line-default); }
.btn--quiet:hover { border-color: var(--line-strong); background: var(--bg-subtle); text-decoration: none; }
.btn--text { height: auto; padding: 0; color: var(--brand-primary); background: none; }
.btn--text:hover { text-decoration: underline; }
.btn--sm { height: var(--h-btn-sm); padding: 0 14px; font-size: var(--fs-body-s); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ========================= Tags ========================= */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 5px;
  border-radius: var(--r-tag);
  font-size: var(--fs-caption); font-weight: 700; line-height: 1;
  background: var(--bg-subtle); color: var(--text-secondary);
  border: 1px solid var(--line-default);
}
.tag--brand { background: var(--brand-primary-light); color: var(--brand-primary-dark); border-color: #CFE3D9; }
.tag--hot { background: var(--brand-accent-light); color: var(--brand-accent); border-color: #F6D2D2; }
.tag--new { background: var(--state-info-bg); color: var(--state-info); border-color: #CFE2F7; }
.tag--ok { background: var(--state-success-bg); color: var(--state-success); border-color: #C9E9D8; }
.tag--warn { background: var(--state-warning-bg); color: var(--state-warning); border-color: #F2E0BF; }
.tag--off { opacity: .5; }

/* ========================= Header ========================= */
.promo-bar {
  background: var(--brand-primary-dark); color: #fff;
  font-size: var(--fs-body-s); position: relative;
}
.promo-bar .wrap { display: flex; align-items: center; gap: 16px; height: 40px; }
.promo-bar__tag {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); color: #FFD9A0;
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
/* 连续横向滚动：条目渲染两遍，整轨 translateX(-50%) 无限循环。
   悬停暂停 —— 用户想点某一条时它不会跑掉。 */
.promo-bar__track { flex: 1; min-width: 0; overflow: hidden; }
.promo-bar__roll {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap; will-change: transform;
  animation: promoRoll 26s linear infinite;
}
.promo-bar__roll:hover { animation-play-state: paused; }
@keyframes promoRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.promo-bar__roll[data-single] { animation: none; }
.promo-bar__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; padding: 0 26px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.promo-bar__item:hover { color: #FFD9A0; }
.promo-bar__item b {
  color: #FFD9A0; font-weight: 700; padding: 2px 7px; border-radius: var(--r-tag);
  background: rgba(255,217,160,.16);
}
.promo-bar__item em { font-style: normal; color: rgba(255,255,255,.62); font-size: var(--fs-caption); }
.promo-bar__item:hover em { color: #FFD9A0; }
.promo-bar__close {
  background: none; border: 0; color: rgba(255,255,255,.7);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 4px;
}
.promo-bar__close:hover { color: #fff; }

/* 促销条 + 头部 + 主导航 整块置顶。 .site-header 与促销条同为 sticky。 */
.site-top { position: sticky; top: 0; z-index: 120; background: #fff; }
.site-header { position: static; background: #fff; border-bottom: 1px solid var(--line-default); }
.site-header__main { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 32px; width: auto; }

.searchbox { position: relative; flex: 1; max-width: 660px; }
.searchbox form { display: flex; height: var(--h-input); border: 1px solid var(--line-strong); border-radius: var(--r-input); overflow: hidden; background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.searchbox form:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(35,105,82,.12); }
.searchbox select {
  border: 0; background: var(--bg-subtle) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6670' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 8px center;
  padding: 0 28px 0 14px;
  font-size: var(--fs-body-s); color: var(--text-secondary);
  border-right: 1px solid var(--line-default); cursor: pointer;
  -webkit-appearance: none; appearance: none; min-width: 86px;
}
.searchbox input { flex: 1; border: 0; padding: 0 14px; outline: none; font-size: 14px; }
.searchbox button[type="submit"] {
  border: 0; background: var(--brand-primary); color: #fff;
  padding: 0 22px; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.searchbox button[type="submit"]:hover { background: var(--brand-primary-dark); }

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  /* z-index 必须给：.site-nav 在 DOM 里排在 .site-header__main 之后且同为 auto 层级，
     会把联想面板压住 —— 实测面板里的「清除历史」按钮点不动（被导航拦截指针）。 */
  z-index: 130;
  background: #fff; border: 1px solid var(--line-default);
  border-radius: var(--r-card); box-shadow: var(--sh-pop);
  padding: 8px 0; display: none; max-height: 74vh; overflow: auto;
}
.suggest.is-open { display: block; }
.suggest__group { padding: 6px 0; border-bottom: 1px solid var(--line-default); }
.suggest__group:last-child { border-bottom: 0; }
.suggest__title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 16px; font-size: var(--fs-caption);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-disabled); font-weight: 700;
}
.suggest__title a { font-size: var(--fs-caption); text-transform: none; letter-spacing: 0; }
.suggest__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: var(--fs-body-s); cursor: pointer;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-subtle); }
.suggest__item .catno { color: var(--brand-primary); font-weight: 700; }
.suggest__hot { padding: 6px 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
/* 「最近搜索」标题右侧的清除按钮（加历史搜索时配套） */
.suggest__clear {
  margin-left: auto; border: 0; background: none; padding: 0;
  font-size: var(--fs-caption); font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--brand-primary); cursor: pointer;
}
.suggest__clear:hover { text-decoration: underline; }
.pill {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--bg-subtle); border: 1px solid var(--line-default);
  font-size: var(--fs-body-s); color: var(--text-secondary); cursor: pointer;
}
.pill:hover { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: var(--r-btn);
  color: var(--text-primary); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-subtle); }
.icon-btn__badge {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: var(--r-pill);
  background: var(--brand-accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
.lang { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-default); border-radius: var(--r-pill); padding: 2px; }
/* 双语上线：切换项从 <button disabled> 改为真正的 <a> 链接（保持当前页跳转）。
   选择器写成 button, a 两者都覆盖，避免老页面残留 button 时样式漂移。 */
.lang button, .lang a {
  border: 0; background: none; border-radius: var(--r-pill);
  padding: 4px 10px; font-size: var(--fs-caption); font-weight: 700;
  color: var(--text-secondary); cursor: pointer; text-decoration: none; line-height: 1.6;
}
.lang button.is-on, .lang a.is-on { background: var(--brand-primary); color: #fff; }
.lang a:hover { color: var(--brand-primary); }
.lang a.is-on:hover { color: #fff; }

/* 主 导 航 */
.site-nav { border-top: 1px solid var(--line-default); }
.site-nav .wrap { display: flex; align-items: stretch; gap: 2px; position: relative; }
.nav-item { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 16px;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  border-bottom: 2px solid transparent;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.nav-link:hover, .nav-item.is-open .nav-link { color: var(--brand-primary); border-bottom-color: var(--brand-primary); text-decoration: none; }
.nav-link .caret { transition: transform .2s var(--ease); }
.nav-item.is-open .caret { transform: rotate(180deg); }

/* 容器层：满宽 + 透明，负责「接住鼠标」（从导航移到面板中间的空隙也不断 hover）。
   卡片外观交给 .mega__inner，所以这里不能有背景/边框/阴影。 */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0;
  background: transparent; border-top: 0; box-shadow: none;
  display: none; z-index: 130;
}
/* 只有产品全宽下拉需要与正文对齐：容器满宽透明只负责接住鼠标，左右内边距与
   .wrap 同源；其他栏目的紧凑小面板贴着导航项定位，不能继承这段留白。 */
.nav-item--has .mega { padding: 0 var(--pad-desktop); }
.nav-item.is-open .mega { display: block; }
/* 桌面端 hover 直接弹出。
   .is-open 才 display:block，JS 只在 ≤900px 时加 is-open ——
   桌面端 hover 永远弹不出下拉，用户看到的就是「导航没有下拉分类」。
   .mega 是 .nav-item 的后代节点，鼠标从链接下移到面板上时 :hover 仍沿祖先链成立，
   加上 top:100% 与导航底边严丝合缝，不会出现闪断。
   移动端（≤900px）单独关掉 hover 触发，见文件末尾媒体查询。 */
.nav-item:hover .mega { display: block; }
.nav-item:hover > .nav-link { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.nav-item:hover .caret { transform: rotate(180deg); }
.mega__inner {
  /* 宽度与正文对齐（.mega 容器 = .site-nav .wrap 宽度，inner 占满即与正文同宽）。
     二次调整：先改 1160 居中，看实景后说「比正文短了一些」→
     面板宽度跟正文一致，卡片质感（圆角/阴影/渐变条）保留。 */
  max-width: 100%; margin: 0 auto;
  padding: 22px 26px 20px;
  background: #fff;
  border: 1px solid var(--line-default);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 26px 60px rgba(16, 24, 40, .16);
  display: grid; grid-template-columns: 210px 1fr 1fr 260px; gap: 26px;
  position: relative;
}
.mega__inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-primary) 38%, #3E9B78 68%, var(--state-info) 100%);
}
.mega__col-title {
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-disabled); margin-bottom: 10px;
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-btn);
  font-size: var(--fs-body-s); color: var(--text-primary);
}
.mega__list a:hover, .mega__list a.is-on { background: var(--brand-primary-light); color: var(--brand-primary-dark); text-decoration: none; }
.mega__list .sku { font-size: 11px; color: var(--text-disabled); font-variant-numeric: tabular-nums; }
.mega__list a.is-on .sku { color: var(--brand-primary); }
.mega__cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-btn); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.mega__cat:hover { background: var(--bg-subtle); text-decoration: none; }
.mega__cat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }
.mega__reco { display: grid; gap: 10px; }
.mega__foot {
  /* 与 .mega__inner 拼成完整卡片：同宽（100%）、下半圆角在这里 */
  max-width: 100%; margin: 0 auto;
  padding: 12px 26px 14px;
  background: #fff;
  border: 1px solid var(--line-default); border-top: 1px solid var(--line-default);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 26px 60px rgba(16, 24, 40, .16);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-body-s); color: var(--text-secondary);
}
.mega__subsets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }

/* ========================= Product card ========================= */
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-default);
  border-radius: var(--r-card); box-shadow: var(--sh-card);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pcard__media {
  height: 150px; border-radius: var(--r-card) var(--r-card) 0 0;
  background: linear-gradient(135deg, var(--brand-primary-light) 0%, #F9FBFA 60%, #EEF5F1 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line-default);
  position: relative; overflow: hidden;
}
.pcard__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.pcard__pick {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: var(--r-tag);
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--brand-primary); cursor: pointer;
}
.pcard__pick.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.pcard__body { padding: 16px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
/* 卡片行数定稿在 front.css「卡内区块行数定稿」段（名称 3 行/元信息 2 行/标签 2 行）——
   此处不重复定义，只补价格行贴底： */
.pcard__foot {
  display: flex; gap: 8px; padding: 10px 16px;
  border-top: 1px solid var(--line-default);
  margin-top: auto;   /* 卡片高度不一时，价格行统一贴底（网格行内等高） */
}
.pcard__status { display: flex; gap: 12px; font-size: var(--fs-caption); color: var(--text-secondary); flex-wrap: wrap; }
.pcard__status span { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pcard__price { display: flex; align-items: baseline; gap: 6px; }
.price { font-family: var(--ff-display); font-weight: 900; color: var(--brand-accent); font-size: 19px; font-variant-numeric: tabular-nums; }
.price--muted { color: var(--text-disabled); font-weight: 700; font-size: var(--fs-body-s); }
.pcard__foot .btn { flex: 1; }
.pcard--row { flex-direction: row; }
.pcard--row .pcard__media { width: 180px; height: auto; border-radius: var(--r-card) 0 0 var(--r-card); border-bottom: 0; border-right: 1px solid var(--line-default); }
.pcard--row .pcard__body { padding: 18px 20px; }

/* 骨架图（无实拍图的占位，风格化为抗体示意） */
.antibody-glyph { width: 82px; height: 82px; opacity: .95; }

/* ========================= Filter panel ========================= */
.catalog { display: grid; grid-template-columns: 268px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 130px; border: 1px solid var(--line-default); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-default); background: var(--bg-subtle); }
.filters__head h3 { font-size: var(--fs-h4); margin: 0; }
.filters__sel { padding: 12px 16px; border-bottom: 1px solid var(--line-default); display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: var(--r-tag);
  background: var(--brand-primary-light); color: var(--brand-primary-dark);
  font-size: var(--fs-caption); font-weight: 700; cursor: pointer;
}
.chip:hover { background: #D8E9E0; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 13px; line-height: 1; padding: 0; }
.fgroup { border-bottom: 1px solid var(--line-default); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.fgroup__head:hover { background: var(--bg-subtle); }
.fgroup__head .cnt { font-size: var(--fs-caption); color: var(--text-disabled); font-weight: 400; margin-left: 6px; }
.fgroup__body { padding: 0 16px 12px; display: block; }
.fgroup.is-collapsed .fgroup__body { display: none; }
.fgroup.is-collapsed .caret { transform: rotate(-90deg); }
.fgroup__search {
  width: 100%; height: 32px; margin-bottom: 8px; padding: 0 10px;
  border: 1px solid var(--line-default); border-radius: var(--r-btn);
  font-size: var(--fs-body-s); outline: none;
}
.fgroup__search:focus { border-color: var(--brand-primary); }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: var(--fs-body-s); cursor: pointer; }
.opt:hover { color: var(--brand-primary); }
.opt input { accent-color: var(--brand-primary); width: 15px; height: 15px; }
.opt .n { margin-left: auto; font-size: 11px; color: var(--text-disabled); font-variant-numeric: tabular-nums; }
.opt--more { color: var(--brand-primary); font-weight: 700; }

/* ========================= Toolbar / table ========================= */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 18px; }
.toolbar__count { font-size: var(--fs-body-s); color: var(--text-secondary); }
.toolbar__count b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; border: 1px solid var(--line-default); border-radius: var(--r-btn); overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 14px; height: var(--h-btn-sm); font-size: var(--fs-body-s); cursor: pointer; color: var(--text-secondary); }
.seg button + button { border-left: 1px solid var(--line-default); }
.seg button.is-on { background: var(--brand-primary); color: #fff; font-weight: 700; }
.select {
  height: var(--h-btn-sm); border: 1px solid var(--line-default);
  border-radius: var(--r-btn); padding: 0 10px;
  font-size: var(--fs-body-s); background: #fff; cursor: pointer; color: var(--text-secondary);
}
.select:focus { border-color: var(--brand-primary); outline: none; }

.dtable-wrap { border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; }
table.dtable { width: 100%; border-collapse: collapse; }
table.dtable caption { text-align: left; padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--line-default); background: var(--bg-subtle); font-size: var(--fs-h4); }
table.dtable thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--brand-primary-light); color: var(--brand-primary-dark);
  text-align: left; font-size: var(--fs-body-s); font-weight: 700;
  padding: 11px 16px; border-bottom: 1px solid #CFE3D9; white-space: nowrap;
}
table.dtable tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line-default); font-size: var(--fs-body-s); vertical-align: top; }
table.dtable tbody tr:nth-child(even) { background: #FBFCFC; }
table.dtable tbody tr:hover { background: var(--brand-primary-light); }
table.dtable tbody tr:last-child td { border-bottom: 0; }
table.dtable th.num, table.dtable td.num { text-align: right; }
.kv th[scope="row"] { width: 220px; color: var(--text-secondary); font-weight: 400; background: transparent; position: static; text-align: left; border-bottom: 1px solid var(--line-default); padding: 11px 16px; font-size: var(--fs-body-s); }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 28px 0 0; flex-wrap: wrap; }
.pager button, .pager a {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-default); background: #fff;
  border-radius: var(--r-btn); font-size: var(--fs-body-s);
  color: var(--text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pager button.is-on, .pager a.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 700; }
.pager button:hover:not(.is-on), .pager a:hover:not(.is-on) { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }

/* ========================= Breadcrumb / tabs / accordion ========================= */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body-s); color: var(--text-secondary); padding: 18px 0; flex-wrap: wrap; }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--brand-primary); }
.crumbs .sep { color: var(--text-disabled); }
.crumbs .drop { position: relative; }
.crumbs .drop__menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; z-index: 60;
  background: #fff; border: 1px solid var(--line-default);
  border-radius: var(--r-card); box-shadow: var(--sh-pop); padding: 6px 0; display: none;
}
.crumbs .drop.is-open .drop__menu { display: block; }
.crumbs .drop__menu a { display: block; padding: 7px 14px; font-size: var(--fs-body-s); }
.crumbs .drop__menu a:hover { background: var(--bg-subtle); text-decoration: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-default); overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 12px 16px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--brand-primary); }
.tab.is-on { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tabpanel { display: none; padding-top: 24px; }
.tabpanel.is-on { display: block; }

.acc { border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--line-default); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; background: #fff; border: 0; cursor: pointer; text-align: left;
  font-size: var(--fs-h4); font-weight: 700; color: var(--text-primary);
}
.acc__head:hover { background: var(--bg-subtle); }
.acc__head .caret { transition: transform .2s var(--ease); color: var(--text-secondary); }
.acc__item.is-open .acc__head { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.acc__item.is-open .acc__head .caret { transform: rotate(180deg); }
.acc__body { display: none; padding: 4px 18px 20px; }
.acc__item.is-open .acc__body { display: block; }

/* 长文本折叠：默认 3 行 */
.clamp { position: relative; overflow: hidden; }
.clamp[data-lines="3"] { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.clamp.is-open { display: block; -webkit-line-clamp: unset; }
.clamp-toggle { margin-top: 4px; font-size: var(--fs-body-s); font-weight: 700; color: var(--brand-primary); background: none; border: 0; cursor: pointer; padding: 0; }
.clamp-toggle:hover { text-decoration: underline; }

/* ========================= Compare tray ========================= */
.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--line-default);
  box-shadow: var(--sh-drawer);
  transform: translateY(110%); transition: transform .26s var(--ease);
}
.compare-tray.is-on { transform: translateY(0); }
.compare-tray .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.compare-tray__items { display: flex; gap: 10px; flex: 1; overflow-x: auto; padding: 2px 0; }
.compare-tray__item {
  position: relative; flex: 0 0 auto; width: 176px;
  border: 1px solid var(--line-default); border-radius: var(--r-btn);
  padding: 8px 26px 8px 10px; background: var(--bg-subtle);
}
.compare-tray__item .catno { color: var(--brand-primary); font-weight: 700; font-size: var(--fs-caption); }
.compare-tray__item .nm { font-size: var(--fs-caption); line-height: 1.35; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compare-tray__item button {
  position: absolute; top: 6px; right: 6px; border: 0; background: none;
  color: var(--text-disabled); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px;
}
.compare-tray__item button:hover { color: var(--brand-accent); }
.compare-tray__empty { font-size: var(--fs-body-s); color: var(--text-disabled); }

/* ========================= Compare page ========================= */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-default); border-radius: var(--r-card); background: #fff; }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line-default); padding: 12px 16px; font-size: var(--fs-body-s); vertical-align: top; }
table.cmp thead th { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line-strong); }
table.cmp .cmp-param {
  position: sticky; left: 0; z-index: 2; background: var(--bg-subtle);
  width: 200px; min-width: 200px; text-align: left;
  font-weight: 700; color: var(--text-secondary);
}
table.cmp thead .cmp-param { z-index: 4; background: var(--bg-subtle); }
table.cmp .is-diff { background: #FFFBEB; }
table.cmp .is-better { font-weight: 700; color: var(--brand-primary-dark); }
table.cmp .cmp-col { min-width: 240px; }
table.cmp thead .cmp-head { text-align: left; }
table.cmp .group-row td { background: var(--brand-primary-light); color: var(--brand-primary-dark); font-weight: 700; letter-spacing: .04em; }
.cmp-diff-toggle { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body-s); }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: background .18s var(--ease); pointer-events: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .18s var(--ease); }
.switch input:checked + .track { background: var(--brand-primary); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ========================= Detail page ========================= */
.detail-top { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; padding-bottom: 32px; }
.detail-title { font-size: 22px; font-weight: 900; line-height: 1.35; margin-bottom: 8px; }
.detail-sub { font-size: var(--fs-body-s); color: var(--text-secondary); margin-bottom: 12px; }
.quickbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-default); border-bottom: 1px solid var(--line-default); }
.buybox { position: sticky; top: 130px; border: 1px solid var(--line-default); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; }
.buybox__head { padding: 16px 18px; background: var(--brand-primary-light); border-bottom: 1px solid #CFE3D9; }
.buybox__body { padding: 16px 18px; display: grid; gap: 14px; }
.spec-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line-default); border-radius: var(--r-btn); cursor: pointer;
}
.spec-opt:hover { border-color: var(--line-strong); }
.spec-opt.is-on { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.spec-opt input { accent-color: var(--brand-primary); }
.spec-opt .sz { font-weight: 700; font-size: var(--fs-body-s); }
.spec-opt .pr { margin-left: auto; color: var(--brand-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; border: 1px solid var(--line-default); border-radius: var(--r-btn); overflow: hidden; height: 38px; }
.qty button { width: 36px; border: 0; background: #fff; cursor: pointer; font-size: 16px; color: var(--text-secondary); }
.qty button:hover { background: var(--bg-subtle); }
.qty input { width: 52px; border: 0; text-align: center; outline: none; font-variant-numeric: tabular-nums; }

.figgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fig { border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.fig__img { position: relative; background: linear-gradient(160deg, #F2F7F4, #E8F0EC); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.fig__img svg { width: 100%; height: 100%; }
.fig__cap { padding: 10px 12px; font-size: var(--fs-caption); color: var(--text-secondary); line-height: 1.6; }
.fig__cond { display: none; margin-top: 6px; padding: 6px 8px; background: var(--state-info-bg); border-radius: var(--r-tag); color: var(--state-info); }
.fig:hover .fig__cond { display: block; }

/* 灯箱：遮罩全屏只是压暗层，内容收进 .lb-box 卡片 ——
   图注落在图片框外、白色半透明贴底时实际看不清，卡片化之后才读得出来。 */
/* 开合改为 opacity + visibility 过渡：display 的 none↔flex 不产生过渡，
   点开会是「啪」一下整块出现，关掉又是瞬间消失 —— 没有任何中间帧可看。
   visibility 用 0s 延迟挂在 opacity 之后，退场时才不会被提前抽掉。 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(16, 24, 40, .74);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.is-on {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.lb-box {
  position: relative; display: flex; flex-direction: column;
  max-width: min(1040px, 94vw); max-height: min(90vh, 900px);
  background: #fff; border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 30px 80px rgba(16, 24, 40, .38);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .26s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
}
.lightbox.is-on .lb-box { opacity: 1; transform: none; }
.lb-art { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #F6F9F7; padding: 8px; }
.lb-art img { display: block; max-width: 100%; max-height: calc(90vh - 108px); object-fit: contain; border-radius: 3px; }
.lightbox__bar { position: absolute; top: 10px; right: 12px; z-index: 4; display: flex; gap: 8px; align-items: center; }
.lightbox__bar button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .94); color: var(--text-primary);
  height: 34px; padding: 0 12px; border-radius: var(--r-btn); cursor: pointer; font-size: var(--fs-caption);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}
.lightbox__bar button:hover { background: #fff; border-color: var(--brand-primary); color: var(--brand-primary); }
/* 图注进卡片：深色正文、左对齐、独立一条 —— 放大后要读的就是这行 */
.lightbox__cap {
  margin: 0; padding: 12px 16px 14px; flex: 0 0 auto;
  color: var(--text-primary); font-size: var(--fs-body-s); line-height: 1.65;
  background: #fff; border-top: 1px solid var(--line-default);
  max-height: 22vh; overflow-y: auto;
}
.lightbox__cap:empty { display: none; }
/* 灯箱缩放：transform / 平移由 app.js 以内联 style 写入，
   这里只定光标、触摸与缩放条外观。缩放条走文档流（不绝对定位）—— 绝对定位会压在图注上。 */
.lb-art { touch-action: none; }
/* transform 不再用 CSS 过渡：缩放改由 app.js 的 rAF 逐帧插值，
   CSS 再叠一层 transition 就是两套缓动打架（滚轮连滚时尤其明显，
   表现为「一顿一顿往后追」）。这里只留换图时的淡入淡出。 */
.lb-art img { cursor: zoom-in; transition: opacity .18s ease; }
.lb-art img.is-fading { opacity: 0; }
.lb-art.is-zoom img { cursor: move; }
.lb-art.is-drag img { cursor: grabbing; transition: none; }
.lb-zoom {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px; background: #fff; border-top: 1px solid var(--line-default);
}
.lb-zoom button {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--bg-subtle, #F2F5F3); color: var(--text-secondary);
  cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.lb-zoom button:hover { background: var(--brand-primary-light); color: var(--brand-primary); }
.lb-zoom__v {
  min-width: 46px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
/* 减弱动效偏好：入场退场与图片淡入全部取消，只保留「出现/消失」本身 */
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox.is-on, .lb-box, .lightbox.is-on .lb-box, .lb-art img {
    transition-duration: .01ms !important;
  }
  .lb-box { transform: none !important; }
}

.pdf-panel { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.pdf-preview { border: 1px solid var(--line-default); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); overflow: hidden; }
.pdf-page { aspect-ratio: 1 / 1.414; padding: 22px 20px; font-size: 8px; line-height: 1.5; color: var(--text-secondary); position: relative; background: #fff; }
.pdf-page__hd { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--brand-primary); margin-bottom: 12px; }
.pdf-page__hd img { height: 12px; }
.pdf-page__hd .t { font-size: 9px; color: var(--brand-primary); font-weight: 700; }
.pdf-block { height: 5px; background: #EDF0F1; border-radius: 2px; margin-bottom: 5px; }
.pdf-block.w60 { width: 60%; } .pdf-block.w80 { width: 80%; } .pdf-block.w40 { width: 40%; }
.pdf-block--title { height: 9px; background: #D9E5DF; width: 46%; margin-bottom: 10px; }
.pdf-block--table { height: 34px; background: repeating-linear-gradient(180deg,#EFF3F1 0 1px,#fff 1px 8px); border: 1px solid var(--line-default); border-radius: 2px; margin-bottom: 10px; }
.pdf-meta { display: grid; gap: 6px; }
.pdf-meta div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-default); font-size: var(--fs-body-s); }
.pdf-meta b { font-weight: 700; color: var(--text-primary); }

.refs { display: grid; gap: 12px; }
.ref { border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 14px 16px; background: #fff; }
.ref:hover { border-color: var(--line-strong); }
.ref__title { font-size: var(--fs-body-s); font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.ref__meta { font-size: var(--fs-caption); color: var(--text-secondary); display: flex; gap: 10px; flex-wrap: wrap; }
.ref__meta .if { color: var(--brand-accent); font-weight: 700; }

/* ========================= Admin ========================= */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--bg-subtle); }
.aside { background: var(--brand-primary-dark); color: rgba(255,255,255,.82); padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow: auto; }
/* logo 是横版字标（宽高比 4.83），撑到 24px 高要占 116px，再加内边距就会挤掉右侧文案 → 改纵向堆叠 */
.aside__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 18px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.aside__brand img { height: 20px; filter: brightness(0) invert(1); }
.aside__brand-txt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aside__brand-txt b { color: #fff; font-weight: 700; font-size: var(--fs-body-s); }
.aside__brand .sys { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; }
.aside__group { padding: 10px 18px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.aside a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: var(--fs-body-s); color: rgba(255,255,255,.82); }
.aside a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.aside a.is-on { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 #fff; }
.aside a .badge { margin-left: auto; background: var(--brand-accent); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: var(--r-pill); }

.admin__main { padding: 22px 26px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 23px; }
.admin-top .sub { font-size: var(--fs-body-s); color: var(--text-secondary); }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--sh-card); }
.kpi__label { font-size: var(--fs-caption); color: var(--text-secondary); display: flex; align-items: center; justify-content: space-between; }
.kpi__value { font-family: var(--ff-display); font-weight: 900; font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: var(--fs-caption); display: inline-flex; align-items: center; gap: 4px; }
.up { color: var(--brand-accent); font-weight: 700; }     /* 涨=红（国内习惯） */
.down { color: var(--state-success); font-weight: 700; }  /* 跌=绿 */
.flat { color: var(--text-disabled); }

.card { background: #fff; border: 1px solid var(--line-default); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-default); flex-wrap: wrap; }
.card__head h3 { font-size: var(--fs-h4); margin: 0; }
.card__head .hint { font-size: var(--fs-caption); color: var(--text-secondary); }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }

.dash-row { display: grid; gap: 16px; margin-bottom: 16px; }
.dash-row--1 { grid-template-columns: 1.35fr 1fr 1fr; }
.dash-row--2 { grid-template-columns: repeat(3, 1fr); }
.dash-row--3 { grid-template-columns: 1.6fr 1fr; }
.dash-row--4 { grid-template-columns: 1fr 1fr 1fr; }

.stream { max-height: 268px; overflow: auto; }
.stream__item { display: flex; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-default); font-size: var(--fs-body-s); }
.stream__item:last-child { border-bottom: 0; }
.stream__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; }
.stream__body { flex: 1; min-width: 0; }
.stream__time { color: var(--text-disabled); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }

.health { display: grid; gap: 12px; }
.health__row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body-s); }
.health__bar { flex: 1; height: 6px; background: var(--bg-subtle); border-radius: var(--r-pill); overflow: hidden; }
.health__bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--state-success); }

.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-caption); color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-tip {
  position: absolute; z-index: 40; background: rgba(26,26,26,.94); color: #fff;
  font-size: var(--fs-caption); padding: 6px 10px; border-radius: var(--r-tag);
  pointer-events: none; white-space: nowrap; display: none;
}
.chart-host { position: relative; }

.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quad__cell { border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 12px 14px; }
.quad__cell h4 { font-size: var(--fs-body-s); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.quad__cell--star { background: var(--brand-primary-light); border-color: #CFE3D9; }
.quad__cell--pot { background: var(--state-info-bg); border-color: #CFE2F7; }
.quad__cell--slow { background: var(--state-warning-bg); border-color: #F2E0BF; }
.quad__cell--base { background: var(--bg-subtle); }
.quad__cell ul { margin: 0; padding-left: 16px; font-size: var(--fs-caption); color: var(--text-secondary); }
.quad__cell li { margin-bottom: 3px; }

.funnel { display: grid; gap: 8px; }
.funnel__row { display: grid; grid-template-columns: 96px 1fr 120px; align-items: center; gap: 12px; font-size: var(--fs-body-s); }
.funnel__bar { height: 30px; background: var(--brand-primary); border-radius: var(--r-tag); display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: var(--fs-caption); font-weight: 700; }
.funnel__drop { color: var(--brand-accent); font-size: var(--fs-caption); text-align: right; }

.editor { border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.editor__toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--line-default); background: var(--bg-subtle); flex-wrap: wrap; }
.editor__toolbar button {
  min-width: 32px; height: 32px; border: 1px solid transparent; background: none;
  border-radius: var(--r-btn); cursor: pointer; font-size: 13px; color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.editor__toolbar button:hover { background: #fff; border-color: var(--line-default); }
.editor__toolbar button.is-on { background: #fff; border-color: var(--brand-primary); color: var(--brand-primary); }
.editor__toolbar .div { width: 1px; height: 20px; background: var(--line-default); margin: 0 6px; }
.editor__area { min-height: 320px; padding: 20px 22px; outline: none; font-size: var(--fs-body); line-height: 1.85; }
.editor__area:focus { box-shadow: inset 0 0 0 2px rgba(35,105,82,.12); }
.editor__area h2 { font-size: 22px; margin: 18px 0 10px; }
.editor__area h3 { font-size: 17px; margin: 16px 0 8px; }
.editor__area blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--brand-primary); background: var(--brand-primary-light); border-radius: 0 var(--r-tag) var(--r-tag) 0; }
.editor__area img { border-radius: var(--r-btn); margin: 12px 0; }
.editor__status { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line-default); font-size: var(--fs-caption); color: var(--text-secondary); background: var(--bg-subtle); }

.seo-score { display: flex; align-items: center; gap: 16px; }
.gauge { width: 96px; height: 96px; flex: 0 0 auto; }
.seo-list { margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-s); display: grid; gap: 6px; }
.seo-list li { display: flex; gap: 8px; align-items: flex-start; }
.seo-list .ok { color: var(--state-success); }
.seo-list .warn { color: var(--state-warning); }
.seo-list .bad { color: var(--brand-accent); }

/* ========================= Footer ========================= */
.site-footer { background: var(--brand-primary-dark); color: rgba(255,255,255,.78); padding: 45px 0 0; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--fs-body-s); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: var(--fs-body-s); }
.footer-top { display: grid; grid-template-columns: 320px repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: var(--fs-body-s); line-height: 1.8; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 28px; font-size: var(--fs-caption); flex-wrap: wrap; }
.footer-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-dl a { border: 1px solid rgba(255,255,255,.24); border-radius: var(--r-tag); padding: 4px 10px; font-size: var(--fs-caption); }

/* ========================= Toast / drawer / modal ========================= */
.toast-host { position: fixed; right: 24px; bottom: 96px; z-index: 400; display: grid; gap: 10px; }
.toast {
  background: #1A1A1A; color: #fff; padding: 11px 16px;
  border-radius: var(--r-btn); font-size: var(--fs-body-s);
  box-shadow: var(--sh-pop); display: flex; align-items: center; gap: 10px;
  animation: toastin .22s var(--ease);
}
.toast--ok { background: var(--brand-primary-dark); }
.toast--warn { background: #8A5A00; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 260; box-shadow: var(--sh-pop); transform: translateX(105%); transition: transform .26s var(--ease); display: flex; flex-direction: column; }
.drawer.is-on { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-default); }
.drawer__body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line-default); display: grid; gap: 10px; }
.scrim { position: fixed; inset: 0; background: rgba(16,24,40,.42); z-index: 250; opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-default); }
.cart-line .th { width: 56px; height: 56px; flex: 0 0 auto; border-radius: var(--r-tag); background: var(--brand-primary-light); display: flex; align-items: center; justify-content: center; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .nm { font-size: var(--fs-body-s); font-weight: 700; line-height: 1.4; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-body-s); }
.sum-row--total { font-size: var(--fs-h4); font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line-default); }

/* ========================= Dark hero band ========================= */
.hero-band { background: linear-gradient(120deg, var(--brand-primary-dark) 0%, #1E5A46 55%, #236952 100%); color: #fff; position: relative; overflow: hidden; }
.hero-band::after {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}
.hero-band h2, .hero-band h1 { color: #fff; }
.hero-band .lede { color: rgba(255,255,255,.82); }

.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__v { font-family: var(--ff-display); font-weight: 900; font-size: 40px; line-height: 1.15; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.hero-band .stat__v { color: #fff; }
.stat__k { font-size: var(--fs-body-s); color: var(--text-secondary); }
.hero-band .stat__k { color: rgba(255,255,255,.72); }

/* ========================= Misc ========================= */
.note {
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-primary-light);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  padding: 12px 16px; font-size: var(--fs-body-s); color: var(--brand-primary-dark);
}
.note--warn { border-color: var(--state-warning); background: var(--state-warning-bg); color: #7A4E00; }
.note--info { border-color: var(--state-info); background: var(--state-info-bg); color: #14538F; }
.divider { height: 1px; background: var(--line-default); border: 0; margin: 28px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.index-card { border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 22px; background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.index-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-card); }
.index-card h3 { font-size: var(--fs-h4); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.index-card h3 .sq { width: 4px; height: 18px; border-radius: 2px; background: var(--brand-primary); }
.index-card ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.index-card li { margin-bottom: 7px; font-size: var(--fs-body-s); break-inside: avoid; }
.index-card li a { color: var(--text-secondary); }
.index-card li a:hover { color: var(--brand-primary); }

.promo-card { border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.promo-card__art { height: 132px; background: linear-gradient(135deg, var(--brand-primary) 0%, #2F7F63 100%); color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.promo-card__art .k { font-size: var(--fs-caption); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.promo-card__art .t { font-family: var(--ff-display); font-weight: 900; font-size: 22px; line-height: 1.3; }
.promo-card__body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.countdown { display: flex; gap: 6px; font-size: var(--fs-caption); color: var(--text-secondary); }
.countdown b { background: var(--bg-subtle); border: 1px solid var(--line-default); border-radius: var(--r-tag); padding: 2px 6px; font-variant-numeric: tabular-nums; }

.notice-inline {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-btn);
  padding: 10px 14px; font-size: var(--fs-caption); color: var(--text-secondary);
  background: #FCFDFD;
}

/* ========================= 首页组件 ========================= */
/* 首屏轮播：高度占首屏 30%，图片等比裁切不拉伸 */
.hero { position: relative; height: 30vh; min-height: 260px; max-height: 420px; overflow: hidden; background: var(--brand-primary-dark); }
.hero__track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.hero__slide { flex: 0 0 100%; height: 100%; position: relative; display: flex; align-items: center; color: #fff; }
.hero__slide--1 { background: linear-gradient(115deg, #17452F 0%, #236952 58%, #2E7E62 100%); }
.hero__slide--2 { background: linear-gradient(115deg, #10362A 0%, #1B5745 60%, #236952 100%); }
.hero__slide--3 { background: linear-gradient(115deg, #1F4E3C 0%, #276B52 55%, #163E2F 100%); }
.hero__slide--4 { background: linear-gradient(115deg, #142F26 0%, #215A47 62%, #2C7A5F 100%); }
.hero__slide::after {
  content: ""; position: absolute; right: -60px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 68%);
}
.hero__inner { position: relative; z-index: 2; max-width: 680px; }
.hero__kicker { font-size: var(--fs-caption); letter-spacing: .16em; text-transform: uppercase; color: #FFD9A0; font-weight: 700; margin-bottom: 10px; }
.hero__title { color: #fff; font-size: 38px; line-height: 1.2; margin-bottom: 12px; }
.hero__lede { color: rgba(255,255,255,.86); font-size: 15px; margin-bottom: 20px; max-width: 560px; }
.hero__nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 5; pointer-events: none; }
.hero__nav button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.18); color: #fff; cursor: pointer; font-size: 18px; }
.hero__nav button:hover { background: rgba(0,0,0,.34); }
.hero__dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero__dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.42); cursor: pointer; padding: 0; }
.hero__dots button.is-on { background: #fff; width: 40px; }

/* 横向滚动列表（明星产品 / 热门靶点） */
.hscroll { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 calc((100% - var(--gutter) * 3) / 4); }
/* 宽屏一行 5 个；窄屏回到 4 个 / 2 个见下方断点 */
@media (min-width: 1400px) {
  .hscroll > * { flex: 0 0 calc((100% - var(--gutter) * 4) / 5); }
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }

/* 产品类别卡 */
.cat-card { border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.cat-card:hover { border-color: var(--brand-primary); box-shadow: var(--sh-card); transform: translateY(-2px); }
.cat-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cat-card h3 { font-size: var(--fs-h3); margin: 0 0 4px; }
.cat-card .en { font-size: var(--fs-caption); color: var(--text-secondary); }
.cat-card .sku { font-family: var(--ff-display); font-weight: 900; font-size: 22px; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.cat-card__subs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card__subs a { font-size: var(--fs-caption); color: var(--text-secondary); background: var(--bg-subtle); border: 1px solid var(--line-default); border-radius: var(--r-tag); padding: 3px 8px; }
.cat-card__subs a:hover { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }
.cat-card__apps { font-size: var(--fs-caption); color: var(--text-disabled); border-top: 1px solid var(--line-default); padding-top: 12px; }

/* 四大索引 */
.index4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-default); border: 1px solid var(--line-default); border-radius: var(--r-card); overflow: hidden; }
.index4__col { background: #fff; padding: 24px 22px; }
.index4__col h3 { font-size: var(--fs-h4); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.index4__col ul { list-style: none; margin: 0; padding: 0; }
.index4__col li { margin-bottom: 8px; font-size: var(--fs-body-s); }
.index4__col li a { color: var(--text-secondary); display: flex; justify-content: space-between; gap: 8px; }
.index4__col li a:hover { color: var(--brand-primary); }
.index4__col li .n { color: var(--text-disabled); font-size: 11px; font-variant-numeric: tabular-nums; }

/* 热搜胶囊行 */
.hotrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hotrow .lb { font-size: var(--fs-caption); color: var(--text-disabled); font-weight: 700; letter-spacing: .06em; }

/* 资讯 / 实验方案 双栏 */
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feed__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-default); }
.feed__item:last-child { border-bottom: 0; }
.feed__no { flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--r-btn); background: var(--brand-primary-light); color: var(--brand-primary-dark); font-family: var(--ff-display); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.feed__body h4 { font-size: var(--fs-body-s); margin-bottom: 4px; font-weight: 700; }
.feed__body p { font-size: var(--fs-caption); color: var(--text-secondary); margin: 0 0 6px; }
.feed__meta { font-size: var(--fs-caption); color: var(--text-disabled); display: flex; gap: 10px; flex-wrap: wrap; }

/* 移动端底部悬浮导航（移动端显示） */
.mobile-nav { display: none; }

/* ========================= Responsive ========================= */
@media (max-width: 1439px) {
  .wrap { padding: 0 clamp(24px, 4vw, var(--pad-desktop)); }
  .nav-item--has .mega { padding: 0 clamp(24px, 4vw, var(--pad-desktop)); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-row--1, .dash-row--2, .dash-row--3, .dash-row--4 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 260px repeat(2, 1fr); }
  .mega__inner { padding-inline: var(--pad-tablet); grid-template-columns: 210px 1fr 280px; }
  .mega__foot { padding-inline: var(--pad-tablet); }
}

/* ≤900px 导航改为抽屉，mega 是列表内的手风琴体，不再需要与正文对齐的留白。 */
@media (max-width: 900px) {
  .nav-item--has .mega { padding: 0; }
}

@media (max-width: 1023px) {
  .section { padding: var(--section-y-tablet) 0; }
  .g-4, .g-5 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-top { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .figgrid { grid-template-columns: repeat(2, 1fr); }
  .pdf-panel { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .aside { position: static; height: auto; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .mega__inner { grid-template-columns: 1fr; }
  .mega__reco { display: none; }
}

@media (max-width: 767px) {
  /* 触屏端关掉 hover 弹出：iOS 上 tap 会先触发一次 :hover，导致下拉误弹且不收起。
     这里改回只认 .is-open（由 JS 在点击时切换）。两条规则同优先级，is-open 在后，
     所以「已经展开」时不会被 hover 的 none 覆盖。 */
  .nav-item:hover .mega { display: none; }
  .nav-item.is-open .mega { display: block; }
  .nav-item:hover > .nav-link { color: var(--text-primary); border-bottom-color: transparent; }
  .nav-item:hover .caret { transform: none; }
  /* 下拉面板的包含块必须提到「不滚动」的 .site-nav 上。
     .wrap 是横向滚动容器，若继续做包含块，.mega 会随内容一起滚动：
     用户滑到最右的「关于我们」再点开，面板出现在内容最左边，屏幕里什么也没有。
     把 .wrap 置为 static、.site-nav 置为 relative 后，left:0/right:0 以视口宽的
     .site-nav 为准，面板紧贴导航下沿铺满整屏，也不会被 .wrap 的 overflow 裁掉
     （包含块在滚动容器之外的绝对定位元素，不受该容器的 overflow 裁剪）。 */
  .site-nav { position: relative; }
  .site-nav .wrap { position: static; }
  .mega { padding: 0; max-height: 68vh; overflow-y: auto; }
  .mega__inner { padding: 16px var(--pad-mobile) 18px; gap: 14px; }
  /* .mega--simple 的 3 列在 390px 屏上会把 6 项挤成一团；
     它的选择器特异性(0,3,0)高于 .mega__inner(0,1,0)，必须显式覆盖。 */
  .mega--simple .mega__inner { grid-template-columns: 1fr; gap: 2px; }
  :root { --fs-h1: 27px; --fs-h2: 23px; --fs-display: 31px; }
  .wrap { padding: 0 var(--pad-mobile); }
  .section { padding: var(--section-y-mobile) 0; }
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
  .site-header__main { height: 60px; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
  .searchbox { max-width: none; flex-basis: 100%; order: 3; }
  /* 横向滚动条里必须禁止收缩。
     flex 项默认可收缩，7 个栏目在 390px 屏上会被压到 50px 左右，
     中文标题只能逐字换行 —— 用户看到的是「产／品」「研／究／领／域」竖排单字。
     flex:0 0 auto + nowrap 让每个栏目保持自身宽度，超出部分交给横向滚动。
     仅把 overflow-x 设成 auto 是不够的，收缩才是病根。 */
  .site-nav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav .wrap::-webkit-scrollbar { height: 0; }
  .nav-item { flex: 0 0 auto; }
  .nav-link { padding: 0 12px; height: 46px; white-space: nowrap; }
  .figgrid { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat__v { font-size: 30px; }
  .index-card ul { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row--1, .dash-row--2, .dash-row--3, .dash-row--4 { grid-template-columns: 1fr; }
  .pcard--row { flex-direction: column; }
  .pcard--row .pcard__media { width: auto; height: 150px; border-right: 0; border-bottom: 1px solid var(--line-default); }
  .admin__main { padding: 16px 14px 100px; }
  .funnel__row { grid-template-columns: 72px 1fr; }
  .funnel__drop { display: none; }
  /* 移动端 2.3 节底部悬浮导航 */
  .mobile-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #fff; border-top: 1px solid var(--line-default);
    box-shadow: var(--sh-drawer);
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px 10px; font-size: 11px; color: var(--text-secondary);
  }
  .mobile-nav a.is-on { color: var(--brand-primary); }
  .mobile-nav a:hover { text-decoration: none; }
  body { padding-bottom: 62px; }
  .compare-tray { bottom: 58px; }
}

@media print {
  .site-header, .promo-bar, .site-footer, .compare-tray, .mobile-nav, .filters, .toolbar { display: none !important; }
  .cmp-wrap { overflow: visible; border: 0; }
  table.cmp { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   会员 / 商城 / 积分 / 搜索
   —— 全部复用 2.x 的品牌 token，不引入新色值
   ========================================================================== */

/* ---------------- 通用补充 ---------------- */
.is-hidden { display: none !important; }
.select--sm { height: 30px; font-size: 12px; padding: 0 6px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: var(--fs-body-s); color: var(--text-secondary); }
.fld-label { font-size: var(--fs-body-s); font-weight: 700; margin-bottom: 8px; }
.input, .textarea {
  height: var(--h-input); border: 1px solid var(--line-default); border-radius: var(--r-input);
  padding: 0 12px; font-size: var(--fs-body-s); font-family: inherit;
  background: #fff; color: var(--text-primary); width: 100%;
}
.textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--brand-primary); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--text-disabled); }

.empty-state { text-align: center; padding: 48px 20px; }
.sep-dot { color: var(--line-strong); margin: 0 2px; }

.pill--pick { background: #fff; }
.pill--pick.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 700; }
.pill--pick.is-on:hover { color: #fff; }

.mini-stat {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  background: #fff; border: 1px solid var(--line-default); border-radius: var(--r-card);
  padding: 14px 16px; box-shadow: var(--sh-card);
}
.mini-stat__v { font-family: var(--ff-display); font-weight: 900; font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.mini-stat__k { font-size: var(--fs-body-s); font-weight: 700; }
.mini-stat__s { font-size: var(--fs-caption); color: var(--text-secondary); }
.mini-stat--link { cursor: pointer; font-family: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.mini-stat--link:hover { border-color: var(--brand-primary); transform: translateY(-2px); }

.pts-chip {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--state-warning-bg); color: #7A4E00;
  font-size: var(--fs-caption); font-weight: 700; font-variant-numeric: tabular-nums;
}
.pts-chip--lg { font-size: var(--fs-body-s); padding: 3px 11px; }

/* ---------------- 购物车 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 348px; gap: 28px; align-items: start; padding-bottom: 8px; }
.cart-aside { position: sticky; top: 130px; }

.ship-bar { margin-bottom: 20px; }
.ship-bar__in {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: var(--r-card);
  background: var(--brand-primary-light); border: 1px solid #CFE3D9;
  font-size: var(--fs-body-s); color: var(--brand-primary-dark);
}
.ship-bar__in.is-ok { background: var(--state-success-bg); border-color: #BFE6D0; color: #12653A; }
.ship-bar__track { flex: 1; min-width: 160px; height: 6px; border-radius: var(--r-pill); background: #D6E7DE; overflow: hidden; }
.ship-bar__track > span { display: block; height: 100%; background: var(--brand-primary); border-radius: var(--r-pill); transition: width .3s var(--ease); }
.ship-bar .hint { color: inherit; opacity: .78; }

table.cart-tbl th, table.cart-tbl td { padding: 14px 14px; }
table.cart-tbl th.ck, table.cart-tbl td.ck { width: 46px; padding-left: 18px; }
table.cart-tbl td.ck input { accent-color: var(--brand-primary); width: 16px; height: 16px; }
.cart-prod { display: flex; gap: 12px; align-items: flex-start; min-width: 260px; }
.cart-thumb {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--r-btn);
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-thumb svg { width: 48px; height: 48px; }
.cart-name { font-size: var(--fs-body-s); font-weight: 700; color: var(--text-primary); line-height: 1.5; display: block; }
.cart-name:hover { color: var(--brand-primary); }
.cart-meta { font-size: var(--fs-caption); color: var(--text-secondary); margin-top: 2px; }

.cp-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line-default); border-radius: var(--r-btn);
  margin-bottom: 8px; cursor: pointer; font-size: var(--fs-body-s);
}
.cp-chip:hover { border-color: var(--brand-primary); }
.cp-chip.is-on { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.cp-chip.is-dis { opacity: .5; cursor: not-allowed; }
.cp-chip input { accent-color: var(--brand-primary); }
.cp-chip span { display: flex; flex-direction: column; gap: 1px; }
.cp-chip em { font-style: normal; font-size: var(--fs-caption); color: var(--text-secondary); }
.cp-why { margin-left: auto; font-size: var(--fs-caption); color: var(--state-warning); }

.pt-slider { width: 100%; accent-color: var(--brand-primary); margin: 6px 0 4px; }

.co-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  padding: 12px; background: #fff;
}
.co-card__art {
  height: 92px; border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
}
.co-card__nm { font-size: var(--fs-body-s); font-weight: 700; line-height: 1.5; color: var(--text-primary); }
.co-card__meta { font-size: var(--fs-caption); color: var(--text-secondary); }
.hp { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }

.svc-list { margin: 0; padding-left: 18px; font-size: var(--fs-caption); color: var(--text-secondary); line-height: 1.9; }
.sum-partial:empty { display: none; }
.sum-partial {
  font-size: var(--fs-caption); line-height: 1.7; color: #7A4E00;
  background: var(--state-warning-bg); border-radius: var(--r-btn);
  padding: 7px 10px; margin: 0;
}

/* ---------------- 结算 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-card);
  background: var(--bg-subtle); border: 1px solid var(--line-default);
}
.steps__no {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-strong); color: #fff; font-size: 13px; font-weight: 700;
}
.steps__t { display: flex; flex-direction: column; font-size: var(--fs-body-s); font-weight: 700; }
.steps__t em { font-style: normal; font-weight: 400; font-size: var(--fs-caption); color: var(--text-secondary); }
.steps li.is-done { background: var(--brand-primary-light); border-color: #CFE3D9; }
.steps li.is-done .steps__no { background: var(--brand-primary); }
.steps li.is-cur { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-light); }

.ck-layout { display: grid; grid-template-columns: 1fr 348px; gap: 28px; align-items: start; }
.ck-aside { position: sticky; top: 130px; }
.ck-sec__n {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center; margin-right: 8px;
  background: var(--brand-primary); color: #fff; font-size: 12px; font-weight: 700;
}
.ck-items { display: grid; gap: 10px; max-height: 268px; overflow: auto; }
.ck-item { display: flex; gap: 10px; align-items: center; font-size: var(--fs-body-s); }
.ck-item__art {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-btn);
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
  display: inline-flex; align-items: center; justify-content: center;
}
.ck-item__art svg { width: 30px; height: 30px; }
.ck-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ck-item__body b { font-weight: 700; line-height: 1.45; }
.ck-item__body em { font-style: normal; font-size: var(--fs-caption); color: var(--text-secondary); }
.chosen-row { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-caption); padding: 5px 0; }
.chosen-row span { color: var(--text-secondary); flex: 0 0 auto; }
.chosen-row b { font-weight: 700; text-align: right; }
.ck-summary-mini { border-top: 1px dashed var(--line-default); margin-top: 12px; }

.addr-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  padding: 14px 16px; background: #fff; cursor: pointer; font-size: var(--fs-body-s);
}
.addr-card:hover { border-color: var(--brand-primary); }
.addr-card.is-on { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.addr-card input[type="radio"] { accent-color: var(--brand-primary); }
.addr-card__txt { font-size: var(--fs-caption); color: var(--text-secondary); line-height: 1.7; }
/* 卡内标题行允许换行，且姓名/电话/标签各自不折行 —— 否则窄列下「张卫」会被折成「张/卫」、标签被挤成竖排 */
.addr-card .row { flex-wrap: wrap; }
.addr-card b, .addr-card .hint, .addr-card .tag { white-space: nowrap; }
.addr-card--new { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--brand-primary); min-height: 108px; }

.pay-opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font-size: var(--fs-body-s);
}
.pay-opt:hover { border-color: var(--brand-primary); }
.pay-opt.is-on { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.pay-opt.is-dis { opacity: .5; cursor: not-allowed; }
.pay-opt input { accent-color: var(--brand-primary); margin-top: 2px; }

.done-head { display: flex; gap: 16px; align-items: center; }
.done-badge {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--state-success-bg); color: var(--state-success); font-size: 26px; font-weight: 700;
}

/* ---------------- 会员中心 ---------------- */
.mem-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; padding-bottom: 8px; }
.mem-side { position: sticky; top: 130px; }

.mem-card {
  background: linear-gradient(150deg, var(--brand-primary-dark) 0%, #1E5A46 60%, var(--brand-primary) 100%);
  color: #fff; border-radius: var(--r-card); padding: 16px; margin-bottom: 14px;
}
.mem-card__top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mem-card__av {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18); font-family: var(--ff-display); font-weight: 900; font-size: 20px;
}
.mem-card__nm { font-weight: 700; font-size: var(--fs-body-s); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mem-card__no { font-size: var(--fs-caption); color: rgba(255, 255, 255, .72); line-height: 1.6; }
.mem-card__pts {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; margin-top: 12px;
}
.mem-card__pts > div { display: flex; flex-direction: column; }
.mem-card__pv { font-family: var(--ff-display); font-weight: 900; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mem-card__pk { font-size: var(--fs-caption); color: rgba(255, 255, 255, .72); }
.mem-card .hint { color: rgba(255, 255, 255, .72); }
.mem-card .hint b { color: #fff; }

.lvl-badge {
  display: inline-block; padding: 1px 8px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 700;
}
.lvl-basic { background: var(--bg-subtle); color: var(--text-secondary); }
.lvl-silver { background: #E8EDF2; color: #47566A; }
.lvl-gold { background: var(--state-warning-bg); color: #8A5A00; }
.lvl-plat { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.lvl-diamond { background: #EDE9FE; color: #4C3AA8; }

.lvl-progress__track { display: block; height: 7px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .22); overflow: hidden; }
.lvl-progress__track > span { display: block; height: 100%; background: #fff; border-radius: var(--r-pill); transition: width .4s var(--ease); }

.side-menu { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-default); border-radius: var(--r-card); padding: 8px; background: #fff; }
.side-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; font-family: inherit;
  padding: 10px 12px; border-radius: var(--r-btn);
  font-size: var(--fs-body-s); color: var(--text-primary);
}
.side-menu button:hover { background: var(--bg-subtle); }
.side-menu button.is-on { background: var(--brand-primary-light); color: var(--brand-primary-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand-primary); }
.side-menu__n { margin-left: auto; font-size: var(--fs-caption); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.side-menu button.is-on .side-menu__n { color: var(--brand-primary-dark); }

.perk-hero { padding-bottom: 12px; border-bottom: 1px solid var(--line-default); }
.perk-list { margin: 12px 0 0; padding-left: 20px; font-size: var(--fs-body-s); color: var(--text-secondary); line-height: 2; }
.perk-list li::marker { color: var(--brand-primary); }

/* 订单卡 */
.ord-card { border: 1px solid var(--line-default); border-radius: var(--r-card); margin-bottom: 14px; overflow: hidden; background: #fff; }
.ord-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-subtle); border-bottom: 1px solid var(--line-default);
}
.ord-card__body { padding: 14px 16px; display: grid; gap: 12px; }
.ord-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px dashed var(--line-default);
}
.ord-line { font-size: var(--fs-body-s); }
.ord-item { display: flex; gap: 12px; align-items: center; font-size: var(--fs-body-s); }
.ord-item__art {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: var(--r-btn);
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
  display: inline-flex; align-items: center; justify-content: center;
}
.ord-item__art svg { width: 40px; height: 40px; }
.ord-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ord-item__body b { font-weight: 700; line-height: 1.45; }
.ord-item__body em { font-style: normal; font-size: var(--fs-caption); color: var(--text-secondary); }

.ord-flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ord-flow__s { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); color: var(--text-disabled); }
.ord-flow__s i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.ord-flow__s.is-done { color: var(--brand-primary); }
.ord-flow__s.is-done i { background: var(--brand-primary); }
.ord-flow__s.is-cur { font-weight: 700; color: var(--brand-primary-dark); }
.ord-flow__s.is-cur i { background: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-light); }

/* 任务 / 绑定 / 通知 */
.task-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-default); }
.task-mini:last-child { border-bottom: 0; }
.task-mini__t { font-size: var(--fs-body-s); font-weight: 700; display: flex; align-items: center; gap: 6px; }

.bind-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-default); font-size: var(--fs-body-s);
}
.bind-row:last-child { border-bottom: 0; }
.card__body > .bind-row:first-child { padding-top: 0; }
.notify-sec { border-bottom: 1px solid var(--line-default); padding: 6px 0 10px; }
.notify-sec:last-child { border-bottom: 0; }
.notify-sec__t { padding: 12px 18px 4px; font-size: var(--fs-body-s); font-weight: 700; color: var(--brand-primary-dark); margin: 0; }

/* 优惠券卡 */
.cp-card {
  display: flex; gap: 12px; align-items: stretch;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  overflow: hidden; background: #fff;
}
.cp-card.is-off { opacity: .58; }
.cp-card__amt {
  flex: 0 0 auto; width: 92px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-primary-light); color: var(--brand-primary-dark);
  font-family: var(--ff-display); font-weight: 900; font-size: 18px; text-align: center; padding: 8px;
}
.cp-card.is-off .cp-card__amt { background: var(--bg-subtle); color: var(--text-secondary); }
.cp-card__body { flex: 1; padding: 12px 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body-s); }
.cp-card__body b { font-weight: 700; }
.cp-card__body em { font-style: normal; font-size: var(--fs-caption); color: var(--text-secondary); }
.cp-card__act { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px; }

/* ---------------- 积分商城 ---------------- */
.pts-hero {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--brand-primary-dark) 0%, #1E5A46 55%, var(--brand-primary) 100%);
  color: #fff; border-radius: var(--r-card); padding: 28px 32px;
}
.pts-hero__bal { display: flex; flex-direction: column; gap: 2px; }
.pts-hero__k { font-size: var(--fs-body-s); color: rgba(255, 255, 255, .72); }
.pts-hero__v { font-family: var(--ff-display); font-weight: 900; font-size: 44px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pts-hero__sub { font-size: var(--fs-caption); color: rgba(255, 255, 255, .78); }
.pts-hero__sub b { color: #fff; }
.pts-hero__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-body-s); padding: 3px 0; color: rgba(255, 255, 255, .82); }
.pts-hero__row b { color: #fff; }
.pts-hero__act { display: flex; flex-direction: column; gap: 8px; min-width: 176px; }
.pts-hero .hint { color: rgba(255, 255, 255, .68); }
.pts-hero .btn--quiet { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.pts-hero .btn--quiet:hover { background: rgba(255, 255, 255, .22); }

.task-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  padding: 16px; background: #fff; box-shadow: var(--sh-card);
}
.task-card.is-done { background: var(--bg-subtle); }
.task-card__hd { display: flex; align-items: flex-start; gap: 10px; }
.task-card__ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-light); color: var(--brand-primary); font-weight: 700;
}
.task-card.is-done .task-card__ico { background: var(--state-success-bg); color: var(--state-success); }
.task-card__t { font-size: var(--fs-body-s); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-card__note { font-size: var(--fs-caption); color: var(--text-secondary); line-height: 1.75; margin: 0; flex: 1; }

.goods-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-default); border-radius: var(--r-card);
  overflow: hidden; background: #fff; box-shadow: var(--sh-card);
}
.goods-card__art {
  position: relative; height: 128px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
}
.goods-card__art svg { width: 74px; height: 74px; }
.goods-card.is-locked .goods-card__art { filter: grayscale(.5); opacity: .7; }
.goods-card__flag { position: absolute; top: 8px; left: 8px; }
.goods-card__lock {
  position: absolute; inset: auto 0 0 0; padding: 4px 0; text-align: center;
  background: rgba(26, 26, 26, .55); color: #fff; font-size: var(--fs-caption);
}
.goods-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px; }
.goods-card__t { font-size: var(--fs-body-s); font-weight: 700; line-height: 1.5; }

.rule-list { margin: 0; padding-left: 20px; font-size: var(--fs-body-s); color: var(--text-secondary); line-height: 1.9; }
.rule-list li { margin-bottom: 8px; }
.rule-list b { color: var(--text-primary); }

/* ---------------- 搜索结果 ---------------- */
.srch-bar { padding: 4px 0 20px; }
.srch-bar__form { display: flex; gap: 10px; align-items: center; }
.srch-bar__form input {
  flex: 1; height: 52px; border: 1px solid var(--line-default); border-radius: var(--r-input);
  padding: 0 16px; font-size: var(--fs-h4); font-family: inherit; background: #fff;
}
.srch-bar__form input:focus { border-color: var(--brand-primary); outline: none; }
.srch-bar__form .select { height: 52px; }
.srch-bar__form .btn { height: 52px; }
.srch-bar__stat { font-size: var(--fs-body-s); color: var(--text-secondary); margin: 12px 0 0; }
.srch-bar__stat b { color: var(--text-primary); }
.srch-spell {
  margin-top: 10px; padding: 10px 14px; border-radius: var(--r-btn);
  background: var(--state-info-bg); border-left: 3px solid var(--state-info);
  font-size: var(--fs-body-s); color: #14538F;
}
.spell-btn {
  margin-left: 8px; border: 1px solid currentColor; background: none; border-radius: var(--r-pill);
  padding: 1px 10px; font-size: var(--fs-caption); font-family: inherit; color: inherit; cursor: pointer;
}
.spell-btn:hover { background: rgba(255, 255, 255, .6); }

.srch-layout { display: grid; grid-template-columns: 256px 1fr; gap: 28px; align-items: start; padding-bottom: 8px; }
.srch-side { position: sticky; top: 130px; }

.srch-group { margin-bottom: 28px; }
.srch-group__hd { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--brand-primary-light); margin-bottom: 16px; }
.srch-group__t { font-size: var(--fs-h4); font-weight: 700; }
.srch-group__n { font-size: var(--fs-caption); color: var(--text-secondary); }

.doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line-default); border-radius: var(--r-card);
  margin-bottom: 10px; background: #fff; color: inherit;
}
.doc-row:hover { border-color: var(--brand-primary); text-decoration: none; }
.doc-row__ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-btn);
  background: linear-gradient(160deg, #F2F7F4, #E8F0EC);
  display: inline-flex; align-items: center; justify-content: center;
}
.doc-row__ico svg { width: 32px; height: 32px; }
.doc-row__body { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--fs-body-s); }
.doc-row__body b { font-weight: 700; line-height: 1.5; }
.doc-row__body em { font-style: normal; font-size: var(--fs-caption); color: var(--text-secondary); }
.doc-row__meta { flex: 0 0 auto; font-size: var(--fs-caption); color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.hl { background: #FFF3C4; color: inherit; padding: 0 2px; border-radius: 2px; }

/* ---------------- 页面级响应式 ---------------- */
@media (max-width: 1439px) {
  .cart-layout, .ck-layout { grid-template-columns: 1fr 316px; gap: 22px; }
  .mem-layout { grid-template-columns: 240px 1fr; gap: 22px; }
  .srch-layout { grid-template-columns: 232px 1fr; gap: 22px; }
  .pts-hero { grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 24px; }
  .pts-hero__act { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; }
  .pts-hero__act .btn { flex: 0 0 auto; min-width: 160px; }
  .pts-hero__act .hint { order: -1; margin-right: auto; text-align: left; }
}

@media (max-width: 1023px) {
  .cart-layout, .ck-layout, .mem-layout, .srch-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-aside, .ck-aside, .mem-side, .srch-side { position: static; }
  .mem-side { display: grid; grid-template-columns: 1fr; }
  .side-menu { flex-direction: row; flex-wrap: wrap; }
  .side-menu button { width: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pts-hero { grid-template-columns: 1fr; padding: 22px; }
  .pts-hero__v { font-size: 36px; }
  .cart-prod { min-width: 0; }
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; }
  .srch-bar__form { flex-wrap: wrap; }
  .srch-bar__form input { flex: 1 1 100%; height: 46px; }
  .srch-bar__form .select, .srch-bar__form .btn { height: 42px; flex: 1; }
  .steps__t em { display: none; }
  .ord-card__foot { flex-direction: column; align-items: flex-start; }
  .done-head { flex-direction: column; text-align: center; }
  .cp-card__amt { width: 74px; font-size: 15px; }
  .doc-row { flex-wrap: wrap; }
  .doc-row__meta { width: 100%; }
}
