/* ============================================
   code-theme-github.css — 默认主题
   浅色：GitHub Light / 暗黑：Tokyo Night
   ============================================ */

/* ====== 浅色模式 — GitHub Light ====== */
.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#6a737d;font-style:italic;}
.token.punctuation{color:#24292e;}
.token.namespace{opacity:0.7;}
.token.keyword,.token.selector{color:#d73a49;font-weight:600;}
.token.string,.token.attr-value,.token.char,.token.regex{color:#032f62;}
.token.number,.token.boolean,.token.literal{color:#005cc5;}
.token.function,.token.class-name{color:#6f42c1;font-weight:600;}
.token.property,.token.constant,.token.symbol{color:#005cc5;}
.token.tag,.token.builtin{color:#22863a;}
.token.attr-name{color:#005cc5;}
.token.operator,.token.entity,.token.url{color:#d73a49;}
.token.variable{color:#e36209;}
.token.decorator,.token.annotation{color:#6f42c1;}
.token.atrule,.token.rule{color:#d73a49;}
.token.important{font-weight:700;}
.token.bold{font-weight:700;}
.token.italic{font-style:italic;}
.token.inserted{color:#22863a;background-color:rgba(34,134,58,0.05);}
.token.deleted{color:#b31d28;background-color:rgba(179,29,40,0.05);}

/* 代码块基础文字色（浅色） */
.code-block-wrap .code-scroll code{color:#24292e;}
.article-content pre[class*="language-"] code{color:#24292e;}

/* ====== 暗黑模式 — Tokyo Night ====== */
[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata{color:#565f89;}
[data-theme="dark"] .token.punctuation{color:#89ddff;}
[data-theme="dark"] .token.keyword,
[data-theme="dark"] .token.selector{color:#bb9af7;}
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.attr-value,
[data-theme="dark"] .token.char,
[data-theme="dark"] .token.regex{color:#9ece6a;}
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.literal{color:#ff9e64;}
[data-theme="dark"] .token.function,
[data-theme="dark"] .token.class-name{color:#7aa2f7;}
[data-theme="dark"] .token.property,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.symbol{color:#ff9e64;}
[data-theme="dark"] .token.tag,
[data-theme="dark"] .token.builtin{color:#73daca;}
[data-theme="dark"] .token.attr-name{color:#ff9e64;}
[data-theme="dark"] .token.operator,
[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url{color:#89ddff;}
[data-theme="dark"] .token.variable{color:#f7768e;}
[data-theme="dark"] .token.decorator,
[data-theme="dark"] .token.annotation{color:#7aa2f7;}
[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.rule{color:#bb9af7;}
[data-theme="dark"] .token.important{font-weight:700;}
[data-theme="dark"] .token.bold{font-weight:700;}
[data-theme="dark"] .token.italic{font-style:italic;}
[data-theme="dark"] .token.inserted{color:#9ece6a;background-color:rgba(158,206,106,0.1);}
[data-theme="dark"] .token.deleted{color:#f7768e;background-color:rgba(247,118,142,0.1);}

/* 代码块基础文字色（暗黑） */
[data-theme="dark"] .code-block-wrap .code-scroll code{color:#c0caf5;}
[data-theme="dark"] .article-content pre[class*="language-"] code{color:#c0caf5;}
