/* ==========================================================================
   content-pro.css — 正文内容排版统一层
   站点主色：#ff9600（导航/按钮/激活态），渐变起点 #ffd100
   作用范围：文章 / 产品 / 维修 / 案例详情页正文容器
   原则：只用站点既有色板与圆角、阴影规范，不引入新风格
   ========================================================================== */

.news-content,
.pd-content,
.repair-content,
.post {
  font-size: 16px;
  line-height: 1.95;
  color: #4a4a4a;
  letter-spacing: .2px;
  word-wrap: break-word;
  word-break: break-word;
}

/* ---------- 标题 ---------- */
.news-content h2,
.pd-content h2,
.repair-content h2,
.post h2 {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  color: #222;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #ff9600;
  border-radius: 1px;
}

.news-content h2:first-child,
.pd-content h2:first-child,
.repair-content h2:first-child,
.post h2:first-child { margin-top: 0; }

.news-content h3,
.pd-content h3,
.repair-content h3,
.post h3 {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: #262626;
  margin: 26px 0 10px;
  padding-left: 14px;
}

.news-content h3::before,
.pd-content h3::before,
.repair-content h3::before,
.post h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #ff9600;
}

.news-content h4,
.pd-content h4,
.repair-content h4,
.post h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 8px;
}

/* ---------- 段落 ---------- */
.news-content p,
.pd-content p,
.repair-content p,
.post p {
  margin: 0 0 18px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.news-content > p:first-of-type,
.pd-content > p:first-of-type,
.repair-content > p:first-of-type,
.post > p:first-of-type { color: #333; }

.news-content strong,
.pd-content strong,
.repair-content strong,
.post strong { color: #262626; font-weight: 600; }

/* ---------- 链接 ---------- */
.news-content a,
.pd-content a,
.repair-content a,
.post a {
  color: #d97706;
  text-decoration: none;
  border-bottom: 1px solid #ffd8a8;
  transition: color .2s, border-color .2s, background .2s;
}

.news-content a:hover,
.pd-content a:hover,
.repair-content a:hover,
.post a:hover {
  color: #ff9600;
  border-bottom-color: #ff9600;
  background: #fff8ef;
}

/* ---------- 列表 ---------- */
.news-content ul,
.pd-content ul,
.repair-content ul,
.post ul,
.news-content ol,
.pd-content ol,
.repair-content ol,
.post ol {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.news-content ul > li,
.pd-content ul > li,
.repair-content ul > li,
.post ul > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  line-height: 1.9;
}

.news-content ul > li::before,
.pd-content ul > li::before,
.repair-content ul > li::before,
.post ul > li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb84d;
}

.news-content ol,
.pd-content ol,
.repair-content ol,
.post ol {
  list-style: decimal;
  padding-left: 24px;
}

.news-content ol > li,
.pd-content ol > li,
.repair-content ol > li,
.post ol > li {
  margin-bottom: 9px;
  padding-left: 2px;
  line-height: 1.9;
}

.news-content ol > li::marker,
.pd-content ol > li::marker,
.repair-content ol > li::marker,
.post ol > li::marker { color: #ff9600; font-weight: 600; }

/* ---------- 表格 ---------- */
.news-content table,
.pd-content table,
.repair-content table,
.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  background: #fff;
}

.news-content th,
.pd-content th,
.repair-content th,
.post th {
  background: #fff8ef;
  color: #8a4b00;
  font-weight: 600;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid #f4e3cb;
  border-bottom: 2px solid #ffd8a8;
}

.news-content td,
.pd-content td,
.repair-content td,
.post td {
  padding: 11px 13px;
  border: 1px solid #f2ece4;
  color: #4a4a4a;
  vertical-align: top;
}

.news-content tbody tr:nth-child(even) td,
.pd-content tbody tr:nth-child(even) td,
.repair-content tbody tr:nth-child(even) td,
.post tbody tr:nth-child(even) td { background: #fdfaf5; }

/* ---------- 引用 / 图片 / 分隔线 ---------- */
.news-content blockquote,
.pd-content blockquote,
.repair-content blockquote,
.post blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: #fffaf2;
  border-left: 3px solid #ffc46b;
  border-radius: 0 8px 8px 0;
  color: #6b5a45;
  font-size: 15px;
}

.news-content blockquote p:last-child,
.pd-content blockquote p:last-child { margin-bottom: 0; }

.news-content img,
.pd-content img,
.repair-content img,
.post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 22px auto;
}

.news-content hr,
.pd-content hr,
.repair-content hr,
.post hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px dashed #e8e8e8;
  background: none;
}

/* ==========================================================================
   相关阅读（文章页自动注入区块）
   ========================================================================== */
.related-read {
  margin: 34px 0 0;
  padding: 22px 24px 20px;
  background: #fbfcfd;
  border: 1px solid #f0f2f5;
  border-radius: 12px;
}

.related-read .rr-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid #ff9600;
  line-height: 1.4;
}

.related-read ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-read li {
  position: relative;
  padding-left: 16px;
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-read li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .95em;
  width: 0;
  height: 0;
  border-left: 5px solid #ffb84d;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.related-read li a {
  color: #4a4a4a;
  text-decoration: none;
  border: 0;
  transition: color .2s;
}

.related-read li a:hover { color: #ff9600; }

.related-read .rr-links {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #e8e8e8;
  font-size: 13.5px;
  color: #8a8a8a;
  line-height: 1.9;
}

.related-read .rr-links a {
  color: #d97706;
  text-decoration: none;
  border: 0;
  margin-right: 12px;
}

.related-read .rr-links a:hover { color: #ff9600; }

/* ==========================================================================
   栏目介绍块（intro_*.htm 内的段落微调，颜色由模板内联样式控制）
   ========================================================================== */
.intro-wrap p { text-align: justify; }
.intro-wrap table { margin: 16px 0 20px !important; }
.intro-wrap ul { margin: 6px 0 16px; padding-left: 0; list-style: none; }
.intro-wrap ul > li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.intro-wrap ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb84d;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .news-content,
  .pd-content,
  .repair-content,
  .post { font-size: 15.5px; line-height: 1.9; }

  .news-content h2,
  .pd-content h2,
  .repair-content h2,
  .post h2 { font-size: 18px; margin: 28px 0 12px; }

  .news-content h3,
  .pd-content h3,
  .repair-content h3,
  .post h3 { font-size: 16px; }

  .news-content table,
  .pd-content table,
  .repair-content table,
  .post table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 20px;
  }

  .news-content th,
  .pd-content th,
  .repair-content th,
  .post th,
  .news-content td,
  .pd-content td,
  .repair-content td,
  .post td { padding: 8px 10px; font-size: 13px; white-space: nowrap; }

  .related-read { padding: 18px; }
  .related-read ul { grid-template-columns: 1fr; gap: 0; }
  .related-read li { white-space: normal; }
}
