/* 富文本内容排版（后台 Quill 编辑内容的前台展示） */
.rich-text {
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: break-word;
}
.rich-text p { margin-bottom: 1.1rem; }
.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1.2rem auto;
}
.rich-text h1, .rich-text h2, .rich-text h3,
.rich-text h4, .rich-text h5, .rich-text h6 {
    color: var(--secondary-color);
    margin: 1.4rem 0 0.8rem;
    line-height: 1.4;
}
.rich-text h1 { font-size: 1.6rem; }
.rich-text h2 { font-size: 1.45rem; }
.rich-text h3 { font-size: 1.3rem; }
.rich-text h4 { font-size: 1.15rem; }
.rich-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    word-break: break-all;
}
.rich-text blockquote {
    border-left: 3px solid var(--secondary-color);
    padding: 0.5rem 1.1rem;
    margin: 1.2rem 0;
    background-color: rgba(212, 175, 55, 0.08);
    color: inherit;
}
.rich-text ul, .rich-text ol {
    padding-left: 1.6rem;
    margin: 0 0 1.1rem;
}
.rich-text li { margin-bottom: 0.45rem; }
.rich-text hr {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: 1.6rem 0;
    opacity: 0.6;
}
.rich-text pre.ql-syntax, .rich-text pre {
    background-color: rgba(0, 0, 0, 0.35);
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.1rem 0;
}
.rich-text code {
    background-color: rgba(212, 175, 55, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.92em;
}
.rich-text pre code { background: none; padding: 0; }
