/* ==========================================================================
   产品中心 —— 列表页与详情页专用
   列表页：分类区块里的产品卡阵；详情页：优势清单居中、场景卡片、底部按钮组
   ========================================================================== */

/* ---------- 1. 列表页：产品卡阵 ---------- */
/* 产品中心首页每段只出 4 款（正好一行），子栏目页才是全量列表（4~16 款）。
   固定列数末行必然留空位，栅格按断点定死列数、末行左对齐排即可，
   不做 flex 拉伸（卡片没有共用描边，缺角看不出来）。
   桌面端一行 4 个（客户指定）。容器是 10/12 流式宽，4 列时单卡宽约 300~380px，
   卡片只有图 + 标题两行，再收窄 1280 以下退回 3 列。 */
.bl_products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }

/* 段尾「查看全部 N 款产品」—— 首页每段的唯一出口，五段共用。
   款数由模板里的 dbcount 实时统计，后台增删产品自动跟着变。 */
.bl_all { margin-top: 46px; text-align: center; }
.bl_all a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; letter-spacing: .5px; color: var(--brand);
  transition: color .3s var(--ease);
}
.bl_all a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; transition: transform .5s var(--ease); }
.bl_all a:hover { color: var(--brand-bright); }
.bl_all a:hover svg { transform: translateX(7px); }

/* ---------- 2. 详情页 ---------- */
/* 优势是两列清单，通栏会拉得太散，收窄居中 */
#adv .bl_checks { max-width: 1000px; margin-left: auto; margin-right: auto; }
/* 标题块下面紧跟场景卡时，间距收到和 .bl_intro 一致 */
.bl_head + .bl_scene { margin-top: 46px; }
/* 标题块下面紧跟产品卡阵时同理。设计稿 products.html 这里是 0 间距，
   但它的 .bl_head 里多一行「共 N 款产品」的 .bl_desc，收尾是文字；
   我们的模板只有 h2 + 红条，收尾是一根发丝线，卡片直接顶上来就贴住了。
   只写 .bl_head + ，子栏目那张全量卡阵（前面没有标题块）不受影响。 */
.bl_head + .bl_products { margin-top: 46px; }
/* 产品详情页的标题行：产品名在左，「返回产品列表」贴右端（客户指定；页尾那一份继续留着） */
.bl_head_row { display: flex; align-items: center; justify-content: space-between; gap: 30px 24px; }
/* 标题长了就自己折行，别把按钮挤出去 */
.bl_head_row h2 { flex: 1 1 auto; min-width: 0; }
.bl_head_row .eg_button { flex: none; }
.bl_cta { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
/* 没写【应用场景】时，CTA 就是这个灰底块的第一个元素（白空不算），
   56px 会变成一大块空灰底，跟着底部内距重叠了 */
.bl_cta:first-child { margin-top: 0; }

/* 页尾「本栏目产品」—— 详情页的横向出口（老站是在左侧竖排，2026 版式改成页尾一条）。
   当前这一款照旧列出来但不可点，用红字浅底标出来，方便对照自己在整栏里的位置。 */
.bl_siblings { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.bl_siblings a {
  padding: 12px 24px; font-size: 16px; line-height: 1.5; color: var(--c-333);
  background: #f4f4f4; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bl_siblings a:hover { color: #fff; background: var(--brand); }
.bl_siblings a.is_now {
  color: var(--brand); background: var(--brand-soft);
  border-color: var(--brand-line); cursor: default;
}

/* ---------- 3. 窄屏 ---------- */
@media (max-width: 1280px) {
  .bl_products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .bl_products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .bl_products { grid-template-columns: 1fr; margin-top: 40px; gap: 24px; }
  .bl_all { margin-top: 32px; }
  .bl_all a { font-size: 15px; }
  .bl_head + .bl_scene { margin-top: 30px; }
  .bl_head + .bl_products { margin-top: 30px; }
  .bl_head_row { gap: 18px 14px; }
  .bl_siblings { margin-top: 34px; gap: 10px 8px; }
  .bl_siblings a { padding: 10px 16px; font-size: 14px; }
  .bl_cta { margin-top: 40px; }
  .bl_cta .eg_button { width: 100%; }
}
