/*
Theme Name: Hebei Print Cluster
Theme URI: https://example.invalid/
Author: 站群管理者
Description: 河北喷码机站群专用主题。一套主题服务全部站点，地域信息一律来自 hebei_config()，主题内不出现任何城市名与域名。含产品页 8 内容模块。
Version: 2.0.0
Requires PHP: 8.0
License: Proprietary
Text Domain: hebei
*/

/* =========================================================================
   1. 设计令牌
   ========================================================================= */
:root {
  --ink: #0f172a;
  --ink-2: #33415c;
  --muted: #64748b;
  --line: #e3e8ef;
  --line-2: #cbd5e1;
  --brand: #0b5ed7;
  --brand-d: #0a4bb0;
  --brand-s: #eef4ff;
  --accent: #f97316;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --ok: #15803d;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1200px;
}

/* =========================================================================
   2. 基础
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.72 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(21px, 3vw, 29px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* =========================================================================
   3. 头部
   ========================================================================= */
.site-top {
  background: var(--ink); color: #cbd5e1; font-size: 13px;
}
.site-top .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.site-top a { color: #cbd5e1; }
.site-top a:hover { color: #fff; }
.site-top .top-meta { display: flex; gap: 18px; flex-wrap: wrap; }

.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  position: relative;
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
/* 喷码墨点意象：右下角小圆点（logo 家族标识，四站同构） */
.brand-mark::after {
  content: ''; position: absolute; right: 4px; bottom: 4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.brand-text b { display: block; font-size: 17px; color: var(--ink); line-height: 1.25; }
.brand-text span { display: block; font-size: 12px; color: var(--muted); }

/* 首页 hero 关键词副行：H1 缩短后承接关键词（视觉弱化、SEO 词保留在页面） */
.hero-kws {
  margin: -10px 0 0; font-size: 15px; font-weight: 500;
  color: var(--brand); letter-spacing: .02em;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 11px; border-radius: var(--radius-s);
  color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-s); color: var(--brand-d); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a,
.main-nav .current_page_item > a { background: var(--brand-s); color: var(--brand-d); }
.main-nav .sub-menu {
  /* ⚠️ top/left 不可省：绝对定位若落在静态位置上，父项与菜单之间会留 1–2px 缝隙，
     鼠标斜向下移时 hover 丢失 → 菜单闪退。显式贴到父项底边。 */
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow); min-width: 176px;
  max-width: 260px; padding: 6px; display: none; z-index: 50;
}
/* 透明热区：把父项与菜单之间的空隙补上，进一步降低 hover 丢失概率 */
.main-nav .sub-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px;
}
.main-nav li { position: relative; }
/* 含二级的父项改为 flex：链接占左、展开按钮占右 */
.main-nav .menu-item-has-children { display: flex; align-items: center; }

/* 展开/收起按钮 —— 桌面（真 hover）不需要，仅在触屏与移动端出现 */
.sub-toggle {
  display: none; width: 22px; height: 22px; padding: 0; margin: 0 2px 0 0;
  background: none; border: 0; border-radius: var(--radius-s);
  color: var(--muted); cursor: pointer; line-height: 1; flex-shrink: 0;
}
.sub-toggle:hover { background: var(--brand-s); color: var(--brand-d); }
.sub-toggle svg { width: 12px; height: 12px; display: block; transition: transform .18s; }
.main-nav li.is-open > .sub-toggle svg { transform: rotate(180deg); }

/* 超级菜单面板的小图标（.hb-ico）尺寸必须**全局**声明。
   2026-09-18 修：原先只写在 @media (min-width:761px) 段内 → ≤760px 段
   对 SVG 没有任何尺寸约束，移动端手风琴里撑出一个 ~230px 的巨型图标（390 端实证）。
   SVG 没有 width/height 属性时默认按 300×150 的替换元素规则撑满，必须显式给尺寸。 */
.main-nav .hb-ico { width: 17px; height: 17px; flex-shrink: 0; color: var(--brand); }

/* ① 桌面（具备真 hover 能力）：悬停展开。
     媒体查询条件是 (hover: hover)，触屏设备不匹配 —— 避免「首次点按只展开不跳转」。 */
@media (hover: hover) and (min-width: 761px) {
  .main-nav li:hover > .sub-menu { display: block; }
}
/* ② 键盘 / 读屏可达：Tab 进入二级项时菜单必须可见（无障碍硬性要求） */
.main-nav li:focus-within > .sub-menu { display: block; }
/* ③ 点按态：由 nav.js 打 li.is-open（触屏平板与移动端共用） */
.main-nav li.is-open > .sub-menu { display: block; }
.head-cta { flex-shrink: 0; }

/* 触屏平板（≥761px 但无真 hover）：上面的 (hover:hover) 媒体查询不匹配，
   二级只能靠点按 —— 展开按钮必须出现。 */
@media (hover: none) and (min-width: 761px) {
  .sub-toggle { display: grid; place-items: center; }
}

/* ====================================================================
 * 超级菜单（mega menu）—— 一级栏目的下拉面板
 *
 * 结构（全部服务端渲染；打标与面板内容见 functions.php 的 hebei_mega_* ）：
 *   li.hebei-panel[data-panel="all|penmaji|consumables|smoke-filter"]
 *     > a                    一级触发器（标签/次序/链接由菜单决定）
 *     > button.sub-toggle    展开按钮（移动端 / 触屏）
 *     > div.hb-panel         面板本体
 *         div.hb-panel-cols    列区（总览＝三列；品类＝类型列 + 按品牌列）
 *           div.hb-col           一列（.hb-col-head 列标题 + .hb-list + .hb-more）
 *         aside.hb-rail        右侧栏（常驻入口；总览面板额外带报价盒）
 *         div.hb-brandbar      底部「按品牌」胶囊行（仅总览面板，跨整幅宽度）
 *
 * ⚠️ 面板宽度按 data-panel 显式给出，不用 width:max-content ——
 *    网格列在 shrink-to-fit 下会塌成一列（此前实测：面板缩成 184px 竖排）。
 * ⚠️ 以下规则全部落在 min-width:761px 内 —— ≤760px 退回手风琴（见文末 760 段）。
 * ==================================================================== */
@media (min-width: 761px) {
  /* 面板项：桌面下 a 与展开按钮并排（触屏平板要显示按钮，不能竖排） */
  .main-nav .hebei-panel { display: flex; align-items: center; }

  /* 面板宽度：总览最宽（三列 + 右栏）；滤芯只有一列，给窄幅更紧凑。
     ⚠️ --hb-w 必须声明在 .hb-panel **自身** —— width 用的就是它的值。
     2026-09-18 修：原选择器写成 li.hebei-panel[data-panel="all"]，而 data-panel
     实际挂在子元素 div.hb-panel 上（functions.php 生成）→ 声明永不命中，
     总览面板一直吃默认 600px，列区只剩 364px，第三组「喷码机烟尘过滤」
     被挤到第二行（实证：老大标注图 1）。 */
  .main-nav .hebei-panel > .hb-panel { --hb-w: 620px; }
  .main-nav .hebei-panel > .hb-panel[data-panel="all"] { --hb-w: 900px; }
  .main-nav .hebei-panel > .hb-panel[data-panel="smoke-filter"] { --hb-w: 560px; }
  /* 窄桌面（761–1080）：总览面板收窄，避免面板右边缘溢出视口；
     此时三组降为「2 + 1」两行，右栏与底部品牌行位置不变。 */
  @media (max-width: 1080px) {
    .main-nav .hebei-panel > .hb-panel[data-panel="all"] { --hb-w: 620px; }
  }

  .main-nav .hebei-panel > .hb-panel {
    display: none;
    position: absolute; top: 100%; left: 0;
    width: min(var(--hb-w, 600px), calc(100vw - 24px));
    grid-template-columns: minmax(0, 1fr) 214px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  /* 透明热区：补上父项与面板之间的缝隙，避免鼠标斜向下移时 hover 丢失、菜单闪退 */
  .main-nav .hebei-panel > .hb-panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
  }
  /* 展开时机与单列下拉同一套：hover / focus-within（键盘）/ is-open（点按） */
  .main-nav .hebei-panel:hover > .hb-panel,
  .main-nav .hebei-panel:focus-within > .hb-panel,
  .main-nav .hebei-panel.is-open > .hb-panel { display: grid; }

  /* ---- 列区 ---- */
  .main-nav .hb-panel-cols { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 8px 12px 12px; }
  .main-nav .hb-col { flex: 1 1 148px; min-width: 148px; max-width: 240px; }
  .main-nav .hb-col-head {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 8px 8px; margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  }
  /* ⚠️ .main-nav ul 是 flex 横排，列表必须显式退回纵向 */
  .main-nav .hb-list { display: block; list-style: none; margin: 0; padding: 0; }
  .main-nav .hb-list a { padding: 6px 8px; font-size: 14px; color: var(--ink-2); white-space: normal; }
  .main-nav .hb-more {
    display: inline-block; padding: 6px 8px; margin-top: 2px;
    font-size: 13.5px; font-weight: 600; color: var(--brand);
  }
  .main-nav .hb-more:hover { background: var(--brand-s); color: var(--brand-d); }

  /* ---- 右侧栏 ---- */
  .main-nav .hb-rail { border-left: 1px solid var(--line); padding: 14px 12px; }
  .main-nav .hb-rail-links { display: block; list-style: none; margin: 0 0 10px; padding: 0; }
  .main-nav .hb-rail-links a { padding: 6px 0; font-size: 14px; color: var(--ink-2); }
  .main-nav .hb-rail-links a:hover { background: none; color: var(--brand-d); }
  .main-nav .hb-cta { background: var(--brand-s); border-radius: var(--radius-s); padding: 11px 12px; }
  .main-nav .hb-cta p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
  .main-nav .hb-cta .btn { width: 100%; }

  /* ---- 底部「按品牌」胶囊行（仅总览面板） ---- */
  .main-nav .hb-brandbar {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 10px 12px; border-top: 1px solid var(--line);
  }
  .main-nav .hb-brandbar-label {
    display: inline-flex; align-items: center; gap: 5px;
    margin-right: 4px; font-size: 13px; color: var(--muted); white-space: nowrap;
  }
  .main-nav .hb-brandbar-label .hb-ico { width: 15px; height: 15px; color: var(--muted); }
  .main-nav .hb-chip {
    padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--ink-2);
  }
  .main-nav .hb-chip:hover { border-color: var(--brand); background: var(--brand-s); color: var(--brand-d); }
}

/* 触屏平板（无真 hover、≥761px）：面板靠点按展开，展开按钮必须出现 */
@media (hover: none) and (min-width: 761px) {
  .main-nav .hebei-panel > .sub-toggle { display: grid; place-items: center; }
}

.nav-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); padding: 7px 12px; font-size: 15px; cursor: pointer;
}

/* =========================================================================
   4. 按钮
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-s); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ea6a05; color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-s); }
.btn-sm { padding: 7px 13px; font-size: 14px; }

/* =========================================================================
   5. Hero
   ========================================================================= */
.hero { background: linear-gradient(160deg, #0b5ed7 0%, #093f92 100%); color: #fff; padding: 54px 0 58px; }
.hero h1 { color: #fff; max-width: 22em; }
.hero .lead { font-size: 17px; color: #dbe7ff; max-width: 46em; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts div { font-size: 14px; color: #cfe0ff; }
.hero-facts b { display: block; font-size: 22px; color: #fff; }

/* =========================================================================
   6. 区块
   ========================================================================= */
.section { padding: 54px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: .16s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; font-size: 17px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand-d); }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.link-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: .16s;
}
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.link-card b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.link-card span { color: var(--muted); font-size: 13.5px; }

/* ---------- 产品品类区块（首页 / /products/）：分组 → 组内品类 ----------
   结构镜像主导航「产品中心」超级菜单的三个分组，见 template-parts/cat-groups.php。
   分组标题即该分组的归档页链接（一级栏目可点）。 */
.cat-group + .cat-group { margin-top: 32px; }
.cat-group-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.cat-group-title { margin: 0; font-size: 19px; line-height: 1.3; }
.cat-group-title a { color: var(--ink); }
.cat-group-title a:hover { color: var(--brand-d); }
.cat-group-count { color: var(--muted); font-size: 13px; }

/* =========================================================================
   7. 产品页 8 模块
   ========================================================================= */
.p-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.p-hero .brand-tag {
  display: inline-block; background: var(--brand-s); color: var(--brand-d);
  border: 1px solid #c7dbff; border-radius: 999px; padding: 3px 12px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.p-hero h1 { margin-bottom: 10px; }
.p-hero .p-summary { color: var(--ink-2); font-size: 16.5px; max-width: 50em; }

/* 首屏两栏：左 = 面包屑 / 品牌 / H1 / 摘要 / 主图 / 按钮；右 = 侧栏上移的引导与速览盒。
   ⚠️ 列宽必须与 .p-layout 完全一致（minmax(0,1fr) / 322px、gap 40px），
   否则首屏右列与下方 sticky 侧栏左右错位，看起来就是两根不同的栏。 */
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 322px; column-gap: 40px; align-items: start; }
.p-hero-side { display: grid; gap: 18px; align-content: start; align-items: start; }
/* .side-box 自带 margin-bottom:18px，进了 grid 会跟 gap 叠加成 36px → 清零 */
.p-hero-side .side-box { margin-bottom: 0; }
/* 无配图降级（2026-09-18）：全站 165 条产品有 76 条没有特色图。
   有图时左列 ~730px，右列三盒 760px 刚好填满主图右侧；无图时左列只有
   面包屑/标签/H1/摘要/按钮 ≈250px，三盒会把 hero 撑到 825px → **左侧空出 510px**。
   无图时只留「产品信息」速览盒（234px），hero 改由左列定高：实测 825 → 315。 */
.p-hero-side.is-no-image .side-cta,
.p-hero-side.is-no-image .is-machine-quick { display: none; }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 40px; align-items: start; }
.p-main > section { margin-bottom: 40px; }
.p-side { position: sticky; top: 92px; }
/* ⚠️ sticky 侧栏的高度上限是**兜底**，不是布局尺寸：
   top:92px 把整列顶部钉死，侧栏若高于视口，下部（留言卡、相关服务）就永远滚不进屏幕。
   2026-09-18 二次修订：内容已从 1407px 压到 685px，所以
   ① 公式由 -108px 放宽到 -96px（多 12px 余量）；
   ② 可视高度 ≤780px 直接退出 sticky（见下方断点），改用整页滚动 ——
      这样**任何视口都不会在侧栏内部出现滚动条**，且内容零截断。
   本上限此后只负责「展开留言表单后内容临时变高」这类兜底。
   ≤1024px 侧栏本就是 static（见下方断点），不受影响。 */
@media (min-width: 1025px) {
  .p-side {
    max-height: calc(100vh - 96px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .p-side::-webkit-scrollbar { width: 6px; }
  .p-side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
  .p-side::-webkit-scrollbar-track { background: transparent; }
  /* 内部滚动条会吃掉 6px，给点右内边距让卡片不被压边 */
  .p-side > * { margin-right: 2px; }
}
/* 矮屏退出 sticky（可视高度 ≤780px：1366×768、1440×800、1080p 屏 125% 缩放 ≈756px
   全在此列 —— 老大的机器就在这里，所以「1440×900 达标」根本不算达标）。
   内容 685px 放不进 calc(100vh - 96px)，若继续 sticky 就会长出内部滚动条，
   老大已明确否掉这种形态。改为 static：整列随页面滚动，无滚动条、内容零截断，
   代价是不再跟随滚动（矮屏下本来也跟不动一屏）。
   781 是算出来的临界值：781 - 96 = 685 = 内容实高。 */
@media (min-width: 1025px) and (max-height: 780px) {
  .p-side { position: static; max-height: none; overflow: visible; }
  .p-side > * { margin-right: 0; }
}

/* ---------------------------------------------------------------------------
   产品页侧栏（compact 联系模块）压缩 —— 2026-09-18（二次修订，目标 685px）
   ---------------------------------------------------------------------------
   起点：内容 1407px（联系模块 1131 + 相关服务 234 + 标题 38），必然出现内部滚动条。
   一改压到 775px —— 但只在 1440×900 视口「刚好」达标；1440×800 / 1366×768 /
   1080p 屏 125% 缩放（可视 ≈756px）仍然溢出 → 老大两次看到滚动条。
   二改压到 **685px**：视口 ≥781px 一律放得下，<781px 由上方断点退出 sticky。
   ⚠️ 验收必须在 **1440×800** 上做，只测 1440×900 会漏掉真实的笔记本视口。

   ⚠️ 全部限定在 .p-side 作用域内 —— /contact/ 的完整模式一个字都不受影响。
   --------------------------------------------------------------------------- */
.p-side .contact-mod.is-compact { margin-top: 6px; }
.p-side .mod-title { margin-bottom: 5px; padding-bottom: 5px; }
.p-side .mod-title .n { width: 20px; height: 20px; font-size: 11.5px; }
.p-side .mod-title h2 { font-size: 16px; }
.p-side .contact-mod.is-compact .ct-grid { gap: 8px; }

/* ⚠️ 本段最关键的一条，删了前面的压缩大半失效：
   .ct-grid 在 compact 下 flex-direction 变 column，于是
   `.ct-grid > .ct-card{flex:1 1 260px}` 与 `.ct-grid > .ct-form{flex:1.15 1 300px}`
   的 flex-basis 从「宽度基准」**变成「高度基准」** —— 微信卡被强撑到 260px、
   留言卡被强撑到 300px，而它们的内容实际只有 161px / 156px，怎么压 padding 都没用
   （实测：改 padding 与字号后留言卡纹丝不动，仍是 300px）。
   覆盖为 flex:0 0 auto，高度才真正由内容决定（留言卡 300 → 160）。
   优先级 0,4,0 > 基础规则的 0,2,0，无需 !important。 */
.p-side .contact-mod.is-compact .ct-grid > .ct-card { flex: 0 0 auto; }

.p-side .ct-card { padding: 11px 14px 10px; }
.p-side .ct-card h3 { font-size: 14px; margin-bottom: 6px; }
.p-side .ct-tel { font-size: 22px; }
.p-side .ct-copy { margin-top: 6px; padding: 5px 11px; }
.p-side .ct-why { margin-top: 8px; padding-top: 7px; }
.p-side .ct-why-t { margin-bottom: 4px; font-size: 12.5px; }
.p-side .ct-list li { margin-bottom: 1px; line-height: 1.42; font-size: 12.5px; }
/* 受理品牌 = 「你们接不接我这个牌子」的关键信息，**不能截断到看不全**。
   所以不砍行数（clamp 2 会把末几位品牌变成「…」），改用小字号 + 紧行距：
   12.5px/1.7 → 11px/1.45，15 个品牌仍压在三行内、全部可见。
   line-clamp:3 只作兜底，防某站品牌更多时把侧栏顶穿。 */
.p-side .ct-brands {
  margin-top: 6px; padding-top: 6px;
  font-size: 11px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 微信卡：二维码与文字改左右并排（二维码 84px 跨两行，文字占右列），比上下堆叠省约 110px */
.p-side .ct-wechat .ct-body { display: grid; grid-template-columns: 84px 1fr; column-gap: 11px; }
.p-side .ct-qr { grid-row: span 2; width: 84px; height: 84px; margin-bottom: 0; }
.p-side .ct-wechat .ct-meta:last-child {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-side .ct-foot { margin-top: 7px; padding-top: 6px; font-size: 12px; }
.p-side .ct-foot p { display: inline; margin: 0 10px 0 0; }

/* 相关服务：紧凑链接行（原 side-box 版 234px → 此处 ≈46px），4 个内链一个不少 */
.p-side-links {
  display: flex; flex-wrap: wrap; gap: 3px 10px;
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
.p-side-links a { color: var(--ink-2); }
.p-side-links a:hover { color: var(--brand-d); }

.mod-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.mod-title .n {
  width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700; flex-shrink: 0;
}
.mod-title h2 { margin: 0; font-size: 20px; }

/* 模块 2 · 适配机型 */
.machine-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.machine-tags span {
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 13px; font-size: 14px; color: var(--ink-2);
}

/* 模块 3 · 适配耗材清单（长尾金矿） */
.fits-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fits-table table { font-size: 14.5px; }
.fits-table th {
  background: var(--soft); text-align: left; font-weight: 600; color: var(--ink-2);
  padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.fits-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fits-table tr:last-child td { border-bottom: 0; }
.fits-table td.pn { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--ink); }

/* 模块 4 · 卖点 */
.points { list-style: none; padding: 0; margin: 0; }
.points li {
  position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--line);
}
.points li:last-child { border-bottom: 0; }
.points li::before {
  content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand);
}

/* 模块 5 · 参数 */
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th {
  width: 172px; text-align: left; font-weight: 600; color: var(--ink-2);
  background: var(--soft); padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px;
  border-right: 1px solid var(--line);
}

/* 模块 6 · 行业 */
.ind-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ind-chips a {
  border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 8px 14px;
  font-size: 14.5px; color: var(--ink-2); background: #fff;
}
.ind-chips a:hover { border-color: var(--brand); background: var(--brand-s); color: var(--brand-d); }

/* 模块 7 · FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 9px;
  background: #fff; overflow: hidden;
}
.faq summary {
  padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 16px 15px; color: var(--ink-2); font-size: 15px; }

/* 模块 8 · 相关 */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 侧栏 */
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.side-box h3 { font-size: 16px; margin-bottom: 12px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { color: var(--ink-2); }
.side-box li a:hover { color: var(--brand-d); }
.side-cta { background: var(--ink); color: #cbd5e1; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #94a3b8; font-size: 14px; }
.side-cta .btn { width: 100%; margin-top: 6px; }
.kv { font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   8. 文章 / 页面
   ========================================================================= */
.entry { max-width: 780px; }
/* =========================================================================
   文章页两栏（2026-09-18）
   =========================================================================
   起因：老大标注图 —— 新闻详情页右侧空出 420px 整列
   （.wrap 1200 − .entry 780，`.entry` 靠左且不居中，右边就空着）。
   做法：复用产品页 .p-layout / .p-side 骨架 —— 同 322px 列宽、同 gap 40、
   同 sticky 高度上限与「≤780px 退出 sticky」断点 → 两处右列左右对齐、行为一致。

   ⚠️ 侧栏三盒（目录 / 相关阅读 / 轻量联系）总高必须与产品页同档（≤685px），
      否则会重新长出内部滚动条 —— 所以这里放**轻量联系条**，而不是完整
      contact-module（那一个就 685px）。改侧栏内容后必须重跑六档视口实测（§13.2b）。
   ⚠️ .entry 的 780px 上限在栅格内必须放开，否则列宽与右列错位。
   验收：tools/verify_article_side.py
   ========================================================================= */
.p-layout > .entry { max-width: none; }

/* 侧栏三盒紧凑档（与产品页 .p-side 同一尺寸口径） */
.p-side .side-box { padding: 16px 16px 14px; margin-bottom: 0; }
.p-side .side-box h3 { font-size: 15px; margin-bottom: 10px; }
.p-side .side-box li { padding: 6px 0; font-size: 14px; line-height: 1.55; }

/* 本文目录：序号徽标 + 紧凑行 */
.side-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: hb-toc; }
.side-toc li { display: flex; gap: 8px; align-items: flex-start; }
.side-toc li::before {
  counter-increment: hb-toc; content: counter(hb-toc);
  flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 4px;
  background: var(--soft); color: var(--muted);
  font-size: 11px; line-height: 18px; text-align: center;
}
/* 点目录跳转后，标题不被 sticky 头部压住 */
.entry-body h2[id] { scroll-margin-top: 104px; }

/* 直接联系（轻量）：号码 + 微信 + 完整入口 ≈150px（完整 compact 模块是 685px） */
.side-contact .ct-tel { display: block; font-size: 21px; font-weight: 700; color: var(--brand-d); }
.side-contact .ct-tel:hover { color: var(--brand); }
.side-contact .ct-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.side-contact .side-more { display: inline-block; margin-top: 9px; font-size: 13px; color: var(--ink-2); }
.side-contact .side-more:hover { color: var(--brand-d); }

/* =========================================================================
   案例页右侧栏（2026-09-18）
   =========================================================================
   需求：参照新闻页，给 /cases/{slug}/ 加「本文目录 + 相关案例」；
        原有「描述故障 / 案例信息 / 相关服务」不丢。
   实测：未压缩 **876px**（目录 269 + 相关案例 130 + cta 177 + 案例信息 100 + 相关服务 199）
        → 1440×850 视口（可用 754）溢 122px，立刻长出内部滚动条；
        压缩后 **≤685px**，六档视口零滚动条。
   手段（信息零丢失）：①「相关服务」由整卡压成紧凑链接行（同产品页 .p-side-links，4 链接全在）
        ② 目录行距收紧 ③ cta 文案字号 14→13、按钮内边距收紧（文字一字未改）
        ④ 盒内边距与标题间距收一档
   ⚠️ 全部挂在 **.p-side--case** 之下，不碰文章页（626px 已达标）与产品页。
   ⚠️ 动这里任何一块都要重跑六档视口实测（memory/P2实施细节.md §13.2b）。
   验收：tools/verify_case_side.py
   ========================================================================= */
.p-side--case .side-box { padding: 14px 15px 13px; }
.p-side--case .side-box h3 { font-size: 15px; margin-bottom: 8px; }

/* 2026-09-30：案例侧栏与产品页同构 —— 静态基线 + 脚本吸顶（B站同款）。
   基线（脚本失效时的安全形态）= 静态随页滚、零内部滚动条；
   nav.js 给侧栏添加 .is-fixed（本段样式）= sticky top:92px + translateY 联动位移，
   侧栏高于视口也能走到底部完整露出，零裁切、零内部滚动条。
   视口过矮（可用高 <240px）时脚本不加类 → 自动退回本基线。
   ⚠️ 只挂 .p-side--case：文章页（626px sticky 达标）不受影响。
   本规则在源码序上位于 369 行通用上限之后，同特异性后者胜出，无需 !important。 */
@media (min-width: 1025px) {
  .p-side--case { position: static; max-height: none; overflow: visible; }
  .p-side--case > * { margin-right: 0; }
  .p-side--case.is-fixed { position: sticky; top: 92px; align-self: start; }
}

/* 目录：案例的 H2 更碎（故障现象 / 可能原因 / 排查步骤…），行距比文章页再收一档 */
.p-side--case .side-toc li { padding: 4px 0; }

/* 「遇到同类故障？」：只收字号与内边距，文案与「描述故障」按钮文字保持不变 */
.p-side--case .side-cta p { font-size: 13px; line-height: 1.5; }
.p-side--case .side-cta .btn { padding: 9px 14px; font-size: 14px; margin-top: 4px; }

/* 案例信息 kv（有数据才渲染，见 case-side.php）：与侧栏其它盒同档密度 */
.p-side--case .kv div { padding: 5px 0; font-size: 14px; }

.entry-body { font-size: 16.5px; }
.entry-body h2 { margin-top: 1.7em; font-size: 22px; }
.entry-body h3 { margin-top: 1.4em; }
.entry-body img { border-radius: var(--radius); margin: 1.2em 0; }
.entry-body blockquote {
  margin: 1.3em 0; padding: 14px 20px; background: var(--soft);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2);
}
.entry-body table { margin: 1.2em 0; font-size: 15px; }
.entry-body th, .entry-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.entry-body th { background: var(--soft); font-weight: 600; }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.answer-box {
  background: var(--brand-s); border: 1px solid #c7dbff; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 26px;
}
.answer-box b { display: block; color: var(--brand-d); font-size: 13px; margin-bottom: 5px; letter-spacing: .04em; }
.answer-box p { margin: 0; color: var(--ink-2); font-size: 16px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag-row a {
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 13.5px; color: var(--ink-2);
}
.tag-row a:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-s); }

/* 面包屑 */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 14px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-d); }
.crumbs span { margin: 0 7px; color: var(--line-2); }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pager .page-numbers {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  color: var(--ink-2); font-size: 14.5px;
}
.pager .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .page-numbers:hover { border-color: var(--brand); color: var(--brand-d); }

/* 归档头 */
.archive-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 32px 0; }
.archive-head h1 { margin-bottom: 8px; font-size: clamp(23px, 3.4vw, 33px); }
.archive-head p { color: var(--muted); margin: 0; max-width: 52em; }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---- 栏目内「按品牌」筛选条（2026-09-18）
 * 位置：归档头之下、产品网格之上（总览页在分组卡之后）。
 * 数据源与超级菜单面板同为 hebei_mega_brand_links()，故两侧名单永远一致。
 * ⚠️ 图标尺寸写在媒体查询之外 —— 若只在桌面断点声明，移动端会退回浏览器
 *    默认尺寸变成巨型图标（.main-nav .hb-ico 已实证踩过同一坑）。 */
.hb-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 11px 14px; margin-bottom: 22px;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.hb-filter-label {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 4px; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.hb-filter-label .hb-ico { width: 15px; height: 15px; color: var(--muted); }
.hb-fchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  transition: .15s;
}
.hb-fchip .n { font-size: 12px; color: var(--muted); }
.hb-fchip:hover { border-color: var(--brand); background: var(--brand-s); color: var(--brand-d); }
.hb-fchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.hb-fchip.is-on .n { color: rgba(255, 255, 255, .78); }

/* =========================================================================
   9. 内链漏斗条
   ========================================================================= */
.funnel {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.funnel p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1 1 320px; }

/* 工具类 */
.mt-18 { margin-top: 18px; }
.mb-40 { margin-bottom: 40px; }
.center { justify-content: center; }

/* 搜索表单 */
.searchform { display: flex; gap: 8px; max-width: 460px; }
.searchform input[type="search"] {
  flex: 1; min-width: 0; padding: 9px 13px; font-size: 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--ink);
}
.searchform input[type="search"]:focus { outline: 2px solid var(--brand-s); border-color: var(--brand); }
.spec-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* =========================================================================
   10. 页脚
   ========================================================================= */
.site-foot { background: var(--ink); color: #94a3b8; padding: 46px 0 0; font-size: 14.5px; margin-top: 60px; }
.site-foot h3 { color: #fff; font-size: 15.5px; margin-bottom: 12px; }
.site-foot a { color: #94a3b8; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-note {
  border-top: 1px solid rgba(255,255,255,.09); margin-top: 34px; padding: 18px 0;
  font-size: 13px; color: #64748b;
}
.foot-note .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0; }

/* =========================================================================
   11. 响应式
   ========================================================================= */
@media (max-width: 1024px) {
  .p-layout { grid-template-columns: 1fr; gap: 30px; }
  .p-hero-grid { grid-template-columns: 1fr; row-gap: 24px; }
  /* 平板/手机：首屏右列各盒横排铺开，别在正文前压出 ~660px 的竖堆 */
  .p-hero-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  /* 单栏时正文模块 2「适配机型」紧跟其后，机型清单连着出现两次 → 收起首屏那份 */
  .p-hero-side .is-machine-quick { display: none; }
  .p-side { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px;
    margin-left: 0;
    /* 2026-09-20 修（老大手机标注图）：移动端菜单**没有高度上限**，
       而 .site-head 是 position:sticky、菜单是 absolute 挂在它下面
       → 菜单比视口高时，下半截被钉在屏幕外且**滚动页面也带不动它**。
       实证（390×844，全部产品展开）：菜单高 1585px、overflow-y visible、max-height none，
       品牌胶囊最后一个「Willett」落在 y1319–1351 → 不可达；
       页面滚动 600px 后菜单仍在 y68..1653（页头 sticky 钉住）。耗材/滤芯同理被截。
       → 菜单自身成为滚动容器。

       --hb-nav-top = **菜单顶边到视口顶**的真实距离，由 nav.js 实测写入
       （它 = .site-top 顶部信息条 + .site-head；实测 320px 宽时合计 153px、
       360–414px 为 131px、≥760px 为 104px，随内容换行而变 —— 纯 CSS 写死必错，
       而**算大了就会再次截断**）。变量缺失时退回百分比：100% = 包含块
       （.site-head .wrap）高度，即"页头高"，这是不含顶部信息条的保守值。
       dvh 那行给移动端地址栏伸缩用；旧浏览器解析期丢弃该行、保留上一行。 */
    max-height: calc(100vh - var(--hb-nav-top, 100%));
    max-height: calc(100dvh - var(--hb-nav-top, 100%));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  /* 移动端二级改「手风琴」：默认收起。
     原实现是全展开平铺 —— 合并后二级涨到 46 项，菜单会长到 50+ 行、远超首屏。 */
  /* ⚠️ 这里必须让 li 退回**块级**，不能沿用桌面的 flex row ——
     桌面下 ul 是绝对定位（脱离文档流），flex 只管 a + button；
     但移动端 ul 参与了文档流，flex row 会把 a / button / ul 三者并排到同一行，
     a 又被 align-items:center 垂直居中到二级列表的**中段**（实证：父链接跑到了 12 项中间）。
     块级 + 按钮绝对定位才能保证「父链接一行、二级列表另起一行」。 */
  .main-nav .menu-item-has-children { display: block; position: relative; }
  .main-nav .menu-item-has-children > a { padding-right: 36px; }
  .main-nav .sub-menu {
    position: static; display: none; border: 0; box-shadow: none;
    padding: 0 0 4px 12px; max-width: none;
  }
  .main-nav li.is-open > .sub-menu { display: block; }
  /* 移动端不联动 :focus-within（会把所有 Tab 过的分组同时撑开），只认点按态 */
  .main-nav li:focus-within > .sub-menu { display: none; }
  .main-nav li.is-open:focus-within > .sub-menu { display: block; }
  .sub-toggle {
    position: absolute; right: 0; top: 3px; margin: 0;
    width: 34px; height: 34px; display: grid; place-items: center;
  }
  .site-head .wrap { position: relative; flex-wrap: wrap; }
  .head-cta { display: none; }
  .grid-2, .grid-3, .grid-4, .rel-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .hero { padding: 40px 0 44px; }
  .spec-table th { width: 118px; }
}

/* 超级菜单面板 · 移动端（≤760px）：退化为手风琴的内联列表，
   与 .sub-menu 的行为完全一致 —— 默认收起，li.is-open 才展开。
   注：面板项的 menu-item-has-children 仍在（该 class 由 _wp_menu_item_classes_by_context()
   在 wp_nav_menu_objects 过滤器**之前**算好），所以下面这两条与它重复；
   保留是因为一旦该 class 的来源变化（换主题、换 WP 版本），面板会瞬间错位。 */
@media (max-width: 760px) {
  .main-nav .hebei-panel { display: block; position: relative; }
  .main-nav .hebei-panel > a { padding-right: 36px; }
  .main-nav .hebei-panel > .hb-panel {
    display: none; position: static; width: auto; max-width: none;
    border: 0; box-shadow: none; background: none; padding: 0 0 6px 12px;
  }
  .main-nav li.is-open > .hb-panel { display: block; }
  /* 移动端不联动 :focus-within（会把所有 Tab 过的分组同时撑开），只认点按态 */
  .main-nav li:focus-within > .hb-panel { display: none; }
  .main-nav li.is-open:focus-within > .hb-panel { display: block; }

  .main-nav .hb-panel-cols { display: block; padding: 0; }
  .main-nav .hb-col { min-width: 0; max-width: none; }
  .main-nav .hb-col-head { font-size: 14px; padding: 6px 0; }
  .main-nav .hb-ico { width: 15px; height: 15px; }
  .main-nav .hb-list, .main-nav .hb-rail-links { display: block; }
  .main-nav .hb-list a { padding: 6px 0; }
  .main-nav .hb-more { padding: 6px 0; }
  .main-nav .hb-rail { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0; }
  .main-nav .hb-cta { margin-top: 6px; }
  .main-nav .hb-cta .btn { width: auto; }
  .main-nav .hb-brandbar {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .main-nav .hb-chip { padding: 3px 9px; }
}

/* 矮视口（≥761px 且视口高 ≤720px —— 横屏平板 / 小窗口）下的超级菜单面板：
   与移动端同源缺陷。面板是 absolute（top:100% 挂在 sticky 页头下），
   比「视口 − 页头」高时同样下半截不可达（页面滚动带不动它）。
   实证：1024×600 时总览面板高 637、底边 714 > 视口 600（1440×800 时 446 正常）。
   ⚠️ 只在 max-height ≤720px 生效 → 常规桌面（≥768 高）规则与被实拍验证过的
      hover 展开行为**完全不变**，不引入 overflow 裁剪带来的 hover 缝隙风险。
   此档位以触屏横屏（hover:none，靠点按 .sub-toggle 展开）为主，内滚是最短路径。 */
@media (min-width: 761px) and (max-height: 720px) {
  .main-nav .hebei-panel > .hb-panel {
    /* 面板顶边同样是 --hb-nav-top（与移动端菜单同一个锚点，nav.js 统一发布） */
    max-height: calc(100vh - var(--hb-nav-top, 100%) - 10px);
    max-height: calc(100dvh - var(--hb-nav-top, 100%) - 10px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* =========================================================================
   联系模块（站群统一 · 3 层结构）
   ====================================================================== */
.contact-mod { margin-top: 34px; }
.ct-note { padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; margin: 0 0 18px; }
.ct-ok { background: #eaf3de; color: #27500a; }
.ct-bad { background: #fcebeb; color: #791f1f; }

/* 电话 / 微信 / 留言 三卡并排一行。
   ⚠️ 由 grid 改为 flex 的原因（原为 repeat(2,1fr) + 表单 grid-column:1/-1）：
     ① 卡片数量不足时（如某站尚未配二维码）flex 会自动拉伸填满整行，不会留下空轨道；
     ② 窄屏换行顺序天然正确 —— 先「电话+微信」一行，表单落到下一行整行铺满，
        不需要为降级单独写媒体查询（宽度不够时 flex-wrap 自动接管）。
   ⚠️ 必须等高（保持 flex 默认 stretch，**不要**写 align-items:flex-start）：
      三卡内容量天然不等（电话 ≈160px / 微信 ≈330px / 表单 ≈355px），
      放任自然高度会出现 2 倍以上的高度差，一排卡片参差不齐，看起来像"没做完"。
      差额由卡内消化：标题固定在顶部（三卡 h3 才会在同一水平线），
      正文块用 .ct-body 的 auto margin 在剩余空间垂直居中，留白均分到上下两端。 */
.ct-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.ct-grid > .ct-card {
  flex: 1 1 260px; min-width: 0;
  display: flex; flex-direction: column;
}
/* 表单内容最多，给略大的基准宽度，避免它比另两张卡先换行 */
.ct-grid > .ct-form { flex: 1.15 1 300px; }
.ct-card > h3 { flex-shrink: 0; }
/* 正文块在标题与卡底之间的剩余空间里垂直居中（上下 auto margin 均分留白） */
.ct-body { margin: auto 0; }
.contact-mod.is-compact { margin-top: 18px; }
.contact-mod.is-compact .ct-grid { flex-direction: column; gap: 14px; }
/* compact 模式卡片高度本就贴合内容，无需居中（否则内容会被推离顶部） */
.contact-mod.is-compact .ct-body { margin: 0; }
/* 侧栏只有 ~322px，两列并排会把 input 压到 140px 以下 → 强制单列（视口宽 ≠ 容器宽，
   620px 那条媒体查询只管手机，管不到桌面窄侧栏，所以这里按模式单独兜住） */
.contact-mod.is-compact .ct-row { grid-template-columns: 1fr; gap: 0; }

/* compact 留言卡默认折叠（<details>）：
   侧栏是 sticky，展开态表单会把整列撑到一屏以上，底部永远滚不到；
   折叠只收起高度、不收起通道 —— 需要的人一行点击即展开。 */
.ct-fold { margin-top: 4px; }
.ct-fold > summary {
  list-style: none; cursor: pointer;
  display: block; text-align: center;
  padding: 9px 14px; font-size: 13.5px; border-radius: var(--radius-s);
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2);
}
.ct-fold > summary::-webkit-details-marker { display: none; }
.ct-fold > summary:hover { border-color: var(--brand); color: var(--brand); }
.ct-fold[open] > summary { margin-bottom: 14px; }
/* 折叠箭头：收起 ▾ 展开 ▴ —— 纯 CSS，不额外引入 JS */
.ct-fold > summary::after { content: ' ▾'; }
.ct-fold[open] > summary::after { content: ' ▴'; }

.ct-card {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px 20px;
}
.ct-step {
  position: absolute; top: -11px; left: 18px; width: 23px; height: 23px; line-height: 23px;
  text-align: center; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12.5px; font-weight: 500;
}
.ct-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.ct-tel {
  /* 独占一行：与复制按钮挤在同一行时，窄卡里会显得局促；纵向排列也让卡片更有分量 */
  display: block; font-size: 28px; font-weight: 500; color: var(--brand);
  letter-spacing: .5px; text-decoration: none; line-height: 1.25;
}
.ct-tel:hover { color: var(--brand-d); }
.ct-meta { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 9px 0 0; }
.ct-qr {
  display: block; width: 140px; height: 140px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
}
.ct-copy {
  /* 卡片已是 flex column，子元素默认被拉伸到整宽 —— align-self 保持小按钮形态 */
  align-self: flex-start;
  margin-top: 14px; padding: 7px 14px; font-size: 13px; cursor: pointer;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-s); font-family: inherit;
}
.ct-copy:hover { border-color: var(--brand); color: var(--brand); }
.ct-copy.is-done { border-color: var(--ok); color: var(--ok); }

/* 电话卡补充信息 —— 电话卡内容量天然最少（一个号码 + 一个按钮），
   与表单卡等高后底部会空出近 2/3，视觉上像「没做完」。
   填补原则：**只放可核验的真实信息**，不放「20 年经验」这类编造性宣称。
     · .ct-why  —— 本站实际受理的业务场景（与表单「需求类型」一一对应）
     · .ct-brands —— hebei_config.brands，回答「你们接不接我这个牌子」
   两块内容展开后电话卡高度 ≈ 微信卡，三卡视觉重量接近。 */
.ct-why { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ct-why-t { margin: 0 0 7px; font-size: 13px; color: var(--ink-2); }
.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li {
  position: relative; padding-left: 14px; margin-bottom: 5px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.ct-list li:last-child { margin-bottom: 0; }
.ct-list li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.ct-brands {
  margin: 13px 0 0; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
}

.ct-field { display: block; margin-bottom: 10px; }
/* 两个短字段（称呼 / 联系电话）并排一行：表单卡是三卡中最高的一张，
   并排可砍掉约 1/5 卡高 —— 三卡等高后，整体高度受最高卡支配，压它就是压全排 */
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ct-field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; font-size: 14px;
  font-family: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus { outline: 0; border-color: var(--brand); }
.ct-submit { width: 100%; margin-top: 4px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.ct-foot p { margin: 0 0 6px; }

/* 页脚联系栏 —— 电话为该栏最强视觉，微信二维码次之 */
.site-foot .foot-tel {
  display: inline-block; font-size: 21px; font-weight: 500; color: #fff;
  text-decoration: none; letter-spacing: .6px;
}
.site-foot .foot-tel:hover { color: var(--accent); }
.site-foot .foot-hint { font-size: 12px; color: rgba(255, 255, 255, .6); margin: 5px 0 0; }
.foot-wx { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.foot-wx img { border-radius: var(--radius-s); background: #fff; padding: 3px; }
.foot-wx span { font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.55; }

/* HTML 站点地图（只列栏目层，硬上限 40 条） */
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
.map-box h2 {
  font-size: 15px; font-weight: 500; color: var(--ink);
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.map-box ul { list-style: none; padding: 0; margin: 0; }
.map-box li { margin-bottom: 7px; font-size: 14px; }

/* .ct-grid 不再需要断点：flex-wrap 会按实际可用宽度自行换行
   （≈860px 以上三卡一行；以下电话+微信一行、表单整行；≈560px 以下逐张单列） */
@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .map-grid { grid-template-columns: 1fr; }
  .ct-tel { font-size: 24px; }
  .ct-qr { width: 130px; height: 130px; }
  /* 手机端表单卡只剩 ~300px 宽，并排会让 input 压到 140px 以下 → 退回单列 */
  .ct-row { grid-template-columns: 1fr; gap: 0; }
}


/* ---------- 侧重品类「本地重点」标记（首页品类卡；hebei_config.focus_cats） ---------- */
.focus-tag {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  margin-left: 6px;
  border-radius: 3px;
  background: #e8f1ff;
  color: #1d5dd0;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ---------- 产品主图（详情页 hero + 列表卡片；无图时零影响） ---------- */
.p-image {
  margin: 18px 0 0;
  max-width: 460px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.p-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.p-image figcaption {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  text-align: center;
}
.card .card-image {
  display: block;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
}
.card .card-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  padding: 8px;
}

/* =========================================================================
   B站（zh.ttopmark.com）对齐改版 · 2026-09-29
   覆盖：列表卡片 / 品牌筛选条 / 品类页 cat-hero / 详情页图册与右栏吸顶 /
        页头搜索弹出面板 / 分页与相关产品。
   设计令牌沿用本文件 :root；断点沿用 1025 / 620。
   ========================================================================= */

/* ---- 0. 通用补齐 ------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 产品说明正文锚点不被 sticky 页头压住（B站 88px 同款思路，A站页头 68px） */
.entry-body h2[id^="sec-"] { scroll-margin-top: 88px; }

/* 模块标题：B站形态（浅底数字徽章，去下划线） */
.mod-title { margin-bottom: 14px; padding-bottom: 0; border-bottom: 0; }
.mod-title .n { background: var(--brand-s); color: var(--brand-d); border-radius: 8px; }
.mod-title h2 { font-size: 21px; }

/* 产品信息 kv：B站形态（固定 76px 标签列，值左对齐） */
.kv div { justify-content: flex-start; }
.kv div span { flex: 0 0 76px; color: var(--muted); font-weight: 400; }

/* ---- 1. 列表页骨架 ----------------------------------------------------- */
.section-list { padding-top: 10px; }
.crumbs { padding-bottom: 0; }

.list-title { font-size: clamp(23px, 3.4vw, 30px); margin-bottom: 10px; }
.list-desc { color: var(--muted); max-width: 52em; }
.list-sub { font-size: 20px; margin: 0 0 14px; }

.parent-back { margin: 0 0 14px; font-size: 14px; }
.parent-back a { color: var(--muted); }
.parent-back a:hover { color: var(--brand-d); }

/* cat-hero + 细分栏目卡（B站同款） */
.cat-hero { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; margin: 0 0 26px; }
.cat-hero h1 { margin: 0 0 8px; font-size: 28px; }
.cat-hero p { margin: 0; color: var(--muted); }

.subcat { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; transition: .15s; }
.subcat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.subcat h3 { margin: 0 0 6px; font-size: 17px; }
.subcat h3 a { color: var(--ink); }
.subcat h3 a:hover { color: var(--brand-d); }
.subcat .cnt { color: var(--muted); font-size: 13px; }
.subcat p { margin: 8px 0 0; }
.subcat-grid { margin: 0 0 34px; }

/* 品牌筛选条（B站 filter-bar：文字链接行；机制仍走 ?hb_brand=） */
.filter-bar { margin: 0 0 20px; line-height: 2.2; font-size: 14.5px; }
.filter-bar .muted { color: var(--muted); }
.filter-bar .fsep { margin: 0 8px; color: var(--line-2); }
.filter-bar .fba { color: var(--brand); }
.filter-bar .fba:hover { color: var(--brand-d); }
.filter-bar .fba.is-on { color: var(--ink); font-weight: 700; }

/* ---- 2. 产品卡片（B站 card：1:1 图 + 品牌胶囊 + 等高栅格） -------------- */
.grid-3 > .card-product {
  display: grid;
  overflow-wrap: anywhere;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "img img" "title brand" "desc desc" "cta cta";
  column-gap: 10px;
}
.card-product .card-image { grid-area: img; display: block; }
.card-product .card-image img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
}
.card-product .card-noimg {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  background: var(--soft); border: 1px dashed var(--line-2); border-radius: 8px;
}
.card-product h3 { grid-area: title; margin: 10px 0 0; }
.card-product p { grid-area: desc; margin: 8px 0 0; }
.card-product .card-more { grid-area: cta; align-self: end; padding-top: 12px; font-weight: 600; }
.card-product .meta {
  grid-area: brand; align-self: start; justify-self: end;
  margin: 10px 0 0; padding: 1px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 10px;
  white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis;
}

/* 栅格等宽加固 + 列数阶梯（B站：≥桌面 3 列 / 621–1024 两列 / ≤620 单列） */
.grid-3 > * { min-width: 0; }
@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 3. 详情页首屏（B站 .p-hero-body） --------------------------------- */
.p-hero-body { min-width: 0; margin-bottom: 36px; }
.p-hero-body h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.brand-tag {
  display: inline-block; background: var(--brand-s); color: var(--brand-d);
  border: 1px solid #c7dbff; border-radius: 999px; padding: 3px 12px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.p-hero-body .p-summary { margin: 12px 0 0; font-size: 17px; color: var(--muted); line-height: 1.8; }
.p-hero-body .hero-actions { margin-top: 18px; }

/* ---- 4. 图册（B站 .p-gallery 同款；单图页只渲染主舞台） ----------------- */
.p-gallery { margin: 20px 0 0; }
.pg-stage {
  position: relative; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pg-stage .pg-link { display: block; width: 100%; }
/* ⚠️ 主图不能放大填白：contain + 限高，小图居中留白（框架站实证坑） */
.pg-img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #fff; }
.pg-count {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(15, 27, 45, .72); color: #fff; font-size: 12px;
  border-radius: 999px; padding: 2px 10px; letter-spacing: .4px;
}
.pg-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pg-thumb {
  display: block; width: 74px; height: 74px; border: 1px solid var(--line);
  border-radius: 9px; overflow: hidden; background: #fff; opacity: .72; transition: .15s;
}
.pg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-thumb:hover { opacity: 1; border-color: #c9dcf0; }
.pg-thumb.is-active { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(11, 94, 215, .14); }
/* 左右切换箭头（仅多图页渲染；触屏/键盘不遮挡主图） */
.pg-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(15, 27, 45, .45); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: .15s;
  -webkit-appearance: none; appearance: none; padding: 0;
}
.pg-nav.pg-prev { left: 10px; }
.pg-nav.pg-next { right: 10px; }
.pg-stage:hover .pg-nav, .pg-nav:focus-visible { opacity: 1; }
.pg-nav:hover { background: rgba(15, 27, 45, .68); }
@media (hover: none) {
  .pg-nav { opacity: .8; }   /* 触屏无 hover：常显但半透明 */
}
@media (max-width: 1024px) {
  .pg-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pg-thumb { flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .pg-img { max-height: 340px; }
}

/* ---- 5. 相关产品卡缩略图（B站 link-card） ------------------------------ */
.rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card .lc-thumb { display: block; margin: 0 0 10px; }
.link-card .lc-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; background: var(--soft);
  border: 1px solid var(--line); border-radius: 8px;
}
.link-card .lc-meta { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
@media (max-width: 620px) {
  .rel-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 6. 详情页右栏：无图降级 + B站式吸顶联动 ---------------------------- */
/* 无特色图：隐藏「确认适配再下单」引导盒（B站同款降级） */
.p-side.is-no-image .side-cta { display: none; }

/* 产品页右栏改为「脚本吸顶 + 联动位移」（B站同款）：
   基线 = 静态随页滚（脚本失效时的安全形态）；
   .is-fixed（nav.js 添加）= sticky top:92px + translateY 上移让位。
   零裁切、零内部滚动条 —— 取代旧的 max-height + overflow 方案。
   ⚠️ 只作用于 .single-product；文章页 / 案例页仍用原 sticky 形态。 */
@media (min-width: 1025px) {
  .single-product .p-side { position: static; max-height: none; overflow: visible; }
  .single-product .p-side > * { margin-right: 0; }
  .single-product .p-side.is-fixed { position: sticky; top: 92px; align-self: start; }
}

/* ---- 7. 页头搜索弹出面板（B站同款：图标 + details/summary） ------------- */
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-search-pop { flex: 0 0 auto; }
.site-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); cursor: pointer; list-style: none;
}
.site-search-toggle::-webkit-details-marker { display: none; }
.site-search-toggle::marker { content: ""; }
.site-search-toggle:hover { border-color: var(--brand); color: var(--brand); }
.site-search-toggle:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 94, 215, .12); }
.site-search-toggle svg { width: 17px; height: 17px; display: block; }

/* 面板：定位基准 = .site-head（sticky 即包含块），窄屏不越出视口 */
.site-search-panel {
  position: absolute; top: calc(100% + 10px); right: 18px;
  width: 460px; max-width: calc(100vw - 36px); padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 90;
}
.site-search-pop:not([open]) .site-search-panel { display: none; }

/* 搜索表单（面板内 / 结果页空态共用） */
.site-search { display: flex; gap: 8px; align-items: stretch; max-width: 560px; margin: 0; }
.site-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
.site-search input[type="search"]:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}
.site-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search .site-search-btn {
  flex: 0 0 auto; height: 42px; padding: 0 20px; border: 0; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1;
  background: var(--brand); color: #fff;
}
.site-search .site-search-btn:hover { background: var(--brand-d); color: #fff; }

/* ---- 8. 搜索结果页 / 分页 ---------------------------------------------- */
.search-results .list-title { margin-bottom: 22px; }
.search-empty { padding: 30px 0; max-width: 640px; }
.search-empty-title { font-weight: 700; font-size: 17px; margin: 0 0 6px; }

.pager { padding: 20px 0; }
.pager .page-numbers { display: inline-block; padding: 3px 10px; }
.pager .page-numbers.current { color: var(--ink); font-weight: 700; }

/* ---- 9. 响应式收尾 ------------------------------------------------------ */
@media (max-width: 760px) {
  .header-actions { margin-left: auto; }
  .site-search .site-search-btn { padding: 0 14px; }
  .cat-hero { padding: 18px 16px; }
  .cat-hero h1 { font-size: 22px; }
  .p-hero-body h1 { font-size: 24px; }
}

/* ---- GEO 答案段（2026-11-12）
 * 首页每个 H2 下的自包含答案，供 AI 直接摘取。
 * 宽度与 .section-head 对齐（46em 容器 + 略宽），行高放到 1.85 保证 200 字段落可读。 */
.sec-answer {
  max-width: 52em;
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---- 详情页发布 / 更新时间（2026-11-12）
 * 与 Article 结构化数据的 datePublished / dateModified 同源，
 * 避免「标记里有日期、页面上看不到」的不一致。 */
.archive-head .post-meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ---- 首页承印材质对照表（2026-11-12）
 * 作用有二：给用户一张可扫读的选型表；同时补齐首页缺失的 <table> 与 <ol>。
 * 窄屏用横向滚动而不是压缩字号 —— 表格缩到 12px 以下就没法看了。 */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.sec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}
.sec-table caption {
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.sec-table th,
.sec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.sec-table thead th {
  background: var(--soft);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.sec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.sec-table tbody tr:last-child th,
.sec-table tbody tr:last-child td { border-bottom: 0; }

/* ---- 首页选型三步（2026-11-12）：补齐首页缺失的 <ol> */
.sec-steps {
  margin: 0 0 26px;
  padding-left: 1.35em;
  max-width: 52em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.sec-steps li { margin-bottom: 8px; }
.sec-steps b { color: var(--ink); }

/* ---- 首页核心信息概览（2026-11-12）
 * 四句话摘要块：给用户 10 秒读完，也给 AI 一个可摘的整体描述。 */
.sec-overview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  max-width: 62em;
}
.sec-overview li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}
.sec-overview li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.sec-overview b { color: var(--ink); }
@media (max-width: 760px) {
  .sec-overview { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- 首页结尾结论（2026-11-12） ---- */
.sec-closing {
  margin: 22px 0 0;
  padding: 14px 16px;
  max-width: 62em;
  background: var(--soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}
