/* 微信公众号正文 + 135 编辑器排版 兼容样式
 * 用于 news_detail.html 渲染富文本内容
 * 关键：保留 inline style + class，但补一套默认排版底色
 */

.wechat-article {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.85);
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wechat-article * {
  max-width: 100%;
  box-sizing: border-box;
}

.wechat-article p {
  margin: 0 0 1em;
  text-align: justify;
}

.wechat-article p:empty {
  min-height: 1em;
}

.wechat-article h1,
.wechat-article h2,
.wechat-article h3,
.wechat-article h4,
.wechat-article h5,
.wechat-article h6 {
  margin: 1.5em 0 0.8em;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
}

.wechat-article h1 { font-size: 28px; }
.wechat-article h2 { font-size: 24px; }
.wechat-article h3 { font-size: 20px; }
.wechat-article h4 { font-size: 18px; }
.wechat-article h5 { font-size: 16px; }
.wechat-article h6 { font-size: 14px; color: #595959; }

.wechat-article a {
  color: #287cfa;
  text-decoration: none;
  word-break: break-all;
}

.wechat-article a:hover { text-decoration: underline; }

.wechat-article img {
  display: block;
  margin: 0.6em auto;
  border-radius: 4px;
  height: auto !important;
  max-width: 100% !important;
}

.wechat-article video,
.wechat-article iframe {
  display: block;
  margin: 0.8em auto;
  max-width: 100%;
}

.wechat-article ul,
.wechat-article ol {
  margin: 0 0 1em;
  padding-left: 2em;
}

.wechat-article li {
  margin: 0.4em 0;
}

.wechat-article blockquote {
  margin: 1em 0;
  padding: 0.6em 1em;
  border-left: 4px solid #287cfa;
  background: #f6f8fb;
  color: #595959;
}

.wechat-article hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 2em 0;
}

.wechat-article table {
  width: 100% !important;
  margin: 1em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.wechat-article th,
.wechat-article td {
  border: 1px solid #e8e8e8;
  padding: 0.5em 0.8em;
  text-align: left;
}

.wechat-article th {
  background: #fafafa;
  font-weight: 600;
}

.wechat-article code {
  padding: 0.15em 0.4em;
  background: #f5f5f5;
  border-radius: 3px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.wechat-article pre {
  margin: 1em 0;
  padding: 1em;
  background: #1e2a4a;
  color: #f5f5f5;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.wechat-article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.wechat-article figure {
  margin: 1em 0;
}

.wechat-article figcaption {
  margin-top: 0.4em;
  font-size: 14px;
  color: #8c8c8c;
  text-align: center;
}

/* 135 编辑器常见 section 容器 */
.wechat-article section {
  max-width: 100%;
}

/* 公众号常见 strong / em 强调色 */
.wechat-article strong { font-weight: 700; }
.wechat-article em { font-style: italic; }

/* 移动端 */
@media (max-width: 767px) {
  .wechat-article { font-size: 16px; }
  .wechat-article h1 { font-size: 24px; }
  .wechat-article h2 { font-size: 20px; }
  .wechat-article h3 { font-size: 18px; }
}
