/* ==========================================================================
   products.css —— 只作用于 products/ 产品中心栏目
   （产品总览 / 一级分类页 / 产品详情页 / FAQ / 询价二维码）
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 1. 一级分类总览（products/index.html） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); height: 100%;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card__media { background: #fff; border-bottom: 1px solid var(--border); }
.cat-card__media img { width: 100%; height: 230px; object-fit: contain; padding: 14px; }
.cat-card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.cat-card__count {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--primary); background: var(--primary-light); border-radius: 999px; padding: 3px 12px;
}
.cat-card__body h2 { font-size: 22px; margin: 14px 0 4px; }
.cat-card__body p { color: var(--text-light); font-size: 14px; margin-top: 12px; flex: 1; }
.cat-card__names { font-size: 13px; color: var(--text-lighter); margin-top: 14px; line-height: 1.7; }

/* ---------- 2. 产品卡片 ---------- */
.card__media--contain { background: #fff; border-bottom: 1px solid var(--border); }
.card__media--contain img { height: 210px; object-fit: contain; padding: 14px; }

.product-card .pc-en { font-size: 12.5px; color: var(--text-lighter); letter-spacing: 0.3px; margin: -4px 0 10px; }
.product-card .pc-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product-card .pc-specs span {
  font-size: 12.5px; background: var(--bg-gray); color: var(--text-light); border-radius: 6px; padding: 4px 11px;
}

/* ---------- 3. 分类页顶部数据条 ---------- */
.prose-en { color: var(--text-light); font-size: 14.5px; margin-top: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.stat {
  background: var(--bg-gray); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat strong { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--text-light); }

/* ---------- 4. 产品详情页 ---------- */
.product-hero {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 22px;
}
.product-hero img {
  width: 100%; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto;
}
.product-highlights { margin-bottom: 34px; }
.product-highlights .tag { font-size: 13px; padding: 6px 14px; }

.product-summary { margin-bottom: 10px; }
.product-summary h2 { margin-bottom: 12px; }

.block-title {
  font-size: 22px; font-weight: 700; margin: 46px 0 8px; padding-left: 14px;
  position: relative; line-height: 1.4;
}
.block-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 2px; background: var(--primary);
}
.table-note { font-size: 13px; color: var(--text-lighter); margin-bottom: 14px; }

.feature-list { display: grid; gap: 12px; }
.feature-list li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px 16px 44px; position: relative; font-size: 15px; line-height: 1.8;
}
.feature-list li::before { left: 20px; top: 22px; }

/* 技术参数表 */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--border); padding: 14px 20px; text-align: left; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; background: var(--bg-gray); font-weight: 600; color: var(--text); }
.spec-table th .spec-en { display: block; font-size: 12px; font-weight: 400; color: var(--text-lighter); margin-top: 3px; }
.spec-table td { color: var(--text); font-variant-numeric: tabular-nums; }
.spec-table tbody tr:nth-child(even) td { background: #fbfcfe; }

.tag--accent { background: var(--accent-light); color: var(--accent); }

/* 工艺流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.flow-item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 24px; font-weight: 800; color: rgba(26, 92, 181, 0.22); display: block; margin-bottom: 8px;
}
.flow-item p { font-size: 14px; color: var(--text); }

/* ---------- 5. 询价区（文字 + 二维码） ---------- */
.enq-box { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin-top: 46px; }
.enq-box h2 { font-size: 21px; margin-bottom: 10px; }
.enq-box p { color: var(--text-light); font-size: 14.5px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.direct-contact {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 18px;
}
.direct-contact .dc-label { font-size: 13px; color: var(--text-lighter); }
.direct-contact a { font-size: 15.5px; font-weight: 600; color: var(--primary); }
.direct-contact a:hover { text-decoration: underline; }
.qr-card { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; background: #fff; }
.qr-card img { width: 100%; height: 168px; object-fit: contain; margin: 0 auto 10px; }
.qr-card figcaption strong { display: block; font-size: 15px; }
.qr-card figcaption span, .qr-card figcaption a { font-size: 13px; color: var(--text-light); }
.qr-card figcaption a:hover { color: var(--primary); }

/* ---------- 6. 常见问题 ---------- */
.faq { max-width: 920px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 16px; font-weight: 600; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--text-light); font-size: 14.5px; line-height: 1.85; }

/* ---------- 7. 相关产品 ---------- */
.sibling-links {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 14px;
}
.sibling-links span { color: var(--text-light); }
.sibling-links a { color: var(--text-light); }
.sibling-links a:hover { color: var(--primary); }

/* ---------- 8. 侧栏子菜单（可选） ---------- */
.side-sub { border-bottom: 1px solid var(--border); background: #fbfcfe; }
.side-sub a { padding: 10px 22px 10px 34px; font-size: 13.5px; }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .enq-box { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .cat-grid, .stat-row, .qr-grid, .flow { grid-template-columns: 1fr; }
  .product-hero { padding: 12px; }
  .block-title { font-size: 19px; margin-top: 34px; }
  .faq-item summary { padding: 16px 46px 16px 18px; }
}
