/* 前台样式 · 主题色见 :root 的 --brand 系列 */

/* [hidden] 兜底：作者样式里的 display 会压过 UA 默认值 */
[hidden] { display: none !important; }

/* 微信分享卡片专用缩略图（base.html 里 <body> 的第一张图）。
   微信取「页面第一张 ≥300x300 的图片」当转发缩略图，所以这张图必须排在所有
   <img> 之前；这里把它移出可视区。不要用 display:none / visibility:hidden，
   隐藏的图微信可能直接跳过，卡片就没缩略图了。 */
.wx-share-thumb {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 300px;
  height: 300px;
  opacity: 0;
  pointer-events: none;
}

:root {
  --brand: #F59E0B;
  --brand-600: #D97706;
  --brand-700: #B45309;
  --brand-50: #FFFBEB;
  --brand-100: #FEF3C7;

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --line-2: #F3F4F6;

  --bg: #FFFFFF;
  --bg-2: #F9FAFB;
  --bg-3: #F3F4F6;

  --ok: #059669;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 4px 16px rgba(17, 24, 39, .07);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, .12);

  --maxw: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(28px, 4.6vw, 46px); }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: clamp(17px, 2vw, 20px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* 文章详情正文：760px 上下是舒服的阅读宽度（v3.08 补，之前这个修饰类没定义 → 正文拉满整屏） */
.container--narrow { max-width: 840px; }

.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
/* 产品中心：紧跟搜索框下方，顶部留白收紧 */
.section--after-search { padding-top: 26px; }
.section--gray { background: var(--bg-2); }

.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); }

.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.logo__sub { font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }

.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-3); color: var(--ink); }
.nav__link.is-active { color: var(--brand-600); }

.nav__item { position: relative; }

.nav__caret { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; opacity: .55; }

.nav__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__drop a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__drop a:hover { background: var(--brand-50); color: var(--brand-700); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header__actions { margin-left: 8px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.header__wa { display: none; }
/* 全站搜索入口（PC 导航栏里的放大镜；窄屏收进抽屉菜单） */
.header__search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
}
.header__search:hover { color: var(--brand-600); background: var(--bg-3); }
.header__search:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.burger {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  flex: none;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.is-open { display: block; }

.drawer__mask {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.drawer.is-open .drawer__mask { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 330px);
  height: 100%;
  background: #fff;
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .24s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__close {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.drawer__group { margin-bottom: 4px; }
.drawer__link {
  display: block;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.drawer__link.is-active { color: var(--brand-600); }
.drawer__sub {
  display: block;
  padding: 11px 12px 11px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.drawer__sub::before {
  content: "";
  position: absolute; left: 13px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}
.drawer__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* ---------- flash ---------- */
.flash-wrap { max-width: var(--maxw); margin: 14px auto 0; padding: 0 var(--gutter); }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid;
}
.flash--ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.flash--err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.flash--warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: #1F2937 center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, .82) 0%, rgba(17, 24, 39, .58) 55%, rgba(17, 24, 39, .32) 100%);
}
/* 这里只能用 padding-top / padding-bottom：本元素同时挂着 .container，
   简写 `padding: 72px 0` 会把左右留白一起覆盖成 0，手机上内容贴边。 */
.hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; max-width: 680px; }
.hero h1 { color: #fff; }
.hero__sub { margin-top: 16px; font-size: clamp(15px, 1.9vw, 18px); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .5);
  color: #FCD34D;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- 首页多 Banner（v3.10，2026-10-30） ----------
   一张时跟老 hero 一样；多张时靠 .hero__slide 叠放 + opacity 切换。
   **不自动轮播**（用户明确要求）：只有箭头 / 圆点 / 手机左右滑。
   高度用「当前这张在文档流里」的做法自适应，避免写死 min-height 后被内容顶破。 */
/* ⚠️ 必须写成 .hero.hero--slides（0,2,0）：下面 @media 里还有 `.hero { min-height: 540px }`，
   同权重时后出现的会赢 —— 之前就是这个原因，横幅底下露出一条 80px 的深色空档。 */
.hero.hero--slides { display: block; min-height: 0; }
.hero--slides .hero__track { position: relative; }
.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  min-height: 460px;
  background: #1F2937 center/cover no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.hero__slide.is-on { position: relative; opacity: 1; visibility: visible; }
.hero--slides .hero__inner { max-width: 620px; }
/* 第 2 张起用 h2 保持「一个 h1」的语义，外观与大标题同级 */
.hero__h { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff;
  line-height: 1.22; letter-spacing: -.4px; margin: 0; }

.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(17,24,39,.42);
  color: #fff; font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background .15s ease, border-color .15s ease;
}
.hero__nav:hover { background: rgba(17,24,39,.7); border-color: rgba(255,255,255,.6); }
.hero__nav--prev { left: 18px; }
.hero__nav--next { right: 18px; }

.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.hero__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7); background: transparent;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.hero__dot.is-on { background: #fff; transform: scale(1.18); }

@media (max-width: 900px) {
  .hero__nav { display: none; }             /* 手机上滑动切换，不摆箭头挡内容 */
  .hero__slide { min-height: 420px; }
  .hero--slides .hero__inner { max-width: none; padding-top: 56px; padding-bottom: 62px; }
}
@media (max-width: 640px) {
  .hero__slide { min-height: 380px; }
  .hero__dots { bottom: 12px; }
}

/* ---------- 首页「最新动态」清单（v3.10） ----------
   取代原来的三列卡片：文章不配封面，左日期、中标题 + 一句摘要、右箭头。
   桌面两列（一屏能看完 6 条又不显空），手机一列。 */
.homenews { list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 34px; }
.homenews__i { border-top: 1px solid var(--line); }
/* ⚠️ 四块必须**逐个写全 grid-area**：只给箭头写 grid-row 的话，自动排布会把它
   塞进第 1 列，日期/标题/摘要整体错一位（2026-10-30 线上就是这个 bug：
   列表页日期占满整行、标题被挤到最右）。日期列给固定 82px，两列/单列都能对齐。 */
.homenews__a {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: baseline; column-gap: 14px; row-gap: 4px;
  padding: 15px 2px;
  text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.homenews__a:hover { background: rgba(245, 158, 11, .05); }
.homenews__d {
  grid-area: 1 / 1 / 3 / 2; align-self: start; padding-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--brand-700, #B3671A); font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
}
.homenews__t { grid-area: 1 / 2 / 2 / 3; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.homenews__a:hover .homenews__t { color: var(--brand-700, #B3671A); }
.homenews__s {
  grid-area: 2 / 2 / 3 / 3;
  font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.homenews__go { grid-area: 1 / 3 / 3 / 4; align-self: center; color: #C7CBD1; transition: transform .15s ease, color .15s ease; }
.homenews__a:hover .homenews__go { color: var(--brand); transform: translateX(2px); }
/* 文章列表页用单列版（标题更长、摘要两行） */
.homenews--wide { grid-template-columns: 1fr; }
.homenews--wide .homenews__t { font-size: 16.5px; }
.homenews--wide .homenews__s { -webkit-line-clamp: 2; }
.homenews__pin {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-50); color: #B45309;
  font-size: 11px; font-weight: 700; vertical-align: 2px;
}
@media (max-width: 860px) {
  .homenews { grid-template-columns: 1fr; gap: 0; }
  .homenews__s { -webkit-line-clamp: 2; }
}

/* ---------- 手机浏览器示意图（v3.10，2026-10-30 第二版） ----------
   用途：买家指南里的「图」不截图，而是**按真实界面 1:1 复刻**的示意。
   第一版抽象成纯灰块，买家对不上号；这一版保留真实文案、真实控件（搜索框、
   「想要」按钮、`#1` 角标、绿色对勾、「手数」输入框、必填星号、海报二维码），
   只把照片抽象成暖色块 —— 既看得懂、又不会随改版过期，也不用担心泄露账号信息。
   外框用 macOS 的窗口语言（细腻圆角 + 双层柔和投影），里面装的是手机浏览器。 */
.demo { margin: 26px 0 32px; }
.demo__phone {
  position: relative; width: 318px; max-width: 100%; margin: 0 auto;
  background: #fff; border: 1px solid #E3E6EA; border-radius: 28px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .14), 0 3px 9px rgba(17, 24, 39, .06);
  overflow: hidden;
}

/* 状态栏 + 地址栏（iOS Safari 的样子） */
.demo__st {
  display: flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 16px;
  font-size: 10px; font-weight: 700; color: #111827; letter-spacing: .02em;
}
.demo__st > span { margin-right: auto; }
.demo__st > i { display: block; flex: 0 0 auto; }
.s-sig { width: 12px; height: 9px; background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 4.6px); }
.s-wifi {
  width: 10px; height: 10px; border: 1.6px solid #111827; border-radius: 50%;
  border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-45deg);
}
.s-bat { width: 15px; height: 8px; border: 1px solid #111827; border-radius: 2px;
  background: linear-gradient(90deg, #111827 72%, transparent 72%); }
.demo__url {
  display: flex; align-items: center; gap: 6px;
  margin: 0 12px 9px; height: 23px; padding: 0 10px;
  border-radius: 12px; background: #F2F3F5;
}
.demo__url > em { flex: 1; font-style: normal; font-size: 9.5px; color: #6B7280; text-align: center; }
.demo__url > i { display: block; flex: 0 0 auto; }
.s-lock { width: 8px; height: 7px; border: 1.3px solid #9CA3AF; border-radius: 2px; }
.s-rl {
  width: 7px; height: 7px; border-right: 1.3px solid #9CA3AF; border-top: 1.3px solid #9CA3AF;
  transform: rotate(45deg);
}

.demo__view { position: relative; height: 316px; overflow: hidden; background: #fff;
  border-top: 1px solid #F1F2F4; }
/* 选款抽屉格子多、清单多一行、海报是长图 → 各自加高一点，避免底部被裁 */
.demo--pick .demo__view { height: 340px; }
.demo--qty .demo__view { height: 352px; }
.demo--done .demo__view { height: 300px; }
.s-poster { min-height: 118px; }

/* ---- ① 产品列表 ---- */
.s-search {
  display: flex; align-items: center; gap: 6px;
  margin: 11px 12px 0; height: 30px; padding: 0 4px 0 10px;
  border: 1px solid #E9EBEF; border-radius: 999px;
}
.s-search > span { flex: 1; font-size: 9.5px; color: #9CA3AF; }
.s-search > u { font-size: 9px; color: #fff; background: var(--ink, #1F2937);
  border-radius: 999px; padding: 5px 10px; text-decoration: none; }
.s-mag { width: 9px; height: 9px; border: 1.5px solid #C7CBD1; border-radius: 50%; flex: 0 0 auto; }
.s-chips { display: flex; gap: 6px; margin: 9px 12px 0; }
.s-chips > u {
  font-size: 9px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid #E9EBEF; color: #6B7280; text-decoration: none;
}
.s-chips > u.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.s-card { margin: 10px 12px 0; }
.s-card__imgs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  border-radius: 8px; overflow: hidden;
}
.s-card__imgs > i { display: block; aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #FCE7C8 0%, #F5D5A6 60%, #EFC389 100%); }
.s-card__imgs > s {
  position: absolute; left: 4px; top: 4px; text-decoration: none;
  font-size: 8px; color: #fff; background: rgba(17, 24, 39, .55);
  border-radius: 4px; padding: 1px 4px;
}
.s-card__f { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.s-card__f > em {
  flex: 1; min-width: 0; font-style: normal; font-size: 9.5px; color: #1F2937;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.s-card__f > b { font-size: 10px; color: #B3671A; flex: 0 0 auto; }
.s-card__f > u {
  flex: 0 0 auto; font-size: 9px; font-weight: 700; color: #B3671A;
  border: 1px solid #F3C98B; background: #FFF9F1; border-radius: 999px;
  padding: 3px 9px; text-decoration: none;
}
.s-card--ghost { opacity: .55; }
/* 第 1 步要指的就是这个「想要」——给它一圈橙色光晕，热点数字才不会尴尬地压字 */
.demo--list .s-card:not(.s-card--ghost) .s-card__f > u {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .38);
}

/* ---- ② 选款抽屉 ---- */
.s-hd { display: flex; align-items: flex-start; gap: 6px; padding: 11px 12px 0; }
.s-hd > div { flex: 1; min-width: 0; }
.s-hd > div > b { display: block; font-size: 11px; line-height: 1.35; color: #111827; }
.s-hd > div > em { display: block; font-style: normal; font-size: 8.5px; color: #9CA3AF; margin-top: 3px; }
.s-hd > div > em > s { text-decoration: none; color: #B3671A; font-weight: 700; }
.s-x { position: relative; width: 17px; height: 17px; border-radius: 50%; background: #F2F3F5; flex: 0 0 auto; }
.s-x::before, .s-x::after {
  content: ""; position: absolute; left: 4.5px; top: 7.6px; width: 8px; height: 1.3px; background: #9CA3AF;
}
.s-x::before { transform: rotate(45deg); }
.s-x::after { transform: rotate(-45deg); }
.s-tip { margin: 6px 12px 0; font-size: 8.5px; line-height: 1.5; color: #9CA3AF; }
.s-tools { display: flex; align-items: center; gap: 6px; margin: 9px 12px 0; }
.s-tools > u {
  font-size: 8.5px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid #E9EBEF; color: #6B7280; text-decoration: none;
}
.s-tools > b { margin-left: auto; font-size: 9px; color: #B3671A; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 9px 12px 0; }
/* 固定行高（不用 aspect-ratio）：这样两行刚好落在视口里，不会露出「半行」像没做完 */
.s-grid { grid-auto-rows: 96px; }
.s-tile {
  position: relative; height: 100%; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #FCE7C8 0%, #F3C98B 100%);
}
.s-tile > b {
  position: absolute; left: 3px; top: 3px; z-index: 1;
  font-size: 7.5px; font-weight: 700; color: #fff;
  background: rgba(17, 24, 39, .6); border-radius: 3px; padding: 0 3px;
}
.s-tile.is-on { box-shadow: inset 0 0 0 2px var(--brand); }
.s-ck { position: absolute; right: 3px; top: 3px; width: 13px; height: 13px;
  border-radius: 50%; background: #16A34A; }
.s-ck::after {
  content: "✓"; position: absolute; inset: 0; color: #fff;
  font-size: 8px; line-height: 13px; text-align: center;
}
.s-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 10px;
  background: #fff; border-top: 1px solid #F1F2F4;
}
.s-foot > b {
  display: flex; align-items: center; justify-content: center; height: 31px;
  border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px;
}

/* ---- ③ 确认清单 ---- */
.s-grp { display: flex; align-items: center; gap: 5px; margin: 9px 12px 0;
  font-size: 8.5px; color: #9CA3AF; }
.s-grp > b { color: #374151; }
.s-grp > em { flex: 1; min-width: 0; font-style: normal;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-grp > s { text-decoration: none; color: #B3671A; font-weight: 700; }
.s-row {
  display: flex; align-items: center; gap: 8px;
  margin: 7px 12px 0; padding: 7px; border: 1px solid #EDEFF2; border-radius: 8px;
}
.s-th { width: 26px; height: 32px; border-radius: 4px; flex: 0 0 auto;
  background: linear-gradient(135deg, #FCE7C8, #F3C98B); }
.s-row__t { flex: 1; min-width: 0; }
.s-row__t > b { display: block; font-size: 9px; color: #111827; }
.s-row__t > em { font-style: normal; font-size: 8px; color: #9CA3AF; }
.s-qin {
  flex: 0 0 auto; width: 54px; height: 23px;
  border: 1.5px solid var(--brand); border-radius: 5px; background: #FFF9F1;
  color: #B3671A; font-size: 8.5px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.s-del { position: relative; width: 19px; height: 19px; border-radius: 5px;
  background: #F2F3F5; flex: 0 0 auto; }
.s-del::before, .s-del::after {
  content: ""; position: absolute; left: 5.5px; top: 8.8px; width: 8px; height: 1.2px; background: #9CA3AF;
}
.s-del::before { transform: rotate(45deg); }
.s-del::after { transform: rotate(-45deg); }
.s-foot2 {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 10px; background: #fff; border-top: 1px solid #F1F2F4;
}
.s-foot2 > u { flex: 0 0 auto; font-size: 9px; color: #6B7280; text-decoration: none; padding: 0 6px; }
.s-foot2 > b {
  flex: 1; height: 31px; border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 9.5px; display: flex; align-items: center; justify-content: center;
}

/* ---- ④ 联系方式 ---- */
.s-cf { padding: 11px 14px 0; }
.s-cf__t { display: block; font-size: 11px; color: #111827; margin-bottom: 6px; }
.s-cf > label { display: block; font-size: 8.5px; color: #6B7280; margin: 7px 0 3px; }
.s-in {
  height: 25px; padding: 0 8px; border: 1px solid #E9EBEF; border-radius: 6px;
  background: #FAFBFC; font-size: 8.5px; color: #9CA3AF;
  display: flex; align-items: center;
}
.s-in.is-focus { border-color: var(--brand); background: #FFFDF8; color: #1F2937; }
.s-inhint { display: block; margin-top: 3px; font-style: normal; font-size: 7.5px; color: #B45309; }
.s-btn {
  margin-top: 11px; height: 31px; border-radius: 8px; background: var(--brand);
  color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
}

/* ---- ⑤ 海报 + 二维码 ---- */
.s-done { display: block; text-align: center; font-size: 11px; color: #111827; margin: 11px 0 9px; }
.s-poster {
  position: relative; margin: 0 16px; padding: 9px;
  border: 1px solid #E9EBEF; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 9px rgba(17, 24, 39, .06);
}
.s-poster__h { display: flex; justify-content: space-between; gap: 6px;
  font-size: 8px; font-weight: 800; letter-spacing: .04em; color: #1F2937; }
.s-poster__h > em { font-style: normal; font-weight: 600; color: #9CA3AF; }
.s-poster__b { padding-right: 46px; }
.s-poster__b > i { display: block; height: 5px; border-radius: 2px;
  background: #EDEFF2; margin-top: 7px; }
.s-poster__b > i:nth-child(2) { width: 62%; }
/* 海报里的款式小图：让「长图」看起来是真有内容，而不是几根灰条 */
.s-poster__g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  margin-top: 9px; padding-right: 46px; }
.s-poster__g > i { height: 28px; border-radius: 3px;
  background: linear-gradient(135deg, #FCE7C8, #F3C98B); }
.s-qr { position: absolute; right: 9px; bottom: 9px; display: flex; align-items: center; gap: 4px; }
.s-qr > i {
  width: 27px; height: 27px; border: 1px solid #E9EBEF; border-radius: 3px;
  background: repeating-conic-gradient(#1F2937 0 25%, #fff 0 50%) 0 0 / 9px 9px;
}
.s-qr > em { font-style: normal; font-size: 7px; color: #9CA3AF; }
.s-dhint { display: block; text-align: center; margin-top: 9px;
  font-style: normal; font-size: 8px; color: #9CA3AF; }
.s-acts {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 5px;
  padding: 8px 12px 10px; background: #fff; border-top: 1px solid #F1F2F4;
}
.s-acts > u {
  flex: 1; height: 27px; border-radius: 7px; border: 1px solid #E9EBEF;
  font-size: 8px; color: #4B5563; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.s-acts > u.is-pri { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* 步骤热点：橙色圆形序号 + 呼吸光环 */
.demo__hot {
  position: absolute; left: var(--hx); top: var(--hy); transform: translate(-50%, -50%);
  z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 800; line-height: 26px; text-align: center;
  box-shadow: 0 3px 10px rgba(245, 158, 11, .45);
  animation: demoPulse 2.4s ease-out infinite;
}
@keyframes demoPulse {
  0%   { box-shadow: 0 3px 10px rgba(245,158,11,.45), 0 0 0 0 rgba(245,158,11,.55); }
  70%  { box-shadow: 0 3px 10px rgba(245,158,11,.45), 0 0 0 14px rgba(245,158,11,0); }
  100% { box-shadow: 0 3px 10px rgba(245,158,11,.45), 0 0 0 0 rgba(245,158,11,0); }
}
@media (prefers-reduced-motion: reduce) { .demo__hot { animation: none; } }
.demo > figcaption { margin-top: 11px; text-align: center; font-size: 12.5px; color: var(--muted); }
.post__body .demo + .demo { margin-top: 6px; }

/* ---------- 「须知」卡片（v3.10） ----------
   比 `>` 引用块显眼：左侧 4px 色条 + 圆角图标 + 加粗标题。用于「不是合同」「建议填
   真实信息」这类必须让买家看见、但又不该写成合同条款的话。 */
.qcard {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 16px 0; padding: 15px 17px;
  border: 1px solid #E9EBEF; border-left: 4px solid var(--brand);
  border-radius: 12px; background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
}
.qcard__ic {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 800;
}
.qcard__tx > b { display: block; font-size: 15px; line-height: 1.5; color: #111827; margin-bottom: 3px; }
.qcard__tx > p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #4B5563; }
.qcard--scan { border-left-color: #0E7490; background: #F7FCFE; }
.qcard--scan .qcard__ic { background: #0891B2; }
.qcard--send { border-left-color: #15803D; background: #F7FCF8; }
.qcard--send .qcard__ic { background: #16A34A; }
.qcard--legal { border-left-color: #B91C1C; background: #FFFBFB; }
.qcard--legal .qcard__ic { background: #DC2626; }
.qcard--warn { border-left-color: #B45309; background: #FFFCF5; }
.qcard--warn .qcard__ic { background: #D97706; }
.qcard--info { border-left-color: #2563EB; background: #F8FAFF; }
.qcard--info .qcard__ic { background: #2563EB; }
@media (max-width: 560px) {
  .qcard { padding: 13px 14px; gap: 10px; }
  .qcard__tx > b { font-size: 14.5px; }
  .qcard__tx > p { font-size: 13px; }
}

/* ---------- page banner (内页头图) ---------- */
.page-banner {
  position: relative;
  padding: 58px 0;
  background: #1F2937 center/cover no-repeat;
  color: #fff;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, .74), rgba(17, 24, 39, .62));
}
.page-banner__inner { position: relative; z-index: 1; max-width: 720px; }
.page-banner h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.page-banner p { margin-top: 12px; color: rgba(255, 255, 255, .84); font-size: 16px; max-width: 620px; }

/* ---------- brand banner（产品列表页：logo 右上角 + 文案左侧，v2.69） ----------
   设计要求：logo 不能被 banner 文案压住，PC 与手机都要看得到，而且不能像贴纸
   （原来是橙底方块，四边硬直角贴在最亮的童装照片上，用户说"生硬不融合"）。
   做法：
   · logo 用抠掉橙底的透明线描图，边缘半透明自然溶进照片
   · 网格两列：面包屑/标题占左列，logo 占右列 —— 物理上不可能重叠
   · 背后加无边界径向暗雾保可读性（不是色块，没有直角边）
   背景照片来自后台「页面头图」（banner_products），配色用 #1F2937 深底衬白字。 */
.brand-banner {
  position: relative;
  padding: 46px 0;
  color: #fff;
  background:
    /* 右侧一团品牌橙，与 logo 方块呼应，避免照片显得灰 */
    radial-gradient(620px 320px at 84% 24%, rgba(229, 111, 47, .30), transparent 68%),
    /* 左侧压深保证白字可读，右侧渐透露出照片（童装挂架那一侧） */
    linear-gradient(96deg,
      rgba(14, 17, 22, .94) 0%,
      rgba(14, 17, 22, .84) 38%,
      rgba(17, 19, 23, .50) 68%,
      rgba(20, 20, 22, .22) 100%),
    var(--bb-img, url("/static/img/banner-products.jpg")) center/cover no-repeat,
    #1F2937;
}
.brand-banner__inner {
  display: grid;
  /* 面包屑在左上、logo 在右上（同一行），标题另起一行 —— logo 与文字分属两列，
     物理上不可能重叠，所以可以放心缩小放到角落（v2.69，用户要求「小一点、放右上」）。 */
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "crumb logo"
    "title logo";
  column-gap: 26px;
  row-gap: 4px;
  align-items: start;
}
.brand-banner__logo { grid-area: logo; align-self: start; position: relative; }
/* logo 背后一团无边界暗雾：右上角正好压在 banner 里最亮的童装照片上，
   白线描直接放上去会糊。用径向渐变把局部压深（不是色块、没有直角边），
   既保住可读性，也不会回到"贴纸"感。 */
.brand-banner__logo::before {
  content: "";
  position: absolute;
  inset: -46% -40%;
  background: radial-gradient(closest-side,
    rgba(11, 14, 19, .58) 0%,
    rgba(11, 14, 19, .30) 52%,
    transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.brand-banner__logo img {
  position: relative;
  z-index: 1;
  display: block;
  /* 缩小到 110px：线描版内容占满整幅，比原先 172px 方块里的图形还清楚 */
  width: 110px;
  height: auto;
  /* drop-shadow 顺着图形轮廓打影（不是给矩形框打影），压在照片上也不会脏 */
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, .50))
    drop-shadow(0 1px 2px rgba(0, 0, 0, .40));
}
.brand-banner .breadcrumb {
  grid-area: crumb;
  align-self: end;
  margin-bottom: 0;
}
.brand-banner__text {
  grid-area: title;
  align-self: start;
  min-width: 0;
}
.brand-banner h1 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.18;
  margin: 0;
}
.brand-banner p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .84);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 600px;
}
/* 平板竖屏及以下：面包屑左上 + logo 右上（同一行），标题单独占一行、跨满宽度。
   logo 缩到 72px 但仍完整可见（它是布局元素，不会被裁）。 */
@media (max-width: 899px) {
  .brand-banner { padding: 20px 0 24px; }
  .brand-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "crumb logo"
      "title title";
    column-gap: 16px;
    row-gap: 10px;
  }
  .brand-banner__logo img { width: 72px; }
  .brand-banner h1 { font-size: 25px; }
  .brand-banner p { margin-top: 9px; font-size: 14.5px; }
}

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }

/* ---------- 商品详情页：顶部收紧 + 右上角返回列表 ---------- */
.section--detail-top { padding-top: 20px; }
.detail-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-top .breadcrumb { margin-bottom: 0; color: var(--muted); }
.detail-top .breadcrumb a { color: var(--muted); text-decoration: none; }
.detail-top .breadcrumb a:hover { color: var(--brand-600); }
.detail-top__back { margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .section--detail-top { padding-top: 10px; }
  .detail-top__back { margin-left: 0; }   /* 手机上面包屑会换行，返回键跟在下面靠左 */
  .detail-top { gap: 8px 12px; }
}

/* ---------- 未发布笔记的预览条（只有登录后台的人能看到） ---------- */
.preview-bar {
  background: var(--brand-50);
  border-bottom: 1px solid #FDE68A;
  box-shadow: inset 4px 0 0 var(--brand);
  padding: 10px 0;
}
.preview-bar__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--brand-700);
}
.preview-bar__tag {
  flex: none;
  background: var(--brand); color: #3F2A05;
  font-weight: 700; font-size: 12px; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 999px;
}
.preview-bar__text { flex: 1 1 240px; line-height: 1.5; }
.preview-bar__link {
  flex: none; font-weight: 600; color: var(--brand-700);
  text-decoration: underline; text-underline-offset: 2px;
}
.preview-bar__link:hover { color: var(--brand-600); }

/* ---------- sub tabs（关于我们的三个子项切换） ---------- */
.subtabs {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}
.subtabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subtabs__inner::-webkit-scrollbar { display: none; }
.subtabs a {
  flex: none;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subtabs a:hover { color: var(--ink); }
.subtabs a.is-active { color: var(--brand-600); border-bottom-color: var(--brand); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: #fff; padding: 24px 18px; text-align: center; }
.stat__num { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; line-height: 1.1; }
.stat__label { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #D1D5DB; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- product grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcard:hover { border-color: #D1D5DB; box-shadow: var(--shadow); transform: translateY(-2px); }

.pcard__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }

.pcard__tag {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.pcard__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__title {
  font-size: 14.5px;
  font-weight: 400;              /* 商品标题不加粗，中英文一致 */
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.pcard__price { font-size: 14.5px; font-weight: 700; color: var(--brand-600); }
.pcard__price--muted { font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard__moq { font-size: 12.5px; color: var(--muted); }

/* ---------- 产品搜索栏（产品中心） ----------
   一个普通 GET 表单，无 JS 也能搜。
   · PC（≥900px）：一直吸附在吸顶 header 正下方，滚到列表深处也能改词
   · 移动端：平时随页面滚动（不占版面）；正在搜索 or 正在输入时才吸附
     （.is-search 由服务端按 ?q= 输出，.is-focus 由 main.js 在聚焦时加）
   · 折叠/展开是自动的，不给客户多一个按钮要记
----------------------------------------------------- */
.search-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding: 12px 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.search-bar__inner { display: flex; align-items: center; gap: 10px; }
.search-bar__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-bar__field:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.search-bar__icon { display: flex; color: var(--muted); flex: none; }
.search-bar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.search-bar__input::placeholder { color: var(--muted-2); }
/* 关掉 iOS/Chrome 自带的清除小叉，用我们自己的（跳转式，兼容无 JS） */
.search-bar__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-bar__clear {
  display: flex;
  flex: none;
  padding: 5px;
  color: var(--muted);
  border-radius: 50%;
}
.search-bar__clear:hover { color: var(--ink); background: var(--bg-3); }
.search-bar__btn { height: 46px; flex: none; }
.search-count { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.search-count a { color: var(--brand-600); font-weight: 600; }
/* 搜索结果里的关键词高亮 */
mark { background: var(--brand-100); color: inherit; padding: 0 2px; border-radius: 3px; }
/* 搜索没结果：给个出口，别让客户(和客服)卡在空白页 */
.empty--search { color: var(--ink-2); }
.empty__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.empty__text { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.empty__actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 899px) {
  /* 移动端：平时不吸顶，省下手机屏幕空间 */
  .search-bar { position: static; }
  .search-bar.is-search, .search-bar.is-focus {
    position: sticky;
    top: var(--header-h);
  }
}
/* 页面顶部多了一条吸顶搜索栏时，锚点定位要把它也算进去 */
.has-searchbar .nstrip[id^="note-"] { scroll-margin-top: calc(var(--header-h) + 90px); }

/* ---------- 列表：紧凑图文条（产品中心） ----------
   每个商品只出一张封面，整条是一个链接，点哪儿都进详情页。
   手机上进一步压缩：小图 + 两行描述截断，一屏能多看几款。
----------------------------------------------------- */
.nstrips {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
/* 列表项可被 #note-<编号> 锚点定位（详情页「返回产品列表」用）：
   顶部留出吸顶 header 的高度，别让定位到的卡片被挡住 */
.nstrip[id^="note-"] { scroll-margin-top: calc(var(--header-h) + 18px); }
.nstrip {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nstrip:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(17, 24, 39, .07); }
.nstrip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nstrip__pic {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-3);
}
.nstrip__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nstrip__count {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(17, 24, 39, .68); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
}

.nstrip__body { min-width: 0; }
.nstrip__title {
  font-size: 16.5px; line-height: 1.4; font-weight: 400;   /* 与 V2 卡片一致：标题不加粗 */
  margin: 0 0 6px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nstrip__desc {
  margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nstrip__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.nstrip__price { font-weight: 800; color: var(--brand-600); }
.nstrip__price--muted { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.nstrip__moq { color: var(--ink-2); }
.nstrip__sku {
  color: var(--muted-2); font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 900px) {
  .nstrips { gap: 14px; }
  .nstrip { grid-template-columns: 156px minmax(0, 1fr); padding: 14px; }
  .nstrip__title { font-size: 17.5px; }
}

/* 手机：更紧凑，一屏多看好几款 */
@media (max-width: 560px) {
  .nstrips { gap: 10px; }
  .nstrip {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px; padding: 10px; border-radius: 10px;
  }
  .nstrip__pic { border-radius: 8px; }
  .nstrip__count { right: 4px; bottom: 4px; font-size: 10px; padding: 1px 6px; }
  .nstrip__title { font-size: 15px; margin-bottom: 4px; -webkit-line-clamp: 2; }
  .nstrip__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; -webkit-line-clamp: 2; }
  .nstrip__meta { font-size: 12px; gap: 8px; }
  .nstrip__sku { display: none; }
}

/* ---------- 笔记流（商品详情） ---------- */
.notes {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.note {
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-2);
}
.notes .note:first-child { padding-top: 10px; }
.notes .note:last-child { border-bottom: 0; }

.note__title { font-size: 18px; line-height: 1.45; margin: 0; font-weight: 700; }
.note--detail .note__title,
.note h1.note__title { font-size: clamp(21px, 3vw, 27px); }
.note__title a { color: var(--ink); text-decoration: none; }
.note__title a:hover { color: var(--brand-600); }

.note__desc { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.note__desc p { margin: 0 0 6px; }
.note__desc p:last-child { margin-bottom: 0; }

.note__meta {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  font-size: 14px;
}
.note__price { font-weight: 800; color: var(--brand-600); font-size: 15.5px; }
.note__price--muted { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.note__moq { color: var(--ink-2); }
.note__sku { color: var(--muted-2); font-size: 12.5px; }

.note__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.note__ph {
  margin: 0;
  position: relative;          /* #N 角标的定位基准（v2.75） */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
}
/* 详情页每张图的 #N 编号：与询盘选款抽屉 .ipk__no 同款（深灰半透明底 + 白字），
   让买家「站上看到的编号」和抽屉里勾选时的编号长得一模一样。
   pointer-events:none → 点在角标上也能正常打开大图。 */
.note__no {
  position: absolute; top: 5px; left: 5px; z-index: 1;
  background: rgba(17, 24, 39, .66); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 6px;
  pointer-events: none;
}
/* PC 上格子约 380px（手机 ~114px），沿用 11.5px 会显得太轻；
   等比放一点点，观感才和抽屉里那颗一样重（不是换风格，只是同一套的放大版）。 */
@media (min-width: 768px) {
  .note__no { top: 8px; left: 8px; font-size: 13px; padding: 4px 8px; border-radius: 7px; }
}
/* 图片外面套了一层 <a>（给 PhotoSwipe 当触发器，JS 失效时可退化为直接打开原图），
   所以锚点要撑满整个方格，img 的 100%/100% 才有参照物 */
.note__ph-link {
  display: block;
  width: 100%; height: 100%;
  cursor: zoom-in;
}
.note__ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.note__ph:hover img { transform: scale(1.05); }
@media (hover: none) {
  /* 触屏上放大缩略图反而挡视线，去掉悬停放大（点开有大图可缩放） */
  .note__ph:hover img { transform: none; }
}

.note__tip { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-2); }

.note__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.note__extra { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 6px; }
.note__extra-row {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.note__extra-row:last-child { border-bottom: 0; }
.note__extra-row .k { flex: none; width: 110px; color: var(--muted); }
.note__extra-row .v { color: var(--ink); font-weight: 600; }

/* 分享条 */
.share-bar {
  max-width: 780px;
  margin: 0 auto 26px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.share-bar__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.share-bar__btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.share-bar__btns .btn.is-active { border-color: var(--brand); color: var(--brand-700); }
.share-qr { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.share-qr[hidden] { display: none; }
.share-qr img {
  width: 180px; height: 180px; flex: none;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.share-qr__text { font-size: 14px; line-height: 1.7; }
.share-qr__text p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .note { padding: 20px 0; }
  .note__title { font-size: 16.5px; }
  .note__grid { gap: 4px; border-radius: 6px; }
  .note__actions .btn { flex: 1; justify-content: center; }
  .share-bar { padding: 14px; }
  .share-bar__btns .btn { flex: 1; }
  .share-qr { flex-direction: column; }
}

.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.load-more-wrap { margin-top: 32px; text-align: center; }
.load-more-hint { margin-top: 12px; font-size: 13px; color: var(--muted-2); }

/* ---------- 前台分页器（v2.68u：产品列表由「加载更多」改为服务端分页） ----------
   当前页实心橙，其余为白底描边胶囊；上一页/下一页在两端，窄屏可以折行。 */
.pager {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pager__nums { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pager__nav,
.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.pager__num { padding: 0 10px; }
.pager__nav:hover,
.pager__num:hover { border-color: var(--brand); color: var(--brand-700); }
.pager__num.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: default;
}
.pager__dots { min-width: 18px; color: var(--muted-2); text-align: center; letter-spacing: 1px; }
.pager__nav.is-disabled { color: var(--muted-2); opacity: .5; pointer-events: none; }

/* 翻页后 #products 定位：留出吸附顶栏的高度，别让列表标题被盖住 */
#products { scroll-margin-top: 84px; }

@media (max-width: 640px) {
  .pager { margin-top: 26px; gap: 6px; }
  .pager__nav,
  .pager__num { min-width: 34px; height: 38px; padding: 0 12px; font-size: 13.5px; }
  .pager__num { padding: 0 9px; }
  #products { scroll-margin-top: 68px; }
}

/* ---------- 商品详情 ---------- */
.pd { display: grid; grid-template-columns: 1fr; gap: 28px; }

.pd-gallery__main {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 1 / 1;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button {
  flex: none;
  width: 74px; height: 74px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.pd-thumbs button.is-active { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: clamp(21px, 3vw, 29px); }
.pd-sku { font-size: 13px; color: var(--muted-2); margin-top: 8px; }

.pd-price-box {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.pd-price-box .label { font-size: 13px; color: var(--muted); }
.pd-price-box .value { font-size: 22px; font-weight: 800; color: var(--brand-700); margin-top: 2px; }
.pd-price-box .value--muted { font-size: 16px; font-weight: 600; color: var(--muted); }

.pd-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pd-row .k { flex: none; width: 96px; color: var(--muted); }
.pd-row .v { color: var(--ink); font-weight: 600; }

.pd-desc { margin-top: 26px; }
.pd-desc h2 { font-size: 17px; margin-bottom: 10px; }
.pd-desc .body { font-size: 15px; color: var(--ink-2); }

.pd-actions { margin-top: 26px; display: grid; gap: 10px; }
.pd-note { font-size: 13px; color: var(--muted); text-align: center; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 24, 39, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: pan-y;          /* 横向手势留给 JS 做翻页，纵向不拦 */
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px;
  -webkit-user-drag: none; user-select: none;
}
.lightbox.is-dragging img { will-change: transform; }
.lightbox__counter {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 22px; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 24px; line-height: 1;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- 触屏设备：直接手指左右滑动翻图，箭头按钮反而挡图就藏起来 ---------- */
@media (hover: none) {
  .lightbox__nav { display: none; }
}

/* 大图（PhotoSwipe）左上角的 #N 徽标（v2.76）。
   和缩略图上那颗 .note__no 同一套观感，只是放大一档——截屏发过来时看得清。
   绝对定位在 .pswp 根节点上，不在图片层里，所以双指缩放/拖动都不会跑位。 */
.pswp--zknum .pswp__counter { display: none; }
.pswp__zknum {
  position: absolute; top: 16px; left: 16px; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  width: max-content; white-space: nowrap;   /* PhotoSwipe 的 UI 容器默认宽 0，必须点明 */
  pointer-events: none;
  font-family: var(--font, inherit);
}
.pswp__zknum b {
  background: rgba(17, 24, 39, .86); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1;
  padding: 6px 9px; border-radius: 7px;
  letter-spacing: .01em;
  /* 展开时背景是 0.94 的深色遮罩，站点 logo 会隐约透上来——
     加一层投影把徽标从背景里拎出来，截屏后一眼能看清。 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.pswp__zknum i {
  font-style: normal; font-size: 12.5px; font-weight: 600;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
@media (min-width: 768px) {
  .pswp__zknum { top: 20px; left: 20px; }
  .pswp__zknum b { font-size: 19px; padding: 7px 11px; border-radius: 8px; }
  .pswp__zknum i { font-size: 13.5px; }
}

/* 大图顶部居中的「笔记编码#序号」标签（v2.97，gallery.js 的 zkcode）。
   买家放大图片截屏发过来，一眼看清是「哪本笔记的第几款」——比左上角那颗
   只有序号的 #N 信息量更足，所以前台详情页改用它（后台编辑页仍是左上角 #N）。
   位置由 JS 逐帧贴着图片上沿算（图片顶出视口时夹到安全边），这里只管长相：
   深色半透明胶囊 + 主色亮橙文字，压在任意底色/花色的图上都读得清。 */
.pswp--zkcode .pswp__counter { display: none; }
.pswp__zkcode {
  position: absolute; left: 50%; top: 10px; z-index: 20;
  transform: translateX(-50%);
  width: max-content; white-space: nowrap;   /* PhotoSwipe 的 UI 容器默认宽 0，必须点明 */
  pointer-events: none;
  opacity: 0; transition: opacity .18s ease;
  font-family: var(--font, inherit);
  will-change: top;
}
.pswp__zkcode span {
  display: inline-block;
  padding: 7px 15px; border-radius: 999px;
  /* 底色 .90：半透明会让图片的颜色透上来，透太多白字也会发灰 */
  background: rgba(17, 24, 39, .90);
  border: 1px solid rgba(245, 158, 11, .60);
  /* 白字 + 深色胶囊底：不依赖任何描边 —— 底色固定在 .88~.95 的深灰，
     文字与底永远是「白字压黑底」这一种关系，图片本身是什么颜色都不影响。
     橙色只留在胶囊边框上做主色点缀。 */
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  font-size: 15px; font-weight: 800; line-height: 1.1;
  letter-spacing: .035em;
  /* 展开时背景是 0.94 的深色遮罩、站点内容会隐约透上来，
     加投影把标签从背景里拎出来，截屏后一眼能看清。 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
/* 压在图上时（图片已经顶到视口顶部、上方没位置了）底色再深一档，
   保证橙字不会被图色吃掉 */
.pswp__zkcode.is-over span {
  background: rgba(17, 24, 39, .95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}
@media (min-width: 768px) {
  .pswp__zkcode span { padding: 9px 19px; font-size: 18px; border-radius: 999px; }
}

/* ---------- 图片墙 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.gallery figure > a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.gallery--wide { grid-template-columns: 1fr; }

/* ---------- 直播入口卡片 ---------- */
.live-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.live-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.live-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.live-card__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
  font-size: 15px;
}
.live-card__title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.live-card__sub { font-size: 13.5px; color: var(--muted); }
.live-card__arrow { margin-left: auto; color: var(--muted-2); font-size: 20px; }

/* ---------- 内容排版 ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 34px 0 12px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 1em; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 15.5px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* ---------- 法律条款页（隐私政策 / 服务条款 / Cookie 政策） ---------- */
/* 正文由 `|richtext` 生成，会比 .prose 默认的 h2/p/ul 多出 h3、ol 两级，
   这里补齐；.legal__body 复用 .prose，所以基础排版与关于我们页一致。 */
.legal { max-width: 820px; }
.legal__updated {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.legal__body h3 { margin: 26px 0 10px; font-size: 17px; font-weight: 700; }
.legal__body ol { margin: 0 0 1em; padding-left: 22px; }
.legal__body ol li { margin-bottom: 7px; font-size: 15.5px; color: var(--ink-2); }
.legal__siblings {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-size: 14px;
}
.legal__siblings > span { color: var(--muted); }

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--brand-700);
}
.notice strong { color: var(--brand-700); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.info-list { display: grid; gap: 4px; }
.info-item {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.info-item__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  font-size: 17px;
}
.info-item__k { font-size: 13px; color: var(--muted); }
.info-item__v { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.info-item__v a:hover { color: var(--brand-600); }
.info-item__extra { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.map-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  background: var(--bg-3);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 静态地图截图（联系页，中英文同一张图，不再调高德 JS API） */
.map-embed a { display: block; height: 100%; }
.map-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 地图容器：加载前的地址占位（保留兜底样式，当前模板已改用静态图） */
.map-fallback {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
}
.map-fallback p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 420px; }
.map-fallback__hint { font-size: 13px !important; color: var(--muted) !important; }
.map-embed.is-ready .map-fallback { display: none; }

.qr-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.qr-box img { display: block; width: auto; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.qr-box p { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 52px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); margin-top: 10px; }
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--brand-700); }
.cta-band .btn--ghost:hover { background: var(--brand-50); }

/* ---------- 社媒图标行 ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease;
}
.social-link:hover { border-color: var(--brand); color: var(--brand-700); }
.social-link svg { width: 17px; height: 17px; }

/* ---------- footer ---------- */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 48px 0 24px;
  font-size: 14px;
  margin-top: 0;
}
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer a { color: #9CA3AF; }
.footer a:hover { color: var(--brand); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__brand .logo__name { color: #fff; }
.footer__links { display: grid; gap: 9px; }
.footer__contact { display: grid; gap: 9px; }
.footer__contact strong { color: #E5E7EB; font-weight: 600; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #6B7280;
}
.footer__note { color: #F59E0B; font-weight: 600; }
/* 页脚底部：左侧版权/地址，右侧法律条款链接。
   两处放在一个 flex 容器里，是为了让桌面端 `justify-content: space-between`
   仍然只有「左 / 右」两组 —— 直接再加一个 span 会把「地址」挤到中间去。 */
.footer__legal-left { display: flex; flex-direction: column; gap: 6px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { color: #9CA3AF; }
.footer__legal a:hover { color: var(--brand); }

/* ---------- 悬浮 WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
}
.wa-float:active { transform: translateY(1px); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float__text { display: none; }

/* ---------- empty ---------- */
.empty {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  color: var(--muted);
}

/* ---------- 404 ---------- */
.err-page { padding: 90px 0; text-align: center; }
.err-page .code { font-size: 72px; font-weight: 800; color: var(--brand); line-height: 1; }

/* 响应式 */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .live-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--wide { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__legal-left { flex-direction: row; gap: 20px; }
  /* 桌面端右下角有固定悬浮的 WhatsApp 按钮（right:16 + 宽约 150px），
     不预留的话最右边的「Cookie Policy」会被它盖住、点不到。移动端是竖排、
     链接在左侧，量过不重叠，不用留。 */
  .footer__legal { padding-right: 170px; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .wa-float__text { display: inline; }
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 68px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .pd { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
  .hero { min-height: 540px; }
  .hero__slide { min-height: 540px; }
  .page-banner { padding: 72px 0; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { margin-left: 8px; }
  .header__wa { display: inline-flex; }
  .header__search { display: inline-flex; }
  .burger { display: none; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .live-cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 打印 */
@media print {
  .header, .footer, .wa-float, .drawer, .subtabs, .wxcard { display: none !important; }
}

/* ---------------------------------------------------------------------------
   微信名片弹窗（中文站）
   点「获取报价 / 加微信 / 联系我们」直接弹这个，不再跳联系页
   --------------------------------------------------------------------------- */
.wxcard {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.wxcard[hidden] { display: none; }   /* 上面的 display:flex 会盖掉 hidden，必须显式压回 */
.wxcard__mask { position: absolute; inset: 0; background: rgba(17, 24, 39, .52); }
.wxcard__panel {
  position: relative; width: 100%; max-width: 420px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 26px 24px 22px; box-shadow: var(--shadow-lg);
  text-align: center; animation: wxcard-in .18s ease-out;
}
@keyframes wxcard-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wxcard__close {
  position: absolute; top: 6px; right: 10px; width: 34px; height: 34px;
  border: 0; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted-2);
}
.wxcard__close:hover { color: var(--ink); }
.wxcard__title { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.wxcard__hint { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.7; text-align: left; }
.wxcard__qr { display: flex; justify-content: center; }
/* 二维码图不强制正方形：后台可上传「一图双码」的横向长图（如 1500×862），
   固定 width/height 会把它横向压扁扫不出来。改为按原始比例自适应。 */
.wxcard__qr img {
  display: block; margin: 0 auto;
  width: 100%; max-width: 372px; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.wxcard__id {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding: 10px 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius);
}
.wxcard__id-k { font-size: 12.5px; color: var(--brand-700); }
.wxcard__id-v { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.wxcard__copy {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border: 1px solid var(--brand); border-radius: 999px;
  background: #fff; color: var(--brand-700);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.wxcard__copy:hover { background: var(--brand-100); }
.wxcard__copy:disabled { opacity: .65; cursor: default; }
.wxcard__tip { margin: 14px 0 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.7; }

@media (max-width: 560px) {
  .wxcard { padding: 16px; }
  .wxcard__panel { padding: 22px 18px 18px; }
  .wxcard__qr img { max-width: 100%; }
  .wxcard__title { font-size: 17.5px; }
}

/* V2 列表：一行一款的卡片（后台「站点设置 → 前台商品列表」切换）。
   每卡最多 4 张缩略图（封面 + 按顺序取 3 张，不够自动收缩），下面一行只放标题；
   右下角「Want / 想要」加入询价清单。整卡可点进详情（.ptile__link 铺满），
   按钮层级更高压在上面。与 _partials.html 的 product_tile 宏保持同构。 */
.ptiles {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;      /* 一行一款 */
  gap: 22px;
}
.ptile[id^="note-"] { scroll-margin-top: calc(var(--header-h) + 18px); }
.has-searchbar .ptile[id^="note-"] { scroll-margin-top: calc(var(--header-h) + 90px); }
.ptile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ptile:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(17, 24, 39, .07); }
.ptile.is-picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); }
.ptile__link { position: absolute; inset: 0; z-index: 1; }
.ptile__link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.ptile__media {
  position: relative; display: grid; gap: 2px; background: var(--bg-3);
  grid-auto-rows: clamp(96px, 25vw, 190px);   /* 行高封顶：宽卡不会被 1:1 格撑爆 */
}
.ptile__media--1 { grid-template-columns: 1fr; }
.ptile__media--2 { grid-template-columns: 1fr 1fr; }
.ptile__media--3 { grid-template-columns: repeat(3, 1fr); }
.ptile__media--4 { grid-template-columns: repeat(4, 1fr); }
.ptile__ph { position: relative; overflow: hidden; background: var(--bg-2); }
.ptile__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile__count {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(17, 24, 39, .68); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
}

/* 标题行：左＝标题，右＝「Want / 想要」 */
.ptile__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 14px;
}

.ptile__want {
  /* 唯一需要压在铺满整卡的 .ptile__link 之上的元素（标题仍交给链接，
     点标题一样进详情页）；flex:none 保证标题再长也不挤扁按钮 */
  position: relative; z-index: 2; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.ptile__want:hover { border-color: var(--brand); color: var(--brand-700); }
.ptile__want:active { transform: scale(.97); }
.ptile.is-picked .ptile__want {
  background: var(--brand-50); border-color: var(--brand); color: var(--brand-700);
}
.ptile__want-n { font-weight: 800; }

.ptile__title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: 15px; font-weight: 400; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ptile__title mark { background: var(--brand-100); color: inherit; padding: 0 1px; }

/* ---------- 多选询价：底部常驻条 ---------- */
.inqbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(17, 24, 39, .08);
}
.inqbar[hidden] { display: none; }   /* 必须显式压回：display:flex 会盖掉 hidden */
.inqbar__clear {
  background: none; border: 0; padding: 8px 4px;
  font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.inqbar__make { min-width: 132px; }
.inqbar__spacer { height: 78px; }
@media (min-width: 760px) {
  .inqbar {
    left: 50%; right: auto; bottom: 18px; transform: translateX(-50%);
    width: min(520px, calc(100% - 32px));
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(17, 24, 39, .12); padding: 10px 16px;
  }
  .inqbar__spacer { height: 30px; }
}

/* ---------- 多选询价：询价单弹窗 ---------- */
.inq-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(17, 24, 39, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.inq-mask[hidden] { display: none; }
.inq-box {
  position: relative; width: 100%; max-width: 430px;
  max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px;
}
.inq-x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--bg-3); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.inq-title { margin: 0 0 12px; font-size: 17px; color: var(--ink); }

/* 生成中：转圈 + 进度条 + 文案（100 款要几秒、图还能到十几 MB，必须给反馈） */
.inq-loading { padding: 22px 6px 14px; text-align: center; }
.inq-spinner {
  width: 34px; height: 34px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--brand-100); border-top-color: var(--brand-600);
  animation: inqspin .9s linear infinite;
}
@keyframes inqspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .inq-spinner { animation-duration: 2.4s; } }
.inq-progress { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.inq-subhint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.inq-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--brand-100);
}
.inq-bar > span {
  display: block; height: 100%; width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
  transition: width .24s ease;
}
/* 底部条按钮里的迷你转圈（生成期间按钮禁用变「生成中…」） */
.inqbar__spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: inqspin .8s linear infinite;
}
.inqbar__make[disabled] { opacity: .7; cursor: default; }
.inq-imgwrap {
  border: 1px solid var(--line-2); border-radius: 10px;
  overflow: hidden; background: var(--bg-2);
}
.inq-imgwrap img { width: 100%; display: block; }
.inq-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.inq-hint--err { color: var(--brand-700); font-weight: 600; }
.inq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inq-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- 按款询盘（v2.72）：选款抽屉 + 联系方式 ----------
   一条笔记可能有上百张图，所以选款是**全屏抽屉**而不是小弹窗：
   手机三列、平板四列、PC 六列，图能一直往下滚，顶部工具条和底部按钮固定。
   每张图左上角的 #N 与后台、海报、订单里的款号是同一个数字。 */
body.inq-lock { overflow: hidden; }

.ipk, .icf, .irv {
  position: fixed; inset: 0; z-index: 320;
  display: flex; align-items: flex-end; justify-content: center;
}
.ipk[hidden], .icf[hidden], .irv[hidden] { display: none; }
.ipk__mask, .icf__mask { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }

.ipk__panel, .icf__panel {
  position: relative; width: 100%; max-width: 760px;
  /* 选款面板在手机上整屏：100dvh 比 100vh 稳（iOS 地址栏收起时不跳动）。
     留 8% 的缝会让站点头露在遮罩上方，看着像"没盖住"，所以直接铺满。
     联系方式面板只有 4 个字段，用不到整屏，高度自适应贴底即可。 */
  height: 100dvh; max-height: 100dvh; background: #fff;
  border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(17, 24, 39, .18);
}
.icf__panel {
  height: auto; max-height: 92dvh;
  border-radius: 16px 16px 0 0;
}
@media (min-width: 760px) {
  .ipk, .icf { align-items: center; }
  .ipk__panel, .icf__panel {
    height: auto; max-height: 86vh; border-radius: 16px;
    box-shadow: 0 18px 60px rgba(17, 24, 39, .28);
  }
  .icf__panel { max-width: 460px; }
}

.ipk__head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 6px; }
.ipk__titles { flex: 1 1 auto; min-width: 0; }
.ipk__titles h2 {
  margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ipk__code {
  display: inline-block; margin-top: 3px; font-size: 11.5px; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ipk__x {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--bg-3); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ipk__sub { margin: 0; padding: 0 14px 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.ipk__tools {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 10px; border-bottom: 1px solid var(--line);
}
.ipk__tool {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  font-family: inherit;
}
.ipk__tool:hover { border-color: var(--brand); color: var(--brand-700); }
.ipk__count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-700); }

/* 图墙：可滚，列数随屏幕变；-webkit-overflow-scrolling 让 iOS 有惯性滚动 */
.ipk__grid {
  flex: 1 1 auto; min-height: 120px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; padding: 10px 14px; background: var(--bg-2);
  /* v2.72r3（截图反馈修复）：图墙高度是 flex 分出来的确定值，默认的 align-content:stretch
     会把 auto 行「平分」成容器高/行数——42 张图时行高只有 61px，而格子本身 120px，
     结果是每行图片被裁成横条、行与行还互相压线。显式 max-content 让行高按格子走。 */
  align-content: start; grid-auto-rows: max-content;
}
/* v2.75：图多 / 网慢时网格区会空很久，买家以为卡死 → 摆一句「正在加载款式图片…」+ 转圈。
   跨满整行（grid 布局里不跨就会缩成一个小方块）。 */
.ipk__loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42vh;              /* 让提示落在可见区中部，而不是贴着工具栏 */
  padding: 34px 12px; font-size: 13.5px; color: var(--muted);
  text-align: center; line-height: 1.6;
}
.ipk__loading--fail { color: #B45309; }
.ipk__spin {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid rgba(17, 24, 39, .14); border-top-color: var(--brand);
  animation: ipkSpin .8s linear infinite;
}
@keyframes ipkSpin { to { transform: rotate(360deg); } }
/* 图片没下来之前格子是脉冲灰块：看得出「还在动」，而不是一片死白/死灰 */
.ipk__cell:not(.is-ready) { animation: ipkPulse 1.4s ease-in-out infinite; }
@keyframes ipkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .ipk__spin { animation: none; }
  .ipk__cell:not(.is-ready) { animation: none; }
}

@media (min-width: 520px) { .ipk__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .ipk__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }

.ipk__cell {
  position: relative; display: block; padding: 0; border: 0; margin: 0; cursor: pointer;
  border-radius: 9px; overflow: hidden; background: #E5E7EB;
  /* 同 pk2-cell（v2.58h）：不用 aspect-ratio，改用 padding-bottom 撑正方形。
     老内核不支持 aspect-ratio 时格子会塌成 0 高、图片全部叠在一起。 */
  height: 0; padding-bottom: 100%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ipk__cell img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 图片解码完才显形（配合 JS 的 is-ready），避免半张半张地闪 */
  opacity: 0; transition: opacity .22s ease;
}
.ipk__cell.is-ready img { opacity: 1; }
.ipk__no {
  position: absolute; top: 5px; left: 5px; z-index: 1;
  background: rgba(17, 24, 39, .66); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 6px;
}
/* 选中态用绿色（--ok #059669）：橙黄色在浅色童装上和肤色/米白撞色，一眼看不出来。
   三重提示：粗绿描边 + 右上角实心绿勾 + 编号底色转绿，远看也能分辨。 */
.ipk__cell.is-on { outline: 3px solid var(--ok); outline-offset: -3px; }
.ipk__cell.is-on .ipk__no { background: var(--ok); }
/* 勾放右上角：右下角留给数量输入框，两个叠在一起手机上必点错 */
.ipk__tick {
  position: absolute; right: 5px; top: 5px; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 14px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.ipk__cell.is-on .ipk__tick { display: flex; }

/* 数量（选填）：选中才浮出来压在图片底部，不占位、不撑高格子（避免勾选时整片跳动） */
.ipk__qty {
  position: absolute; left: 5px; right: 5px; bottom: 5px; z-index: 2;
  width: auto; height: 26px; padding: 0 6px;
  border: 1px solid rgba(5, 150, 105, .55); border-radius: 7px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  font: inherit; font-size: 12.5px; font-weight: 700; text-align: center;
  display: none; -webkit-appearance: none; appearance: none;
}
.ipk__cell.is-on .ipk__qty { display: block; }
/* v2.80：手数换算（≈ N 件）—— 压在数量框上方，别和输入框抢位置 */
.ipk__eq {
  position: absolute; left: 5px; right: 5px; bottom: 35px; z-index: 2;
  display: none; text-align: center; font-size: 11px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); pointer-events: none;
}
.ipk__cell.is-on .ipk__eq:not(:empty) { display: block; }
.ipk__qty::placeholder { color: #9CA3AF; font-weight: 500; }
.ipk__qty:focus { outline: none; border-color: var(--ok); box-shadow: 0 0 0 2px rgba(5, 150, 105, .18); background: #fff; }

.ipk__tip {
  margin: 0; padding: 8px 16px 0; font-size: 12px; line-height: 1.5;
  color: var(--muted); background: #fff;
}

.ipk__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff;
}
.ipk__remove {
  flex: 0 0 auto; background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted);
}
.ipk__remove:hover { color: var(--brand-700); }
.ipk__add { flex: 1 1 auto; justify-content: center; }
.ipk__add[disabled] { opacity: .45; cursor: default; }

/* 联系方式：只有 4 个字段，不需要滚，做成紧凑表单 */
.icf__form { display: grid; gap: 10px; padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.icf__f { display: block; }
.icf__f > span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.icf__f > span i { font-style: normal; color: #C2410C; }
.icf__f input, .icf__f textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; -webkit-appearance: none; appearance: none;
}
.icf__f textarea { resize: vertical; min-height: 60px; }
.icf__f input:focus, .icf__f textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}
.icf__hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted-2); }
.icf__err { margin: 0; font-size: 13px; font-weight: 600; color: #B91C1C; }
.icf__submit { width: 100%; justify-content: center; height: 44px; }
.icf__submit[disabled] { opacity: .7; cursor: default; }
.icf__wa-hint {
  display: block; margin-top: 4px; font-style: normal;
  font-size: 12px; line-height: 1.45; color: var(--muted-2);
}

/* ---- 确认清单（v2.72r4）：按笔记分组，一行一款，只删不加 ---- */
.irv__mask {
  position: absolute; inset: 0; background: rgba(17, 24, 39, .55);
}
.irv__panel {
  position: relative; width: 100%; max-width: 640px; height: 100dvh; max-height: 100dvh;
  background: #fff; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(17, 24, 39, .18);
}
@media (min-width: 760px) {
  .irv { align-items: center; }
  .irv__panel { height: auto; max-height: 84vh; border-radius: 16px; }
}
.irv__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 16px 12px; background: var(--bg-2);
}
.irv__note { margin: 12px 0 0; }
.irv__note:first-child { margin-top: 6px; }
.irv__head {
  display: flex; align-items: baseline; gap: 8px; padding: 0 2px 6px;
  font-size: 12.5px; color: var(--muted);
}
.irv__head b {
  flex: 0 0 auto; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.irv__head span {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.irv__head em { flex: 0 0 auto; white-space: nowrap; font-style: normal; color: var(--muted-2); }
.irv__row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 76px 34px;
  align-items: center; gap: 10px;
  padding: 7px 8px; margin-bottom: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.irv__pic {
  position: relative; height: 0; padding-bottom: 100%; border-radius: 8px;
  overflow: hidden; background: var(--bg-3);
}
.irv__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.irv__no {
  position: absolute; left: 3px; top: 3px; z-index: 1;
  padding: 1px 4px; border-radius: 5px;
  background: rgba(17, 24, 39, .66); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1.3;
}
.irv__meta { min-width: 0; font-size: 13px; color: var(--muted); }
.irv__meta b { display: block; font-size: 15px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irv__eq { display: block; font-style: normal; font-size: 11.5px; color: var(--ok);
  font-weight: 600; line-height: 1.3; }
.irv__qty {
  width: 100%; height: 34px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.irv__qty:focus { outline: none; border-color: var(--ok); box-shadow: 0 0 0 2px rgba(5, 150, 105, .16); }
.irv__del {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
  background: var(--bg-3); color: #B91C1C; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; font-family: inherit;
}
.irv__del:hover { background: #FEE2E2; }
.irv__empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.irv__foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff;
}
.irv__back {
  flex: 0 0 auto; background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--muted);
}
.irv__back:hover { color: var(--ink); }
.irv__foot .btn { flex: 1 1 auto; justify-content: center; height: 42px; }

/* ---- 二次确认（v2.74）：Clear 全部 / 移除某篇笔记 都要先问一句 ----
   买家可能已经挑了半天，误点一次就全清掉（填过的数量也无法恢复），
   所以这两个动作都过这个轻量确认框，不做成抽屉（内容就两行字，越轻越好）。 */
.icx {
  position: fixed; inset: 0; z-index: 340;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.icx[hidden] { display: none; }
.icx__mask { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.icx__panel {
  position: relative; width: 100%; max-width: 380px;
  background: #fff; border-radius: 16px; padding: 22px 20px 16px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, .24);
}
.icx__t { margin: 0 0 8px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.icx__d { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.icx__foot { display: flex; gap: 10px; }
.icx__foot .btn { flex: 1 1 0; justify-content: center; height: 42px; }
.btn--danger { background: #DC2626; color: #fff; border-color: #DC2626; }
.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* 底部条的「已选 N 款」现在可点（查看/修改清单），给个可点的暗示 */
.inqbar__count {
  flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink);
  background: none; border: 0; padding: 6px 2px; font-family: inherit; cursor: pointer;
}
.inqbar__count::after { content: '›'; margin-left: 4px; color: var(--muted-2); font-weight: 800; }
.inqbar__count:hover { color: var(--brand-700); }

/* 超窄屏（≤380px）只收窄头部自身，全局 --gutter 不动。
   320px 老机型上 logo + 语言开关 + 汉堡放不下，会把整页撑出横向滚动。 */
@media (max-width: 380px) {
  .header .container { padding-left: 12px; padding-right: 12px; }
  .header__inner { gap: 8px; }
  .header .logo { gap: 8px; }
  .header .logo__mark { width: 30px; height: 30px; font-size: 17px; border-radius: 8px; }
  .header .logo__name { font-size: 15.5px; }
  .header .logo__sub { display: none; }   /* 「WHOLESALE & OEM」在窄屏让位给语言开关 */
  .header__actions { gap: 8px; }
  .header__actions .lang-switch a { padding: 5px 9px; font-size: 12px; }
  .header .burger { width: 38px; height: 38px; }
}

/* 商品类别：.cat-bar / .cat-pill 列表页顶部筛选条，.cat-chip 卡片与详情页标签。
   不显示款数：对外不暴露「一共多少款」。 */
.cat-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 16px;
}
.cat-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; line-height: 1.2; color: var(--ink-2); text-decoration: none;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand-700); }
.cat-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* 手机端类别条一行横向滚动（换行排在 390px 上要占 6 行，首屏见不到商品）。
   链接仍在 DOM 里，SEO 不受影响；选中的 pill 由 main.js 滚到中间。 */
@media (max-width: 640px) {
  .cat-bar {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                     /* Firefox */
    margin: 8px calc(-1 * var(--gutter)) 14px;   /* 负边距：滚到边缘时贴屏幕边，不显空 */
    padding: 2px var(--gutter) 4px;
  }
  .cat-bar::-webkit-scrollbar { display: none; }   /* Safari / Chrome */
  .cat-pill { flex: 0 0 auto; }                    /* 不许被压扁 */
}

.cat-chip {
  display: inline-block; max-width: 100%;
  padding: 2px 9px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.cat-chip:hover { background: var(--brand-100); }
.cat-chip--sm { margin-bottom: 6px; }         /* V1 图文条：标签在标题上方 */
.cat-chip--lg { margin-bottom: 10px; font-size: 13px; padding: 4px 12px; }  /* 详情页 */

/* FAQ 常见问题页 */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--brand-100); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.faq-item__q {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  cursor: pointer; user-select: none;
  list-style: none; font-weight: 600; color: var(--ink);
  font-size: 15.5px; line-height: 1.5;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.faq-item__qtext { flex: 1; }
.faq-item__chev {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] .faq-item__chev { transform: rotate(225deg); }
.faq-item__a {
  padding: 2px 18px 16px 56px;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.75;
  white-space: pre-line;
}
@media (max-width: 640px) {
  .faq-item__q { padding: 12px 14px; font-size: 14.5px; }
  .faq-item__a { padding: 0 14px 14px 52px; }
}

/* 详情页批发单价块（v2.92：加了币种切换，标签/价格/汇率说明改成分层排列） */
.price-box {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  margin: 4px 0 6px; padding: 12px 18px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px;
}
.price-box__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-box__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.price-box__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-box__value { font-size: 26px; font-weight: 800; color: var(--brand-600); line-height: 1.15; }
.price-box__moq { font-size: 13px; font-weight: 600; color: var(--muted); }
/* 汇率说明只在进行美元显示时出现（人民币是基准价，没什么可解释的） */
.price-box__fx { display: none; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
html[data-cur="usd"] .price-box__fx { display: block; }

/* 币种切换（v2.92）：两段式小胶囊，选中的一段填主色底。
   不做下拉——买家一眼就该看懂只有两种币，点一下即切；选择记在 localStorage。 */
.cursw {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-100); box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.cursw__btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 3px 10px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-2); line-height: 1.5; transition: background .16s, color .16s;
}
.cursw__btn:hover { color: var(--brand-700); }
.cursw__btn.is-on { background: var(--brand-600); color: #fff; }
.cursw__btn:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 1px; }
@media (max-width: 640px) {
  .price-box { padding: 10px 14px; }
  .price-box__value { font-size: 22px; }
}

/* 列表网格卡批发单价（同行、Want 按钮之前、不换行），「价格面议」与有价格同色 */
.ptile__price { flex: none; font-size: 14.5px; font-weight: 800; color: var(--brand-600);
  white-space: nowrap; }

/* ── v2.92 前台币种显示补充 ─────────────────────────────────────────── */
/* 列表页右上角的「币种」小开关（价格显示偏好） */
.listfx {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: 0 0 12px;
}
.listfx__label { font-size: 12.5px; color: var(--muted); }
.cursw--sm { padding: 1px; }
.cursw--sm .cursw__btn { padding: 2px 8px; font-size: 11.5px; }

/* 选款抽屉标题下的单价（按件计价，区间如实显示两端） */
.ipk__price {
  display: inline-flex; align-items: baseline; gap: 3px;
  margin-top: 3px; margin-left: 8px;
  font-size: 13px; font-weight: 800; color: var(--brand-700); white-space: nowrap;
}
.ipk__price em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.ipk__head .cursw { flex: 0 0 auto; margin-top: 2px; }

/* 确认清单里每篇笔记的单价 */
.irv__price {
  flex: 0 0 auto; white-space: nowrap; font-style: normal;
  font-size: 13px; font-weight: 800; color: var(--brand-700);
}
.irv__price b { font-family: inherit; font-size: 13px; font-weight: 800; color: var(--brand-700); }
.irv__price em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.irv__count { flex: 0 0 auto; white-space: nowrap; font-style: normal; color: var(--muted-2); }

/* ==========================================================================
   文章 / 公告（v3.08）
   ========================================================================== */

/* ---------- 面包屑（文章详情） ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); }

/* ---------- 文章详情 ---------- */
.post__head { margin-bottom: 20px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post__cat { padding: 2px 9px; border-radius: 999px; background: var(--brand-50);
  color: var(--brand-700); font-weight: 700; }
.post__pin { display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-weight: 700; }
.post__title { margin: 0 0 10px; font-size: 26px; line-height: 1.3; letter-spacing: -.3px; }
.post__lead { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.post__cover { margin: 0 0 22px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-3); }
.post__cover img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.post__body { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 { margin: 32px 0 12px; font-size: 20px; line-height: 1.4; color: var(--ink); }
.post__body h3 { margin: 26px 0 10px; font-size: 17px; color: var(--ink); }
.post__body h4 { margin: 22px 0 8px; font-size: 15.5px; color: var(--ink); }
.post__body p { margin: 0 0 16px; }
.post__body ul, .post__body ol { margin: 0 0 16px; padding-left: 22px; }
.post__body li { margin: 6px 0; }
.post__body a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 2px; }
.post__body strong { color: var(--ink); }
.post__body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.post__body code { padding: 1px 5px; border-radius: 5px; background: var(--bg-3);
  font-size: 13px; }
/* 正文插图 + 图注 */
.md-fig { margin: 22px 0; }
.md-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius);
  cursor: zoom-in; background: var(--bg-3); }
.md-fig figcaption { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
/* 提示框：`> 文字` */
.md-note { margin: 20px 0; padding: 12px 16px; border-left: 3px solid var(--brand);
  background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; color: var(--ink-2); }
/* 视频：外链占位卡（点击才加载）+ 自传 mp4 */
.md-video { position: relative; margin: 22px 0; border-radius: var(--radius-lg);
  overflow: hidden; background: #0F172A; aspect-ratio: 16 / 9; }
.md-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-video--file { background: #000; }
.md-video--file video { display: block; width: 100%; height: 100%; }
.md-video__play { position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(17,24,39,.15), rgba(17,24,39,.62)); }
.md-video__tri { width: 0; height: 0; border-left: 20px solid #fff;
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.md-video__tip { font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }

.post__foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.post__share { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 文章卡片 / 列表 ---------- */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .18s, transform .18s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none;
  height: 100%; }
.news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bg-3); }
.news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card__ph { display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--muted-2); background: var(--bg-2); }
.news-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--muted); }
.news-card__cat { padding: 1px 8px; border-radius: 999px; background: var(--brand-50);
  color: var(--brand-700); font-weight: 700; }
.news-card__pin { display: inline-flex; align-items: center; gap: 3px; color: #B45309; font-weight: 700; }
.news-card__title { font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__sum { font-size: 13.5px; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center;
  gap: 5px; font-size: 13px; font-weight: 700; color: var(--brand-700); }

/* ---------- 公告区（文章列表页顶部） ---------- */
.notice-board { border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius); background: var(--brand-50); padding: 12px 16px; }
.notice-board__head { display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--brand-700); margin-bottom: 8px; }
.notice-board__count { padding: 0 7px; border-radius: 999px; background: #fff;
  font-size: 11.5px; font-weight: 700; color: var(--brand-700); }
.notice-board__list { list-style: none; margin: 0; padding: 0; }
.notice-board__item { display: flex; align-items: center; gap: 9px; padding: 7px 0;
  border-top: 1px dashed rgba(180, 83, 9, .18); color: var(--ink); text-decoration: none;
  font-size: 13.5px; }
.notice-board__list li:first-child .notice-board__item { border-top: 0; }
.notice-board__item:hover .notice-board__text { color: var(--brand-700); }
.notice-board__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  flex: 0 0 auto; }
.notice-board__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.notice-board__date, .notice-board__until { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.notice-board__until { color: var(--brand-700); }

/* ---------- 底部公告轮播（v3.08） ---------- */
.nbar {
  position: fixed; z-index: 68; left: 14px; right: 14px; bottom: 84px;
  display: flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 6px 0 12px;
  border: 1px solid rgba(17, 24, 39, .08); border-radius: 999px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .16);
}
.nbar__tag { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand); color: #fff; }
.nbar__stage { flex: 1; min-width: 0; height: 46px; overflow: hidden; }
.nbar__list { list-style: none; margin: 0; padding: 0;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.nbar__item { height: 46px; display: flex; align-items: center; }
.nbar__item a { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13.5px; font-weight: 400; color: var(--ink);
  text-decoration: none; }
.nbar__item a:hover { color: var(--brand-700); }
.nbar__nav { flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0;
  border-radius: 50%; background: var(--bg-3); color: var(--ink-2);
  font-size: 15px; line-height: 1; cursor: pointer; }
.nbar__nav:hover { background: var(--brand-100); color: var(--brand-700); }
.nbar__close { flex: 0 0 auto; width: 26px; height: 26px; margin-right: 4px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 19px; line-height: 1; cursor: pointer; }
.nbar__close:hover { background: var(--bg-3); color: var(--ink); }

/* 手机 / 平板：公告条跟右下角 WhatsApp 泡泡排在同一行（v3.10，用户要求）——
   之前 bottom: 84px 是「飘在泡泡上方」，白占一截垂直空间；现在改成让出右侧
   一个泡泡位（16 + 52 + 14 ≈ 82px），两者底部对齐，正文能多露出一行。
   泡泡高度 52、公告条 46，所以底边抬高 3px 视觉上才是齐的。 */
@media (max-width: 1023px) {
  .nbar { right: 82px; bottom: 19px; }
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .post__title { font-size: 30px; }
  .post__body { font-size: 16px; }
}
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid--related { grid-template-columns: repeat(3, 1fr); }
  /* 桌面端右下角有 WhatsApp 悬浮按钮（约 150×52）：公告条居中并限宽，
     两边各留出足够空档，不会压住它 */
  .nbar { left: 50%; right: auto; transform: translateX(-50%);
    bottom: 20px; width: 680px; max-width: calc(100% - 340px); }
}
