/* ============================================================
   富文本内容排版（案例详情 case-detail.html / 招聘 connect.html 共用）
   与后端 HtmlSanitizer 白名单对应：段落/标题/列表/引用/代码/表格/链接
   ============================================================ */
.rich-content {
    font-size: 16px;
    line-height: 2;
    color: #404040;
    text-align: justify;
    word-break: break-word;
}

.rich-content p {
    margin: 0 0 18px;
}

.rich-content strong {
    color: #1f3b73;
    font-weight: 700;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin: 20px 0 10px;
    font-weight: 600;
    color: #1f3b73;
    line-height: 1.4;
}

.rich-content h1 { font-size: 24px; }
.rich-content h2 { font-size: 21px; }
.rich-content h3 { font-size: 18px; }
.rich-content h4 { font-size: 16px; }

.rich-content ul,
.rich-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.rich-content li {
    margin-bottom: 6px;
}

.rich-content blockquote {
    margin: 0 0 14px;
    padding: 10px 16px;
    border-left: 4px solid #2d5aa0;
    background: #f5f8fd;
    color: #555;
    border-radius: 0 6px 6px 0;
}

.rich-content pre {
    margin: 0 0 14px;
    padding: 14px 16px;
    background: #f6f8fa;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.rich-content code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    background: #f0f2f5;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
}

.rich-content pre code {
    background: transparent;
    padding: 0;
}

.rich-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: 14px;
}

.rich-content th,
.rich-content td {
    border: 1px solid #e0e4ea;
    padding: 8px 12px;
    text-align: left;
}

.rich-content th {
    background: #f0f4fa;
    font-weight: 600;
    color: #1f3b73;
}

.rich-content a {
    color: #2d5aa0;
    text-decoration: underline;
}

/* 预留：本期编辑器不插图（后端白名单已移除 img），此样式保留为死代码 */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
/* 移动端适配：小屏下调回更紧凑的字号与行距 */
@media (max-width: 768px) {
    .rich-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .rich-content p {
        margin-bottom: 16px;
    }
}
