/* ===== VS Code C/C++ Themes (Light) 适配博客园 highlight.js ===== */
/* 使用 !important 确保覆盖博客园默认样式 */

.cnblogs-markdown .hljs,
.cnblogs-markdown pre code.hljs {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 16px !important;
    border-radius: 6px !important;
    border: 1px solid #e1e4e8 !important;
}

/* 注释 */
.cnblogs-markdown .hljs-comment,
.cnblogs-markdown .hljs-quote {
    color: #008000 !important;
    font-style: italic !important;
}

/* 关键字、内置类型（int, return, if, class 等） */
.cnblogs-markdown .hljs-keyword,
.cnblogs-markdown .hljs-selector-tag,
.cnblogs-markdown .hljs-literal,
.cnblogs-markdown .hljs-built_in,
.cnblogs-markdown .hljs-type {
    color: #0000ff !important;
    font-weight: 600 !important;
}

/* 字符串 */
.cnblogs-markdown .hljs-string,
.cnblogs-markdown .hljs-regexp,
.cnblogs-markdown .hljs-addition {
    color: #a31515 !important;
}

/* 数字、常量 */
.cnblogs-markdown .hljs-number,
.cnblogs-markdown .hljs-attr,
.cnblogs-markdown .hljs-attribute,
.cnblogs-markdown .hljs-variable,
.cnblogs-markdown .hljs-template-variable {
    color: #098658 !important;
}

/* 函数名、方法名 */
.cnblogs-markdown .hljs-title,
.cnblogs-markdown .hljs-title.function_,
.cnblogs-markdown .hljs-title.class_ {
    color: #795e26 !important;
    font-weight: 600 !important;
}

/* 预处理指令、宏 */
.cnblogs-markdown .hljs-meta,
.cnblogs-markdown .hljs-meta .hljs-keyword {
    color: #808080 !important;
}

/* 符号、运算符 */
.cnblogs-markdown .hljs-symbol,
.cnblogs-markdown .hljs-bullet,
.cnblogs-markdown .hljs-link {
    color: #0070c1 !important;
}

/* 删除的行（diff） */
.cnblogs-markdown .hljs-deletion {
    color: #a31515 !important;
    background: #ffeef0 !important;
}

/* 强调部分 */
.cnblogs-markdown .hljs-emphasis {
    font-style: italic !important;
}
.cnblogs-markdown .hljs-strong {
    font-weight: 700 !important;
}

/* 行内代码的样式修正（避免行内代码背景过深） */
.cnblogs-markdown code:not(.hljs) {
    background: #f3f3f3 !important;
    color: #c7254e !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    font-family: 'Fira Code', Consolas, monospace !important;
    font-size: 0.9em !important;
}