/**
 * 代码块样式（后台编辑器与前台文章页共用，与 Prism 默认浅色主题一致）
 */
pre[class*="language-"],
pre.language-none,
.article-detail-content pre[class*="language-"],
.article-detail-content pre {
    margin: 12px 0;
    padding: 12px 16px !important;
    border-radius: 6px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.5;
    background: #f5f2f0 !important;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

/* TinyMCE 代码块常在 pre 内插入 br，会在上下形成灰色空白条 */
pre[class*="language-"] br,
.article-detail-content pre br {
    display: none !important;
    height: 0;
    line-height: 0;
    margin: 0;
    padding: 0;
}

pre[class*="language-"] code,
.article-detail-content pre code {
    display: block;
    font-family: Consolas, Monaco, "Courier New", monospace;
    white-space: pre;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    text-shadow: none;
    box-shadow: none;
}

:not(pre) > code[class*="language-"],
.article-detail-content :not(pre) > code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.9em;
}

.article-detail-content pre[class*="language-"] {
    max-height: 480px;
}
