/* Markdown 样式 */
.markdown {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.25;
}

.markdown h1 { font-size: 2em; }
.markdown h2 { font-size: 1.5em; }
.markdown h3 { font-size: 1.25em; }
.markdown h4 { font-size: 1em; }

.markdown p {
    margin: 8px 0;
}

.markdown pre {
    background: var(--color-gray-100);
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

.markdown code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.markdown pre code {
    padding: 0;
    background: none;
}

.markdown ul,
.markdown ol {
    padding-left: 20px;
    margin: 8px 0;
}

.markdown li {
    margin: 4px 0;
}

.markdown table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.markdown th,
.markdown td {
    border: 1px solid var(--color-border-primary);
    padding: 8px;
    text-align: left;
}

.markdown th {
    background-color: var(--color-gray-100);
}

.markdown blockquote {
    margin: 8px 0;
    padding-left: 16px;
    border-left: 4px solid var(--color-border-primary);
    color: var(--color-text-secondary);
}

.markdown a {
    color: var(--color-info);
    text-decoration: none;
}

.markdown a:hover {
    text-decoration: underline;
}

.markdown img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
}

/* 代码高亮主题 */
.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em;
    color: var(--color-text-primary);
    background: var(--color-gray-100);
}

.hljs-comment,
.hljs-quote {
    color: #998;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
    color: #d73a49;
}

.hljs-string,
.hljs-doctag {
    color: #032f62;
}

.hljs-title,
.hljs-section,
.hljs-selector-id {
    color: #6f42c1;
}

.hljs-type,
.hljs-class .hljs-title {
    color: #458;
    font-weight: bold;
}

.hljs-number {
    color: #005cc5;
}

.hljs-regexp,
.hljs-template-variable {
    color: #009926;
}

.hljs-variable {
    color: #008080;
}

.hljs-function {
    color: #6f42c1;
}

/* 暗色主题适配 */
.dark-theme .markdown {
    color: #e1e4e8;
}

.dark-theme .markdown pre,
.dark-theme .markdown code {
    background: #2d333b;
}

.dark-theme .markdown th {
    background-color: #2d333b;
}

.dark-theme .markdown blockquote {
    border-left-color: #444;
    color: var(--color-text-tertiary);
}

.dark-theme .markdown a {
    color: #58a6ff;
} 