/* ============================================================
   天罡官网 · 产品详情页视觉规范  product-detail.css
   ------------------------------------------------------------
   作用域：body.tg-pdp（仅产品详情页，不影响文章/栏目/首页）
   设计目标：统一排版节奏、重构表格语义、收敛主图尺寸
   说明：正文内容由数据库按内联样式输出，本文件用 !important
         做视觉归一，不修改任何文字内容。
   ============================================================ */

/* ---------- 0. 基础：字体渲染与页面留白 ---------- */
body.tg-pdp {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 顶部与面包屑重复的装饰横幅（背景图 + 返回链接）隐藏，让首屏直接进入产品 */
body.tg-pdp .col-md-9 > a > section.g-py-55.g-hidden-md-down {
  display: none !important;
}

/* 主标题：与正文拉开层次 */
body.tg-pdp .g-pt-20 > div[align="left"] h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: #14232e;
  letter-spacing: .01em;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 2px solid #eef4f6;
  position: relative;
}
body.tg-pdp .g-pt-20 > div[align="left"] h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 76px;
  height: 2px;
  background: #00909c;
}

body.tg-pdp #MyContent {
  word-wrap: break-word;
  font-size: 15px;
  line-height: 1.9;
  color: #33424e;
  letter-spacing: .012em;
}

/* ---------- 1. 正文段落 ---------- */
body.tg-pdp #MyContent p {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #33424e;
  margin: 0 0 16px !important;
}

/* 表格内的段落（多为历史编辑残留的 9pt 内联字号）单独收敛 */
body.tg-pdp #MyContent table p {
  font-size: 14px !important;
  line-height: 1.75 !important;
  margin: 0 0 6px !important;
}
body.tg-pdp #MyContent table p:last-child {
  margin-bottom: 0 !important;
}

/* 免责声明 / 说明性小字：识别为带 13px 或 26px 上边距的段落 */
body.tg-pdp #MyContent > p[style*="font-size:13px"],
body.tg-pdp #MyContent > p[style*="font-size: 13px"],
body.tg-pdp #MyContent > p[style*="margin-top:26px"],
body.tg-pdp #MyContent > p[style*="margin-top: 26px"] {
  margin: 30px 0 0 !important;
  padding-top: 16px !important;
  border-top: 1px dashed #e2ebf0 !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  color: #8a949c !important;
}

/* 正文内的强调 */
body.tg-pdp #MyContent strong,
body.tg-pdp #MyContent b {
  font-weight: 700;
  color: #14232e;
}

/* 链接 */
body.tg-pdp #MyContent a {
  color: #0a7ea4;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 126, 164, .28);
  transition: border-color .15s, color .15s;
}
body.tg-pdp #MyContent a:hover {
  color: #00909c;
  border-bottom-color: #00909c;
}

/* ---------- 2. 章节标题 H2 ---------- */
body.tg-pdp #MyContent h2 {
  position: relative;
  font-size: 21px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #14232e !important;
  letter-spacing: .01em;
  margin: 40px 0 16px !important;
  padding: 0 0 0 15px !important;
  border: 0 !important;
  border-left: 0 !important;
  background: none !important;
}
body.tg-pdp #MyContent h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .24em;
  bottom: .24em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00909c 0%, #0a7ea4 100%);
}
body.tg-pdp #MyContent > h2:first-child {
  margin-top: 6px !important;
}

/* ---------- 3. FAQ 问答 H3 ---------- */
body.tg-pdp #MyContent h3 {
  position: relative;
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  color: #0a7ea4 !important;
  margin: 26px 0 9px !important;
  padding: 0 0 0 31px !important;
  border: 0 !important;
}
body.tg-pdp #MyContent h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: .18em;
  width: 21px;
  height: 21px;
  line-height: 21px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #00909c 0%, #0a7ea4 100%);
  border-radius: 50%;
  -webkit-font-smoothing: antialiased;
}
/* 答案与问题文字左对齐，形成清晰的一组 */
body.tg-pdp #MyContent h3 + p {
  padding-left: 31px;
  color: #4a5a66;
}

/* ---------- 4. 数据表格 ---------- */
/* 生成器会给每个 table 套 <div class="table-responsive">，间距与拼合都在包装层上控制 */
body.tg-pdp #MyContent .table-responsive {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
}

body.tg-pdp #MyContent table,
body.tg-pdp #MyContent table.table-bordered {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2ebf0 !important;
  border-radius: 9px !important;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 42, 56, .045);
  table-layout: auto;
}

body.tg-pdp #MyContent table td,
body.tg-pdp #MyContent table th {
  border: 0 !important;
  border-bottom: 1px solid #edf2f5 !important;
  padding: 11px 16px !important;
  background: #fff;
  color: #33424e;
  font-weight: 400;
  font-size: 14px !important;
  line-height: 1.75 !important;
  text-align: left !important;
  vertical-align: top;
  word-break: break-word;
}

/* 首列 = 标签列：浅底、中等字重、稍窄 */
body.tg-pdp #MyContent table th:first-child,
body.tg-pdp #MyContent table td:first-child {
  background: #f5f9fa !important;
  color: #54656f !important;
  font-weight: 600 !important;
  width: 32%;
  min-width: 110px;
}
body.tg-pdp #MyContent table th:first-child {
  color: #445963 !important;
}
/* 三列及以上的表格：首列收窄，把宽度让给内容列 */
body.tg-pdp #MyContent table:has(> * > tr > *:nth-child(3)) tr > *:first-child {
  width: 22% !important;
}
/* 非首列的 th：内容实际是"值"，按普通单元格呈现（避免蓝色块铺排） */
body.tg-pdp #MyContent table th:not(:first-child) {
  background: #fff !important;
  color: #33424e !important;
  font-weight: 400 !important;
}

/* 真正的表头（thead 内）：浅品牌色底 + 左对齐 */
body.tg-pdp #MyContent table thead th,
body.tg-pdp #MyContent table thead td {
  background: #eaf4f6 !important;
  color: #14232e !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .02em;
  border-bottom: 1px solid #d8e8ec !important;
}
body.tg-pdp #MyContent table thead th:first-child {
  background: #eaf4f6 !important;
  color: #14232e !important;
  font-weight: 700 !important;
}

/* 最后一行不要多余的分隔线 */
body.tg-pdp #MyContent table tr:last-child > td,
body.tg-pdp #MyContent table tr:last-child > th {
  border-bottom: 0 !important;
}

/* 相邻表格（同一信息块被拆成多表）：拼成一个连续卡片 */
body.tg-pdp #MyContent .table-responsive:has(+ .table-responsive) {
  margin-bottom: 0 !important;
}
body.tg-pdp #MyContent .table-responsive + .table-responsive {
  margin-top: 0 !important;
}
/* 组内上方还有表格的：本表顶部不收角、去掉重复边框 */
body.tg-pdp #MyContent .table-responsive + .table-responsive > table {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: 0 !important;
  box-shadow: none;
}
/* 组内下方还有表格的：本表底部不收角 */
body.tg-pdp #MyContent .table-responsive:has(+ .table-responsive) > table {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* 大屏不裁切阴影与圆角；窄屏保留横向滚动 */
@media (min-width: 992px) {
  body.tg-pdp #MyContent .table-responsive {
    overflow: visible !important;
  }
}

/* 表格内图片（化学结构式、产品实物小图）不参与卡片阴影 */
body.tg-pdp #MyContent table img {
  max-width: 100%;
  max-height: 260px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border: 0 !important;
  box-shadow: none;
}

/* ---------- 5. 顶部摘要框（每页首块） ---------- */
body.tg-pdp #MyContent div[style*="f0f5ff"],
body.tg-pdp #MyContent > div[style*="f0f5ff"] {
  position: relative;
  background: linear-gradient(135deg, #f8fcfd 0%, #edf6f8 100%) !important;
  border: 1px solid #dcebee !important;
  border-left: 4px solid #00909c !important;
  border-radius: 9px !important;
  padding: 20px 24px !important;
  margin: 0 0 26px !important;
  box-shadow: 0 1px 3px rgba(16, 42, 56, .05);
}
body.tg-pdp #MyContent div[style*="f0f5ff"] > p:first-child {
  font-size: 20px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #0d3d4a !important;
  letter-spacing: .01em;
  margin: 0 0 7px !important;
}
body.tg-pdp #MyContent div[style*="f0f5ff"] > p:last-child {
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  color: #4a5a66 !important;
  margin: 0 !important;
}
body.tg-pdp #MyContent div[style*="f0f5ff"] > p + p {
  margin-top: 6px !important;
}

/* ---------- 5b. 特性要点卡片（① ② ③ 式，浅灰底圆角块） ---------- */
body.tg-pdp #MyContent div[style*="background:#fafafa"] {
  background: #fff !important;
  border: 1px solid #e8eff3 !important;
  border-radius: 9px !important;
  padding: 17px 20px !important;
  height: 100% !important;
  box-shadow: 0 1px 2px rgba(16, 42, 56, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.tg-pdp #MyContent div[style*="background:#fafafa"]:hover {
  border-color: #cfe4ea !important;
  box-shadow: 0 3px 10px rgba(16, 42, 56, .07);
}
body.tg-pdp #MyContent div[style*="background:#fafafa"] > strong:first-child,
body.tg-pdp #MyContent div[style*="background:#fafafa"] > b:first-child {
  display: block;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #0d3d4a !important;
  margin: 0 0 6px !important;
}
/* 标题后紧跟的 <br> 会多出一行空白，去掉 */
body.tg-pdp #MyContent div[style*="background:#fafafa"] > strong:first-child + br,
body.tg-pdp #MyContent div[style*="background:#fafafa"] > b:first-child + br {
  display: none !important;
}
body.tg-pdp #MyContent > div[style*="margin-bottom:14px"] {
  margin-bottom: 14px !important;
}
body.tg-pdp #MyContent > div[style*="margin-bottom:14px"]:last-child {
  margin-bottom: 0 !important;
}

/* ---------- 5c. Word 粘贴残留清理 ---------- */
/* span 上写死的 9pt / 12px / Arial：统一回到正文级，仅保留颜色等表现性声明 */
body.tg-pdp #MyContent span[style] {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}
body.tg-pdp #MyContent table[style] {
  width: 100% !important;
}
body.tg-pdp #MyContent table td[style],
body.tg-pdp #MyContent table th[style] {
  height: auto !important;
}

/* ---------- 5d. 列表 ---------- */
body.tg-pdp #MyContent ul,
body.tg-pdp #MyContent ol {
  margin: 0 0 18px !important;
  padding-left: 4px !important;
  list-style: none !important;
}
body.tg-pdp #MyContent ul > li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 9px !important;
  line-height: 1.85 !important;
  font-size: 15px !important;
  color: #33424e;
}
body.tg-pdp #MyContent ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00909c;
}
body.tg-pdp #MyContent ul > li:last-child {
  margin-bottom: 0 !important;
}
body.tg-pdp #MyContent ol {
  counter-reset: pdp-ol;
}
body.tg-pdp #MyContent ol > li {
  position: relative;
  counter-increment: pdp-ol;
  padding-left: 26px;
  margin: 0 0 10px !important;
  line-height: 1.85 !important;
  font-size: 15px !important;
}
body.tg-pdp #MyContent ol > li::before {
  content: counter(pdp-ol);
  position: absolute;
  left: 0;
  top: .34em;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #0a7ea4;
  background: #eaf4f6;
  border-radius: 50%;
}

/* ---------- 5e. 正文中的并排图文（flex 组） ---------- */
body.tg-pdp #MyContent div[style*="display:flex"],
body.tg-pdp #MyContent div[style*="display: flex"] {
  align-items: flex-start !important;
  gap: 18px !important;
  margin: 0 0 24px !important;
}
body.tg-pdp #MyContent div[style*="display:flex"] > figure,
body.tg-pdp #MyContent div[style*="display: flex"] > figure {
  flex: 1 1 280px !important;
  min-width: 0;
  margin: 0 !important;
}
body.tg-pdp #MyContent div[style*="display:flex"] > figure > img,
body.tg-pdp #MyContent div[style*="display: flex"] > figure > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px !important;
  border: 1px solid #e2ebf0 !important;
  background: #f7fafb;
}
body.tg-pdp #MyContent div[style*="display:flex"] > figure > figcaption,
body.tg-pdp #MyContent div[style*="display: flex"] > figure > figcaption {
  margin-top: 9px !important;
  font-size: 12.5px !important;
  line-height: 1.72 !important;
  color: #6b7c88 !important;
}

/* ---------- 5f. 栅格行（① ② ③ ④ 特性卡片常用 .row / .col-md-6） ---------- */
/* Bootstrap 的 .row 带 -15px 左右负边距，正文容器无对应内边距时会溢出 */
body.tg-pdp #MyContent .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.tg-pdp #MyContent .row > [class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
body.tg-pdp #MyContent .row > [class*="col-"]:first-child {
  padding-left: 0 !important;
}
body.tg-pdp #MyContent .row > [class*="col-"]:last-child {
  padding-right: 0 !important;
}
@media (max-width: 767px) {
  body.tg-pdp #MyContent .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ---------- 6. 产品主图 ---------- */
body.tg-pdp #MyContent figure.tg-prod-main-image {
  margin: 0 0 26px !important;
  padding: 20px !important;
  background: #fbfdfe !important;
  border: 1px solid #edf2f5 !important;
  border-radius: 10px !important;
  text-align: center !important;
  box-shadow: 0 1px 3px rgba(16, 42, 56, .04);
}
body.tg-pdp #MyContent figure.tg-prod-main-image img {
  max-width: 100% !important;
  max-height: 430px !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}
body.tg-pdp #MyContent figure.tg-prod-main-image figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: #8a949c;
  line-height: 1.7;
}

/* 正文里未包裹在 figure 中的图片 */
body.tg-pdp #MyContent img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
}

/* ---------- 7. 上下篇导航 ---------- */
body.tg-pdp .g-pt-20 > ul.list-inline {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  margin: 34px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid #edf2f5;
  list-style: none;
}
body.tg-pdp .g-pt-20 > ul.list-inline > li {
  flex: 1 1 0;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px;
  line-height: 1.6;
}
body.tg-pdp .g-pt-20 > ul.list-inline > li > a {
  display: block;
  padding: 12px 16px;
  background: #f8fbfc;
  border: 1px solid #e8eff3;
  border-radius: 8px;
  color: #0a7ea4;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
body.tg-pdp .g-pt-20 > ul.list-inline > li > a:hover {
  background: #eef8fa;
  border-color: #bfdee6;
  color: #00909c;
}
body.tg-pdp .g-pt-20 > ul.list-inline > li:last-child > a {
  text-align: right;
}
/* 方向提示：让用户知道这是同族群的前后导航 */
body.tg-pdp .g-pt-20 > ul.list-inline > li > a::before {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  color: #9aa8b2;
  margin-bottom: 3px;
}
html[lang="zh-cn"] body.tg-pdp .g-pt-20 > ul.list-inline > li:first-child > a::before {
  content: "← 上一款";
}
html[lang="zh-cn"] body.tg-pdp .g-pt-20 > ul.list-inline > li:last-child > a::before {
  content: "下一款 →";
}
html[lang^="en"] body.tg-pdp .g-pt-20 > ul.list-inline > li:first-child > a::before {
  content: "← Previous";
}
html[lang^="en"] body.tg-pdp .g-pt-20 > ul.list-inline > li:last-child > a::before {
  content: "Next →";
}
/* 没有上一个/下一个时的占位文案弱化 */
body.tg-pdp .g-pt-20 > ul.list-inline > li:not(:has(> a)) {
  display: flex;
  align-items: center;
  color: #c2ccd3;
  font-size: 12.5px;
  padding: 12px 16px !important;
}

/* ---------- 7b. 相关产品 ---------- */
body.tg-pdp .g-pt-20 > div[style*="margin-top:32px"] {
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid #edf2f5 !important;
}
body.tg-pdp .g-pt-20 > div[style*="margin-top:32px"] > h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #14232e !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}
body.tg-pdp .g-pt-20 > div[style*="margin-top:32px"] a {
  display: inline-block !important;
  padding: 9px 18px !important;
  background: #fff !important;
  border: 1px solid #e2ebf0 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #0a7ea4 !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.tg-pdp .g-pt-20 > div[style*="margin-top:32px"] a:hover {
  background: #f3fafb !important;
  border-color: #bfdee6 !important;
  color: #00909c !important;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 991px) {
  body.tg-pdp .g-pt-20 > div[align="left"] h1 {
    font-size: 25px;
  }
  body.tg-pdp #MyContent h2 {
    font-size: 19px !important;
    margin-top: 32px !important;
  }
}

/* 窄屏两列表格：标签在上、值在下（避免标签列挤压折行） */
@media (max-width: 767px) {
  body.tg-pdp #MyContent {
    font-size: 14.5px;
  }
  body.tg-pdp #MyContent p {
    font-size: 14.5px !important;
    line-height: 1.85 !important;
  }
  body.tg-pdp #MyContent h2 {
    font-size: 18px;
    margin: 28px 0 12px;
    padding-left: 12px;
  }
  body.tg-pdp #MyContent h2::before {
    width: 3px;
  }
  body.tg-pdp #MyContent h3 {
    font-size: 15px;
    padding-left: 27px;
    margin: 22px 0 8px;
  }
  body.tg-pdp #MyContent h3::before {
    width: 19px;
    height: 19px;
    line-height: 19px;
    font-size: 11.5px;
  }
  body.tg-pdp #MyContent h3 + p {
    padding-left: 27px;
  }
  body.tg-pdp #MyContent table td,
  body.tg-pdp #MyContent table th {
    padding: 9px 11px !important;
    font-size: 13px;
    line-height: 1.7;
  }
  body.tg-pdp #MyContent table th:first-child,
  body.tg-pdp #MyContent table td:first-child {
    width: 38%;
    min-width: 84px;
  }
  body.tg-pdp #MyContent > div[style*="f0f5ff"] {
    padding: 16px 18px !important;
  }
  body.tg-pdp #MyContent > div[style*="f0f5ff"] p:first-child {
    font-size: 17px !important;
  }
  body.tg-pdp #MyContent figure.tg-prod-main-image {
    padding: 12px !important;
  }
  body.tg-pdp #MyContent figure.tg-prod-main-image img {
    max-height: 320px !important;
  }
  body.tg-pdp .g-pt-20 > ul.list-inline {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 575px) {
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) {
    display: block !important;
    border-radius: 9px !important;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody {
    display: block !important;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr {
    display: block !important;
    padding: 11px 0 12px;
    border-bottom: 1px solid #edf2f5 !important;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr > * {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr > *:first-child {
    padding: 0 16px 3px !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #7b8b95 !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr > *:not(:first-child) {
    padding: 0 16px !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
    color: #1f2d3d !important;
  }
  body.tg-pdp #MyContent table:not(:has(tr > *:nth-child(3))) > tbody > tr > *:first-child:only-child {
    padding: 0 16px !important;
    color: #1f2d3d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
  }
}



/* ---------- 9. 打印 ---------- */
@media print {
  body.tg-pdp #MyContent h2::before,
  body.tg-pdp #MyContent h3::before {
    display: none;
  }
  body.tg-pdp #MyContent table {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
