/* 正文配置 */
body {
    font-weight: 400;
    color: #404040;
    min-height: 100%;
    background: #edf0f2;
    transition: all var(--sidebar-transition);
}

/* 代码段配置 */
pre {
    line-height: 1.2 !important; /* 调整代码快行距 */
}

/* 标题配置 */
h1, h2, h3, h4, h5, h6 {
    color: #333 !important; /* 设置标题颜色 */
    margin-left: 2px; /* 段左间距 */
    font-weight: 400;
    font-family: inherit;
}

h3, h4, h5, h6 {
    margin-top: var(--margin-top-h3) !important; /* 段前间距 */
    margin-bottom: var(--margin-bottom-h3) !important; /* 段后间距 */
}

h1, h2 {
    margin-top: var(--margin-top-h2) !important; /* 段前间距 */
    margin-bottom: var(--margin-bottom-h2) !important; /* 段后间距 */
}

/* 将相邻标题的 margin-top 设为 0 */
h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6 {
    margin-top: 0;
}

/* 自定义各级标题的文字大小 */
h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3,h4,h5,h6 {
    font-size: var(--font-size-h3);
}

/* 段间距 */
p {
    display: block;
    margin-block-start: 1em; /* 段前 */
    margin-block-end: 1em; /* 段后 */
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin-top: 1em;
    margin-bottom: 1em; /* 行距 */
}

body,p,li,pre {
    font-size: var(--font-size-p);
    line-height: 1.8; /* 调整行距 */
}

th,td,th>p,td>p {
    font-size: var(--font-size-table) !important;
}

dl, ol, ul {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}