/* ============================================================
   2026-11-21 产品详情「正文 / 规格参数」排版规范 v1
   ------------------------------------------------------------
   作用域：仅产品详情页富文本容器（.rich-content / .rich_text）。
   不碰导航、Banner、轮播、卡片、按钮、CTA —— 那些地方保留灵活性与交互。
   规范对象：产品简介、规格参数、表格、图片、图注、正文行距段距。
   参考宜器服务网的克制风格，字号阶梯/主色沿用本站 Title Spec。
   ============================================================ */
:root {
  --pm-doc-font: var(--pm-font, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif);
  --pm-doc-ink: #1f2328;
  --pm-doc-text: #3f4854;
  --pm-doc-muted: #6b7280;
  --pm-doc-line: #e5e8ed;
  --pm-doc-tint: #f6f8fa;
}
.rich-content, .rich_text {
  font-family: var(--pm-doc-font) !important;
  color: var(--pm-doc-text);
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rich-content *, .rich_text *:not(code):not(pre):not(svg):not(svg *) {
  font-family: var(--pm-doc-font) !important;
}
.rich-content p, .rich_text p {
  margin: 0 0 14px;
  line-height: 1.85;
}
.rich-content p:last-child, .rich_text p:last-child { margin-bottom: 0; }
/* 同一篇产品正文内标题与正文必须同字体栈，盖过标题规范与旧版式补丁的更高优先级 */
html[lang] :is(.rich-content, .rich_text) :is(h2, h3, h4) {
  font-family: var(--pm-doc-font) !important;
}
.rich-content #page_header, .rich-content #page_header *,
.rich-content #page_header h2,
.rich-content td, .rich-content th, .spec-table td, .spec-table th {
  font-family: var(--pm-doc-font) !important;
}
.rich-content h2, .rich_text h2,
.rich-content h3, .rich_text h3,
.rich-content h4, .rich_text h4 {
  color: var(--pm-doc-ink);
  margin: 26px 0 12px;
  line-height: 1.45;
}
.rich-content img, .rich_text img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 18px auto;
}
/* 图注：历史富文本里 &nbsp; 缩进的段落 */
.rich-content .figcap, .rich_text .figcap,
.rich-content .figcap span, .rich_text .figcap span {
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--pm-doc-muted) !important;
  margin: -6px 0 18px !important;
}
/* 规格参数表：标签列浅底、值左对齐、长内容换行、隔行浅灰 */
.rich-content table, .rich_text table,
.rich-content .spec-table table, .rich_text .spec-table table,
.table.spec-table table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
  line-height: 1.6;
  font-size: 14px;
}
.rich-content th, .rich_text th,
.rich-content td, .rich_text td,
.rich-content .spec-table th, .rich_text .spec-table th,
.rich-content .spec-table td, .rich_text .spec-table td,
.table.spec-table th, .table.spec-table td {
  padding: 10px 12px;
  border: 1px solid var(--pm-doc-line);
  text-align: left;
  vertical-align: top;
  color: var(--pm-doc-text);
  word-break: break-word;
}
.rich-content th, .rich_text th,
.rich-content .spec-table th, .rich_text .spec-table th,
.table.spec-table th {
  background: var(--pm-doc-tint);
  color: var(--pm-doc-ink);
  font-weight: 600;
  white-space: nowrap;
}
.rich-content tbody tr:nth-child(even) td,
.rich_text tbody tr:nth-child(even) td,
.table.spec-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}
.rich-content ul, .rich_text ul,
.rich-content ol, .rich_text ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.rich-content li, .rich_text li { margin: 4px 0; }
@media (max-width: 760px) {
  .rich-content, .rich_text { font-size: 14px; line-height: 1.8; }
  .rich-content table, .rich_text table,
  .table.spec-table table { font-size: 13px; }
  .rich-content th, .rich_text th,
  .rich-content td, .rich_text td,
  .table.spec-table th, .table.spec-table td { padding: 8px 9px; }
  /* .com 产品详情头部原有固定宽弹性布局在窄屏溢出，只在本页收口 */
  .details .top .left,
  .details .top .left .prd {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  .details .top .left .prd .prd_intro,
  .details .top .left .prd .magnifier { width: 100% !important; box-sizing: border-box !important; }
}
