/*!
 * Gruvbox 代码高亮主题（Light/Dark 自适应）
 * 配色参考 u.sb design：Light 用奶油纸 #fbf1c7，Dark 用 #171412
 * 适用于 highlight.js（hljs-* 类名）
 */

/* Light 代码块文字基色 */
[data-theme="light"] .hljs { color: #504945; background: transparent; }
[data-theme="light"] .prose pre { color: #504945; }
[data-theme="light"] .hljs-comment, [data-theme="light"] .hljs-quote { color: #928374; font-style: italic; }
[data-theme="light"] .hljs-keyword, [data-theme="light"] .hljs-selector-tag, [data-theme="light"] .hljs-built_in, [data-theme="light"] .hljs-name, [data-theme="light"] .hljs-tag { color: #af3a3a; }
[data-theme="light"] .hljs-string, [data-theme="light"] .hljs-title, [data-theme="light"] .hljs-section, [data-theme="light"] .hljs-attribute, [data-theme="light"] .hljs-literal, [data-theme="light"] .hljs-template-tag, [data-theme="light"] .hljs-template-variable, [data-theme="light"] .hljs-type, [data-theme="light"] .hljs-addition { color: #79740e; }
[data-theme="light"] .hljs-number, [data-theme="light"] .hljs-symbol, [data-theme="light"] .hljs-bullet, [data-theme="light"] .hljs-link, [data-theme="light"] .hljs-meta, [data-theme="light"] .hljs-selector-id, [data-theme="light"] .hljs-selector-class { color: #b57614; }
[data-theme="light"] .hljs-emphasis { font-style: italic; }
[data-theme="light"] .hljs-strong { font-weight: 700; }
[data-theme="light"] .hljs-attr, [data-theme="light"] .hljs-variable, [data-theme="light"] .hljs-property { color: #076678; }
[data-theme="light"] .hljs-function .hljs-title, [data-theme="light"] .hljs-title.function_ { color: #427b58; }
[data-theme="light"] .hljs-params { color: #504945; }

/* Dark 代码块文字基色（Gruvbox Dark）*/
[data-theme="dark"] .hljs { color: #d5c4a1; background: transparent; }
[data-theme="dark"] .prose pre { color: #d5c4a1; }
[data-theme="dark"] .hljs-comment, [data-theme="dark"] .hljs-quote { color: #928374; font-style: italic; }
[data-theme="dark"] .hljs-keyword, [data-theme="dark"] .hljs-selector-tag, [data-theme="dark"] .hljs-built_in, [data-theme="dark"] .hljs-name, [data-theme="dark"] .hljs-tag { color: #fb4934; }
[data-theme="dark"] .hljs-string, [data-theme="dark"] .hljs-title, [data-theme="dark"] .hljs-section, [data-theme="dark"] .hljs-attribute, [data-theme="dark"] .hljs-literal, [data-theme="dark"] .hljs-template-tag, [data-theme="dark"] .hljs-template-variable, [data-theme="dark"] .hljs-type, [data-theme="dark"] .hljs-addition { color: #b8bb26; }
[data-theme="dark"] .hljs-number, [data-theme="dark"] .hljs-symbol, [data-theme="dark"] .hljs-bullet, [data-theme="dark"] .hljs-link, [data-theme="dark"] .hljs-meta, [data-theme="dark"] .hljs-selector-id, [data-theme="dark"] .hljs-selector-class { color: #fabd2f; }
[data-theme="dark"] .hljs-emphasis { font-style: italic; }
[data-theme="dark"] .hljs-strong { font-weight: 700; }
[data-theme="dark"] .hljs-attr, [data-theme="dark"] .hljs-variable, [data-theme="dark"] .hljs-property { color: #83a598; }
[data-theme="dark"] .hljs-function .hljs-title, [data-theme="dark"] .hljs-title.function_ { color: #8ec07c; }
[data-theme="dark"] .hljs-params { color: #d5c4a1; }

/* 行号（可选）*/
.hljs-ln-numbers { text-align: right; color: var(--muted-foreground); padding-right: .8em; border-right: 1px solid var(--border); user-select: none; }
.hljs-ln-code { padding-left: .8em; }

/* 选中行高亮 */
.hljs-ln-line.hljs-ln-line-highlight, .code-line-highlight { background: rgba(255, 219, 51, 0.18); }
