/* ==========================================================
   产品中心 / 产品详情 页面样式
   ----------------------------------------------------------
   复用 vendor/css.css 的设计变量与公共组件（导航 / 页脚 / 横幅 / 面包屑），
   本文件只描述产品列表（左侧折叠分类）与产品详情（图集 / 参数表）板块。
   =========================================================== */

/* ========================== 产品列表页 ========================== */
.products-page {
  padding: 40px 0 70px;
  background: var(--c-page-bg);
}
.products-layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ---------- 左侧栏 ---------- */
.prod-side {
  background: #fff;
  padding: 22px 20px 26px;
}
.prod-search {
  position: relative;
  margin-bottom: 26px;
}
.prod-search input {
  width: 100%;
  height: 56px;
  padding: 0 40px 0 12px;
  border: 1px solid #E6E8EB;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--c-title);
  transition: var(--tr);
}
.prod-search input::placeholder { color: #B4B9BE; }
.prod-search input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.prod-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A9097;
  transition: var(--tr);
}
.prod-search button:hover { color: var(--c-primary); }
.prod-search svg { width: 17px; height: 17px; }

.prod-side-title {
  padding-bottom: 16px;
  border-bottom: 1px solid #EEEFF1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-title);
}

/* 折叠菜单 */
.prod-acc { margin-top: 16px; }
/* 效果图：分类项上下紧贴，用细线分隔 */
.prod-acc-item { border-bottom: 1px solid #F2F3F5; }
.prod-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  color: #4A4F55;
  text-align: left;
  transition: background .25s ease, color .25s ease;
}
.prod-acc-head:hover { background: #F3F4F6; color: var(--c-primary); }
/* 展开 / 收起图标：用两条线拼出 + / − */
.prod-acc-head i {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--c-primary);   /* 收起态为橙色加号，展开后转为白色减号 */
}
.prod-acc-head i::before,
.prod-acc-head i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform .28s ease, opacity .28s ease;
}
.prod-acc-head i::before {
  width: 13px;
  height: 1.5px;
  margin: -0.75px 0 0 -6.5px;
}
.prod-acc-head i::after {
  width: 1.5px;
  height: 13px;
  margin: -6.5px 0 0 -0.75px;
}
.prod-acc-item.open > .prod-acc-head {
  background: var(--c-primary);
  color: #fff;
}
.prod-acc-item.open > .prod-acc-head i { color: #fff; }
.prod-acc-item.open > .prod-acc-head:hover { background: var(--c-primary); color: #fff; }
.prod-acc-item.open > .prod-acc-head i::after { transform: scaleY(0); opacity: 0; }

.prod-acc-body {
  display: none;              /* 由 jQuery 展开；JS 未加载时保持收起 */
  padding: 4px 0 8px;
  background: #fff;
}
.prod-acc-item.open > .prod-acc-body { display: block; }
.prod-acc-body a {
  display: block;
  padding: 18px 14px 18px 22px;
  font-size: 13px;
  color: #6B7178;
  transition: var(--tr);

}
.prod-acc-body a:hover,
.prod-acc-body a.active { color: var(--c-primary); }
.prod-acc-body a.active { font-weight: 600; }

/* 联系我们小卡 */
.prod-contact {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #EEEFF1;
}
.prod-contact h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-title);
}
.prod-contact ul { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.prod-contact li { display: flex; gap: 12px; align-items: flex-start; }
.prod-contact .ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E4E6E9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5ABB2;
}
.prod-contact .ic svg { width: 15px; height: 15px; }
.prod-contact .k { font-size: 12px; color: #A5ABB2; line-height: 1.5; }
.prod-contact .v {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.65;
  color: #4A4F55;
}

/* ---------- 右侧产品网格 ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.6fr));
  gap: 20px;
}
.prod-main{
  padding-right: 7.81%;
}
.prod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*padding: 18px 16px 22px;*/
  background: #fff;
  transition: box-shadow .3s ease, transform .3s ease;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(21, 34, 56, .10);
}
.prod-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.prod-card:hover .prod-card-img img { transform: scale(1.05); }
.prod-card p {
  /*margin-top: 14px;*/
  font-size: 14px;
  line-height: 1.5;
  color: #4A4F55;
  text-align: center;
  transition: var(--tr);
  height: 78px;
  line-height: 78px;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
}
.prod-card:hover p { color: var(--c-primary); }
.prod-card.is-hidden { display: none; }

/* 空搜索结果 */
.prod-empty {
  display: none;
  padding: 80px 0;
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
}

/* ---------- 分页 ---------- */
.prod-pager {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.prod-pager a,
.prod-pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 13px;
  color: #6B7178;
  transition: var(--tr);
}
.prod-pager a:hover { color: var(--c-primary); }
.prod-pager .active {
  background: var(--c-primary);
  color: #fff;
}
.prod-pager .gap {
  background: none;
  color: #B4B9BE;
  letter-spacing: 2px;
  min-width: 20px;
  padding: 0;
}

/* ========================== 产品详情页 ========================== */
.product-detail { padding: 30px 0 0; }
/* 锚点跳转避开吸顶主菜单 */
#related,
#inquiry { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 顶部图集 + 参数 ---------- */
.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  gap: 30px;
  padding: 50px;
  background: #f5f5f5;
  border-radius: 16px
}
.pd-gallery {
  position: relative;
  /*background: #fff;*/
  min-height: 430px;
  overflow: hidden;
  padding: 0 21%;
}
.pd-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.pd-slide.is-active { display: flex; }
.pd-slide img {
      width: auto;
    height: 100%;
  object-fit: cover;
  background: #ffffff;
}
/* 上一张 / 下一张 */
.pd-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: #4A4F55;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
  transition: var(--tr);
}
.pd-arrow:hover { background: var(--c-primary); opacity: 1; }
.pd-arrow svg { width: 16px; height: 16px; }
.pd-arrow.prev { left: 18px; }
.pd-arrow.next { right: 18px; }
/* 自动播放进度条 */
.pd-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  width: 0;
  background: var(--c-primary);
}

.pd-info { padding: 8px 6px 0; }
.pd-info h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-title);
}
.pd-desc {
  margin-top: 18px;
  font-size: 13px;
  line-height: 2.05;
  color: #6B7178;
  text-align: justify;
}
.pd-spec {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #FFFFFF;
border-radius: 16px;
  padding: 30px;
}
.pd-spec li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #5A6067;
}
.pd-spec li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}
.pd-btns {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 60px;
  line-height: 60px;
  padding: 0 35px;
  font-size: 13px;
  color: #fff;
  background: var(--c-primary);
  transition: var(--tr);
  border-radius: 8px;
  font-weight: 400;
  font-size: 20px;
  color: #FFFFFF;
}
.pd-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
.pd-btn.dark { background: #3A4147; }
.pd-btn.blue { background: #2C3949; }

/* ---------- 详情内容通用标题 ---------- */
.pd-block { margin-top: 46px; }
.pd-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-title);
  height: 70px;
  line-height: 70px;
  border-bottom: 1px solid #DDDDDD;
  margin-bottom: 30px;
}
.pd-block-head::before {
  content: "";
  width: 3px;
  height: 16px;
  background: var(--c-primary);
}
.pd-block-body { margin-top: 16px;
  font-weight: 400;
  font-size: 16px;
  color: #7E848A;
}
.pd-block-body p {
  font-size: 13px;
  line-height: 2.1;
  color: #6B7178;
  text-align: justify;
}

/* ---------- 参数表 ---------- */
.pd-table-wrap { margin-top: 18px; overflow-x: auto; }
.pd-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  color: #5A6067;
}
.pd-table th,
.pd-table td {
  border: 1px solid #E5E7EA;
  padding: 13px 8px;
  text-align: center;
  font-weight: 400;
}
.pd-table thead th {
  background: #E9EBED;
  color: #4A4F55;
  font-weight: 600;
}
.pd-table tbody tr:nth-child(odd) { background: #fff; }
/*.pd-table tbody tr:nth-child(even) { background: #F6F7F9; }*/

/* ---------- 产品应用 ---------- */
.pd-app-text {
  font-size: 13px;
  line-height: 2.1;
  color: #6B7178;
  white-space: pre-line;
}
.pd-app-img {
  margin: 26px auto 0;
  max-width: 960px;
}
.pd-app-img img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---------- 相关产品 ---------- */
.pd-related { margin-top: 54px; }
.pd-related h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: var(--c-title);
}
.pd-related-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.pd-related-item { text-align: center; }
.pd-related-item .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.pd-related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pd-related-item:hover img { transform: scale(1.06); }
.pd-related-item p {
  margin-top: 12px;
  font-size: 18px;
  color: #8A9097;
}

/* ---------- 在线信息 ---------- */
.pd-form-section {
  margin-top: 56px;
  padding: 40px 0 60px;
  background: #F5F5F5;
}
.pd-form-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: var(--c-title);
}
.pd-form {
  max-width: none;
  margin: 34px auto 0;
}
.pd-form .field { margin-bottom: 14px; }
.pd-form input,
.pd-form textarea {
  width: 100%;
  border: 0;
  background: #F2F3F5;
  padding: 14px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--c-title);
  transition: var(--tr);
}
.pd-form input { height: 46px; }
.pd-form textarea {
  height: 96px;
  resize: vertical;
}
.pd-form input::placeholder,
.pd-form textarea::placeholder { color: #A5ABB2; }
.pd-form input:focus,
.pd-form textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--c-primary) inset;
}
.pd-form .submit-row {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.pd-form button {
  min-width: 120px;
  height: 42px;
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  transition: var(--tr);
}
.pd-form button:hover { background: var(--c-primary-dark); }

/* ========================== 响应式 ========================== */
@media (max-width: 1200px) {
  .products-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
  .prod-side { padding: 18px 16px 22px; }
  .prod-side-title { font-size: 19px; }
  .pd-hero { gap: 22px; padding: 20px; }
  .pd-gallery { min-height: 380px; }
}

@media (max-width: 992px) {
  .products-layout { grid-template-columns: 1fr; }
  .prod-side { padding: 18px 18px 22px; }
  .prod-acc-head { font-size: 15px; }
  .prod-contact { margin-top: 26px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-gallery { min-height: 340px; }
  .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .products-page { padding: 26px 0 50px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-card { padding: 10px 10px 14px; }
  .prod-card p { font-size: 12px; margin-top: 10px; }
  .prod-pager { margin-top: 30px; }
  .product-detail { padding-top: 22px; }
  .pd-hero { padding: 14px; gap: 18px; }
  .pd-gallery { min-height: 280px; }
  .pd-arrow { width: 38px; height: 38px; margin-top: -19px; }
  .pd-info h1 { font-size: 22px; }
  .pd-btns { gap: 8px; }
  .pd-btn { flex: 1 1 calc(50% - 8px); min-width: 0;font-size: 12px }
  .pd-block { margin-top: 36px; }
  .pd-app-img img { aspect-ratio: 3 / 2; }
  .pd-related h2,
  .pd-form-section h2 { font-size: 22px; }
  .pd-related-grid { gap: 10px; }
  .pd-form-section { margin-top: 40px; padding: 34px 0 44px; }
}

@media (max-width: 560px) {
  /* 手机端保持两列，避免产品卡片过高、翻页过长 */
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-table { font-size: 12px; }
  .pd-table th, .pd-table td { padding: 10px 6px; }
}
