/* ==========================================================================
   内页通用内容区块 —— 标题块 / 数字排 / 红点列表 / 年份轴 / 方格阵 / 卡片阵
   about / solutions / cases / products / contact 五个栏目页，以及
   product-*.html 九张产品详情页共用；封面 banner 与子导航条见 subpage.css，
   各页自己的内容细节放各自的页面级样式（products.css / news.css 等）。
   首页与新闻页不走这套版式，不受影响。
   数值按 1600 宽视口的设计稿实测，再换算到本站比例：
     正文          18.33px / 33px 行高(1.8) / #333
     区块居中标题   33.33px / #333 / font-weight:400~500
   ========================================================================== */

/* ---------- 1. 区块与标题 ---------- */
.bl_section { padding: 96px 0; }
.bl_section--gray { background: var(--c-bg); }

.bl_head h2 {
  font-size: 40px; line-height: 1.4; font-weight: 400;
  color: var(--c-333); letter-spacing: 1px;
}
/* 标题下的红条：统一用 cases.html 那一种（1px 发丝线 + 左起 200x3 红段，见 style.css .title_line）*/
.bl_head .title_line { margin-top: 26px; margin-bottom: 0; }
.bl_head .bl_desc {
  margin-top: 24px; font-size: 17px; line-height: 1.9;
  color: var(--c-666); max-width: 780px;
}
.bl_head--center { text-align: center; }
.bl_head--center .title_line { max-width: 900px; margin-left: auto; margin-right: auto; }
.bl_head--center .title_line::before { margin: 0 auto; }
.bl_head--center .bl_desc { margin-left: auto; margin-right: auto; }

/* ---------- 2. 企业概况 ---------- */
.bl_intro { display: grid; grid-template-columns: 1fr .78fr; gap: 40px; align-items: start; }
.bl_text { margin-top: 46px; max-width: 820px; }
.bl_text p { font-size: 18px; line-height: 1.85; color: var(--c-333); }
.bl_text p + p { margin-top: 30px; }
/* 后台富文本里的图 / 表格收在窄栏内（产品详情、方案的概述正文都走 .bl_text） */
.bl_text img { max-width: 100%; height: auto; }
.bl_text table { max-width: 100%; border-collapse: collapse; }
.bl_text td, .bl_text th { border: 1px solid var(--c-line); padding: 8px 12px; }
.bl_intro_fig img { width: 100%; display: block; }
/* 数字块塞进右栏时不再叠 72px 上边距，顶上与左边正文首行对齐（列数由各页自定） */
.bl_intro_fig .bl_figures { margin-top: 0; }

/* 数字：不做卡片底，只留红字 + 灰标签 */
.bl_figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; margin-top: 72px; }
/* 后台富文本会把标签改写掉，所以这几个块类的样式都得认两种写法：
   <b>→<strong>、<i>→<em>、<span> 被拆掉只留裸文本、viewBox→viewbox。
   关于金盘整页正文存在后台，用户每次保存都会再转一遍，改不回来；
   只认设计稿那套标签的话，页面会**静默掉样式**（资质图标会变成一片空白）。 */
/* 标签的字号/颜色放父级：后台那份 <span> 被拆成裸文本了，选不中 */
.bl_figure { font-size: 15px; color: var(--c-666); }
.bl_figure b, .bl_figure strong {
  display: block; font-size: 42px; font-weight: 700; line-height: 1.1;
  color: var(--brand); letter-spacing: -1px;
}
.bl_figure small { font-size: 20px; font-weight: 400; margin-left: 3px; letter-spacing: 0; }
/* 两种写法数字到标签的间距都是 10px：有 <span> 的靠它的 margin-top，
   裸文本那版靠 strong 自己的下边距 */
.bl_figure > span { display: block; margin-top: 10px; }
.bl_figure > strong { margin-bottom: 10px; }

/* 核心能力：红点列表 */
.bl_checks { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.bl_checks li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.8; color: var(--c-333); }
.bl_checks li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

/* ---------- 3. 发展历程 ---------- */
.bl_hist { margin-top: 70px; }
.bl_hist_item {
  /* 年份列要放得下最长的「2000 — 2015」（实测 398px） */
  display: grid; grid-template-columns: 420px 1fr; gap: 20px 56px;
  padding: 44px 0; border-top: 1px solid var(--c-line);
}
.bl_hist_item:last-child { border-bottom: 1px solid var(--c-line); }
/* 大号红色年份：› 2022 年。年份不换行，否则「年」会被甩到列尾 */
.bl_hist_year { display: flex; align-items: baseline; gap: 8px; color: var(--brand); white-space: nowrap; }
/* 后台富文本会把标签改写掉，所以这几个块类的样式都得认两种写法：
   <b>→<strong>、<i>→<em>、<span> 被拆掉只留裸文本、viewBox→viewbox。
   关于金盘整页正文存在后台，用户每次保存都会再转一遍，改不回来；
   只认设计稿那套标签的话，页面会**静默掉样式**（资质图标会变成一片空白）。 */
.bl_hist_year i, .bl_hist_year em { font-style: normal; font-size: 30px; line-height: 1; }
.bl_hist_year b, .bl_hist_year strong { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.bl_hist_year small { font-size: 20px; font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.bl_hist_item p { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.9; color: var(--c-333); }
.bl_hist_item p::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

/* ---------- 4. 企业资质 ---------- */
.bl_quals {
  margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--c-line); border: 1px solid var(--c-line);
}
.bl_qual { background: #fff; padding: 46px 34px; text-align: center; }
.bl_qual i, .bl_qual em {
  display: grid; place-items: center; width: 54px; height: 54px;
  margin: 0 auto 20px; border: 1px solid var(--brand-line); border-radius: 50%;
  font-style: normal;
}
.bl_qual i svg, .bl_qual em svg { width: 24px; height: 24px; stroke: var(--brand); }
.bl_qual b, .bl_qual strong { font-size: 17px; font-weight: 400; color: var(--c-333); }

/* ---------- 5. 企业文化 ---------- */
.bl_culture { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bl_culture_card {
  background: #fff; padding: 46px 38px 50px;
  border-top: 3px solid var(--brand); box-shadow: var(--sh-1);
}
.bl_culture_card h3 { font-size: 20px; font-weight: 700; color: var(--c-333); }
.bl_culture_card p { margin-top: 16px; font-size: 16px; line-height: 1.9; color: var(--c-666); }

/* ---------- 6. 标题块 + 正文块的组合（solutions / cases 用） ---------- */
/* about.html 的标题块在栅格之内（.bl_intro > .bl_head + .bl_text），靠 .bl_text
   自己的 46px 上边距和标题拉开；solutions / cases 的标题块在栅格之外，同一个
   间距改给栅格。选择器带上 .bl_head + 才不会波及 about 那一版 */
.bl_head + .bl_intro { margin-top: 46px; }
.bl_head + .bl_intro .bl_text { margin-top: 0; }
/* 正文比通栏正文窄一档：右边要留给配图 */
.bl_head + .bl_intro .bl_text p { font-size: 17px; }

/* 方案组成 / 案例价值 这类小标题：红字 + 一条发丝线收尾 */
.bl_sub {
  display: flex; align-items: center; gap: 18px;
  margin: 72px 0 26px;
  font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--brand);
}
.bl_sub::after { content: ''; flex: 1; height: 1px; background: var(--c-hair); }
/* 间距由 .bl_sub 的下边距给，后面那两块不再叠 .bl_checks 的 64px 上边距 */
.bl_sub + .bl_parts, .bl_sub + .bl_checks { margin-top: 0; }

/* ---------- 7. 条目方格阵（核心功能 / 方案组成 / 服务范围） ---------- */
/* 用 flex 而不是 grid：条目数各页不同（6 / 7 / 8 / 9 / 10 条都有），
   grid 排不满的那一行会在右边空出半格、描边收不住口；
   flex-wrap + flex:1 让末行的格子自己摊平分满。
   一行几个用 --3/--4/--5 指定，选得让行数最少且每行都排满 */
.bl_parts {
  margin-top: 64px; display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line);
}
.bl_parts span {
  flex: 1 1 20%; display: grid; place-items: center; min-height: 88px; padding: 18px 16px;
  border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  background: #fff; text-align: center;
  font-size: 16px; line-height: 1.5; color: var(--c-333);
}
.bl_parts--3 span { flex-basis: 33.3333%; }
.bl_parts--4 span { flex-basis: 25%; }
.bl_parts--5 span { flex-basis: 20%; }

/* 白卡 + 3px 红顶边（应用场景 / 服务承诺），与 .bl_culture_card 同款 */
.bl_scene { margin-top: 72px; }

/* ---------- 8. 图文卡片阵（项目案例 / 创新产品） ---------- */
.bl_tiles {
  margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px;
}
.bl_tiles--4 { grid-template-columns: repeat(4, 1fr); }
.bl_tile {
  /* position:relative 是 .bl_card_hit 全卡热区的定位基准，缺了整卡就点不了 */
  position: relative;
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--sh-1);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.bl_tile:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }

/* 整卡热区：盖一层透明链接，点卡片任何地方都能进详情。
   放在 blocks.css 里而不是 news.css：产品页只加载 blocks 不加载 news，
   之前放在 news.css 里导致产品卡片整卡点不了。 */
.bl_card_hit { position: absolute; inset: 0; z-index: 1; }

.bl_tile figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.bl_tile figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.bl_tile:hover figure img { transform: scale(1.04); }

/* 红顶边放在图与文之间：卡片顶部盖着图，红条压在图上会被图吃掉 */
.bl_tile_body {
  flex: 1 0 auto; display: flex; flex-direction: column;
  padding: 30px 30px 34px; border-top: 3px solid var(--brand);
}
.bl_tile_cat {
  align-self: flex-start; margin-bottom: 14px; padding: 5px 16px;
  font-size: 15px; line-height: 1.6; color: var(--brand);
  border: 1px solid var(--brand-line); background: var(--brand-soft);
}
.bl_tile h3 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--c-333); transition: color .3s var(--ease); }
.bl_tile:hover h3 { color: var(--brand); }
.bl_tile_body p { margin-top: 14px; font-size: 16px; line-height: 1.85; color: var(--c-666); }

/* 卡片高度不一，链接统一压到底（正文短的卡片不留半截空白） */
.bl_tile_link {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px;
  font-size: 16px; color: var(--c-999); transition: color .3s var(--ease);
}
.bl_tile_link svg { width: 14px; height: 14px; flex: none; stroke: currentColor; transition: transform .5s var(--ease); }
.bl_tile:hover .bl_tile_link { color: var(--brand); }
.bl_tile:hover .bl_tile_link svg { transform: translateX(7px); }

/* ---------- 9. 分类筛选按钮（项目案例 / 首页新闻动态共用） ---------- */
/* style.css 的 .tab 是圆角描边药丸，这里覆写回实心方块。
   配合 main.js 的 initFilters()：外层 data-filter-group + data-filter-target，
   按钮 .tab[data-cat]，目标容器里的条目各自带 data-cat */
.bl_filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 46px;
}
.bl_filters .tab {
  display: flex; align-items: center; height: 50px; padding: 0 30px;
  font-size: 17px; color: var(--c-333); background: #fff;
  border: 1px solid var(--c-line); border-radius: 0; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bl_filters .tab:hover { color: var(--brand); border-color: var(--brand-line); }
.bl_filters .tab.is_active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 10. 窄屏 ---------- */
@media (max-width: 1400px) {
  .bl_tiles, .bl_tiles--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .bl_intro { grid-template-columns: 1fr; gap: 44px; }
  .bl_figures { grid-template-columns: repeat(2, 1fr); }
  .bl_hist_item { grid-template-columns: 1fr; gap: 18px; }
  .bl_quals, .bl_culture { grid-template-columns: repeat(2, 1fr); }
  .bl_tiles, .bl_tiles--4 { grid-template-columns: repeat(2, 1fr); }
  /* 5 个一行在这一档会挤成两行字，收成 3 个一行 */
  .bl_parts--5 span { flex-basis: 33.3333%; }
}

@media (max-width: 760px) {
  .bl_filters { margin-top: 32px; gap: 8px; }
  .bl_filters .tab { height: 42px; padding: 0 18px; font-size: 15px; }

  .bl_section { padding: 62px 0; }
  .bl_head h2 { font-size: 28px; }
  .bl_head .title_line { margin-top: 18px; }
  .bl_text { margin-top: 30px; }
  .bl_text p { font-size: 16px; }

  .bl_head + .bl_intro { margin-top: 30px; }
  .bl_figures { grid-template-columns: 1fr; gap: 30px; margin-top: 46px; }
  .bl_figure b { font-size: 34px; }
  .bl_checks { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
  .bl_sub { margin: 48px 0 20px; font-size: 14px; }

  .bl_hist { margin-top: 44px; }
  .bl_hist_item { padding: 30px 0; }
  .bl_hist_year b { font-size: 40px; letter-spacing: -1px; }
  .bl_hist_year i { font-size: 22px; }
  .bl_hist_item p { font-size: 16px; }

  .bl_quals, .bl_culture { grid-template-columns: 1fr; margin-top: 44px; }
  .bl_qual { padding: 34px 24px; }
  .bl_culture_card { padding: 34px 26px 38px; }

  /* 一行两个；条数是奇数时末行那一个自己摊满整行，不会缺一角 */
  .bl_parts { margin-top: 44px; }
  .bl_parts span { flex-basis: 50%; min-height: 74px; padding: 14px 12px; font-size: 14px; }
  .bl_scene { margin-top: 48px; }

  .bl_tiles, .bl_tiles--4 { grid-template-columns: 1fr; gap: 24px; }
  .bl_tile_body { padding: 22px 22px 26px; }
  .bl_tile h3 { font-size: 18px; }
  .bl_tile_body p { font-size: 15px; }
  .bl_tile_link { padding-top: 20px; font-size: 15px; }
}

/* ==========================================================================
   栏目页签（.bl_tabs）：新闻栏目页 / 产品子栏目页共用
   —— 必须放这里而不是 news.css：产品页和下载页只加载 blocks 不加载 news，
   放错文件时页签会退化成 5 个裸链接，没有红块选中态。
   外框（吸顶、右侧面包屑）见 subpage.css 的 .quickbar.bl_subnav
   ========================================================================== */
.bl_tabs {
  display: flex; align-items: stretch; flex: 0 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.bl_tabs::-webkit-scrollbar { display: none; }
.quickbar.bl_subnav .bl_tabs .tab {
  display: flex; align-items: center; height: 80px; padding: 0 30px;
  font-size: 17px; color: var(--c-333); background: none; border: 0; border-radius: 0;
  margin-right: 5px; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.quickbar.bl_subnav .bl_tabs .tab:last-child { margin-right: 0; }
.quickbar.bl_subnav .bl_tabs .tab:hover { color: var(--brand); }
.quickbar.bl_subnav .bl_tabs .tab.is_active { background: var(--brand); color: #fff; }

@media (max-width: 760px) {
  /* 与 subpage.css 里锚点页签的窄屏尺寸对齐 */
  .quickbar.bl_subnav .bl_tabs .tab { height: 66px; padding: 0 16px; font-size: 15px; margin-right: 2px; }
}
