/* ============================================================
   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; }
}

/* ============================================================
   2026-11-21 产品页头部微调：品牌栏显目度 + 产品标题字号
   ------------------------------------------------------------
   作用域：仅产品详情页（本文件只在产品 show.html 引入）。
   1) 品牌栏 .filter 参考站内 detail_title 的设计语言：左侧主色
      竖条 + 浅灰底 + 细边框，与下方白色内容区形成层次；logo、
      品牌名、产品分类、产品目录按钮建立清晰视觉层级。
   2) 产品名 h1 原 18px 被 Title Spec 的 T1=30px!important 覆盖，
      长型号爆成多行。收口为 20px（移动 18px），单一字体栈不变。
   不动导航 / Banner / 卡片 / 按钮交互，不改任何参数数据。
   ============================================================ */
html[lang] .content .filter {
  height: auto !important;
  min-height: 76px;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  /* 品牌栏宽度跟随页面版心(1200px)：与 #location/.details .w_1200 同宽居中，
     右边缘与下方左右板块总和齐平。页面本身宽度不变(1200)。
     max-width:100% 保证窄屏不溢出；≤1160 满宽(见下媒体查询)。 */
  width: 1200px !important;
  max-width: 100% !important;
  margin: 12px auto 0 !important;
  background: #fff !important;
  border: 1px solid #e3e7ec !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
}
@media (max-width: 1160px) {
  /* 窄档左栏已 100% 堆叠，品牌栏同步满宽，避免固定 936 在大屏留白 */
  html[lang] .content .filter {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* 左侧主色竖条：与 .detail_title::before 同款视觉锚点 */
html[lang] .content .filter::before {
  content: '';
  align-self: stretch;
  width: 4px;
  min-height: 40px;
  margin: 0 16px 0 0;
  border-radius: 2px;
  background: #821619;
  flex: 0 0 4px;
}
/* logo：白底承载，contain 不变形，避免透明 logo 融进灰底 */
html[lang] .content .filter img {
  width: 108px !important;
  height: 46px !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 4px;
  padding: 4px;
  box-sizing: border-box;
  margin-right: 16px !important;
}
/* 品牌名：层级只比 logo 低一档，颜色用标题主色 */
html[lang] .content .filter > span {
  font-size: 18px !important;
  color: #1f2328 !important;
  font-weight: 700 !important;
  margin-right: 36px !important;
  letter-spacing: 0 !important;
}
/* 产品分类：从裸文字改为站内一致的浅描边按钮，hover 给反馈 */
html[lang] .content .filter .category {
  margin-right: 28px !important;
  transition: color .18s ease, border-color .18s ease;
}
html[lang] .content .filter .category > p {
  font-size: 15px !important;
  color: #1f2328 !important;
  font-weight: 600 !important;
  padding: 7px 12px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
}
html[lang] .content .filter .category:hover > p {
  color: #821619 !important;
  border-color: #821619;
}
html[lang] .content .filter .category > p i { font-size: 18px !important; }
/* 产品目录按钮：推到卡片右端，左端留给 logo/品牌名/分类，视觉平衡 */
html[lang] .content .filter > a:last-child {
  height: 38px !important;
  margin-left: auto !important;
  border-radius: 6px !important;
  transition: filter .18s ease, box-shadow .18s ease;
}
html[lang] .content .filter > a:last-child:hover {
  filter: brightness(1.12);
}
html[lang] .content .filter > a:last-child:focus-visible {
  outline: 2px solid #821619;
  outline-offset: 2px;
}
/* 产品标题：收口字号，保留 Title Spec 的字体栈/颜色/字重 */
html[lang] .details .top .left .prd .prd_intro h1 {
  font-size: 20px !important;
  line-height: 1.45 !important;
  margin-bottom: 18px !important;
}

@media (max-width: 760px) {
  html[lang] .content .filter {
    min-height: 64px;
    padding: 10px 12px !important;
    margin: 10px 0 0 !important;
    gap: 0;
    flex-wrap: wrap;
  }
  html[lang] .content .filter::before {
    width: 3px;
    min-height: 34px;
    margin-right: 12px;
    flex-basis: 3px;
  }
  html[lang] .content .filter img {
    width: 92px !important;
    height: 40px !important;
    margin-right: 12px !important;
  }
  html[lang] .content .filter > span {
    font-size: 16px !important;
    margin-right: 20px !important;
  }
  html[lang] .content .filter .category { margin-right: 16px !important; }
  html[lang] .content .filter .category > p { padding: 6px 9px; font-size: 14px !important; }
  /* 移动端取消桌面端的靠右：右侧固定悬浮工具栏会盖住推到最右的按钮，改为自然排列 */
  html[lang] .content .filter > a:last-child { margin-left: 0 !important; }
  html[lang] .details .top .left .prd .prd_intro h1 {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }
}

/* WAP 主题结构不同（logo/品牌名在 a>div 内、无 .category、字号用 rem），
   共用本文件，单独补齐；只影响产品页。 */
html[lang] .content .filter a > div > span { color: #1f2328 !important; font-weight: 700 !important; }
html[lang] .content .details .prd_intro h1 {
  font-size: 18px !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
}

/* 2026-11-21 说明：曾试验"版心自适应上限1800"，用户已要求撤回——
   页面宽度保持原 1200 版心不变，仅品牌栏宽度跟随页面宽度(见上方 .filter 规则)。
   故此处不再覆盖 #location / .w_1200 / .left 的宽度，交由原主题 CSS 处理。 */
