/* ============================================================
   PNP Biotech — 重渲染产品详情页样式
   ============================================================ */
/* 防止任何子元素撑宽页面（移动端横向溢出防护） */
html, body { overflow-x: clip; }
.productshow_html { max-width: 100%; overflow: visible; }
/* 原站遗留侧边栏在手机端撑宽文档 */
#sidebar-main, .nav_sidebar, #sidebar-main .wrapper, #sidebar-main ul { display: none !important; }

/* 产品页由 JS 重渲染后，隐藏原站的重复面包屑 */
.productshow_html .mbx_list { display: none !important; }

.pp-page { max-width: 1280px; margin: 0 auto; padding: 0 20px 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif; color: #1c2733; }

/* 面包屑 */
.pp-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; padding: 14px 0 18px; }
.pp-crumb a { color: #64748b; text-decoration: none; }
.pp-crumb a:hover { color: #1565c0; }
.pp-crumb span { color: #cbd5e1; }
.pp-crumb span:last-child { color: #1c2733; }

/* ---------- Hero：身份信息在左，图片在右 ---------- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: stretch; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; box-shadow: 0 2px 16px rgba(13,43,78,.06); }

/* 图库：总高与左侧信息等高，图片居中不再撑满 */
.pp-gallery { min-width: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* A3：固定正方形白底舞台，所有产品图统一画幅与留白 */
.pp-main-img { flex: 1; min-height: 0; aspect-ratio: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 18px; }
.pp-main-img img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.pp-noimg { color: #94a3b8; font-size: 14px; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pp-thumb { width: 68px; height: 68px; border: 2px solid #e2e8f0; border-radius: 8px; background: #fff; padding: 5px; cursor: pointer; transition: border-color .2s; }
.pp-thumb:hover, .pp-thumb.active { border-color: #1565c0; }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* 信息区 */
.pp-info { min-width: 0; }
.pp-info h1 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; color: #0d2b4e; line-height: 1.3; margin: 0 0 18px; }

/* 关键事实 */
.pp-facts { background: linear-gradient(135deg, #f0f7ff, #eaf7f6); border: 1px solid #d4e6f4; border-radius: 10px; padding: 4px 18px; margin-bottom: 20px; }
.pp-fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(13,43,78,.07); font-size: 14px; }
.pp-fact:last-child { border-bottom: 0; }
.pp-fact span { color: #64748b; }
.pp-fact strong { color: #0d2b4e; font-weight: 600; text-align: right; }

/* 询盘 CTA：整合在右上信息区，不再放侧栏 */
.pp-quote-block { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f1f6f1; border: 1px solid #e2e7e2; border-left: 3px solid #9a6b28; border-radius: 5px; padding: 14px 16px; margin-bottom: 18px; }
.pp-quote-copy { min-width: 0; }
.pp-quote-copy strong { display: block; color: #24272a; font-size: 13px; margin-bottom: 2px; }
.pp-quote-copy span { color: #66706a; font-size: 12px; line-height: 1.5; }
.pp-inquire, .pp-inquire-small { background: #1565c0; color: #fff; border: 0; border-radius: 9px; padding: 14px 32px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; white-space: nowrap; }
.pp-inquire:hover, .pp-inquire-small:hover { background: #0d47a1; transform: translateY(-1px); }
.pp-inquire-small { padding: 10px 16px; font-size: 13px; }

/* 信任标识 */
.pp-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pp-trust span { font-size: 12px; color: #0a7a6b; background: #e8f7f4; padding: 6px 10px; border-radius: 6px; }

/* ---------- 资料站风格的文档预览按钮 ---------- */
.pp-files { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.pp-files-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: #24272a; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.pp-files-head span { color: #66706a; font-size: 11px; font-weight: 400; }
.pp-file-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-file-btn { display: inline-block; border: 1px solid #d8e2d9; border-radius: 4px; background: #fff; color: #3c7549 !important; font-size: 11px; padding: 5px 9px; text-decoration: none; white-space: nowrap; }
.pp-file-btn:hover { background: #f1f6f1; border-color: #4a8c5a; }
.pp-file-btn.pp-file-disabled { color: #9aa5a0 !important; border-color: #e6ece8; background: #fafcfb; cursor: default; }
.pp-file-btn.pp-file-disabled:hover { background: #fafcfb; border-color: #e6ece8; }

/* ---------- 正文：侧栏 + 内容 ---------- */
.pp-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.pp-sidebar { position: sticky; top: calc(50vh - 100px); max-height: calc(100vh - 120px); overflow: auto; }
.pp-toc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(13,43,78,.05); }
.pp-toc-title { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; font-weight: 700; margin-bottom: 10px; }
.pp-toc a { display: block; padding: 8px 0; font-size: 13px; color: #475569; text-decoration: none; border-bottom: 1px solid #f1f5f9; }
.pp-toc a:last-child { border-bottom: 0; }
.pp-toc a:hover { color: #1565c0; padding-left: 4px; }
.pp-side-card { background: #0d2b4e; color: #e2e8f0; border-radius: 12px; padding: 18px; margin-top: 16px; }
.pp-side-card strong { color: #fff; font-size: 14px; }
.pp-side-card p { font-size: 12px; line-height: 1.6; margin: 8px 0 14px; }
.pp-inquire-small { background: #00a8a8; padding: 10px 16px; font-size: 13px; width: 100%; }
.pp-inquire-small:hover { background: #009393; }

/* 内容区 */
.pp-content { min-width: 0; }
.pp-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px 28px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(13,43,78,.05); scroll-margin-top: 20px; }
.pp-section h2 { font-size: 20px; font-weight: 700; color: #0d2b4e; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #e8f2fb; }
.pp-section p { font-size: 14px; line-height: 1.8; color: #475569; margin: 0 0 12px; }
.pp-section h3 { font-size: 16px; font-weight: 600; color: #0d2b4e; margin: 20px 0 10px; }
.pp-section h4 { font-size: 14px; font-weight: 600; color: #334155; margin: 16px 0 8px; }
.pp-section ul, .pp-section ol { font-size: 14px; line-height: 1.8; color: #475569; padding-left: 22px; }
.pp-section hr { border: 0; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.pp-section img { max-width: 100%; height: auto; border-radius: 8px; }

/* 表格 */
.pp-table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid #e2e8f0; border-radius: 8px; }
.pp-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.pp-table-wrap th, .pp-table-wrap td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; line-height: 1.5; }
.pp-table-wrap th { background: #f1f5f9; color: #0d2b4e; font-weight: 700; white-space: nowrap; }
.pp-table-wrap tr:last-child td { border-bottom: 0; }
.pp-table-wrap tr:hover td { background: #f8fafc; }

/* 原站 tab 收进 details */
.pp-legacy-tabs { margin-top: 26px; }
.pp-legacy-tabs details { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; }
.pp-legacy-tabs summary { cursor: pointer; color: #64748b; font-size: 13px; }

/* 灯箱 */
.pp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 40px; }
.pp-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.pp-lb-close { position: absolute; top: 24px; right: 30px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .pp-hero { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .pp-body { grid-template-columns: 1fr; }
  .pp-sidebar { position: static; }
  .pp-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .pp-toc-title { width: 100%; }
  .pp-toc a { border: 0; padding: 4px 0; }
  .pp-side-card { display: none; }
}
@media (max-width: 767px) {
  .pp-page { padding: 0 12px 40px; }
  .pp-hero { padding: 16px; border-radius: 10px; }
  .pp-info h1 { font-size: 22px; }
  .pp-main-img { aspect-ratio: 1; padding: 12px; }
  .pp-thumb { width: 58px; height: 58px; }
  .pp-section { padding: 18px 16px; }
  .pp-section h2 { font-size: 17px; word-break: break-word; }
  .pp-trust span { font-size: 11px; }
  .pp-info h1 { word-break: break-word; overflow-wrap: break-word; }
  .pp-crumb { flex-wrap: wrap; word-break: break-all; }
  .pp-table-wrap table { min-width: 0; font-size: 12px; }
  .pp-table-wrap th { white-space: normal; }
  .pp-table-wrap th, .pp-table-wrap td { padding: 8px 10px; }
  .pp-fact { flex-wrap: wrap; }
}
