/* ============================================================
   文章正文通用排版（跨模板族）
   用法：给详情模板中包裹 {content:content} 的那个 div 追加 class="art-body"
   原则：只调字号、行距、间距、表格、链接，不改宽度与布局，避免破版
   日期：2026-11-15
   ============================================================ */

/* ---------- 正文基础 ---------- */
.art-body {
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #2f3337 !important;
  letter-spacing: .2px;
  word-break: break-word;
}
.art-body p {
  margin: 0 0 1.05em !important;
  text-indent: 0 !important;
  text-align: left;
  line-height: 1.85 !important;
}
.art-body p:last-child { margin-bottom: 0 !important; }
.art-body p:empty { display: none; }
.art-body div { line-height: 1.85; }

/* ---------- 小标题层级 ---------- */
.art-body h2 {
  font-size: 21px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #1a1d21 !important;
  margin: 2em 0 .75em !important;
  padding-left: 12px;
  border-left: 4px solid #178ee8;
  background: none;
}
.art-body h3 {
  font-size: 17.5px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: #24282c !important;
  margin: 1.6em 0 .6em !important;
  background: none;
}
.art-body h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #24282c !important;
  margin: 1.4em 0 .5em !important;
}
.art-body h2:first-child,
.art-body h3:first-child { margin-top: 0 !important; }

/* ---------- 表格 ---------- */
.art-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e4e7eb !important;
  margin: 1.4em 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: 0;
}
.art-body th {
  background: #f5f7fa !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
  text-align: left;
  padding: 11px 13px !important;
  border: 1px solid #e4e7eb !important;
}
.art-body td {
  padding: 11px 13px !important;
  border: 1px solid #eaedf1 !important;
  color: #3a4046 !important;
  vertical-align: top;
}
.art-body tr:nth-child(even) td { background: #fafbfc; }

/* ---------- 列表 ---------- */
.art-body ul,
.art-body ol {
  margin: 1em 0 1.2em !important;
  padding-left: 1.6em !important;
}
.art-body ul li { list-style-type: disc !important; }
.art-body ol li { list-style-type: decimal !important; }
.art-body li {
  margin: .45em 0 !important;
  line-height: 1.8 !important;
}

/* ---------- 链接 ---------- */
.art-body a {
  color: #178ee8 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 142, 232, .35);
}
.art-body a:hover {
  color: #0d6fbb !important;
  border-bottom-color: #0d6fbb;
}

/* ---------- 强调 / 引用 / 分隔 ---------- */
.art-body strong,
.art-body b { font-weight: 700; color: #1a1d21; }
.art-body blockquote {
  margin: 1.4em 0 !important;
  padding: 14px 18px !important;
  background: #f7f9fb !important;
  border-left: 3px solid #cfd6dd !important;
  color: #4a5056 !important;
  font-size: 16px !important;
}
.art-body blockquote p:last-child { margin-bottom: 0 !important; }
.art-body hr {
  border: 0 !important;
  border-top: 1px solid #eceef1 !important;
  margin: 2em 0 !important;
}

/* ---------- 图片 ---------- */
.art-body img {
  max-width: 100% !important;
  height: auto;
  margin: 1.5em auto;
  border-radius: 6px;
  display: block;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 1199px) {
  .art-body {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
  .art-body p { margin: 0 0 .95em !important; line-height: 1.8 !important; }
  .art-body h2 {
    font-size: 19px !important;
    margin: 1.7em 0 .65em !important;
    padding-left: 10px;
    border-left-width: 3px;
  }
  .art-body h3 { font-size: 17px !important; margin: 1.4em 0 .55em !important; }
  .art-body table { font-size: 14px !important; margin: 1.2em 0 !important; }
  .art-body th,
  .art-body td { padding: 8px 10px !important; }
}
