/* Markdown 渲染样式 - 支持 dark mode */
.post-content {
    font-size: 16px;
    color: var(--text-color, #333);
    line-height: 1.6;
    word-break: break-word;
    word-wrap: break-word;
}

.post-content p {
    font-size: 16px;
    margin: 0 0 16px;
    line-height: 1.8;
    color: var(--text-color, #333);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-color, #333);
}

.post-content h1 { font-size: 24px; }
.post-content h2 { font-size: 22px; border-bottom: 1px solid var(--border-color, #eee); padding-bottom: 8px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 18px; }
.post-content h5 { font-size: 16px; }
.post-content h6 { font-size: 16px; color: var(--text-secondary, #666); }

.post-content ul,
.post-content ol {
    margin: 8px 0;
    padding-left: 25px;
}

.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal; }

.post-content li {
    margin: 5px 0;
    line-height: 1.8;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-color, rgba(0,0,0,0.4));
    background: var(--bg-code, rgba(0,0,0,0.05));
    color: var(--text-secondary, #6a737d);
    padding: 10px 20px;
    margin: 20px 0;
}

.post-content blockquote p {
    margin: 0;
    color: var(--text-color, #333);
}

.post-content a {
    color: var(--accent-color, #1e6bb8);
    font-weight: bold;
    border-bottom: 1px solid var(--accent-color, #1e6bb8);
}

.post-content a:hover {
    text-decoration: none;
}

.post-content strong {
    font-weight: bold;
    color: var(--text-color, #333);
}

.post-content em {
    font-style: italic;
}

.post-content del {
    color: var(--text-secondary, #666);
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-color, #ddd);
    margin: 20px 0;
}

/* 代码块 */
.post-content pre {
    margin: 10px 0;
    border-radius: 6px;
    overflow-x: auto;
    background: var(--bg-code, #f6f8fa);
}

.post-content pre.custom {
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

.post-content pre code {
    display: block;
    font-family: 'SF Mono', Consolas, Monaco, Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 16px;
}

/* 行内代码 */
.post-content p code,
.post-content li code {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-color, #1e6bb8);
    background: var(--bg-code, rgba(27,31,35,0.05));
    font-family: 'SF Mono', Consolas, Monaco, Menlo, monospace;
}

/* 图片 */
.post-content img {
    display: block;
    max-width: 100%;
    margin: 10px auto;
    border-radius: 4px;
}

.post-content figure {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-content figcaption {
    margin-top: 5px;
    text-align: center;
    color: var(--text-secondary, #888);
    font-size: 14px;
}

/* 表格 */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border-color, #ddd);
    padding: 8px 12px;
    text-align: left;
}

.post-content th {
    background: var(--bg-table-header, #f0f0f0);
    font-weight: bold;
}

.post-content tr:nth-child(2n) {
    background: var(--bg-code, #f8f8f8);
}
