/* 比价网 · 样式（2026-09-12 整体重构，照 Pixso 设计稿一比一搬）
 *
 * 设计稿是一份带行内样式的原型（外网 tailwind + lucide），正式站不能那样跑
 * （外网 CDN 在国内不稳、还多两趟请求，tailwind 那个脚本要在浏览器里现编译样式）。
 * 所以行内样式在这儿落成一条条类，颜色、圆角、字号、间距都照设计稿的数值写。
 *
 * 命名：块用「块名__元素」，状态用 is- 前缀。下面按页面从上到下排。 */

/* ===================== 基础 ===================== */
:root {
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --panel: #F0F2F8;
  --line: #E2E5EF;
  --t1: #0F1117;
  --t2: #596273;
  --t3: #646F80;
  --brand: #3D5CE8;
  --brand-hover: #304CC7;
  --brand-dim: rgba(79, 110, 247, 0.10);
  --brand-ring: rgba(79, 110, 247, 0.25);
  --ok: #047857;
  --warn: #9A5700;
  --danger: #C62828;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 20px rgba(79, 110, 247, 0.14);
  --r-card: 12px;
  --r-btn: 9px;

  /* 上面这套是设计稿那版的名字（--bg / --card / --t1 …）。下面这套是收藏 / 提醒 / 分享
     那几个文件（engagement.css）用的另一套名字，值一模一样。
     2026-09-12 把网页退回到「白底蓝字」那版时，这半套名字跟着旧样式表一起没了，
     结果那几个文件里 45 处 var(--accent) 之类全部取不到值 —— 顶栏右上角那两个按钮
     和卡片上的「收藏 / 提醒 / 分享」就成了没有底、没有边的裸字，弹层也跟着掉色。
     两套名字都留着，谁用哪个都能取到值，颜色只有一个来源（就是上面那几行）。 */
  --surface: var(--card);
  --sunken: var(--panel);
  --line-strong: #D3D9E6;
  --text: var(--t1);
  --text-2: var(--t2);
  --text-3: var(--t3);
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-soft: var(--brand-dim);
  --accent-text: var(--brand-hover);
  --accent-ring: rgba(79, 110, 247, 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 2px solid var(--brand-hover) !important; outline-offset: 3px; }
html { scroll-padding-top: 150px; scroll-padding-bottom: 70px; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 图标：抓下来的 lucide sprite，用 <svg class="ic"><use href="#i-名字"></use></svg> */
.ic {
  width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic--fill { fill: currentColor; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* 状态小圆点 */
.dot-ok { width: 7px; height: 7px; border-radius: 999px; background: var(--ok); display: inline-block; flex: 0 0 auto; }
.dot-warn { width: 7px; height: 7px; border-radius: 999px; background: var(--warn); display: inline-block; flex: 0 0 auto; }
.dot-danger { width: 7px; height: 7px; border-radius: 999px; background: var(--danger); display: inline-block; flex: 0 0 auto; }
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: currentColor; opacity: .4; animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(2.8); opacity: 0; } }

/* 动画：整页淡入、弹窗弹出、行进场 */
.fade-page { animation: fadeUp .36s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pop-in { animation: popIn .24s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.row-in { animation: rowIn .34s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.focus-ring { transition: border-color .2s, box-shadow .2s; }
.focus-ring:focus { border-color: rgba(79, 110, 247, .5) !important; box-shadow: 0 0 0 3px rgba(79, 110, 247, .12) !important; outline: none; }

/* 按钮：主色、素色、小号 */
.btn {
  height: 40px; padding: 0 20px; border-radius: var(--r-btn);
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 2px 12px rgba(79, 110, 247, .28); transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-hover); }
.btn .ic { width: 14px; height: 14px; }
.btn--quiet {
  background: #fff; color: #374151; border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.btn--quiet:hover { background: #F9FAFC; border-color: #D3D8E6; }
.btn--small { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 7px; box-shadow: none; }
.btn--ghost { background: var(--brand-dim); color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: rgba(79, 110, 247, .16); }

/* ===================== 顶栏 ===================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }
/* 顶栏分两行（照设计稿）：上面一行是牌子/入口/搜索/登录，下面一行是分类横排。
   engagement.css 把 .hd 设成了横着一排（那时 #engagement-nav 还是 .hd 的亲儿子），
   现在入口挪进了 .hd__in 里，那条规则会把这排分类挤到屏幕外——在这儿补一句竖着排。 */
.hd {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: rgba(245, 246, 250, .88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}
.hd__in {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 0; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #4F6EF7, #6B8AFF);
  display: grid; place-items: center; box-shadow: 0 2px 12px rgba(79, 110, 247, .3);
}
.logo__mark .ic { width: 16px; height: 16px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; gap: 2px; text-align: left; }
.logo__text b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.logo__text i { font-size: 10px; font-weight: 500; font-style: normal; color: var(--t3); letter-spacing: .03em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav__item {
  padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 8px;
  color: var(--t2); transition: color .15s, background .15s;
}
.nav__item:hover { color: var(--t1); background: rgba(0, 0, 0, .04); }
.nav__item.is-active { color: var(--brand); background: var(--brand-dim); }

/* 小屏共用的四个整页入口：电脑是一条紧凑导航，手机固定到底部。 */
.quick-nav { display: none; }
.quick-nav__item {
  min-width: 0; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--t2); font-size: 12px; font-weight: 700; border-radius: 8px;
}
.quick-nav__item .ic { width: 16px; height: 16px; }
.quick-nav__item.is-active { color: var(--brand); background: var(--brand-dim); }

.search { flex: 1; min-width: 0; max-width: 480px; margin: 0 auto; position: relative; display: flex; }
.search__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--t3); pointer-events: none;
}
.search input {
  width: 100%; height: 38px; padding: 0 34px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500;
  outline: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); -webkit-appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 6px; color: var(--t3); font-size: 15px; line-height: 1;
}
.search__clear:hover { color: var(--t1); background: var(--panel); }
.search__kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 600; color: var(--t3); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; background: #fff;
}
.hd__fresh { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--t2); flex-shrink: 0; }
.hd__fresh .dot-ok { color: var(--ok); }
.hd__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.account { display: flex; align-items: center; gap: 6px; position: relative; }
.account__login { height: 38px; padding: 0 16px; border-radius: var(--r-btn); box-shadow: 0 2px 10px rgba(79, 110, 247, .25); background: var(--brand); color: #fff; border: none; }
.account__login:hover { background: var(--brand-hover); }
.account__me {
  height: 38px; padding: 0 10px 0 6px; border-radius: var(--r-btn); border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
}
.account__me:hover { border-color: #D3D8E6; }
.account__avatar { width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.account__pop {
  position: absolute; right: 0; top: 44px; z-index: 50; min-width: 160px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.account__pop-head { font-size: 11.5px; color: var(--t3); padding: 6px 8px; }
.account__pop-item { width: 100%; text-align: left; padding: 8px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--t1); }
.account__pop-item:hover { background: var(--panel); }

/* 分类那一横排（卖法） */
.rail {
  /* width:100% 不能少：这排是「竖着排的顶栏」里的一项，靠 margin:auto 居中；一旦横向
     用了 auto 外边距，拉伸就不生效了，宽度会跟着内容走——手机上这一排比屏幕宽，整页
     就跟着能左右拖。给了 100% 之后它才在自己这条里横向滚动。 */
  width: 100%; max-width: 1440px; margin: -2px auto 0; padding: 0 24px 10px;
  display: flex; align-items: center; gap: 6px; overflow-x: auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item {
  flex-shrink: 0; height: 28px; padding: 0 12px; border-radius: 7px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--t2);
  transition: all .18s cubic-bezier(.22, 1, .36, 1);
}
.rail__item:hover { transform: translateY(-1px); color: var(--t1); }
.rail__item.is-active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(79, 110, 247, .22); }
.rail__item .ic { width: 11px; height: 11px; }
.rail__item .cnt { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 顶栏右上角：我的收藏 / 提醒 */
.bj-nav { display: flex; align-items: center; gap: 6px; }
.bj-nav__btn {
  height: 38px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line);
  background: #fff; color: var(--t2); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.bj-nav__btn:hover { color: var(--t1); border-color: #D3D8E6; }
.bj-nav__short { display: none; }
.bj-nav__count { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--brand); background: var(--brand-dim); border-radius: 999px; padding: 1px 6px; }
.bj-nav__dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 999px; background: var(--danger); border: 2px solid #fff; }

/* ===================== 横幅 ===================== */
.main { flex: 1; }
.hero {
  background: linear-gradient(135deg, #EEF1FD 0%, #F5F6FA 60%, #F0F4FF 100%);
  border-bottom: 1px solid var(--line); padding: 36px 24px 32px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px; width: 320px; height: 320px;
  border-radius: 999px; background: rgba(79, 110, 247, .06); filter: blur(60px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -40px; left: 10%; width: 200px; height: 200px;
  border-radius: 999px; background: rgba(16, 185, 129, .06); filter: blur(50px); pointer-events: none;
}
.hero__in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; }
.hero__text { flex: 1; min-width: 260px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--t2); margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.hero__badge .dot-ok { color: var(--ok); }
.hero__title { font-size: clamp(24px, 3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #4F6EF7, #6B8AFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: 13.5px; color: var(--t2); line-height: 1.7; max-width: 480px; margin: 12px 0 20px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px 20px; min-width: 118px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 4px; transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(79, 110, 247, .12); }
.stat-card b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 11px; color: var(--t3); font-weight: 500; }

/* ===================== 三栏 ===================== */
.cols { max-width: 1440px; margin: 0 auto; padding: 20px 24px 40px; display: flex; align-items: flex-start; }
.filters { width: 220px; flex-shrink: 0; margin-right: 20px; position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
.feed { flex: 1; min-width: 0; }
.mobile-tools, .filter-scrim { display: none; }
.mobile-tools {
  min-height: 44px; margin-bottom: 10px; padding: 5px 6px 5px 8px;
  align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-card);
}
.filter-trigger {
  min-width: 92px; height: 34px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
}
.filter-trigger .ic { width: 14px; height: 14px; }
.filter-trigger__count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center; background: #fff; color: var(--brand);
  font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.mobile-tools__hint { min-width: 0; color: var(--t2); font-size: 11.5px; line-height: 1.45; }
body.filters-open { overflow: hidden; }

/* 左侧筛选卡 */
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.fcard__head { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.fcard__title { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.fcard__title .ic { width: 13px; height: 13px; color: var(--brand); }
.fcard__head-actions { display: flex; align-items: center; gap: 10px; }
.fcard__reset { font-size: 11.5px; font-weight: 600; color: var(--brand); padding: 0; }
.fcard__reset:hover { color: var(--brand-hover); }
.fcard__done { display: none; height: 34px; padding: 0 13px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: none; }
.acc__toggle { width: 100%; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.acc__label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }
.acc__chev { width: 13px; height: 13px; color: var(--t3); transition: transform .2s; }
.acc.is-open .acc__chev { transform: rotate(180deg); }
.acc__body { display: none; padding: 0 12px 12px; }
.acc.is-open .acc__body { display: block; }
.acc__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.acc__list { display: flex; flex-direction: column; gap: 2px; }
.chip {
  height: 26px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg); color: var(--t2);
  display: inline-flex; align-items: center; gap: 5px; transition: all .15s; white-space: nowrap;
}
.chip:hover { transform: translateY(-1px); color: var(--t1); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* 摆样子、点不动的格子（照设计稿的「商户评分」那一排）：清单里没这项数据，不让点。
   cursor: default 是给「这是死的」一个看得见的信号，不然人会反复点。 */
.chip.is-dim { color: var(--t3); background: var(--bg); opacity: .75; cursor: default; }
.chip.is-dim:hover { transform: none; color: var(--t3); }
.chip .cnt { font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip--wide { height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12px; width: 100%; justify-content: space-between; border-color: transparent; background: transparent; }
.chip--wide:hover { background: var(--panel); }
.chip--wide.is-active { background: var(--brand-dim); color: var(--brand); border-color: transparent; }
.chip--item { height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12px; width: 100%; justify-content: flex-start; gap: 7px; border-color: transparent; background: transparent; }
.chip--item:hover { background: var(--panel); }
.chip--item.is-active { background: var(--brand-dim); color: var(--brand); }
.chip--item .ic { width: 12px; height: 12px; }
/* 名字左、数字右（照设计稿那一列分类：图标 + 名字在左，右边顶到边） */
.chip--item .cnt { margin-left: auto; }

/* 只看有货 */
.stock-row { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.stock-row__label { font-size: 12.5px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 6px; }
.stock-row__label .ic { width: 13px; height: 13px; color: var(--ok); }
.switch { position: relative; display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.switch__track { width: 40px; height: 22px; border-radius: 999px; background: #D1D5DB; position: relative; transition: background .2s; pointer-events: none; }
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .2s;
}
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }

/* 降价提醒那张小卡 */
.promo {
  margin: 12px 12px 14px; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 110, 247, .06), rgba(79, 110, 247, .04));
  border: 1px solid rgba(79, 110, 247, .15);
}
.promo__title { font-size: 12px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.promo__title .ic { width: 12px; height: 12px; }
.promo__text { font-size: 11px; color: var(--t2); line-height: 1.55; margin-bottom: 8px; }
.promo__btn {
  width: 100%; height: 28px; border-radius: 7px; background: var(--brand-dim);
  border: 1px solid var(--brand-ring); color: var(--brand); font-size: 11.5px; font-weight: 600;
}
.promo__btn:hover { background: rgba(79, 110, 247, .16); }

/* ===================== 排序条 ===================== */
.sortbar {
  display: flex; align-items: center; gap: 0; margin-bottom: 14px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.sorts { display: flex; gap: 0; }
.sort-tab {
  color: var(--t3); border-bottom: 2px solid transparent; padding: 6px 12px;
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.sort-tab:hover { color: #374151; }
.sort-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.sort-tab[disabled] { color: #D1D5DB; cursor: default; }
.sortbar__count { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-bottom: 10px; font-size: 12px; color: var(--t3); font-weight: 500; }
.sortbar__count b { color: var(--t1); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 已筛的标签 */
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-x {
  height: 24px; padding: 0 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
  color: var(--t2); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s;
}
.chip-x:hover { border-color: #D3D8E6; color: var(--t1); }
.chip-x .ic { width: 10px; height: 10px; }
.chip-x--clear { background: none; border: none; color: var(--t3); padding: 0 9px; }
.chip-x--clear:hover { color: var(--brand); }

/* 说明条、空态、加载中 */
.dropped {
  margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: #FFFBEB;
  border: 1px solid #FDE68A; font-size: 12.5px; color: #92400E;
}
.dropped b { color: #78350F; }
.state {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 40px 24px; text-align: center; box-shadow: var(--shadow-card); color: var(--t2);
}
.state__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; margin: 0 auto 16px; }
.state__icon .ic { width: 22px; height: 22px; color: var(--t3); }
.state__title { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.state__text { font-size: 12.5px; color: var(--t2); margin-bottom: 16px; line-height: 1.6; }
.state__acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.state--notice { margin: 16px 24px; padding: 18px; }
.state--notice .state__icon { display: none; }
.state--notice .state__text { margin-bottom: 10px; }

/* ===================== 商品列表 ===================== */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid transparent;
  border-radius: var(--r-card); display: flex; align-items: center;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s cubic-bezier(.22, 1, .36, 1), border-left-color .2s;
}
.row:hover { transform: translateY(-2px); border-left-color: var(--brand); box-shadow: var(--shadow-hover); }
.row.is-open { flex-wrap: wrap; border-left-color: var(--brand); box-shadow: var(--shadow-hover); }
.row.is-out { background: var(--bg); }
.row__thumb {
  flex-shrink: 0; width: 80px; height: 80px; margin: 12px 0 12px 12px; border-radius: 8px;
  overflow: hidden; background: var(--panel); position: relative;
}
.row__thumb .thumb__mark { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 800; }
.row__thumb .thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row__name { flex: 0 0 auto; width: 200px; padding: 12px 14px; min-width: 0; }
.row__tags { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; color: var(--brand); background: rgba(79, 110, 247, .08); }
.tag--out { color: var(--danger); background: rgba(239, 68, 68, .08); }
.pill-none { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; color: var(--t3); background: var(--bg); border: 1px dashed var(--line); }
.row__heading { margin: 0; }
.row__title {
  width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left;
  font-size: 13.5px; font-weight: 700; line-height: 1.35; cursor: pointer; margin-bottom: 3px;
  display: flex; align-items: flex-start; gap: 5px; transition: color .15s;
}
.row__title span {
  min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row__title .ic { width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0; color: var(--t3); transition: transform .16s, color .16s; }
.row__title:hover, .row__title:focus-visible { color: var(--brand); }
.row__title:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.row__title:hover .ic, .row__title:focus-visible .ic { color: var(--brand); }
.row.is-open .row__title .ic { transform: rotate(180deg); }
.row__sub { font-size: 11px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__offers { flex: 1; min-width: 0; padding: 12px 8px; }
.row__offers-label { font-size: 10.5px; color: var(--t3); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.row__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.row__offers-hint { font-size: 11px; color: var(--t3); }
.offer-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg); color: var(--t2); transition: border-color .15s, transform .15s;
}
.offer-chip:hover { transform: translateY(-1px); }
.offer-chip .chip-price { color: #374151; font-weight: 700; font-variant-numeric: tabular-nums; }
.offer-chip.is-best { background: rgba(79, 110, 247, .08); border-color: rgba(79, 110, 247, .3); color: var(--brand-hover); }
.offer-chip.is-best .chip-price { color: var(--brand); font-weight: 800; }
.offer-chip .best-tag { font-size: 9.5px; font-weight: 700; color: var(--brand); background: rgba(79, 110, 247, .12); padding: 1px 4px; border-radius: 3px; }
.row__save { font-size: 10.5px; color: var(--ok); font-weight: 600; margin-top: 5px; display: flex; align-items: center; gap: 3px; }
.row__save .ic { width: 10px; height: 10px; }
/* 「-N%」角标（照设计稿摆在牌子旁边那条）。意思是「比这一款里最贵的那家便宜 N%」，
   跟下面那行「最高可省 ¥X」是同一个数换了个说法，都从清单现算，不是编的。 */
.drop-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 4px;
  font-size: 10px; font-weight: 800; color: var(--danger); background: rgba(239, 68, 68, .1);
  font-variant-numeric: tabular-nums;
}
.row__stock { flex-shrink: 0; width: 90px; padding: 12px 8px; text-align: center; border-left: 1px solid var(--line); }
.row__stock-line { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 4px; }
.row__stock-line span { font-size: 11.5px; font-weight: 600; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--danger); }
.row__meta { font-size: 11px; color: var(--t3); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.row__price {
  flex-shrink: 0; width: 178px; padding: 12px 14px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; text-align: right;
}
.row__price .price { font-size: 20px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.row__price .price .cur { font-size: 12px; font-weight: 700; margin-right: 1px; }
.row__price .price-old { font-size: 11.5px; color: var(--t3); text-decoration: line-through; margin-top: 2px; }
.row__price .price-old--none { text-decoration: none; font-size: 10.5px; color: var(--t3); }
.row__acts { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; justify-content: flex-end; }
.act {
  height: 30px; min-width: 30px; padding: 0 11px; border-radius: 7px;
  background: var(--brand-dim); border: 1px solid var(--brand-ring); color: var(--brand);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .2s cubic-bezier(.22, 1, .36, 1); white-space: nowrap;
}
.act:hover { background: rgba(79, 110, 247, .16); }
.act--icon { padding: 0; width: 30px; background: var(--bg); border-color: var(--line); color: var(--t3); }
.act--icon:hover { color: var(--t1); border-color: #D3D8E6; background: #fff; }
.act--icon.is-on { color: var(--danger); border-color: rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .08); }
.act--alert.is-on { color: var(--brand); border-color: var(--brand-ring); background: var(--brand-dim); }
.act .ic { width: 13px; height: 13px; }

/* 点标题后摊开的完整报价。它占满整张卡，不挤在标题或价格那一列里。 */
.row__expanded {
  flex: 1 1 100%; width: 100%; min-width: 0; margin-top: 0; padding: 0 14px 10px;
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); background: #fbfbfc;
}
.row__expanded-head { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--t3); font-size: 11px; }
.row__expanded-head strong { color: var(--t2); font-size: 12px; }

/* 历史价格：一天一个点，缺货那几天断开。线是手画的 SVG，没引第三方图表库。 */
.price-history { padding: 12px 0 4px; }
.price-history__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-history__head strong { color: var(--t2); font-size: 12px; }
.price-history__head span { color: var(--t3); font-size: 11px; }
.price-history__body { margin-top: 6px; min-height: 40px; }
/* 图拉满宽度、高度写死；线宽用 non-scaling-stroke 撑住，横着拉长也不会变成一坨。 */
.price-history__svg { display: block; width: 100%; height: 96px; }
.price-history__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.price-history__floor { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.price-history__axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--t3); font-size: 11px; }
.price-history__wait { color: var(--t3); font-size: 12px; line-height: 2; }

.row__expanded .offer { padding: 11px 0; }
.row__expanded .offer__name { font-size: 12px; }
.row__expanded .offer__act { flex-wrap: wrap; justify-content: flex-end; }

/* 列表下面的加载更多 / 折叠说明 */
.more-row { margin-top: 16px; display: flex; justify-content: center; }
.more-row .btn { height: 38px; padding: 0 24px; color: var(--t2); }
.foot-row {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; color: var(--t3);
}
.foot-row b { color: var(--t1); }
.foot-row a { color: var(--brand); font-weight: 600; }

/* ===================== 右栏大厅 ===================== */
.hall {
  width: 300px; flex-shrink: 0; margin-left: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - 160px); min-height: 520px; position: sticky; top: 78px;
  box-shadow: var(--shadow-card);
}
.hall__head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hall__head .dot-ok { color: var(--ok); }
.hall__title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall__online { font-size: 10.5px; font-weight: 600; color: var(--ok); background: rgba(16, 185, 129, .10); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.hall__close {
  margin-left: auto; width: 26px; height: 26px; border-radius: 6px; background: var(--bg);
  border: 1px solid var(--line); color: var(--t2); display: grid; place-items: center; flex-shrink: 0;
}
.hall__close:hover { background: var(--panel); }
.hall__close .ic { width: 13px; height: 13px; }
.hall__list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.hall__status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); color: var(--t2); line-height: 1.5; }
.hall__status .btn { flex-shrink: 0; }
.hall__empty { font-size: 12.5px; color: var(--t3); text-align: center; padding: 20px 0; }
.hall__new {
  align-self: center; margin-bottom: 6px; height: 26px; padding: 0 12px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; box-shadow: 0 4px 12px rgba(79, 110, 247, .3);
}
.hall__form { padding: 10px 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.hall__me { font-size: 10.5px; color: var(--t3); margin-bottom: 6px; }
.hall__me b { color: var(--t1); font-weight: 700; }
.hall__row { display: flex; gap: 7px; }
.hall__row input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line); font-size: 12.5px; outline: none;
}
.hall__send {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(79, 110, 247, .22);
}
.hall__send:hover { background: var(--brand-hover); }
.hall__send .ic { width: 14px; height: 14px; }
.hall__gate { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--t2); flex-shrink: 0; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg--mine { flex-direction: row-reverse; }
.msg__avatar { width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.msg__body { min-width: 0; max-width: 100%; }
.msg__nick { font-size: 10.5px; color: var(--t3); margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.msg__nick .you { color: var(--brand); font-weight: 700; }
.msg__tag { color: var(--t3); }
.msg--grouped .msg__avatar { visibility: hidden; height: 0; }
.bubble {
  font-size: 12.5px; line-height: 1.55; padding: 7px 11px; border-radius: 4px 10px 10px 10px;
  background: var(--panel); color: #374151; word-break: break-word; display: inline-block; text-align: left;
}
.msg--mine .bubble { background: rgba(79, 110, 247, .12); color: var(--brand-hover); border-radius: 10px 4px 10px 10px; }
.msg--mine .msg__body { display: flex; flex-direction: column; align-items: flex-end; }
.msg-time { text-align: center; font-size: 10.5px; color: var(--t3); margin: 4px 0; }
.bubble .masked { color: var(--warn); font-weight: 600; }
.msg__admin { display: flex; gap: 6px; margin-top: 4px; }
.msg__admin button { font-size: 10.5px; color: var(--t3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.msg__admin button:hover { color: var(--danger); border-color: rgba(239, 68, 68, .3); }
.hall-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; display: none; align-items: center; gap: 7px;
  box-shadow: 0 8px 24px rgba(79, 110, 247, .35);
}
.hall-fab .ic { width: 15px; height: 15px; }
.hall-fab__badge { background: #fff; color: var(--brand); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }

/* ===================== 整页（详情 / 收藏） ===================== */
.page { max-width: 1440px; margin: 0 auto; padding: 24px 24px 48px; }
.page__head { margin-bottom: 20px; }
.page__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.page__sub { font-size: 12.5px; color: var(--t2); }

/* 商品详情（照设计稿：左半边一大块画面 + 规格表，右半边买卡 / 各家报价 / 同品牌推荐） */
.detail__back {
  margin-bottom: 18px; height: 36px; padding: 0 14px; border-radius: var(--r-btn); background: #fff;
  border: 1px solid var(--line); color: var(--t2); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.detail__back:hover { color: var(--t1); border-color: #D3D8E6; }
.detail__back .ic { width: 14px; height: 14px; }
.detail2 { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 16px; align-items: start; }
.detail2__left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail2__shot {
  display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.detail2__shot .thumb__mark {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-size: 28px; font-weight: 800;
}
.detail2__shot-label { min-width: 0; font-size: 16px; font-weight: 700; color: var(--t1); overflow-wrap: anywhere; }
.detail2__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.detail2__card-title { font-size: 13px; font-weight: 700; padding: 14px 18px 0; display: flex; align-items: center; gap: 7px; }
.detail2__card-title .ic { width: 14px; height: 14px; color: var(--brand); }
.detail2__right { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 78px; }
.detail2__buy { padding: 18px; }
.detail2__acts { display: flex; gap: 8px; margin-top: 14px; }
.detail2__acts .btn { flex: 1 1 auto; height: 42px; }
.detail__title { font-size: 17px; font-weight: 800; line-height: 1.4; margin: 10px 0 6px; }
.detail__meta { font-size: 11.5px; color: var(--t3); }
.detail__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.detail__pricebox {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
}
.detail__pricebox .price { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.detail__pricebox .price .cur { font-size: 14px; font-weight: 700; margin-right: 2px; }
.detail__pricebox .price .dec { font-size: 18px; }
.detail__pricebox .label { font-size: 11px; color: var(--t3); font-weight: 600; margin-top: 3px; }
.detail__pricebox-note { font-size: 11.5px; color: var(--warn); font-weight: 600; margin-top: 6px; }
/* 规格那张表：左标签、右原话，一行一条细线（照设计稿） */
.detail__specs { padding: 8px 18px 12px; }
.detail__spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.detail__spec:last-child { border-bottom: none; }
.detail__spec dt { color: var(--t3); flex-shrink: 0; }
.detail__spec dd { margin: 0; color: var(--t1); font-weight: 600; text-align: right; }
.detail__offers { padding: 4px 18px 12px; }
.detail__offers-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; font-size: 12px; color: var(--t3); font-weight: 600; }
.offer { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.offer.is-out { background: var(--bg); }
.offer__name { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5; }
.offer__price { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer__price .cur { font-size: 11px; margin-right: 1px; }
.offer__meta { display: flex; gap: 14px; flex-shrink: 0; }
.offer__meta div { min-width: 58px; text-align: right; }
.offer__meta .label { font-size: 10.5px; color: var(--t3); margin-bottom: 2px; }
.offer__meta .value { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer__act { flex-shrink: 0; display: flex; gap: 6px; align-items: center; }
/* 右栏那条窄（348）摆不下「名字 + 库存 + 销量 + 价格 + 按钮」一行，
   所以这一栏里的报价行分两行摆：名字占满一行并省略号，下面一行左边库存销量、右边价格按钮。
   不这么改，名字会被挤成一列竖着的单字（2026-09-12 修）。 */
.detail2__right .offer { flex-wrap: wrap; gap: 7px 10px; }
.detail2__right .offer__name { flex: 1 1 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.detail2__right .offer__meta { gap: 12px; }
.detail2__right .offer__meta div { min-width: 0; text-align: left; }
.detail2__right .offer__price { margin-left: auto; }
/* 同品牌推荐 */
.reco-list { display: flex; flex-direction: column; padding-top: 10px; }
.reco { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 18px; text-align: left; transition: background .15s; }
.reco:hover { background: var(--bg); }
.reco__thumb { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.reco__thumb .thumb__mark { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; }
.reco__name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco__price { font-size: 13.5px; font-weight: 800; color: var(--brand); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ===================== 页脚 ===================== */
.ft { border-top: 1px solid var(--line); background: #fff; padding: 20px 24px; margin-top: auto; }
.ft__in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ft__brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ft__mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(79, 110, 247, .22); }
.ft__mark .ic { width: 13px; height: 13px; }
.ft__brand b { font-size: 13px; font-weight: 700; }
.ft__note { font-size: 11.5px; color: var(--t3); }
.ft__links { margin-left: auto; display: flex; gap: 20px; }
.ft__links button { font-size: 12px; font-weight: 500; color: var(--t3); }
.ft__links button:hover { color: var(--brand); }

/* ===================== 登录 / 注册 ===================== */
.modal { position: fixed; inset: 0; z-index: 70; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 17, 23, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__wrap { position: relative; height: 100%; width: 100%; display: grid; place-items: center; padding: 16px; }
.modal__card { width: 100%; max-width: 400px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .15); }
.modal__head {
  position: relative; padding: 20px 24px; background: linear-gradient(135deg, #EEF1FD, #F5F6FA);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
}
.modal__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(79, 110, 247, .28); }
.modal__mark .ic { width: 18px; height: 18px; }
.modal__brand { font-size: 16px; font-weight: 800; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--t2); display: grid; place-items: center; }
.modal__close:hover { background: var(--panel); }
.modal__close .ic { width: 14px; height: 14px; }
.modal__body { padding: 20px; }
.modal__title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.modal__hint { font-size: 12px; color: var(--t2); line-height: 1.6; margin-bottom: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); margin-bottom: 20px; }
.seg button { height: 34px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--t2); }
.seg button.is-active { background: #fff; color: var(--t1); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.modal__form { display: flex; flex-direction: column; gap: 12px; }
.field > span:first-child { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px; }
.field__box { position: relative; display: block; }
.field__box .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--t3); pointer-events: none; }
.field__box input { width: 100%; height: 40px; padding: 0 12px 0 32px; border-radius: var(--r-btn); background: var(--bg); border: 1px solid var(--line); font-size: 13px; outline: none; }
.field__error { font-size: 12px; font-weight: 600; color: var(--danger); }
.modal__submit { width: 100%; height: 40px; border-radius: var(--r-btn); font-weight: 700; box-shadow: 0 2px 10px rgba(79, 110, 247, .25); }
.modal__foot { font-size: 11.5px; color: var(--t3); text-align: center; margin-top: 14px; line-height: 1.6; }
body.modal-open { overflow: hidden; }

/* 提示条 */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* ===================== 窄屏 ===================== */
@media (max-width: 1280px) {
  .hall {
    position: fixed; z-index: 35; right: 12px; bottom: 12px; top: auto; margin: 0;
    width: min(360px, calc(100vw - 24px)); height: min(70vh, 560px); min-height: 320px;
    display: none; box-shadow: 0 20px 50px rgba(15, 17, 23, .22);
  }
  .hall.is-open { display: flex; }
  .hall__close { display: grid; }
}
@media (min-width: 1281px) {
  .hall-fab { display: none !important; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .quick-nav {
    width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px 10px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  }
  .mobile-tools { display: flex; }
  .filter-scrim {
    position: fixed; inset: 0; z-index: 54; width: 100%; height: 100%;
    background: rgba(15, 17, 23, .38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 55;
    width: min(360px, calc(100vw - 40px)); max-height: none; margin: 0; padding: 12px;
    overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
    box-shadow: 18px 0 48px rgba(15, 17, 23, .2);
    transform: translateX(-104%); visibility: hidden; pointer-events: none;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
  }
  .filters.is-open {
    transform: translateX(0); visibility: visible; pointer-events: auto;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  }
  .filters .fcard { min-height: calc(100vh - 24px); }
  .fcard__head { position: sticky; top: -12px; z-index: 1; background: #fff; }
  .fcard__done { display: inline-flex; align-items: center; justify-content: center; }
  .cols { display: block; }
  .feed { width: 100%; }
  .bj-nav__full { display: none; }
  .bj-nav__short { display: inline; }
  .hero { padding: 26px 24px 24px; }
  .hero__in { gap: 22px; }
  /* 详情页右栏到头了：整张卡落下来，别再粘着。顺序也重排一下——手机上先看画面、
     再看价钱和买的那张卡，最后才是规格表和同品牌推荐（原来规格表挤在价钱前面）。 */
  .detail2 { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
  .detail2__left { display: contents; }
  .detail2__shot { order: 1; }
  .detail2__right { order: 2; position: static; width: 100%; min-width: 0; }
  .detail2__left > .detail2__card { order: 3; }
}
@media (max-width: 760px) {
  .app { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .quick-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    max-width: none; margin: 0; padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(15, 17, 23, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .quick-nav__item { min-height: 48px; flex-direction: column; gap: 2px; font-size: 10.5px; }
  .quick-nav__item .ic { width: 18px; height: 18px; }
  .filters { width: min(360px, calc(100vw - 24px)); padding: 8px; }
  .filters .fcard { min-height: calc(100vh - 16px); }
  .fcard__head { top: -8px; padding: 12px 14px; }
  .mobile-tools { margin-bottom: 8px; }
  .filter-trigger { min-width: 96px; height: 44px; }
  .mobile-tools__hint { font-size: 11px; }
  .toast { bottom: calc(70px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); white-space: normal; text-align: center; }
  /* 顶栏在手机上分三行：牌子 + 右上角按钮 / 搜索 / 分类。
     原来是一条不换行的横排，牌子、更新时间、收藏、登录全挤在一行里，
     「登录 / 注册」那几个字被压成竖着的一坨（2026-09-12 修）。 */
  .hd__in { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .logo { order: 1; min-width: 0; }
  .hd__actions { order: 2; margin-left: auto; }
  .hd__fresh { display: none; }
  .search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .search__kbd { display: none; }
  .account__login, .account__me, .bj-nav__btn { white-space: nowrap; flex-shrink: 0; }
  .rail { padding: 6px 12px 8px; }
  .logo__text i { display: none; }
  .hero { padding: 18px 12px 16px; }
  .hero__in { gap: 14px; }
  .hero__badge { height: 24px; margin-bottom: 8px; }
  .hero__title { font-size: 25px; line-height: 1.08; }
  .hero__sub { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.55; }
  .hero__cta { gap: 8px; }
  .hero__cta .btn { height: 36px; padding: 0 14px; }
  .hero__stats { width: 100%; gap: 6px; }
  .stat-card { flex: 1; min-width: 0; padding: 9px 8px; }
  .stat-card b { font-size: 17px; }
  .stat-card span { font-size: 10px; }
  .cols { padding: 14px 12px 32px; }
  .row { flex-wrap: wrap; align-items: stretch; padding-bottom: 10px; }
  .row__thumb { width: 64px; height: 64px; }
  .row__name { width: calc(100% - 88px); padding: 12px 12px 6px 0; }
  .row__offers { flex: 1 1 100%; padding: 4px 12px 0; }
  .row__stock { border-left: none; width: auto; flex: 1; text-align: left; padding: 8px 12px 0; }
  .row__stock-line { justify-content: flex-start; }
  /* 四个常用操作在手机上都要有稳当的触控面积。价格这一格独占整行，
     价格放左、按钮放右，避免 44px 按钮被挤回半列后横溢或折行。 */
  .row__price {
    border-left: none; width: 100%; flex: 1 1 100%; flex-direction: row;
    align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 0; text-align: left;
  }
  .row__acts { gap: 8px; }
  .row__acts .act { min-width: 52px; height: 44px; padding: 0 14px; }
  .row__acts .act--icon { width: 44px; min-width: 44px; padding: 0; }
  .row__expanded { margin-top: 10px; padding: 0 12px 10px; }
  .row__expanded-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; }
  .row__expanded .offer { gap: 8px 10px; }
  .row__expanded .offer__name { flex: 1 1 100%; white-space: normal; }
  .row__expanded .offer__meta { gap: 10px; }
  .row__expanded .offer__price { margin-left: auto; }
  .row__expanded .offer__act { flex: 1 1 100%; }
  .page { padding: 16px 12px 32px; }
  .detail2__shot { min-height: 88px; padding: 12px; }
  .detail2__shot .thumb__mark { width: 56px; height: 56px; font-size: 26px; }
  .detail2__buy { padding: 14px; }
  .detail__offers-head, .detail__specs, .detail__offers { padding-left: 14px; padding-right: 14px; }
  .offer { flex-wrap: wrap; }
  .ft__links { margin-left: 0; }
}
