/* ==========================================================
   流水线企业站 · indigo 风格演示样式（逆向 indigo.huitheme.cn）
   深蓝紫 #4a5296 + 金 #b89b5e，直角/无阴影/条带分区
   ========================================================== */

:root {
  --brand: #4a5296;        /* 深蓝紫（导航/主色） */
  --brand-dark: #3a4178;
  --gold: #b89b5e;         /* 金色点缀 */
  --gold-light: #d8bf8a;
  --ink: #333;
  --gray: #666;
  --bg-gray: #f5f5f5;
  --line: #e5e5e5;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  font-size: 14px;
}

/* ---------- 1. 欢迎条 ---------- */
.welcome-bar {
  background: var(--bg-gray);
  color: var(--gray);
  font-size: 12px;
  padding: 12px 0;              /* 上下留白由组件自持，保证呼吸感 */
  border-bottom: 1px solid var(--line);
}

/* ---------- 2. Logo 区：三段式 ---------- */
.logo-bar { background: #fff; padding-top: 46px !important; padding-bottom: 46px !important; }
.logo-bar .slogan-divide {
  border-left: 1px solid var(--line);
  align-self: stretch;
}
.logo-slogan b { font-size: 16px; color: var(--ink); }
.logo-slogan span { color: var(--gold); font-size: 12px; }
.hotline-box .hotline-num {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
}
.hotline-box small { color: var(--gray); font-size: 12px; }

/* ---------- 3. 导航：深蓝底 + 金色当前项（底色取全宽标语的厚重深蓝） ---------- */
.main-nav { background: #252d4e; }
.main-nav .nav-link,
.main-nav .navbar-brand {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 20px 0;
  text-align: center;
}
/* 菜单均分整条导航，项与项之间拉开 */
.main-nav .navbar-nav { width: 100%; }
.main-nav .navbar-nav .nav-item { flex: 1; }
.main-nav .nav-link:hover { color: var(--gold-light); }
.main-nav .nav-link.active {
  background: var(--gold);
  color: #fff !important;
}
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }

/* ---------- 4. Banner ---------- */
.ph {
  background: repeating-linear-gradient(45deg, #d7dde8 0 14px, #c8d0df 14px 28px);
  color: #5b6b7a; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; line-height: 1.7; font-size: 14px;
  overflow: hidden;   /* 防止内部内容撑破比例框 */
}
.ph strong { font-size: 15px; color: #33475b; }
.ph small { font-size: 12px; }
.ph-banner { height: 430px; }
.ph-product { aspect-ratio: 4/3; }
.ph-product-lg { aspect-ratio: 16/10; }
.ph-case { aspect-ratio: 16/9; }
.ph-news { aspect-ratio: 16/10; }
.ph-square { aspect-ratio: 1; }

/* ---------- 图片强制约束：设备图尺寸不一，防止撑破布局 ---------- */
/* 用法：换真图时保留外框类，内嵌 <img> 即可：
   <div class="ph ph-product"><img src="upload/pt01.jpg" alt="产品名"></div> */
img { max-width: 100%; }
.ph-product img, .ph-product-lg img, .ph-case img,
.ph-news img, .ph-banner img, .ph-square img {
  width: 100%; height: 100%;
  object-fit: cover;   /* 填满裁切：任意原图尺寸都不变形、不撑破 */
  display: block;
}

/* ---------- 5. 热门搜索条 ---------- */
.hotsearch-bar {
  background: var(--bg-gray);
  font-size: 13px;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}
.hotsearch-bar a { color: var(--gray); text-decoration: none; margin: 0 8px; }
.hotsearch-bar a:hover { color: var(--brand); }

/* ---------- 6. 居中栏目标题：中文 + 英文 + 金色下划线 ---------- */
.sec-center { text-align: center; padding: 60px 0 44px; }
/* 间距分层说明：以上是全站基础值；手机端收紧见文末移动段；
   首页产品区头部放大（呼吸感）见文末 .fl-home 作用域段 */
/* SEO：内页栏目标题用 h1（每页唯一），样式与 h2 一致 */
.sec-center h1 {
  font-size: 26px; font-weight: 900; margin: 0; color: var(--ink);
}
.sec-center h2 {
  font-size: 30px; font-weight: 900; margin: 0; color: var(--ink);
}
.sec-center .en {
  color: #aab3c5; font-size: 14px; letter-spacing: 5px;
  text-transform: uppercase; margin-top: 6px;
}
.sec-center .bar {
  width: 60px; height: 3px; background: var(--gold);
  margin: 14px auto 0;
}

/* ---------- 产品卡：白卡 4:3 + 底部标题条 ---------- */
.product-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(51, 71, 91, .05);
  transition: box-shadow .2s; height: 100%;
}
.product-card:hover { box-shadow: 0 3px 10px rgba(74,82,150,.10); }
.product-card .caption {
  padding: 16px 12px; text-align: center; font-weight: bold;
  font-size: 15px;
}
.product-card a { text-decoration: none; color: var(--ink); }
.product-card:hover .caption { color: var(--brand); }

/* ---------- 图文分栏关于 ---------- */
.about-sec h2 { font-size: 26px; font-weight: 900; }

/* ---------- 优势图标网格（4×2，直角块） ---------- */
.adv-item {
  background: #fff;
  box-shadow: 0 1px 4px rgba(51, 71, 91, .05);
  padding: 34px 24px; text-align: center; height: 100%;
}
.adv-item .ico {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
}
.adv-item b { display: block; font-size: 15px; margin-bottom: 8px; }
.adv-item p { color: var(--gray); font-size: 13px; margin: 0; }

/* ---------- 新闻卡（3 列） ---------- */
.news-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(51, 71, 91, .05);
  height: 100%;
}
.news-card .body { padding: 20px 20px 24px; }
.news-card h3 { font-size: 16px; font-weight: bold; margin: 0 0 8px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { color: var(--gray); font-size: 13px; }
.news-card .date { color: #9aa5b5; font-size: 12px; }

/* ---------- 面包屑 ---------- */
.breadcrumb-bar {
  background: var(--bg-gray); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--gray);
}

/* ---------- 侧栏面板：蓝头白身 ---------- */
.panel-title {
  background: var(--brand); color: #fff;
  padding: 10px 14px; font-size: 15px; font-weight: bold; margin: 0;
}
.panel-body { border: 1px solid var(--line); border-top: 0; padding: 10px 12px; }
.panel-body a {
  display: block; padding: 8px 10px; color: var(--ink);
  text-decoration: none; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.panel-body a:last-child { border-bottom: 0; }
.panel-body a:hover, .panel-body a.cur { color: var(--brand); font-weight: bold; }

/* ---------- 列表页新闻条目 ---------- */
.news-item { display: flex; gap: 14px; padding: 14px 6px; border-bottom: 1px dashed var(--line); }
.news-item .date {
  flex: none; width: 64px; text-align: center; background: var(--bg-gray);
  color: var(--brand); font-weight: bold; line-height: 1.2; padding: 6px 0;
}
.news-item .date b { font-size: 20px; display: block; }
.news-item a { color: var(--ink); text-decoration: none; font-weight: bold; }
.news-item a:hover { color: var(--brand); }
.news-item p { color: var(--gray); font-size: 13px; margin: 4px 0 0; }

/* ---------- 新闻列表页组件（indigo 式，逆向原版） ---------- */
/* 面板蓝头：中文 + 英文小字两行 */
.panel-title small {
  display: block; color: rgba(255,255,255,.55);
  font-size: 10px; letter-spacing: 1px; font-weight: normal; margin-top: 3px;
  text-transform: uppercase;
}
/* 侧栏栏目列表：当前项带圆点 */
.side-list { padding: 6px 0; }
.side-list a {
  display: block; padding: 11px 16px; color: var(--ink);
  font-size: 14px; text-decoration: none; position: relative;
}
.side-list a:hover { color: var(--brand); background: var(--bg-gray); }
.side-list a.on { color: var(--brand); font-weight: bold; }
.side-list a.on::before {
  content: ""; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
/* 侧栏热门产品 2×2 小卡
   兜底说明（2026-11-15）：列必须用 minmax(0,1fr)——纯 1fr 的最小宽=内容宽，
   英文长标题（nowrap 时代）会把网格撑出侧栏；改两行截断后长名完整可读 */
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-grid .ph { aspect-ratio: 4/3; }
.mini-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-grid .name {
  font-size: 12px; color: var(--gray); text-align: center; line-height: 1.4;
  padding-top: 6px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* 列表头：左侧圆点标题 + 右侧面包屑 */
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.list-head .t { font-weight: bold; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin: 0; }
.list-head .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.list-head .bc { font-size: 12px; color: #9aa5b5; }
.list-head .bc a { color: #9aa5b5; text-decoration: none; }
.list-head .bc a:hover { color: var(--brand); }
/* 横缩略图新闻卡：白卡浮于灰底，间距 14px */
.news-card-h {
  background: #fff;
  box-shadow: 0 1px 4px rgba(51, 71, 91, .05);
  padding: 14px; display: flex; gap: 16px;
  margin-bottom: 14px; text-decoration: none;
}
.news-card-h:hover h3 { color: var(--brand); }
.news-card-h .thumb { flex: none; width: 220px; }
.news-card-h .thumb .ph { width: 100%; height: 100%; min-height: 130px; }
.news-card-h .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-h .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card-h h3 { font-size: 16px; font-weight: bold; margin: 2px 0 8px; color: var(--ink); }
.news-card-h h3 a { color: inherit; text-decoration: none; }
.news-card-h p {
  color: var(--gray); font-size: 13px; line-height: 1.9; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-h .meta {
  margin-top: auto; padding-top: 10px;
  font-size: 12px; color: #9aa5b5; display: flex; gap: 16px; flex-wrap: wrap;
}

/* ---------- 详情页参数表 ---------- */
.spec-table th { background: #eef0f7; width: 150px; color: var(--brand-dark); }

/* ---------- 上一篇/下一篇（详情页通用组件，产品/新闻详情共用） ---------- */
/* 用法：<nav class="page-turn">
     <a class="prev" href="#"><span class="label">上一个</span><b>标题</b></a>
     <a class="next" href="#"><span class="label">下一个</span><b>标题</b></a>
   </nav>
   PHP 输出相邻记录的 id/标题即可，无相邻记录时输出 <span class="none"> </span> 占位。 */
.page-turn {
  margin-top: 64px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
}
.page-turn a, .page-turn span.none {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 14px;
  min-width: 0; max-width: 48%;
}
.page-turn a:hover { color: var(--brand); }
.page-turn b {
  font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-turn .label { color: #9aa5b5; font-size: 12px; flex: none; }
.page-turn a.prev::before { content: "‹"; font-size: 22px; line-height: 1; color: var(--gold); font-weight: bold; }
.page-turn a.next { margin-left: auto; text-align: right; }
.page-turn a.next::after { content: "›"; font-size: 22px; line-height: 1; color: var(--gold); font-weight: bold; }
.page-turn .none { color: #b6bfca; }

/* ---------- 新闻详情页组件 ---------- */
/* Banner 内放长标题（两行居中）+ 栏目名 */
/* SEO：详情页唯一 h1 在正文文章头，Banner 标题用 .ttl 装饰性展示 */
.page-banner.article .ttl {
  color: #fff; font-size: 26px; font-weight: bold; letter-spacing: 2px;
  line-height: 1.6; max-width: 900px; margin: 0 auto 10px;
}
.page-banner.article .cat { color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: 3px; }

/* 文章头：居中标题 + 居中元信息 */
.post-head { text-align: center; margin-bottom: 32px; }
.post-head h1 { font-size: 20px; font-weight: bold; color: var(--ink); margin: 0 0 12px; }
.post-meta {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #9aa5b5;
}
/* 正文段落（详情页直排，无小节标题时） */
.article-card > p { color: var(--gray); font-size: 14px; line-height: 2.1; margin-bottom: 14px; }

/* 版权声明盒 */
.copyright-note {
  background: var(--bg-gray); border: 1px solid var(--line);
  padding: 16px 20px; margin-top: 34px;
}
.copyright-note .t { font-weight: bold; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.copyright-note p { font-size: 12px; color: #9aa5b5; margin: 0 0 4px; line-height: 1.8; word-break: break-all; }
.copyright-note a { color: var(--brand); }

/* 上一篇/下一篇横幅条（深蓝底两栏，新闻/案例详情用） */
/* 用法：<nav class="pn-band">
     <a class="prev" href="#"><span class="label">上一个</span><b>标题</b></a>
     <a class="next" href="#"><span class="label">下一个</span><b>标题</b></a>
   </nav> */
.pn-band { display: flex; margin-top: 64px; }
.pn-band a {
  flex: 1; min-width: 0; padding: 18px 24px; text-decoration: none;
  background:
    linear-gradient(rgba(26, 34, 66, .92), rgba(26, 34, 66, .92)),
    repeating-linear-gradient(45deg, #4a5578 0 18px, #414c6d 18px 36px);
}
.pn-band a:hover b { color: var(--gold-light); }
.pn-band .label { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.pn-band b {
  display: block; font-size: 15px; font-weight: bold; color: #fff; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pn-band a.next { text-align: right; }
.pn-band a + a { margin-left: 8px; }

/* 相关文章网格：5 列（平板 3 列 / 手机 2 列），图 4:3 + 两行标题 */
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
@media (max-width: 1199.98px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-grid a { display: block; text-decoration: none; }
.related-grid .ph { aspect-ratio: 4/3; }
.related-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-grid .t {
  font-size: 13px; color: var(--ink); padding-top: 10px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-grid a:hover .t { color: var(--brand); }

/* ==========================================================
   移动端适配（统一收敛在此，便于开发维护；PHP 输出无需区分端）
   ========================================================== */
/* 平板 ≤991.98px：折叠菜单左对齐、Logo 区收紧 */
@media (max-width: 991.98px) {
  .main-nav .nav-link { padding: 13px 16px; text-align: left; }
  .main-nav .nav-item { flex: none; }
  .main-nav .navbar-nav { width: auto; }
  .logo-bar { padding-top: 26px !important; padding-bottom: 26px !important; }
  .hotline-box .hotline-num { font-size: 22px; }
}

/* 手机 ≤767.98px */
@media (max-width: 767.98px) {
  /* 欢迎条：只留左侧文案，防溢出 */
  .welcome-bar .container span:last-child { display: none; }
  /* 热门搜索条允许换行 */
  .hotsearch-bar .container { flex-wrap: wrap; gap: 2px 0; }
  /* Logo 区居中排布 */
  .logo-bar .container { justify-content: center !important; }
  .hotline-box .hotline-num { font-size: 20px; }

  /* 栏目标题收紧 */
  .sec-center { padding: 36px 0 28px; }
  .sec-center h2 { font-size: 24px; }
  .page-nav { margin-top: 44px; margin-bottom: 12px; }

  /* 内页 Banner 收紧 */
  .page-banner { height: 220px; }
  .page-banner h1 { font-size: 22px; letter-spacing: 3px; }
  .page-banner.article h1 { font-size: 18px; }

  /* 白卡/优势格内距收紧 */
  .article-card { padding: 24px 16px; }
  .adv-item { padding: 24px 16px; }

  /* 关于系子栏目导航：间距减半 */
  .sub-nav a { padding: 8px 12px; font-size: 13px; }

  /* 新闻横卡改为上图下文 */
  .news-card-h { flex-direction: column; gap: 10px; padding: 12px; }
  .news-card-h .thumb { width: 100%; }
  .news-card-h .thumb .ph { aspect-ratio: 16/9; height: auto; min-height: 0; }
  .news-card-h h3 { font-size: 15px; }
  .list-head .bc { display: none; }

  /* 上下篇横幅：改上下堆叠，标题允许换行 */
  .pn-band { flex-direction: column; }
  .pn-band a + a { margin-left: 0; margin-top: 8px; }
  .pn-band a.next { text-align: left; }
  .pn-band b { white-space: normal; }

  /* CTA 条：纵向堆叠 */
  .cta-bar .container {
    flex-direction: column !important; align-items: flex-start !important; gap: 12px;
  }

  /* 参数表标签列收窄 */
  .spec-table th { width: 110px; }

  /* 悬浮电话竖条在手机上让位（拇指区），保留返回顶部 */
  .float-contact { display: none; }
}

/* ---------- 页脚：深蓝紫 4 列 ---------- */
.footer { background: var(--brand-dark); color: #c3c9e6; font-size: 13px; }
.footer a { color: #c3c9e6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .hotline { color: var(--gold-light); font-size: 28px; font-weight: 900; }
.footer .copyright {
  background: #30366a; color: #9aa2cd; font-size: 12px;
}

/* ---------- 筛选 TAB（动态预留组件） ---------- */
/* 给开发：PHP 动态化后，当前分类输出 class="filter-tag on" 即自动换色；
   on 为本站约定，active 为兼容别名。静态演示的点击切换 JS 在各页底部，
   动态上线后删除该 JS。
   尺寸按"8~10 个分类单行排布"设计，再多则居中自动换行。 */
.filter-bar { text-align: center; margin-bottom: 2.5rem; }
.filter-tag {
  /* 垂直 2px margin：英文标签更长，TAB 折成两行时行与行不再贴死（原行距 0~1px 盒子重叠） */
  display: inline-block; padding: 5px 18px; margin: 2px 4px;
  border: 1px solid var(--line); color: var(--gray);
  font-size: 13px; text-decoration: none; background: #fff;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.filter-tag:hover { color: var(--brand); border-color: var(--brand); }
.filter-tag.on,
.filter-tag.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.filter-tag.on:hover { color: #fff; }

/* ---------- 分页条（完整组件，开发直接引用） ---------- */
/* 用法：<nav class="page-nav"><ul class="pagination justify-content-center"> …
   上下间距 / 方角 / 配色 / 激活 / 禁用态全部内置，
   PHP 按Bootstrap标准结构输出即可，无需再改样式。 */
.page-nav { margin-top: 76px; margin-bottom: 20px; }   /* 与上方内容拉开（呼吸感口径），下方留出与页脚的过渡 */
.page-nav .pagination { margin-bottom: 0; flex-wrap: wrap; }   /* Bootstrap 默认不换行：页码多的列表手机端会横向撑破（实测），允换行兜底 */
.page-nav .page-link {
  margin: 0 3px;                       /* 顶掉Bootstrap默认的-1px叠边 */
  border: 1px solid var(--line); color: var(--gray);
  font-size: 14px; padding: 8px 18px; border-radius: 0;   /* 方角，配indigo直角风 */
  transition: background .15s, border-color .15s, color .15s;
}
.page-nav .page-link:hover {
  border-color: var(--brand); color: var(--brand); background: #fff;
}
.page-nav .page-item.active .page-link {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.page-nav .page-item.disabled .page-link {
  color: #b6bfca; border-color: var(--line); background: var(--bg-gray);
}

/* ---------- 查看更多按钮（描边金） ---------- */
.btn-more {
  border: 2px solid var(--gold); color: var(--gold);
  border-radius: 0; background: transparent;
}
.btn-more:hover { background: var(--gold); color: #fff; }

/* ---------- 全宽标语横幅 ---------- */
.slogan-banner {
  height: 300px;
  background: linear-gradient(rgba(24,32,64,.72), rgba(24,32,64,.72)),
    repeating-linear-gradient(45deg, #4a5578 0 20px, #414c6d 20px 40px);
}
.slogan-banner h2 { font-size: 30px; }

/* ---------- 公司简介：蓝底通栏 + 白框图 ---------- */
.about-blue { background: var(--brand); }   /* 仅首页使用；间距与上下过渡见文末 .fl-home 段 */
.frame-img {
  border: 8px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.frame-img .ph { border: 0; }

/* ---------- 蓝色 CTA 电话条 ---------- */
.cta-bar { background: var(--brand-dark); }
.cta-bar.home-cta { background: var(--brand); }
.cta-phone {
  border: 2px solid #fff; color: #fff; border-radius: 40px; font-size: 20px;
}
.cta-phone:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- 新闻“查看更多”小链接 ---------- */
.link-more { color: var(--gold); text-decoration: none; font-size: 13px; font-weight: bold; }

/* ---------- 内页通栏 Banner（关于我们/子页用） ---------- */
.page-banner {
  height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(18, 26, 44, .55), rgba(18, 26, 44, .55)),
    repeating-linear-gradient(45deg, #5a6478 0 20px, #4d5670 20px 40px);
}
.page-banner h1 { color: #fff; font-size: 32px; font-weight: bold; letter-spacing: 6px; margin: 0 0 8px; }
.page-banner .en {
  color: rgba(255,255,255,.65); font-size: 13px;
  letter-spacing: 5px; text-transform: uppercase;
}

/* ---------- 关于系子栏目导航 ---------- */
/* 用法：PHP 输出当前栏目的 <a> 加 on 类即可换色 */
.sub-nav { background: #fff; border-bottom: 1px solid var(--line); text-align: center; padding: 16px 0; }
.sub-nav a { display: inline-block; padding: 8px 24px; color: var(--gray); font-size: 14px; text-decoration: none; }
.sub-nav a:hover { color: var(--brand); }
.sub-nav a.on { color: var(--brand); font-weight: bold; position: relative; }
.sub-nav a.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 2px; width: 24px; height: 2px; background: var(--gold);
}

/* ---------- 正文白卡（关于我们长文页） ---------- */
.article-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(51, 71, 91, .05);
  padding: 44px 52px;
}

/* ---------- 正文小节容器（PHP 按 <section> 循环输出的标准单元） ---------- */
/* 每个小节的固定结构：
   <section class="article-sec">
     <h3>小节标题</h3>
     <p>段落（可多段，<b>加粗引导语</b>）</p>
     [可选] <div class="sec-gallery">图集，任意张数自动 4 列换行</div>
     [可选] <div class="sec-figure">单张 16:9 大图</div>
   </section>
   PHP 只负责循环 section / p / 图片，间距排版全部由本 CSS 托管，无需再调。 */
.article-sec { margin-top: 36px; }
.article-sec:first-child { margin-top: 0; }
.article-sec h3 { font-size: 18px; font-weight: bold; color: var(--ink); margin: 0 0 14px; }
.article-sec p { color: var(--gray); font-size: 14px; line-height: 2.1; margin-bottom: 12px; }
.article-sec p b { color: var(--ink); }

/* 小节图集：任意张数，桌面 4 列 / 移动 2 列自动换行，图片强制约束不撑破 */
.sec-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 16px 0 8px;
}
@media (max-width: 767.98px) { .sec-gallery { grid-template-columns: repeat(2, 1fr); } }

/* 小节大图：单张通栏 16:9 */
.sec-figure { margin: 18px 0; }
.sec-figure .ph { width: 100%; }

/* ---------- 热门产品横向卡区（箭头/圆点，静态演示） ---------- */
/* 动态化后由 PHP 循环输出卡片，箭头圆点接现有轮播库即可 */
.hot-products { position: relative; }
.hp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 56px; border: 0;
  background: var(--brand); color: #fff; font-size: 22px; line-height: 1;
}
.hp-arrow:hover { background: var(--gold); }
.hp-arrow.prev { left: -56px; }
.hp-arrow.next { right: -56px; }
/* 兜底（2026-11-15 布局审计）：容器两侧外边距 <44px 时 -56px 的悬出箭头会越界出横向滚动条
   （1024 平板实测 prev 悬出 19px），此档宽度内收箭头贴内容边缘 */
@media (max-width: 1259.98px) {
  .hp-arrow.prev { left: -12px; }
  .hp-arrow.next { right: -12px; }
}
.hp-dots { text-align: center; padding-top: 22px; }
.hp-dots span { display: inline-block; width: 8px; height: 8px; background: var(--line); margin: 0 4px; cursor: pointer; }
.hp-dots span.on { background: var(--gold); width: 20px; }

/* ---------- CTA 电话块（关于页用，与 cta-phone 二选一） ---------- */
.cta-tel { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.cta-tel:hover { text-decoration: none; color: #fff; }
.cta-tel small { display: block; color: #9fb0e0; font-size: 12px; }
.cta-tel b { font-size: 26px; font-weight: 900; color: var(--gold-light); letter-spacing: 1px; }

/* ---------- SVG 电话图标（替代 emoji，单色随文字变色，工业风） ---------- */
/* 用法：<svg class="icon-phone" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
     <path d="…"/></svg>  尺寸随场景用 CSS 调 */
.icon-phone { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }
.cta-phone .icon-phone { width: 20px; height: 20px; margin-right: 8px; }
.cta-tel .ico { font-size: 0; }   /* ico 容器字号归零，图标尺寸由下一条 SVG 规则控制 */
.cta-tel .ico .icon-phone { width: 30px; height: 30px; color: var(--gold-light); }

/* ---------- 悬浮：电话 + 返回顶部 ---------- */
.float-contact {
  position: fixed; right: 0; top: 40%; z-index: 1030;
  background: var(--gold); color: #fff;
  writing-mode: vertical-lr; padding: 16px 8px;
  font-weight: bold; border-radius: 4px 0 0 4px; text-decoration: none;
}
.back-top {
  position: fixed; right: 14px; bottom: 60px; z-index: 1030;
  width: 42px; height: 42px; background: var(--brand); color: #fff;
  border: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.back-top:hover { background: var(--gold); }

/* ==========================================================
   以下为 Z-Blog 主题化新增样式（演示稿之外的动态组件）
   上方内容与设计演示稿 1/css/style.css 保持一致，便于对照
   ========================================================== */

/* ---------- Logo 图 / 热线图标 ---------- */
.logo-bar .logo-link { text-decoration: none; }
.logo-img { height: 48px; width: auto; max-width: 300px; object-fit: contain; flex: none; }
.hotline-ico {
  width: 52px; height: 52px; flex: none;
  border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.hotline-ico .icon-phone { width: 26px; height: 26px; }

/* ---------- 导航：兼容 Z-Blog 导航模块输出的 <li><a> 结构 ---------- */
.main-nav .navbar-nav > li { flex: 1; position: relative; list-style: none; }
.main-nav .navbar-nav > li > a {
  display: block; color: #fff; font-size: 16px; font-weight: bold;
  letter-spacing: 1px; padding: 20px 0; text-align: center;
  text-decoration: none; white-space: nowrap;
}
.main-nav .navbar-nav > li > a:hover { color: var(--gold-light); }
.main-nav .navbar-nav > li > a.active { background: var(--gold); color: #fff; }
/* 二级菜单（在后台导航模块里给 <li> 嵌套 <ul> 即可出现） */
.main-nav .navbar-nav li ul {
  display: none; position: absolute; left: 0; top: 100%; min-width: 100%;
  margin: 0; padding: 0; list-style: none; background: var(--brand-dark); z-index: 1040;
}
.main-nav .navbar-nav li:hover > ul { display: block; }
.main-nav .navbar-nav li ul a {
  display: block; padding: 12px 16px; color: #fff; font-size: 14px;
  text-align: center; text-decoration: none; white-space: nowrap;
}
.main-nav .navbar-nav li ul a:hover { background: var(--gold); }
@media (max-width: 991.98px) {
  .main-nav .navbar-nav > li { flex: none; }
  .main-nav .navbar-nav > li > a { padding: 13px 16px; text-align: left; }
  .main-nav .navbar-nav li ul { display: block; position: static; background: transparent; }
  .main-nav .navbar-nav li ul a { padding: 10px 32px; text-align: left; }
}

/* ---------- 首页轮播 ---------- */
#banner .carousel-item a { display: block; }
@media (max-width: 767.98px) { .ph-banner { height: 200px; } }

/* ---------- 内页窄 Banner（产品/案例）与自定义背景图 ---------- */
.page-banner.slim { height: 150px; background: var(--brand); }
.page-banner.slim .ttl {
  color: #fff; font-size: 26px; font-weight: bold; letter-spacing: 6px; margin: 0 0 6px;
}
.page-banner.has-img { background-size: cover; background-position: center; }
@media (max-width: 767.98px) {
  .page-banner.slim { height: 110px; }
  .page-banner.slim .ttl { font-size: 20px; letter-spacing: 3px; }
  .page-banner.article .ttl { font-size: 18px; padding: 0 16px; }
}

/* ---------- 富文本正文（后台编辑器输出的内容） ---------- */
.article-body {
  color: var(--gray); font-size: 14px; line-height: 2.1;
  word-wrap: break-word; overflow-wrap: break-word;
}
.article-body p { margin-bottom: 14px; }
.article-body h2, .article-body h3, .article-body h4 {
  color: var(--ink); font-weight: bold; line-height: 1.5; margin: 32px 0 14px;
}
.article-body h2 { font-size: 18px; }
.article-body h3 { font-size: 17px; }
.article-body h4 { font-size: 15px; }
.article-body > h2:first-child, .article-body > h3:first-child { margin-top: 0; }
.article-body b, .article-body strong { color: var(--ink); }
.article-body a { color: var(--brand); }
.article-body img { max-width: 100%; height: auto; }
/* 正文配图所在段落：上下留白对称放大（详情页图文呼吸感） */
.article-body p:has(> img) { margin-top: 12px; margin-bottom: 26px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 14px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; line-height: 1.8; }
.article-body th { background: #eef0f7; color: var(--brand-dark); }
.article-body blockquote {
  border-left: 3px solid var(--gold); background: var(--bg-gray);
  padding: 10px 16px; margin: 16px 0;
}
.article-body .post-head h1 { line-height: 1.6; }
.article-body .copyright-note p { margin: 0 0 4px; line-height: 1.8; }
@media (max-width: 767.98px) {
  .article-body table { display: block; overflow-x: auto; }
}

/* 关于系页面图集：同一段落里连续插入多张图片，自动排成 4 列方图
   （工厂实景 / 荣誉资质 等页面直接在编辑器里连续插图即可） */
.about-body p:has(> img + img) {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0;
}
.about-body p:has(> img + img) > img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.about-body p:has(> img + img) > br { display: none; }
@media (max-width: 767.98px) {
  .about-body p:has(> img + img) { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 产品详情：主图 + 缩略图切换 ---------- */
.fl-thumbs .ph { cursor: pointer; border: 2px solid transparent; }
.fl-thumbs .ph:hover, .fl-thumbs .ph.on { border-color: var(--gold); }

/* ---------- 侧栏热门产品小卡为链接 ---------- */
.panel-body .mini-grid a { padding: 0; border: 0; }
.panel-body .mini-grid a:hover .name { color: var(--brand); }

/* ---------- 空状态 ---------- */
.empty-tip { width: 100%; text-align: center; color: #9aa5b5; padding: 48px 0; margin: 0; }

/* ---------- 友情链接横条（首页，CTA 与页脚之间；比 CTA 更轻一档，非主要视觉） ---------- */
.links-bar {
  background: #565ea6;
  font-size: 12px;
  color: #a8b0d8;
  padding: 12px 0;
}
.links-bar a { color: #a8b0d8; text-decoration: none; margin: 0 8px; display: inline-block; }
.links-bar a:hover { color: #fff; }

/* ---------- 页脚：二维码 / 备案号 ---------- */
.footer .qr-box { width: 96px; }
.footer .qr-box img { width: 96px; height: 96px; object-fit: cover; display: block; }
.footer .copyright a { color: #9aa2cd; margin-left: 8px; }

/* ---------- 前台管理条（仅登录的管理员/编辑可见） ---------- */
.fl-adminbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  height: 34px; line-height: 34px; background: #1f2440; color: #c3c9e6; font-size: 13px;
}
.fl-adminbar .adminbar-in {
  display: flex; justify-content: space-between; gap: 12px;
  white-space: nowrap; overflow: hidden;
}
.fl-adminbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.fl-adminbar a:hover { color: var(--gold-light); }
body.has-adminbar { padding-top: 34px; }
body.has-adminbar .main-nav.sticky-top { top: 34px; }
@media (max-width: 767.98px) {
  .fl-adminbar .adminbar-user { display: none; }
  .fl-adminbar a:first-child { margin-left: 0; }
}

/* ---------- 首页热门搜索词分隔 ---------- */
.hotsearch-bar .hotwords { display: flex; flex-wrap: wrap; align-items: center; }
.hotwords a::before { content: "|"; margin: 0 8px 0 2px; color: #c5ccd8; }

/* ---------- 首页头条新闻卡：整卡可点 ---------- */
a.news-card { display: block; text-decoration: none; color: inherit; }
a.news-card:hover h3, a.news-card:hover h3 a { color: var(--brand); }

/* ---------- 首页板块间距（.fl-home 作用域，2026-11-14 呼吸感调整） ----------
   分层规则：基础值写在上面各组件段（.sec-center 60/44、.about-blue 无间距等），
   本段集中覆盖首页的"板块间呼吸感"，改首页间距只动这里，不影响内页。
   - #products .sec-center：搜索窄条与产品标题的衔接放大（基础 60/44）
   - .home-more：产品区"查看更多"上下（决定产品区底部留白）
   - .about-blue：蓝底通栏上下留白 + 上下过渡缝（上缝白色融入产品区白底，
     下缝用新闻同款灰，蓝底嵌在白灰交界，不用 margin 是为控制缝的颜色）
   - .home-news / .home-adv：灰底通栏（背景在此定义），上小下大
   - .cta-bar.home-cta：首页 CTA 条（比内页 CTA 略高） */
.fl-home #products .sec-center { padding: 116px 0 56px; }
.fl-home .home-more { padding: 24px 0 72px; }
.fl-home .about-blue { padding: 72px 0; border-top: 40px solid #fff; border-bottom: 40px solid var(--bg-gray); }
.fl-home .home-news, .fl-home .home-adv { background: var(--bg-gray); padding: 24px 0 76px; }
.fl-home .cta-bar.home-cta { padding: 60px 0; }

@media (max-width: 767.98px) {
  .fl-home #products .sec-center { padding: 64px 0 36px; }
  .fl-home .home-more { padding: 16px 0 56px; }
  .fl-home .about-blue { padding: 56px 0; border-top: 24px solid #fff; border-bottom: 24px solid var(--bg-gray); }
  .fl-home .home-news, .fl-home .home-adv { padding: 16px 0 56px; }
  .fl-home .cta-bar.home-cta { padding: 44px 0; }
}

/* ---------- 英文站排版适配（html[lang="en"] 作用域，后台勾选「英文站模式」才生效） ----------
   英文单词型标题比同位中文标题视觉更宽，且中文式大字距在英文里显得破碎：
   - 板块主标题 30→26、内页 banner 主标题 32→24（letter-spacing 6→1，英文词间 6px 会断词）
   - 卡片/条目标题统一降 1~2px，并加两行 line-clamp，防止英文长产品名把卡片撑高
   只调标题排版，不动布局间距；中文站（zh-CN）完全不受影响。微调只动本段。 */
html[lang="en"] .sec-center h2 { font-size: 26px; }
html[lang="en"] .sec-center .en { letter-spacing: 3px; }
html[lang="en"] .page-banner h1 { font-size: 24px; letter-spacing: 1px; }
html[lang="en"] .page-banner .ttl { font-size: 20px; letter-spacing: 1px; }
html[lang="en"] .slogan-banner h2 { font-size: 24px; }
html[lang="en"] .post-head h1 { font-size: 18px; }
html[lang="en"] .panel-title { font-size: 14px; }
html[lang="en"] .list-head .t { font-size: 14px; }
html[lang="en"] .adv-item b { font-size: 13px; }
html[lang="en"] .product-card .caption { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="en"] .news-card h3 { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="en"] .news-card-h h3 { font-size: 14px; line-height: 1.5; }
html[lang="en"] .news-item a { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="en"] .related-grid .t { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 全局兜底（2026-11-15 布局审计）：英文站点内容里不可断的长词（型号/邮箱/slug/URL）
   一律允许在词内断行换行，从根上防止任何容器被单个长词撑破（mini-grid 撑破事故的通用保险丝） */
html[lang="en"] body { overflow-wrap: break-word; }

@media (max-width: 767.98px) {
  html[lang="en"] .sec-center h2 { font-size: 22px; }
  html[lang="en"] .page-banner h1 { font-size: 19px; }
  html[lang="en"] .page-banner .ttl { font-size: 17px; }
  html[lang="en"] .page-banner.article .ttl { font-size: 16px; }
}

