/* 正文富文本排版（2026-11-14）— 前台详情页 + 后台编辑器共用，作用域限定 .rich-body */

.rich-body { line-height: 1.9; word-wrap: break-word; }
.rich-body p { margin: 0 0 1rem; }
.rich-body h1, .rich-body h2, .rich-body h3,
.rich-body h4, .rich-body h5, .rich-body h6 {
  margin: 1.6rem 0 .8rem;
  font-weight: 700;
  line-height: 1.4;
}
.rich-body h1 { font-size: 1.7rem; }
.rich-body h2 { font-size: 1.45rem; }
.rich-body h3 { font-size: 1.25rem; }
.rich-body h4, .rich-body h5, .rich-body h6 { font-size: 1.1rem; }
.rich-body ul, .rich-body ol { padding-left: 1.6rem; margin: 0 0 1rem; }
.rich-body li { margin-bottom: .35rem; }
.rich-body blockquote {
  margin: 1rem 0;
  padding: .6rem 1rem;
  border-left: 4px solid #0d6efd;
  background: #f8f9fa;
  color: #495057;
}
.rich-body blockquote p:last-child { margin-bottom: 0; }
.rich-body hr { margin: 1.6rem 0; }
.rich-body a { color: #0d6efd; text-decoration: underline; }
.rich-body img { max-width: 100%; height: auto; border-radius: .4rem; margin: 1rem 0; }
.rich-body pre {
  background: #f6f8fa;
  padding: .8rem 1rem;
  border-radius: .4rem;
  overflow-x: auto;
  font-size: .9rem;
}
.rich-body code { background: #f6f8fa; padding: .1rem .3rem; border-radius: .25rem; }
.rich-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-body th, .rich-body td { border: 1px solid #dee2e6; padding: .5rem .7rem; }
.rich-body th { background: #f8f9fa; }

/* 后台编辑器容器：只在文章/推文表单出现 */
.rich-editor-wrap { border: 1px solid #dee2e6; border-radius: .4rem; overflow: hidden; }
.rich-editor-toolbar { border-bottom: 1px solid #dee2e6; background: #f8f9fa; }
.rich-editor-body { min-height: 340px; }
.rich-editor-body .w-e-text-container { min-height: 320px; }
.rich-editor-hint { font-size: .82rem; color: #6c757d; }
