/* ==========================================================================
   products.css  —  Products 页面目录墙（桌面 5 列：一行 5 个 / 每组两行）
   --------------------------------------------------------------------------
   配合模板 sdcms_list_index.asp 使用，结构：
     .h-product
       .floor
         .box-hd  >  .title + a.more-link            (标题行，左右贴边)
         .box-bd  >  .pf-grid  >  .pf-card ×N + a.pf-more  (卡片网格)
   作用范围只限 .h-product（仅本页使用），不改动 index.css 既有规则。
   ========================================================================== */

/* ---------- 0. 页面表头 ---------- */
.h-product {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 34px !important;
}
.h-product .hptit {
  margin: 0 0 6px !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px;
  color: #0b2338 !important;
  text-align: center;
}
.h-product .hptit:after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 16px auto 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #206CAE, #C8892A);
}
.h-product .hp-tit {
  margin: 0 auto 54px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #5d6b7b !important;
  text-align: center;
}

/* ---------- 1. 品类区块：标题行左右贴边 ---------- */
.h-product .floor {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 62px !important;
}
.h-product .floor .box-hd {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 22px !important;
  padding: 0 0 15px !important;
  border-bottom: 1px solid #e9eef4;
  text-align: left !important;
}
.h-product .floor .box-hd .title {
  position: relative;
  flex: 0 0 auto !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px;
  color: #0b2338 !important;
  text-align: left !important;
}
.h-product .floor .box-hd .title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #206CAE 0%, #C8892A 100%);
}
.h-product .floor .box-hd .more-link {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 10px 34px 10px 16px;
  position: relative;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #206CAE !important;
  background: #fff;
  border: 1px solid #d9e4ef;
  border-radius: 40px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.25s ease;
}
.h-product .floor .box-hd .more-link:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 13px;
  height: 1px;
  margin-top: -0.5px;
  background: #206CAE;
  transition: width 0.25s ease;
}
.h-product .floor .box-hd .more-link:before {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-top: 1px solid #206CAE;
  border-right: 1px solid #206CAE;
  transform: rotate(45deg);
}
.h-product .floor .box-hd .more-link:hover {
  color: #fff !important;
  background: #206CAE;
  border-color: #206CAE;
  box-shadow: 0 8px 18px rgba(32, 108, 174, 0.22);
}
.h-product .floor .box-hd .more-link:hover:after { background: #fff; }
.h-product .floor .box-hd .more-link:hover:before { border-color: #fff; }
.h-product .floor .box-hd .more-right { display: none !important; }

/* ---------- 2. 网格：一行 5 个 ---------- */
.h-product .floor .box-bd {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.h-product .pf-grid {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: 22px;
  row-gap: 24px;
  width: 100%;
}

/* ---------- 3. 产品卡 ---------- */
.h-product .pf-card {
  flex: 0 0 calc((100% - 88px) / 5);
  max-width: calc((100% - 88px) / 5);
  display: grid;
  grid-template-rows: auto auto;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.h-product .pf-card:hover {
  transform: translateY(-4px);
  border-color: #cfe0f0;
  box-shadow: 0 14px 28px rgba(11, 35, 56, 0.10);
}
.h-product .pf-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f7fa;
}
.h-product .pf-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.45s ease;
}
.h-product .pf-card:hover .pf-thumb img { transform: scale(1.05); }
.h-product .pf-name {
  display: block;
  box-sizing: border-box;
  height: 84px;
  margin: 0 !important;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  color: #33475b !important;
  text-align: left !important;
  overflow: hidden;
  text-decoration: none !important;
}
.h-product .pf-name a {
  color: #33475b !important;
  text-decoration: none !important;
}
.h-product .pf-card:hover .pf-name a { color: #206CAE !important; }

/* ---------- 4. 行尾补齐用的 VIEW MORE 键位（浅色，不抢视线） ---------- */
.h-product .pf-more {
  flex: 1 1 calc((100% - 88px) / 5);
  min-width: calc((100% - 88px) / 5);
  align-self: center;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 20px 22px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #f7f9fc;
  color: #0b2338 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none !important;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.h-product .pf-more:hover {
  background: #fff;
  border-color: #cfe0f0;
}
.h-product .pf-more .pf-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e2ee;
  border-radius: 50%;
  background: #fff;
  color: #206CAE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: all 0.25s ease;
}
.h-product .pf-more:hover .pf-arrow {
  background: #206CAE;
  border-color: #206CAE;
  color: #fff;
  transform: translateX(3px);
}

/* ---------- 5. 空品类占位 ---------- */
.h-product .pf-empty {
  flex: 1 1 calc((100% - 88px) / 5);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 1px dashed #dfe7ef;
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 13px;
  color: #8a97a5;
}

/* ---------- 6. 移动端：两列 ---------- */
@media (max-width: 767px) {
  .h-product { padding-top: 24px !important; }
  .h-product .hptit { font-size: 24px !important; }
  .h-product .hptit:after { margin: 12px auto 14px; }
  .h-product .hp-tit {
    margin: 0 auto 32px !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    text-align: center;
  }
  .h-product .floor { margin: 0 0 38px !important; }
  .h-product .floor .box-hd {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
  }
  .h-product .floor .box-hd .title {
    font-size: 19px !important;
    padding-left: 12px !important;
  }
  /* 移动端右下角有悬浮联系按钮，链接换到下一行左侧，避免被压住 */
  .h-product .floor .box-hd .more-link {
    flex: 0 0 100%;
    margin-left: 0;
    margin-top: 10px;
    width: fit-content;
    padding: 8px 26px 8px 12px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.1em;
  }
  .h-product .floor .box-hd .more-link:after { right: 12px; width: 10px; }
  .h-product .floor .box-hd .more-link:before { right: 11px; width: 4px; height: 4px; margin-top: -2px; }
  .h-product .pf-grid {
    column-gap: 12px;
    row-gap: 14px;
  }
  .h-product .pf-card {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    grid-template-rows: auto auto;
  }
  .h-product .pf-thumb { aspect-ratio: 1 / 1; }
  .h-product .pf-name {
    padding: 10px 11px !important;
    font-size: 12.5px !important;
    line-height: 18px !important;
    height: 74px !important;
    max-height: 74px !important;
    overflow: hidden !important;
  }
  .h-product .pf-more {
    flex: 1 1 100%;
    min-width: 0;
    align-self: stretch;
    height: auto;
    padding: 18px 20px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }
  /* 移动端右下角有悬浮联系按钮，隐藏行尾箭头避免被遮挡 */
  .h-product .pf-more .pf-arrow { display: none; }
}
