/* 新闻正文共享样式：前台正文和后台编辑器共同使用 */
.news-rich-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.news-rich-content p {
    margin: 0 0 1em;
}

.news-rich-content h1,
.news-rich-content h2,
.news-rich-content h3,
.news-rich-content h4,
.news-rich-content h5,
.news-rich-content h6 {
    line-height: 1.35;
    margin: 1.2em 0 0.7em;
    font-weight: 700;
}

.news-rich-content h1 {
    font-size: 1.5em;
}

.news-rich-content h2 {
    font-size: 1.35em;
}

.news-rich-content h3 {
    font-size: 1.18em;
}

.news-rich-content h4,
.news-rich-content h5,
.news-rich-content h6 {
    font-size: 1em;
}

.news-rich-content ul,
.news-rich-content ol {
    margin: 0 0 1em 1.5em;
    padding-left: 1.2em;
}

.news-rich-content li {
    margin: 0.35em 0;
}

.news-rich-content blockquote {
    position: relative;
    margin: 10px 0;
    padding-left: 15px;
    border-left: 8px solid #007bff;
    font-style: italic;
}

.news-rich-content img,
.news-rich-content video {
    max-width: 100%;
    height: auto;
}

.news-rich-content table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}

.news-rich-content th,
.news-rich-content td {
    border: 1px solid rgba(128, 128, 128, 0.45);
    padding: 0.55em 0.75em;
    vertical-align: top;
}

.news-rich-content th {
    font-weight: 700;
    background: rgba(128, 128, 128, 0.16);
}

.news-rich-content hr {
    border: none;
    height: 2px;
    background-color: rgba(128, 128, 128, 0.7);
    margin: 20px 0;
}

.news-rich-content pre {
    overflow-x: auto;
    padding: 1em;
    background: rgba(0, 0, 0, 0.08);
}
