/* ============================================================
   hz-tech-list.css · 主站技术文章聚合页列表区重排
   作用域 .hztech-*，仅 channel_technology.html 引入，
   不触碰共用 .news-list / .tuzhi-list（案例/问答/资讯共用）
   主色 #12a89e · 缩略图 4:3 · 卡片网格 repeat(2,minmax(0,1fr))
   ============================================================ */

.hztech {
  margin-top: 26px;
}

/* ---------- 页头：说明 + 统计 ---------- */
.hztech-hd {
  margin: 0 0 18px;
  padding: 18px 22px;
  background: #f4faf9;
  border: 1px solid #e2efed;
  border-radius: 8px;
}
.hztech-lede {
  margin: 0;
  font-size: 14px;
  color: #4d6360;
  line-height: 1.8;
}
.hztech-hd b {
  color: #12a89e;
  font-weight: 700;
}

/* ---------- 分类筛选条 ---------- */
.hztech-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hztech-cats a {
  padding: 5px 14px;
  border: 1px solid #d5e4e1;
  border-radius: 999px;
  background: #fff;
  color: #35524d;
  font-size: 13px;
  line-height: 1.6;
  transition: background .15s, color .15s, border-color .15s;
}
.hztech-cats a:hover {
  background: #12a89e;
  border-color: #12a89e;
  color: #fff;
}

/* ---------- 卡片网格 ---------- */
.hztech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 严禁写 1fr，移动端会横向溢出 */
  gap: 18px;
}
.hztech-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e7eef0;
  border-radius: 8px;
  padding: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hztech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18, 168, 158, .12);
  border-color: rgba(18, 168, 158, .38);
}

/* 缩略图：固定 4:3，垂直居中 */
.hztech-thumb {
  flex: 0 0 200px;
  align-self: center;
}
.hztech-thumb img {
  display: block;
  width: 200px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f4f5;
}

/* 文字块：标题两行锁高、摘要三行 */
.hztech-body {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hztech-body h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.hztech-body h2 a {
  color: #22333a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em; /* 双列卡片底部齐平 */
}
.hztech-body h2 a:hover {
  color: #12a89e;
}
.hztech-body p {
  margin: 8px 0 0;
  color: #6b7c85;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡底：分类标签左、日期右，压至底部 */
.hztech-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2eaec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #93a3ab;
}
.hztech-cat {
  color: #0e8a7e;
  background: #eaf6f4;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
.hztech-date {
  white-space: nowrap;
}

/* ---------- 分页 ---------- */
.hztech-pager {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hztech-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hztech-pager .pagination li span,
.hztech-pager .pagination li a {
  display: inline-block;
  min-width: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5e4e1;
  color: #35524d;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.hztech-pager .pagination li a:hover {
  border-color: #12a89e;
  color: #12a89e;
}
.hztech-pager .pagination li.active span {
  background: #12a89e;
  border-color: #12a89e;
  color: #fff;
  font-weight: 600;
}
.hztech-pager .pagination li.disabled span {
  color: #b6c2c7;
  background: #f5f8f8;
}
.hztech-count {
  color: #7c8b91;
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hztech-grid {
    grid-template-columns: 1fr;
  }
  .hztech-thumb {
    flex-basis: 160px;
  }
  .hztech-thumb img {
    width: 160px;
  }
}
@media (max-width: 640px) {
  .hztech-hd {
    padding: 14px 16px;
  }
  .hztech-card {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }
  .hztech-thumb,
  .hztech-thumb img {
    flex: none;
    width: 100%;
  }
  .hztech-thumb img {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   页尾「产品推荐」「问答文章」卡片化（2026-11-06）
   风格对齐首页：白卡容器 + 绿竖条标题 + 圆角卡片 + hover 上浮
   仅本页加载本文件，作用域安全
   ============================================================ */

/* 1) 区块标题：绿竖条 + 左对齐 + 底部细线 */
.relation > .title.mb_30,
h2.title.mt_30 {
  position: relative;
  padding: 0 0 12px 14px !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid #f0f2f5;
  font-size: 22px !important;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: left;
}
.relation > .title.mb_30::before,
h2.title.mt_30::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 16px;
  width: 4px;
  background: #0B5D4E;
  border-radius: 2px;
}

/* 2) 产品推荐：白卡容器 + 轮播卡片化 */
.relation {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(15, 40, 80, .05);
  padding: 24px 22px 26px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.relation .swiper-slide.product {
  background: #fbfdfc;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  height: auto;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
/* swiper-container overflow:hidden 会裁掉上移位移的顶边，hover 只做高亮不做位移 */
.relation .swiper-slide.product:hover {
  border-color: #0B5D4E;
  box-shadow: 0 6px 18px rgba(11, 93, 78, .12);
}
.relation .product .product-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2f6f4;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}
.relation .product .product-title {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1a1a1a;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-weight: 600;
}

/* 3) 问答文章：白卡容器 + 条目卡片化 */
.tuzhi-list.news-list {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(15, 40, 80, .05);
  padding: 24px 22px;
  margin-top: 14px;
}
.tuzhi-list.news-list .items {
  background: #fbfdfc;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 14px !important;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tuzhi-list.news-list .items:hover {
  border-color: #0B5D4E;
  box-shadow: 0 10px 24px rgba(11, 93, 78, .12);
  transform: translateY(-3px);
}
.tuzhi-list.news-list .items .pic {
  flex: 0 0 178px;
  width: 178px;
  height: 118px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}
.tuzhi-list.news-list .items .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.tuzhi-list.news-list .items .text-box h3 { font-size: 15.5px; line-height: 1.5; }
.tuzhi-list.news-list .items .text-box .desc-size { font-size: 13px; line-height: 1.7; }

@media (max-width: 767px) {
  .relation, .tuzhi-list.news-list { padding: 16px 14px; border-radius: 12px; }
  .tuzhi-list.news-list .items .pic { flex: 0 0 112px; width: 112px; height: 84px; }
}

/* ---------- 2026-11-06 补丁：问答卡日期收回内容框内 ---------- */
/* 原日期继承大行高（约28px），沉到卡片右下角、低于缩略图底边，视觉上像悬在框外。
   文字块改纵向 flex，日期紧跟摘要、收紧行高，明确落在内容框内 */
.tuzhi-list.news-list .items .text-box {
  display: flex;
  flex-direction: column;
}
.tuzhi-list.news-list .items .text-box .text_r {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- 2026-11-06 补丁：问答标题移入容器后跨双列 ---------- */
/* .news-list 是双列 grid，标题入容器后成为网格项，必须跨全部列，否则首卡被挤到标题旁 */
.tuzhi-list.news-list > h2.title {
  grid-column: 1 / -1;
}
