/* ==========================================================================
   v14 · 页头统一层（2026-11-20）
   依据：页头统一方案-20261120.md（客户锁死 5 条 + 代定 4 条）
   原则：只覆盖，不删原规则。回滚 = 去掉 functions.php 里 atom-ui-v14 那行。

   目标几何（首页例外）：
     面包屑 top 250 / 13px 行高 18
     H1 top 294 / 44px / 行高 1.12
     蓝线 2px，宽度 = 标题块宽度（不固定 56/180/266）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 把「面包屑 + 标题」压成同一套节奏
   各模板原来各写各的 padding：page-hero 250、pcat-head 250/261、
   product-detail 229、case 150、article-top 250。这里统一成 250 起步。
   -------------------------------------------------------------------------- */

/* A 类：page-hero（行业 / 关于 / 案例列表 / 法律 / 怎么下单） */
.page-hero { padding-top: 250px; }

/* B 类：pcat-head（产品总览 / 形态归档 / 系列 / 服务） */
.pcat-head,
.pcat-head--compact { padding-top: 250px; }

/* C 类：产品详情（原来 229，标题距面包屑 86） */
.container.product-detail { padding-top: 250px; }
.container.product-detail .product-layout { padding-top: 0; }

/* D 类：案例详情（原来 150，面包屑被 205px 高的页头盖住点不到） */
.case-layout { padding-top: 0; }
.case-layout .article-header { padding-top: 244px; }   /* 面包屑内部有 6px 偏移，补回来正好 250 */
.case-brow { margin-bottom: -6px; }

/* E 类：知识文章（原来面包屑 250、标题 345，中间空 77） */
.article-top { padding-top: 250px; }
.article-top .article-header { padding-top: 0; }

/* F 类：FAQ / 联系（原来没有面包屑，标题直接 250） */
.faq-lite,
.contact-lite { padding-top: 250px; }

/* G 类：关于页 */
.ab { padding-top: 250px; }

/* --------------------------------------------------------------------------
   2. 面包屑：13/18，位置 250；非当前项必须是真链接（数据层已改）
   -------------------------------------------------------------------------- */
.breadcrumbs,
.pcat-crumb {
  font-size: 13px;
  line-height: 18px;
  margin: 0;
  position: relative;
  /* 2026-11-20：这里原来写 z-index:210，本意是压过页头的透明区，
     结果也压过了 header 里的下拉面板（header z-index 200），
     面板一展开就被面包屑盖住一条，鼠标落在上面点不动。
     页头透明区已经用 pointer-events:none 放行，这里不需要抬层级。 */
  z-index: auto;
}

/* --------------------------------------------------------------------------
   3. 标题：全部 44，宽度收到文字宽度，蓝线就是标题块宽度
   -------------------------------------------------------------------------- */
.page-hero__title,
.ab-title,
.faq-lite__title,
.contact-lite__title,
.pcat-head h1,
.product-summary__title,
.article-header__title {
  font-size: 44px !important;
  line-height: 1.12 !important;
  margin-top: 26px !important;   /* 面包屑底(268) + 26 = 294 */
  margin-bottom: 0 !important;
  width: fit-content;
  max-width: 100%;
  letter-spacing: -0.01em;
}

/* 老规则里的 56 / 180 / 266 固定蓝线，一律改成标题块宽度 */
.page-hero__title::after,
.ab-title::after,
.faq-lite__title::after,
.contact-lite__title::after,
.pcat-head h1::after,
.product-summary__title::after,
.article-header__title::after {
  content: "";
  display: block;
  width: 100% !important;
  max-width: 100% !important;   /* 覆盖 v13 的 max-width:60%，否则长标题配短蓝线 */
  height: 2px !important;
  background: #0c5398 !important;
  margin-top: 24px !important;
}

/* 产品详情左栏只有 420，标题 44 会挤，行高收紧一点 */
.product-summary__title { max-width: 420px; }

/* --------------------------------------------------------------------------
   4. 页头不再吃掉点击（案例页面包屑被 205px 透明区盖住）
   只让 header 的空白区不接收指针，导航和面板照常。
   -------------------------------------------------------------------------- */
.site-header { pointer-events: none; }
.site-header a,
.site-header button,
.site-header input,
.site-header select,
.site-header summary,
.site-header .nav-item,
.site-header .header-actions,
.site-header .header-bar > *,
.site-header .nav-drop,
.site-header #mobile-drawer,
.site-header .mobile-drawer,
.site-header .mega-scrim { pointer-events: auto; }

/* --------------------------------------------------------------------------
   5. 背景：去掉把织纹盖死的实色层
   faq-lite 原来铺 #101216 实色（1440×4131），contact-lite 是实色 + 两层遮罩。
   统一交给 body::before 那一层织纹。
   -------------------------------------------------------------------------- */
.faq-lite,
.contact-lite { background: transparent !important; }
.contact-lite::before { display: none !important; }

/* 压在织纹上的表单控件补一点实底，保证输入框边界看得清 */
.contact-lite .rfq-form input,
.contact-lite .rfq-form textarea,
.contact-lite .rfq-form select {
  background: rgba(13, 16, 21, .72) !important;
  border-color: #66707d;
}

/* --------------------------------------------------------------------------
   6. 表格：不越出所在列，超宽自己在框里滚
   -------------------------------------------------------------------------- */
.table-scroll {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.prose table { max-width: 100%; }
.product-section .table-scroll { max-width: 100% !important; }

/* 长文正文列 720（客户定：不采用 860），表格跟着 720，超出在框里横向滚 */
.article-body { max-width: 720px; }

/* 长文与产品归档的正文表格：跟着正文列，最宽 760，超出在框里横向滚 */
.prose .table-scroll,
.article-body .table-scroll { max-width: 100% !important; }
.prose table,
.article-body table { max-width: 760px; }
.pcat .prose table,
.pcat .prose .table-scroll { max-width: 760px !important; }

/* 产品归档与工艺页里直接铺在整宽容器上的表：收到 760，别横跨全屏 */
/* 2026-11-20 修：工艺页的 5 列对比表原来被压到 760，第五列直接跑出屏幕。
   这类表是「横向对比」，必须铺满内容区；产品页的规格表仍然按正文列宽。 */
.pcat-body .table-scroll,
.pcat .table-scroll { max-width: 760px !important; overflow-x: auto !important; }
.prc-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}
.prc-table-wrap > table,
.prc-table { width: 100% !important; max-width: 100% !important; min-width: 860px; }

/* 成品/定制页的页头留白被单独写成了 225，补回 250 */
.pcat--finished .pcat-head { padding-top: 250px; }
.pcat-body > .ui-wrap > table,
.prc-table-wrap > table { max-width: 760px; }

/* --------------------------------------------------------------------------
   7. 首页例外：保留 Display 76，不加面包屑、不加蓝线
   -------------------------------------------------------------------------- */
.home-hero h1,
.front-hero h1 { font-size: inherit; }

/* --------------------------------------------------------------------------
   8. 页头与正文之间留出呼吸（原来蓝线下面直接贴表单/目录）
   -------------------------------------------------------------------------- */
.contact-lite .rfq,
.faq-lite__layout { margin-top: 44px; }

/* 产品详情的 kicker 原来带一条灰上边，和蓝线叠成两道，去掉 */
.product-summary__kicker { border-top: 0 !important; padding-top: 0 !important; }

/* 形态归档页：导语和正文跟表格同宽，别再一边窄一边铺满 */
.pcat-intro,
.pcat-body .prose { max-width: 760px; }

/* --------------------------------------------------------------------------
   9. 形态归档页的正文列居中（2026-11-20）
   正文 760 靠左、右边空 590，看着像没排完。整块居中，跟上面的卡片网格对齐。
   -------------------------------------------------------------------------- */
/* 2026-11-20 三次修改：容器宽度全站只认一个 var(--container)。
   前两版把 .pcat 放宽到 1600，结果 1920 屏上产品/服务页内容 1600、
   案例/关于页 1440，切页时整页左右跳 80px（客户截图指出「切换页面会跳」）。
   现在不再按页面改容器宽度，任何页都是 1440 / 留白 45。
   正文需要「宽」的地方，用列内的 100% 去占满，不动容器。 */
.pcat-body .prose,
.pcat-body > .ui-wrap > .prose {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* 表跟正文列同宽，别再出现「文字窄、表格铺满」 */
.pcat-body .prose table,
.pcat-body .prose .table-scroll { max-width: 100% !important; }

/* --------------------------------------------------------------------------
   10. 成品 / 定制页的规格表铺满内容区（2026-11-20）
   表宽 760 靠左、右边空 590，客户报「右边太空」。表格是行读，铺满更自然；
   长文仍然按 760 居中（见第 9 条）。
   -------------------------------------------------------------------------- */
.cp-sec .spec-table { width: 100% !important; max-width: 1350px; }
.cp-sec .table-scroll { max-width: 100% !important; }

/* --------------------------------------------------------------------------
   11. 设计页改成单栏（2026-11-20）
   原来 .dzn-layout 是「左文右卡」，正文被压到 918，段落 14.5px；
   其他服务页是单栏 1350 / 16px。去掉右卡后把这两项对齐。
   -------------------------------------------------------------------------- */
/* 2026-11-20：右侧加「本文目录」卡，恢复两栏（左正文 + 右 300px） */
.dzn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
/* 正文容器左右各有 28px 内边距，页面 45 + 28 = 73，比页头右缩 28px，
   看起来就是「正文跟标题没对齐」。归零，正文回到 45。 */
.dzn-main { max-width: none; padding-left: 0; padding-right: 0; min-width: 0; }

/* 目录卡：与知识文章同款，滚动时吸在导航下方 */
.page-toc {
  position: sticky;
  top: calc(205px + 24px);
}
@media (max-width: 1100px) {
  .dzn-layout { display: block; }
  .page-toc { position: static; margin-top: 40px; }
}
.pcat--design .dzn .ui-wrap { max-width: 1600px; }

/* 设计页正文：按《页面语言规范》正文档 16 / 1.75，行宽 880（约 55 字/行） */
.pcat--design .dzn-points p,
.pcat--design .dzn-cols p,
.pcat--design .dzn-body p,
.pcat--design .dzn-points li,
.pcat--design .dzn-col__b {
  font-size: 16px;
  line-height: 1.75;
  max-width: 880px;
}

/* --------------------------------------------------------------------------
   12. 正文基准（2026-11-20 二次校准）
   依据《页面语言规范 v1》第二条「文字层级五档，不许自创」：
   导语 17/1.7、正文 15–16/1.75、小字 13。
   第一版按「多数页是 18」收到 18，跟规范冲突；这里按规范落到 16，
   并把导语从 15.5 提到 17（原来正文比导语大，层级是反的）。
   -------------------------------------------------------------------------- */
.cp-body,
.cp-body--strong { font-size: 16px; line-height: 1.75; }
.cp-list > li { font-size: 16px; line-height: 1.7; }
.faq-item__a { font-size: 16px; }
.faq-lite__a { font-size: 16px; }
.fin-faq__q,
.fin-faq__a { font-size: 16px; }
.case-longform { font-size: 16px; line-height: 1.8; }
.ab-body p { font-size: 16px; line-height: 1.85; }
.pcat-intro,
.pcat-intro--pillar { font-size: 16px; }

/* 导语一层：规范 17px / 1.7。原来 15.5，比正文还小，层级反了 */
.pcat-lede,
.page-hero__lede,
.article-header__lede { font-size: 17px; line-height: 1.7; }

/* 设计页的段落小标题（设计与制造不分开 / 设计组 / 检测组）：
   原来是 <h2> 但只有 16px，和正文同号，靠字重区分。这里给到 18px，
   让它明确大于正文，但仍小于分节 H2 的 26，保持它「条目」的身份。 */
.dzn-points h2,
.cap-item__t { font-size: 18px; line-height: 1.4; }

@media (max-width: 900px) {
  .cp-body,
  .cp-body--strong,
  .cp-list > li,
  .faq-item__a,
  .faq-lite__a,
  .fin-faq__q,
  .fin-faq__a,
  .pcat-intro,
  .pcat-intro--pillar,
  .case-longform,
  .ab-body p { font-size: 16px; }
}

/* 工艺页正文（.prc-p）原来 18/1.5，行高偏紧、字号超规范档，收到 16/1.75 */
.prc-p { font-size: 16px; line-height: 1.75; }
@media (max-width: 900px) { .prc-p { font-size: 15px; } }

/* --------------------------------------------------------------------------
   13. 设计与工程页：按《页面语言规范》重排层级（2026-11-20）
   改前这一页的字号是散的：标题 19、说明 13.5、能力名 16、能力说明 13.5、
   条目 13.5、收尾段 18，一页五种字号，标题和正文挤在同一个 <p> 里。
   现在按规范五档：分节 H2 26 / 导语 17 / 正文 16 / 小字 13，结构跟工艺页一致。
   -------------------------------------------------------------------------- */
.dzn-h2 {
  margin: 0 0 12px;
  font-family: var(--f-head);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
}
.dzn-lede {
  max-width: 880px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-body);
}
/* 能力条目：名称加粗 17，说明 16 */
.dzn-col__t,
.cap-item__t {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
}
.dzn-col__b,
.cap-item__b,
.dzn-duty li,
.dzn-out,
.dzn-points p,
.dzn-points li {
  font-size: 16px;
  line-height: 1.75;
}
.pcat--design .fin-faq__q,
.pcat--design .fin-faq__a { font-size: 16px; }

@media (max-width: 900px) {
  .dzn-h2 { font-size: 21px; }
  .dzn-lede { font-size: 16px; }
  .dzn-col__b,
  .cap-item__b,
  .dzn-duty li,
  .dzn-out,
  .dzn-points p,
  .dzn-points li { font-size: 15px; }
}

/* H1 与导语之间原来 0 间距（工艺页、行业页），蓝线直接压在正文上；
   设计页有 kicker 才显得正常。这里统一给 26px。 */
.pcat-head .pcat-lede,
.page-hero .page-hero__lede { margin-top: 26px; }

/* --------------------------------------------------------------------------
   14. 设计与工程页页头与正文列宽，对齐其他内页（2026-11-20）
   改前：H1 → 21px kicker(16) → 导语(56) → 14px 信任句 → 小字 → 按钮，
   跟工艺页 H1 → 导语(26) 的节奏完全不同，客户看得出「不是一个模板」。
   现在：H1 → 导语首段(26) → 导语 → 信任句 → 小字 → 按钮，节奏一致。
   -------------------------------------------------------------------------- */
.pcat-lede--lead {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
/* 信任句按导语档（17/1.7），原来 14，比正文还小 */
.dzn-team {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.7;
  color: #cfd6df;
}
/* 正文列宽跟工艺页一致：76ch（16px 下约 730），不再 880 */
.pcat--design .dzn-points p,
.pcat--design .dzn-cols p,
.pcat--design .dzn-body p,
.pcat--design .dzn-points li,
.pcat--design .dzn-col__b,
.dzn-lede { max-width: 76ch; }

/* 页头的小字行（meta）按规范小字档 13px，原来 15 */
.dzn-meta-line { font-size: 13px; }

@media (max-width: 900px) {
  .pcat-lede--lead { margin-bottom: 8px; }
  .dzn-team { font-size: 16px; }
}

/* 分节节奏对齐工艺页：section 下留白 88（原来 52），页头到首节留出 80 */
.pcat--design .dzn.section { padding-bottom: 88px; }
.pcat--design .pcat-head { padding-bottom: 80px; }
@media (max-width: 900px) {
  .pcat--design .dzn.section { padding-bottom: 56px; }
  .pcat--design .pcat-head { padding-bottom: 44px; }
}

/* --------------------------------------------------------------------------
   15. 正文内链：全站统一成知识文章的样式（2026-11-20）
   问题：正文里的 <a> 没有单独样式，继承正文色（#b9c0ca / #c9d0da），
   没有下划线 —— 客户看不出是链接，内链等于不存在。
   知识文章（.article-body a）一直是蓝色带下划线，这里把其余正文容器对齐。
   按钮类链接（.pcat-btn / .btn）排除，它们的样式更具体，不受影响。
   -------------------------------------------------------------------------- */
.prose a:not(.pcat-btn):not(.btn),
.cp-body a:not(.pcat-btn):not(.btn),
.cp-list a,
.prc-actions a,
.faq-item__a a,
.faq-lite__a a,
.fin-faq__a a,
.prc-p a:not(.pcat-btn),
.dzn-lede a,
.dzn-points a,
.dzn-cols a,
.dzn-out a,
.dzn-note a,
.case-longform a,
.article-body a,
.ui-sec__lede a,
.page-hero__lede a,
.pcat-lede a,
.pcat-intro a,
.ab-body a,
.product-summary a:not(.pcat-btn) {
  color: #6cb2ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(108, 178, 255, .55);
  transition: color .15s, text-decoration-color .15s;
}
.prose a:not(.pcat-btn):not(.btn):hover,
.cp-body a:not(.pcat-btn):not(.btn):hover,
.cp-list a:hover,
.prc-actions a:hover,
.faq-item__a a:hover,
.faq-lite__a a:hover,
.fin-faq__a a:hover,
.prc-p a:hover,
.case-longform a:hover,
.article-body a:hover,
.ui-sec__lede a:hover,
.page-hero__lede a:hover,
.pcat-lede a:hover,
.ab-body a:hover {
  color: #a8d1ff;
  text-decoration-color: #a8d1ff;
}

/* 相关页面行（.cp-links）：两个链接之间原来只隔一个「·」，没有空隙，
   加上下划线后连成一条，看起来像「成型工艺,按图定制件」一个词。 */
.cp-links span[aria-hidden] {
  margin: 0 12px;
  color: #6b7480;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   16. 行业页右侧「本文目录」卡（2026-11-20）
   4 个行业页原来是一列到底，右侧空 500px。加目录卡，与知识文章同款。
   左列正文保持 880 左对齐，卡片 300 宽、吸顶。
   -------------------------------------------------------------------------- */
.ind-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.ind-main { min-width: 0; }
/* 左列里的 .ui-wrap 不再承担页面边距，正文靠左对齐页头 */
.ind-main .ui-wrap {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 1100px) {
  .ind-layout { display: block; padding: 0 var(--container-x); }
  .ind-layout .page-toc { margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   17. 页脚水印改成品牌标识（2026-11-20）
   原来是纯文字 AtomFRP（9vw/132px、rgba(255,255,255,.04)），
   客户要换成原子轨道 + AtomFRP 的组合标识，更大更暗，但不能压住页脚文字。
   图片本身是彩色 + 白字，用 filter 统一成纯白，再用 opacity 压到 4.5%。
   -------------------------------------------------------------------------- */
.site-footer .footer-word {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(72vw, 1040px);
  height: auto;
  max-width: none;
  opacity: .045;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* 页脚内容都抬到水印之上 */
.site-footer .footer-top,
.site-footer .footer-bottom { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .site-footer .footer-word { width: 88vw; bottom: 12px; }
}

/* 联系页：表单左边界跟 H1 对齐（2026-11-20）
   .rfq 是 max-width 1130 居中，在 1440 下被推到 x=155，标题在 45，
   客户截图圈出来的就是这 110px 的错位。左对齐，宽度不变。 */
.contact-lite .rfq {
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 1200px) {
  .contact-lite .rfq { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   18. 手机端图片与列表（2026-11-20）
   客户截图指出三处：首页三张卡、首页行业卡、首页工厂图组，手机上「看不全」。
   原因都是固定高度 + object-fit:cover 把横图裁成竖框。
   -------------------------------------------------------------------------- */

/* 首页三张送货方式卡：440 固定高在 390 宽下是竖框，横图被裁掉大半 */
@media (max-width: 767px) {
  .ui-pair__card {
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 26px 20px;
  }
  .ui-pair__bg { transform: none; }
}

/* 首页行业卡：132px 固定高，宽 330 时几乎是 2.5:1 的横条 */
@media (max-width: 640px) {
  /* 竖版图在 16:10 里会被撑到 224 高，看着太高；客户的实拍图分辨率也不高，
     放大就糊。压到 16:9（约 201 高），contain 保证不裁、不放大。 */
  .ui-ind-pair .ui-tile--img {
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    background: #1b1f25;   /* 与卡片同色：竖图两侧的留白不再是黑框 */
  }
  .ui-ind-pair .ui-tile--img img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
}

/* 工厂图组（2026-11-20 三次调整）
   单列大图在手机上又丑又糊（客户实拍分辨率不高，放大更明显），
   改成两列拼贴：每格 4:3 小图、cover 裁齐、间距 6px，
   整块收在 .ui-wrap 的内边距里，四周不凸出。 */
@media (max-width: 767px) {
  .ui-factory__stack {
    column-count: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .ui-factory__row { display: contents; }
  .ui-factory__cell {
    flex: none;
    width: auto;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .ui-factory__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* 客户 2026-11-20：料架那张（row 2 第 1 张）原图糊，手机上直接不显示，
     桌面端照旧。去掉后 8 张正好 4 行 2 列。 */
  .ui-factory__row:nth-child(2) .ui-factory__cell:nth-child(1) {
    display: none;
  }
}

/* 手机抽屉：没有下级的项（案例）只有一行链接，高度 26px，
   和上面 56px 的可展开行并排，看起来像少了一行。补齐同样的高度。 */
.mobile-nav__group--plain {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 15px 0;
  box-sizing: border-box;
}
.mobile-nav__group--plain .mobile-nav__label { display: flex; align-items: center; }
