/* highlight.js 主题 —— 与文档站纸墨配色统一 */

.hljs {
  color: var(--text);
  background: transparent;
}

.hljs-comment,
.hljs-quote {
  color: var(--text-3);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-doctag,
.hljs-formula {
  color: #9a5f86;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #6a8a5c;
}

.hljs-number,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #b4763f;
}

.hljs-title,
.hljs-title.function_,
.hljs-section,
.hljs-name {
  color: #a0563c;
  font-weight: 600;
}

.hljs-attr,
.hljs-property,
.hljs-params {
  color: #5b7d92;
}

.hljs-built_in,
.hljs-symbol,
.hljs-bullet,
.hljs-link {
  color: #8a6f4e;
}

.hljs-meta,
.hljs-meta .hljs-keyword {
  color: var(--text-2);
}

.hljs-deletion {
  color: #b85c4a;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-literal,
[data-theme="dark"] .hljs-doctag,
[data-theme="dark"] .hljs-formula {
  color: #d79ec6;
}

[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-regexp,
[data-theme="dark"] .hljs-addition,
[data-theme="dark"] .hljs-attribute,
[data-theme="dark"] .hljs-meta .hljs-string {
  color: #a3c48f;
}

[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-template-variable,
[data-theme="dark"] .hljs-type,
[data-theme="dark"] .hljs-selector-class {
  color: #e2b077;
}

[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-title.function_,
[data-theme="dark"] .hljs-section,
[data-theme="dark"] .hljs-name {
  color: #e79a80;
}

[data-theme="dark"] .hljs-attr,
[data-theme="dark"] .hljs-property,
[data-theme="dark"] .hljs-params {
  color: #8fb6cc;
}

[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-symbol,
[data-theme="dark"] .hljs-bullet,
[data-theme="dark"] .hljs-link {
  color: #c6ab84;
}
