/**
 * GitHub Dark 风格 Markdown 预览样式
 * 基于 GitHub Dark 主题
 */

.markdown-body.github-dark {
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.markdown-body.github-dark h1,
.markdown-body.github-dark h2,
.markdown-body.github-dark h3,
.markdown-body.github-dark h4,
.markdown-body.github-dark h5,
.markdown-body.github-dark h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #f0f6fc;
}

.markdown-body.github-dark h1 {
    font-size: 2em;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.3em;
}

.markdown-body.github-dark h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.3em;
}

.markdown-body.github-dark h3 { font-size: 1.25em; }
.markdown-body.github-dark h4 { font-size: 1em; }
.markdown-body.github-dark h5 { font-size: 0.875em; }
.markdown-body.github-dark h6 { font-size: 0.85em; color: #8b949e; }

.markdown-body.github-dark p {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body.github-dark a {
    color: #58a6ff;
    text-decoration: none;
}

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

.markdown-body.github-dark img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    border-radius: 4px;
    margin: 16px auto;
}

.markdown-body.github-dark figure {
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.markdown-body.github-dark figcaption {
    display: block;
    margin-top: 5px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.markdown-body.github-dark figure a {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.markdown-body.github-dark figure a img {
    margin: 16px auto;
}



.markdown-body.github-dark code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(110, 118, 129, 0.4);
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #f0883e;
}

.markdown-body.github-dark pre {
    /* padding: 16px; */
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #161b22;
    border-radius: 3px;
    border: 1px solid #30363d;
}

.markdown-body.github-dark pre code {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    font-size: 100%;
    color: inherit;
}

.markdown-body.github-dark blockquote {
    padding: 0 1em;
    color: #8b949e;
    border-left: 0.25em solid #30363d;
    margin: 0 0 16px 0;
}

.markdown-body.github-dark ul,
.markdown-body.github-dark ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body.github-dark li + li {
    margin-top: 0.25em;
}

.markdown-body.github-dark table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
}

.markdown-body.github-dark table th,
.markdown-body.github-dark table td {
    padding: 6px 13px;
    border: 1px solid #30363d;
}

.markdown-body.github-dark table th {
    font-weight: 600;
    background-color: #161b22;
}

.markdown-body.github-dark table tr:nth-child(2n) {
    background-color: #161b22;
}

.markdown-body.github-dark hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #30363d;
    border: 0;
}

.markdown-body.github-dark strong {
    color: #f0f6fc;
}

.markdown-body.github-dark em {
    color: #c9d1d9;
}
