/* ==========================================================================
   全站统一层（UI System v1 · 2026-11-28）
   ===========================================================================
   为什么要有这一个文件
   ---------------------------------------------------------------------------
   站上 24 个流式页是分五批做的，每批都自带一套头部样式。实测同一件事有 5 种写法：

     · H1：32px（learn/compare/cert/guides/recommend）、48px（faq/glossary/accessories/
       cases/industry）、移动端 20px 或 32px，字距 -.4 / -.5 / -.6 / +1 四种
     · lead：15px，但 margin-top 16 / 18 / 20，max-width 860 / 880 / 920 / 无
     · 面包屑：margin-bottom 18 / 22，有的用 padding 撑
     · 卡片圆角：12 / 14 / 16 三种

   改一处要翻 24 个 CSS。所以建这一层：**所有页共用同一套规格，改这里就全站生效**。

   怎么用
   ---------------------------------------------------------------------------
   1. 默认全站 `<h1>` = 48（一级页不需要任何改动）
   2. 详情页/文章页的 H1 加 `ui-h1--sub` → 32
   3. 绝对坐标页（pages/plist、pages/contact）与品牌叙事页（series/flow）
      的 H1 加 `ui-h1--keep` → 本文件完全不碰它们
   4. 新增页面：H1 什么都不用加；需要 32 就加 `ui-h1--sub`

   🔴 本文件必须**最后加载**（layouts/product.blade.php 里放在 @stack('head') 之后），
      否则被各页自己的 CSS 盖掉。权重上刻意与各页持平（都是 0,1,1），靠加载顺序取胜。
   ========================================================================== */

/* ---------- 1. 一级页 H1：48 / 黑体 / -.6 字距 ---------- */
/* 24 个页面原来 32 和 48 混用，统一到 48 —— 一级页是「入口」，标题要压得住版心。 */
h1:not(.sr-only):not(.ui-h1--keep):not(.ui-h1--sub) {
  /* 🔴 不写 margin —— 各页的 H1 外距是页面节奏的一部分（products 页靠 margin-bottom 24
     把标题和主张句分开）。统一字号时连 margin 一起归零，会让标题贴住下一个元素。
     同理不写 color：深色 hero 上的标题是白字。 */
  font-family: var(--font-head);
  font-size: 48px;
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -.6px;
  /* 🔴 不写 color —— 深色 hero 上的标题（.nl-hero 白字）会被这条盖成黑色。
     一级页原本各自都写了 #111，不需要在这里重复。 */
}

/* ---------- 2. 详情页 H1：32 ---------- */
/* 文章 / 案例详情 / 产品页：标题在正文里，48 会压掉正文的分量。
   🔴 用 `h1.ui-h1--sub` 而不是 `.ui-h1--sub`：要与各页 `.xxx h1` 同为 (0,1,1)，
      靠后加载覆盖；只写类选择器 (0,1,0) 会输。 */
h1.ui-h1--sub,
h1.ui-h1--sub.art__h1,
h1.ui-h1--sub.fx-h1 {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -.4px;
}

/* ---------- 3. lead（导语）：15 / 1.95 / 880 ---------- */
/* 各页类名不同，但语义相同，分组覆盖。max-width 统一 880：超过 900 的行宽在 1440 下
   读起来要摆头，低于 820 又显得局促。 */
.lrn-lead, .lrn-desc,
.cmp-desc,
.cert-lead,
.fq-lead,
.glos-lead,
.gd-desc,
.rcm-lead,
.ind-lead,
.cap-lead,
.cs-hero__lead,
.acc__lead {
  margin: 18px 0 0;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.95;
  color: #4a4a4a;
}

/* ---------- 4. 面包屑：14 / #9a9a9a / 下距 18 ---------- */
/* 原来 6 个页面各写一遍（margin-bottom 18 或 22，有的靠 padding 撑高），
   高度差 4px 在多页之间切换时能看出来。 */
.lrn-crumb, .cmp-crumb, .cert-crumb, .fq-crumb,
.glos-crumb, .gd-crumb, .rcm-crumb, .ind-crumb,
.cap-crumb, .art__crumb {
  font-size: 14px;
  line-height: 1.6;
  color: #9a9a9a;
  margin-bottom: 20px;
  padding: 0;
}

/* fq-crumb 原来是 flex + padding-top 28，页面上等于「顶部留白 + 面包屑」，
   这里拆开：padding 归 hero 区管，crumb 自己不带内边距。 */
/* 顶部留白统一：除 hero 图页面外，面包屑距导航一律 44px。
   faq 原来是 28（比别的页少 16），页面之间切换时标题会上下跳一下。 */
.fq-crumb { margin-top: 44px; }
.cap { padding-top: 44px; }

/* ---------- 5. 主张句（kicker）：H1 下面那一行 ---------- */
/* 这是 2026-11-28 新引入的一层：H1 是关键词，kicker 是主张。
   已有 kicker 的三页（cases / compare / capabilities）统一到同一规格。 */
.cs-hero__kicker,
.cap-kicker {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.4px;
  color: #111;
}

/* compare 页的 kicker 原来按 H1=32 收到 20，现在 H1 统一 48，它要并回 32 那组 */
.cmp-kicker {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.4px;
  color: #111;
}

/* ---------- 6. 区块标题：大区块 32 / 小区块 20 ---------- */
/* 各页的区块标题原来 20 / 24 / 32 都有，这里只统一「一级区块」那一层：
   `-sec > h2`、`-group`、`-strip h2` 这类。卡片标题（15）不动。 */
.cs-strip h2,
.sc-strip h2,
.lrn-group,
.cmp-group,
.rcm-group,
.gd-group {
  /* 🔴 只统一字体属性，**不要**写 margin —— 各页的区块间距是按自己的节奏排的
     （.cmp-group 原本 margin:48px 0 18px，加一句 margin:0 就会让标题贴住导语）。 */
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #111;
}

/* ---------- 7. CTA：全站同一套 ---------- */
/* 行业页与能力页已经是这套（黑底 16 圆角 + 白按钮），其余页面没有统一 CTA，
   新增页面直接用 `.ui-cta`。 */
.ui-cta {
  /* 父容器有的是 1256 版心、有的是满宽 —— 用 max-width + auto 两边都成立 */
  max-width: 1256px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 88px;
  padding: 34px 40px;
  border-radius: 16px;
  background: #111;
  color: #fff;
}
.ui-cta strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 700; }
.ui-cta p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .66); }
.ui-cta a {
  flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 26px;
  border-radius: 25px; background: #fff; color: #111; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: transform .18s;
}
.ui-cta a:hover { transform: translateY(-1px); }

/* ---------- 8. 药丸标签：26 高 / 13 圆角 ---------- */
/* 型号胶囊、场景标签、领域 chip 都用它，避免 22 / 26 / 30 三种高度并存。 */
.ui-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #f4f4f4;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  text-decoration: none;
}

/* ==========================================================================
   响应式：移动端 H1 统一 32
   ---------------------------------------------------------------------------
   原来 20 / 32 两种。20px 在 390 宽下「防爆证书与型号核准代码查询」这类长标题
   要折三行且读不出层级；32 折两行正好。
   ========================================================================== */
@media (max-width: 767px) {
  h1:not(.sr-only):not(.ui-h1--keep):not(.ui-h1--sub) {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -.4px;
  }

  h1.ui-h1--sub { font-size: 32px; }

  .cs-hero__kicker,
  .cap-kicker { font-size: 20px; }

  .lrn-lead, .lrn-desc, .cmp-desc, .cert-lead, .fq-lead, .glos-lead,
  .gd-desc, .rcm-lead, .ind-lead, .cap-lead, .cs-hero__lead,
  .acc__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .ui-cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 24px; margin-top: 56px; }
}


/* ---------- 9. 搜索页：H1 下面紧跟搜索框，48 号字需要多一点呼吸 ---------- */
/* 原 `.sq__h1` 是按 32px 排的间距，统一到 48 之后搜索框几乎贴住标题。 */
.sq__h1 { margin: 0 0 22px; }

/* ==========================================================================
   10. 卡片规格统一（2026-11-28 第二轮）
   ---------------------------------------------------------------------------
   实测分歧：9 个列表页的卡片有三种圆角（12 / 16 / 19）、两种底色
   （#fff+边框 / #fafafa+浅边框）。同一个"可点的列表卡"在不同页长得不一样。

   定下的口径很朴素：**底色表示能不能点。**
     · 白底 + 1px #ececec + 14 圆角  → 可点击（整张卡是链接）
     · 浅灰底 #fafafa + 14 圆角      → 只读区块（词条、统计、痛点、提示）
   这样用户不用看鼠标指针，扫一眼就知道哪儿能点。
   ========================================================================== */

/* ---------- 可点击卡片：白底 + 边框 + 14 圆角 ---------- */
.cs-card,
.lrn-card,
.cmp-card,
.gd-card,
.rcm-pick,
.ind-prod,
.acc-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
}

/* hover 统一：品牌红描边 + 红晕 + 上移 2px（站内最新规格） */
.cs-card:hover,
.lrn-card:hover,
.cmp-card:hover,
.gd-card:hover,
.rcm-pick:hover,
.ind-prod:hover,
.acc-card:hover {
  /* 🔴 必须显式写 background:#fff —— .cmp-card:hover / .gd-card:hover 原本会变 #f6f6f6，
     它们权重相同、写在前面，这里不写就会露出灰底 */
  background: #fff;
  border-color: #f3c9c4;
  box-shadow: 0 10px 22px rgba(226, 35, 26, .10);
  transform: translateY(-2px);
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}

/* ---------- 只读区块：浅灰底 + 14 圆角，不做 hover ---------- */
.glos-item,
.cmp-one,
.rcm-path li,
.cert-stat div,
.ind-pains li,
.ind-pain,
.fq-cta,
.cs-note,
.nl-note {
  border-radius: 14px;
}

/* ==========================================================================
   11. 页面结尾 CTA 统一（2026-11-28 第二轮）
   ---------------------------------------------------------------------------
   现状：10 个列表页里 4 个有 CTA，但三种写法 ——
     · .cert-cta / .rcm-cta：黑底，padding 30/34，按钮 44 高 14 字
     · .glos-cta：黑底，padding 34/40，按钮 46 高 15 字
     · .fq-cta：**灰底 + 描边按钮**（唯一一个不是黑底的）
   统一到 capabilities / 行业页那套：黑底 + 16 圆角 + 34/40 内距 + 46 高白按钮。
   ========================================================================== */
.cert-cta,
.glos-cta,
.rcm-cta,
.ui-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 64px;
  padding: 34px 40px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  border: 0;
}

.cert-cta strong,
.glos-cta strong,
.rcm-cta strong,
.ui-cta strong {
  display: block;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.cert-cta p,
.glos-cta p,
.rcm-cta p,
.ui-cta p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .66);
}

.cert-cta > a,
.glos-cta > a,
.rcm-cta > a,
.ui-cta > a {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 25px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s;
}
.cert-cta > a:hover,
.glos-cta > a:hover,
.rcm-cta > a:hover,
.ui-cta > a:hover { transform: translateY(-1px); }

/* faq 的 CTA 结构不同（一段话 + 两个描边按钮），单独适配成同一套观感 */
.fq-cta {
  margin-top: 64px;
  padding: 34px 40px;
  border-radius: 16px;
  background: #111;
  border: 0;
}
.fq-cta p { color: #fff; font-size: 20px; line-height: 1.4; }
.fq-cta__btns { margin-top: 20px; }
.fq-cta__btns a {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  border-radius: 23px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
}
.fq-cta__btns a:hover { background: #fff; color: #111; border-color: #fff; }

@media (max-width: 767px) {
  .cert-cta, .glos-cta, .rcm-cta, .ui-cta, .fq-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 24px;
    margin-top: 48px;
  }
}
