/* ============================================================
   ZC Theme 视觉精修层  zc-polish.css
   作用：补齐正文排版体系、强化标题层级、表格与图片处理、
        页面头部层次、移动端可读性。仅视觉，不改结构。
   日期：2026-11-18
   ============================================================ */

/* ---------- 1. 全局排版基线 ---------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: #2c3330;
}
::selection { background: rgba(11, 107, 69, .16); color: #0f3d2b; }

/* ---------- 2. 正文排版 ---------- */
.zc-page-content,
.zc-front-content {
  font-size: 15.5px;
  line-height: 1.88;
  color: #2f3a35;
  word-break: break-word;
}
.zc-page-content p,
.zc-front-content p { margin: 0 0 1.05em; }
.zc-page-content p:last-child,
.zc-front-content p:last-child { margin-bottom: 0; }

/* 首段引导感 */
.zc-page-content > p:first-of-type {
  font-size: 16.5px;
  color: #1d2a24;
  line-height: 1.85;
}

/* 正文链接 */
.zc-page-content a,
.zc-front-content a {
  color: #0b6b45;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 107, 69, .26);
  transition: color .18s ease, border-color .18s ease;
}
.zc-page-content a:hover,
.zc-front-content a:hover {
  color: #064a2f;
  border-bottom-color: #064a2f;
}
/* 正文内的卡片/按钮链接不描边 */
.zc-page-content a.zc-pcard,
.zc-front-content a.zc-pcard,
.zc-page-content a.zc-btn,
.zc-front-content a.zc-btn { border-bottom: 0; }

/* ---------- 3. 标题层级 ---------- */
.zc-page-content h2,
.zc-front-content h2 {
  position: relative;
  margin: 2.05em 0 .85em;
  padding-left: 15px;
  font-size: 23px;
  line-height: 1.38;
  font-weight: 700;
  color: #0f3d2b;
  letter-spacing: .2px;
}
.zc-page-content h2::before,
.zc-front-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 4px;
  height: 1.02em;
  border-radius: 2px;
  background: linear-gradient(180deg, #0b6b45 0%, #C8963E 100%);
}
.zc-page-content h3,
.zc-front-content h3 {
  margin: 1.55em 0 .62em;
  padding-bottom: .32em;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #14513a;
  border-bottom: 1px solid #e7eee9;
}
.zc-page-content h4,
.zc-front-content h4 {
  margin: 1.25em 0 .5em;
  font-size: 16px;
  font-weight: 700;
  color: #1c5c43;
}
.zc-page-content h2:first-child,
.zc-page-content h3:first-child,
.zc-front-content h2:first-child,
.zc-front-content h3:first-child { margin-top: .2em; }

/* ---------- 4. 列表 ---------- */
.zc-page-content ul,
.zc-page-content ol,
.zc-front-content ul,
.zc-front-content ol { margin: 0 0 1.1em; padding-left: 1.45em; }
.zc-page-content li,
.zc-front-content li { margin: .42em 0; }
.zc-page-content ul > li::marker,
.zc-front-content ul > li::marker { color: #C8963E; }
.zc-page-content ol > li::marker,
.zc-front-content ol > li::marker { color: #0b6b45; font-weight: 700; }

/* ---------- 5. 强调与引用 ---------- */
.zc-page-content strong,
.zc-front-content strong { color: #0f3d2b; font-weight: 700; }
.zc-page-content blockquote,
.zc-front-content blockquote {
  margin: 1.3em 0;
  padding: 14px 20px;
  border-left: 4px solid #C8963E;
  background: #f7f5ef;
  border-radius: 0 8px 8px 0;
  color: #4a554f;
  font-size: 15px;
}

/* ---------- 6. 图片 ---------- */
.zc-page-content img,
.zc-front-content img {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(15, 61, 43, .10);
  transition: box-shadow .22s ease;
}
.zc-page-content a img:hover,
.zc-front-content a img:hover { box-shadow: 0 8px 26px rgba(15, 61, 43, .18); }
.zc-page-content figure,
.zc-front-content figure { margin: 1.4em 0; }

/* 产品总览页（page 232 / 236）：收敛超长图片，压缩页面高度 */
.page-id-232 .zc-page-content img,
.page-id-236 .zc-page-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
  margin: 0 auto;
}
.page-id-232 .zc-page-content h3,
.page-id-236 .zc-page-content h3 { margin-top: 1.15em; }

/* ---------- 7. 表格 ---------- */
.zc-page-content table,
.zc-front-content table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid #e3eae6;
  border-radius: 10px;
  overflow: hidden;
}
.zc-page-content thead th,
.zc-front-content thead th {
  background: #0f3d2b;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  letter-spacing: .2px;
}
.zc-page-content tbody td,
.zc-front-content tbody td {
  padding: 10px 14px;
  border-top: 1px solid #e9efeb;
  color: #33403a;
  vertical-align: top;
}
.zc-page-content tbody tr:nth-child(even),
.zc-front-content tbody tr:nth-child(even) { background: #f7faf8; }
.zc-page-content tbody tr:hover,
.zc-front-content tbody tr:hover { background: #eef6f1; }

/* 表格外层滚动容器（模板未包 wrapper 时兜底） */
.zc-page-content .zc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 8. 页面头部层次增强 ---------- */
.zc-page-header {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 61, 43, .16);
}
.zc-page-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.zc-page-title { position: relative; z-index: 1; letter-spacing: .3px; }

/* ---------- 9. 卡片与按钮微交互 ---------- */
.zc-pcard-grid { gap: 18px; }
a.zc-pcard { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.zc-pcard:hover { border-color: #cfe0d6; }
.zc-pcard-more { transition: letter-spacing .2s ease; }
a.zc-pcard:hover .zc-pcard-more { letter-spacing: .4px; }

.zc-btn {
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(200, 150, 62, .28);
}
.zc-btn:hover {
  background: #b3852f;
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(200, 150, 62, .36);
}

/* ---------- 10. 页脚精修 ---------- */
.zc-footer { background-image: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .12)); }
.zc-footer-col h4 { letter-spacing: .3px; }
.zc-footer-nav .zc-nav-item a { border-radius: 4px; transition: opacity .18s, padding-left .18s; }
.zc-footer-nav .zc-nav-item a:hover { opacity: 1; padding-left: 4px; }
.zc-footer-qr { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 900px) {
  .zc-page-content, .zc-front-content { font-size: 15px; line-height: 1.85; }
  .zc-page-content h2, .zc-front-content h2 { font-size: 20.5px; margin-top: 1.8em; }
  .zc-page-content h3, .zc-front-content h3 { font-size: 17px; }
  .zc-page-content table, .zc-front-content table { font-size: 13px; }
  .zc-page-content thead th, .zc-front-content thead th,
  .zc-page-content tbody td, .zc-front-content tbody td { padding: 8px 10px; }
  .page-id-232 .zc-page-content img,
  .page-id-236 .zc-page-content img { max-height: 240px; }
}
@media (max-width: 600px) {
  .zc-page { padding: 20px 14px 44px; }
  .zc-page-content, .zc-front-content { font-size: 14.6px; }
  .zc-page-content h2, .zc-front-content h2 { font-size: 19px; padding-left: 12px; }
  .zc-page-content > p:first-of-type { font-size: 15.4px; }
}

/* ---------- 12. 打印 ---------- */
@media print {
  .zc-page-header, .zc-footer, .zc-nav-toggle { display: none !important; }
  .zc-page-content h2::before { display: none; }
  .zc-page-content, .zc-front-content { font-size: 12pt; color: #000; }
}

/* ---------- 13. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   14. 产品详情页统一（覆盖 inc/zc-hq-products.php 内联样式）
   ============================================================ */

/* 14.1 标题装饰与全站统一（.zc-inq 询盘区深底标题保持原样） */
.zc-page-content .zc-pd-sec h2,
.zc-pd-sec h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 15px;
  border-left: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f3d2b;
}
.zc-page-content .zc-pd-sec h2::before,
.zc-pd-sec h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #0b6b45 0%, #C8963E 100%);
}

/* 14.2 技术参数表：深绿表头 + 斑马纹 + 圆角外框 */
.zc-page-content .zc-pd-spec,
.zc-pd-spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3eae6;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.zc-page-content .zc-pd-spec th,
.zc-pd-spec th {
  background: #0f3d2b;
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  width: 34%;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
  border: 0;
}
.zc-page-content .zc-pd-spec td,
.zc-pd-spec td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: #33403a;
  border: 0;
  border-top: 1px solid #e9efeb;
  border-left: 1px solid #e9efeb;
}
.zc-page-content .zc-pd-spec tr:first-child th,
.zc-page-content .zc-pd-spec tr:first-child td,
.zc-pd-spec tr:first-child th,
.zc-pd-spec tr:first-child td { border-top: 0; }
.zc-page-content .zc-pd-spec tbody tr:nth-child(even) td,
.zc-pd-spec tbody tr:nth-child(even) td { background: #f7faf8; }

/* 14.3 产品卡片：等高对齐 + 图片留白统一 */
.zc-page-content .zc-pcard-grid,
.zc-front-content .zc-pcard-grid { align-items: stretch; }
a.zc-pcard { height: 100%; }
.zc-pcard-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.zc-pcard-more { margin-top: auto; padding-top: 2px; }
.zc-pcard-img img { padding: 7px; box-sizing: border-box; }

/* 14.4 大屏下产品目录 5 列，进一步压缩长页面 */
@media (min-width: 1080px) {
  .zc-page-content .zc-pcard-grid,
  .zc-front-content .zc-pcard-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 14.5 产品总览页图片再收敛，压缩页面总高度 */
.page-id-232 .zc-page-content img,
.page-id-236 .zc-page-content img { max-height: 280px; }
