/* 全局容器与背景暗色化 */
body, #home, #main, #sideBar, #header {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
}

#blogTitle.title {
    font-size: 20pt;
    text-align: center;
    color: #569cd6 !important; /* VS Code 关键字蓝 */
}

#cnblogs_post_body {
    background-color: #1e1e1e !important;
    line-height: 1.6;
}

#cnblogs_post_body p { 
    color: #d4d4d4 !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    letter-spacing: 0px;
    font-size: 16px;
    word-spacing: 0px;
    text-indent: 0em;
    text-align: justify;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

/*================图片开始=============*/
#cnblogs_post_body img {
    display: block;
    margin: 10px auto;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 100%; /* 防止宽图溢出容器 */
}

#cnblogs_post_body figcaption {
    margin-top: 10px;
    display: block;
    text-align: center;
    color: #808080;
    font-size: 13px;
}

#cnblogs_post_body figcaption:before {
    content: "";
    background-image: url(https://ico.skyseeker.eu.org/MarkDown_CSS-img_fig_before.png);
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
    margin-bottom: -5px;
    filter: invert(0.7); /* 暗色模式下图标反色适配 */
}
/*================图片结束=============*/

/*================列表开始=============*/
#cnblogs_post_body li,
#cnblogs_post_body li p {
    font-size: 17px;
    font-weight: normal;
    color: #d4d4d4 !important;
    margin: 0;
}

#cnblogs_post_body ul,
#cnblogs_post_body ol {
    font-size: 15px;
    color: #d4d4d4 !important;
    margin-left: 0px;
    margin-bottom: 0.1em;
    padding-left: 3em;
}

#cnblogs_post_body ul ul,
#cnblogs_post_body ol ul,
#cnblogs_post_body ul ol,
#cnblogs_post_body ol ol {
    padding-left: 1.5em;
}

#cnblogs_post_body blockquote ol,
#cnblogs_post_body blockquote ul {
    padding-left: 1.5em;
} 

#cnblogs_post_body ol li {
    list-style-type: decimal;
} 

#cnblogs_post_body ol ol li,
#cnblogs_post_body ul ol li {
    list-style-type: lower-roman;
}
/*================列表结束=============*/

/* 二级标题下划线与层级样式 */
#cnblogs_post_body h2 {
    font-size: 22px;
    font-weight: 600;
    color: #4ec9b0 !important; /* VS Code 标识符绿 */
    border-bottom: 2px solid #569cd6 !important;
    padding-bottom: 8px;
    margin: 35px 0 16px 0;
}

/* 代码块与链接暗色适配 */
#cnblogs_post_body pre,
#cnblogs_post_body code {
    background-color: #252526 !important;
    color: #ce9178 !important;
    border: 1px solid #3e3e42 !important;
    border-radius: 4px;
    font-family: Consolas, 'Courier New', monospace;
}

#cnblogs_post_body a {
    color: #569cd6 !important;
    text-decoration: none;
}
#cnblogs_post_body a:hover {
    text-decoration: underline;
}