/*
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 {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.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); }

.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); }

/* ① 桌面（具备真 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; }
}

.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; }

/* =========================================================================
   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; }

.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; }

.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; }
.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); }

/* =========================================================================
   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-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;
  }
  .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; }
}

/* =========================================================================
   联系模块（站群统一 · 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; }

.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; }
}

