/* Markdown 渲染样式 — 前台对话(.msg-bubble)和后台管理(.md-content)共用 */
.msg-bubble p, .md-content p { margin: 2px 0; line-height: 1.5; }
.msg-bubble table, .md-content table { border-collapse: collapse; margin: 4px 0; font-size: 13px; width: 100%; }
.msg-bubble th, .md-content th,
.msg-bubble td, .md-content td { border: 1px solid #d9d9d9; padding: 4px 8px; text-align: left; }
.msg-bubble th, .md-content th { background: #fafafa; font-weight: 600; }
.msg-bubble ul, .md-content ul,
.msg-bubble ol, .md-content ol { padding-left: 20px; margin: 2px 0; }
.msg-bubble li, .md-content li { margin: 0; }
.msg-bubble blockquote, .md-content blockquote { border-left: 3px solid #d9d9d9; margin: 4px 0; padding: 2px 10px; color: #666; background: #fafafa; border-radius: 0 4px 4px 0; }
.msg-bubble h1, .md-content h1,
.msg-bubble h2, .md-content h2,
.msg-bubble h3, .md-content h3,
.msg-bubble h4, .md-content h4 { margin: 6px 0 2px; font-weight: 600; }
.msg-bubble h1, .md-content h1 { font-size: 15px; }
.msg-bubble h2, .md-content h2 { font-size: 14px; }
.msg-bubble h3, .md-content h3,
.msg-bubble h4, .md-content h4 { font-size: 13px; }
.msg-bubble hr, .md-content hr { border: none; border-top: 1px solid #e8e8e8; margin: 6px 0; }
.msg-bubble a, .md-content a { color: #1677ff; text-decoration: underline; }
.msg-bubble a:hover, .md-content a:hover { color: #4096ff; }
.msg-bubble pre, .md-content pre { background: #1e1e1e; color: #d4d4d4; padding: 10px; border-radius: 6px; overflow-x: auto; margin: 4px 0; }
.msg-bubble pre code, .md-content pre code { background: none; padding: 0; color: inherit; font-size: 12px; }
.msg-bubble code, .md-content code { background: #f5f5f5; padding: 1px 4px; border-radius: 3px; font-size: 12px; }
