/* 代码高亮样式 - 基于GitHub风格 */

.highlight {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.highlight pre {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
}

/* 语法高亮颜色 */
.highlight .hll {
    background-color: #ffffcc
}

.highlight .c {
    color: #6a737d;
    font-style: italic
}

/* Comment */
.highlight .err {
    color: #a61717;
    background-color: #e3d2d2
}

/* Error */
.highlight .k {
    color: #d73a49;
    font-weight: bold
}

/* Keyword */
.highlight .o {
    color: #d73a49
}

/* Operator */
.highlight .cm {
    color: #6a737d;
    font-style: italic
}

/* Comment.Multiline */
.highlight .cp {
    color: #d73a49;
    font-weight: bold
}

/* Comment.Preproc */
.highlight .c1 {
    color: #6a737d;
    font-style: italic
}

/* Comment.Single */
.highlight .cs {
    color: #6a737d;
    font-weight: bold;
    font-style: italic
}

/* Comment.Special */
.highlight .gd {
    color: #000000;
    background-color: #ffdddd
}

/* Generic.Deleted */
.highlight .ge {
    font-style: italic
}

/* Generic.Emph */
.highlight .gr {
    color: #aa0000
}

/* Generic.Error */
.highlight .gh {
    color: #999999
}

/* Generic.Heading */
.highlight .gi {
    color: #000000;
    background-color: #ddffdd
}

/* Generic.Inserted */
.highlight .go {
    color: #888888
}

/* Generic.Output */
.highlight .gp {
    color: #555555
}

/* Generic.Prompt */
.highlight .gs {
    font-weight: bold
}

/* Generic.Strong */
.highlight .gu {
    color: #aaaaaa
}

/* Generic.Subheading */
.highlight .gt {
    color: #aa0000
}

/* Generic.Traceback */
.highlight .kc {
    color: #005cc5;
    font-weight: bold
}

/* Keyword.Constant */
.highlight .kd {
    color: #d73a49;
    font-weight: bold
}

/* Keyword.Declaration */
.highlight .kn {
    color: #d73a49;
    font-weight: bold
}

/* Keyword.Namespace */
.highlight .kp {
    color: #d73a49;
    font-weight: bold
}

/* Keyword.Pseudo */
.highlight .kr {
    color: #d73a49;
    font-weight: bold
}

/* Keyword.Reserved */
.highlight .kt {
    color: #6f42c1;
    font-weight: bold
}

/* Keyword.Type */
.highlight .m {
    color: #005cc5
}

/* Literal.Number */
.highlight .s {
    color: #032f62
}

/* Literal.String */
.highlight .na {
    color: #005cc5
}

/* Name.Attribute */
.highlight .nb {
    color: #005cc5
}

/* Name.Builtin */
.highlight .nc {
    color: #6f42c1;
    font-weight: bold
}

/* Name.Class */
.highlight .no {
    color: #005cc5
}

/* Name.Constant */
.highlight .nd {
    color: #6f42c1;
    font-weight: bold
}

/* Name.Decorator */
.highlight .ni {
    color: #800080
}

/* Name.Entity */
.highlight .ne {
    color: #990000;
    font-weight: bold
}

/* Name.Exception */
.highlight .nf {
    color: #6f42c1;
    font-weight: bold
}

/* Name.Function */
.highlight .nl {
    color: #990000;
    font-weight: bold
}

/* Name.Label */
.highlight .nn {
    color: #555555
}

/* Name.Namespace */
.highlight .nt {
    color: #22863a
}

/* Name.Tag */
.highlight .nv {
    color: #e36209
}

/* Name.Variable */
.highlight .ow {
    color: #d73a49;
    font-weight: bold
}

/* Operator.Word */
.highlight .w {
    color: #bbbbbb
}

/* Text.Whitespace */
.highlight .mf {
    color: #005cc5
}

/* Literal.Number.Float */
.highlight .mh {
    color: #005cc5
}

/* Literal.Number.Hex */
.highlight .mi {
    color: #005cc5
}

/* Literal.Number.Integer */
.highlight .mo {
    color: #005cc5
}

/* Literal.Number.Oct */
.highlight .sb {
    color: #032f62
}

/* Literal.String.Backtick */
.highlight .sc {
    color: #032f62
}

/* Literal.String.Char */
.highlight .sd {
    color: #032f62
}

/* Literal.String.Doc */
.highlight .s2 {
    color: #032f62
}

/* Literal.String.Double */
.highlight .se {
    color: #032f62
}

/* Literal.String.Escape */
.highlight .sh {
    color: #032f62
}

/* Literal.String.Heredoc */
.highlight .si {
    color: #032f62
}

/* Literal.String.Interpol */
.highlight .sx {
    color: #032f62
}

/* Literal.String.Other */
.highlight .sr {
    color: #032f62
}

/* Literal.String.Regex */
.highlight .s1 {
    color: #032f62
}

/* Literal.String.Single */
.highlight .ss {
    color: #032f62
}

/* Literal.String.Symbol */
.highlight .bp {
    color: #005cc5
}

/* Name.Builtin.Pseudo */
.highlight .vc {
    color: #e36209
}

/* Name.Variable.Class */
.highlight .vg {
    color: #e36209
}

/* Name.Variable.Global */
.highlight .vi {
    color: #e36209
}

/* Name.Variable.Instance */
.highlight .il {
    color: #005cc5
}

/* Literal.Number.Integer.Long */

/* 深色模式 - GitHub Dark Dimmed */
@media (prefers-color-scheme: dark) {
    .highlight {
        background-color: #161b22;
        color: #c9d1d9;
    }

    .highlight .c {
        color: #8b949e;
    }

    /* Comment */
    .highlight .err {
        color: #f85149;
        background-color: #3e2c2c;
    }

    /* Error */
    .highlight .k {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword */
    .highlight .o {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Operator */
    .highlight .cm {
        color: #8b949e;
    }

    /* Comment.Multiline */
    .highlight .cp {
        color: #8b949e;
        font-weight: bold;
    }

    /* Comment.Preproc */
    .highlight .c1 {
        color: #8b949e;
    }

    /* Comment.Single */
    .highlight .cs {
        color: #8b949e;
        font-weight: bold;
    }

    /* Comment.Special */
    .highlight .gd {
        color: #ffa198;
        background-color: #490202;
    }

    /* Generic.Deleted */
    .highlight .ge {
        font-style: italic;
        color: #d2a8ff;
    }

    /* Generic.Emph */
    .highlight .gr {
        color: #ffa198;
    }

    /* Generic.Error */
    .highlight .gh {
        color: #79c0ff;
        font-weight: bold;
    }

    /* Generic.Heading */
    .highlight .gi {
        color: #56d364;
        background-color: #0f5323;
    }

    /* Generic.Inserted */
    .highlight .go {
        color: #8b949e;
    }

    /* Generic.Output */
    .highlight .gp {
        color: #8b949e;
    }

    /* Generic.Prompt */
    .highlight .gs {
        color: #79c0ff;
        font-weight: bold;
    }

    /* Generic.Strong */
    .highlight .gu {
        color: #8b949e;
    }

    /* Generic.Subheading */
    .highlight .gt {
        color: #ff7b72;
    }

    /* Generic.Traceback */
    .highlight .kc {
        color: #79c0ff;
        font-weight: bold;
    }

    /* Keyword.Constant */
    .highlight .kd {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword.Declaration */
    .highlight .kn {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword.Namespace */
    .highlight .kp {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword.Pseudo */
    .highlight .kr {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword.Reserved */
    .highlight .kt {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Keyword.Type */
    .highlight .m {
        color: #a5d6ff;
    }

    /* Literal.Number */
    .highlight .s {
        color: #a5d6ff;
    }

    /* Literal.String */
    .highlight .na {
        color: #79c0ff;
    }

    /* Name.Attribute */
    .highlight .nb {
        color: #79c0ff;
    }

    /* Name.Builtin */
    .highlight .nc {
        color: #f0883e;
        font-weight: bold;
    }

    /* Name.Class */
    .highlight .no {
        color: #79c0ff;
        font-weight: bold;
    }

    /* Name.Constant */
    .highlight .nd {
        color: #d2a8ff;
        font-weight: bold;
    }

    /* Name.Decorator */
    .highlight .ni {
        color: #c9d1d9;
    }

    /* Name.Entity */
    .highlight .ne {
        color: #f0883e;
        font-weight: bold;
    }

    /* Name.Exception */
    .highlight .nf {
        color: #d2a8ff;
        font-weight: bold;
    }

    /* Name.Function */
    .highlight .nl {
        color: #79c0ff;
        font-weight: bold;
    }

    /* Name.Label */
    .highlight .nn {
        color: #ff7b72;
    }

    /* Name.Namespace */
    .highlight .nt {
        color: #7ee787;
    }

    /* Name.Tag */
    .highlight .nv {
        color: #79c0ff;
    }

    /* Name.Variable */
    .highlight .ow {
        color: #ff7b72;
        font-weight: bold;
    }

    /* Operator.Word */
    .highlight .w {
        color: #c9d1d9;
    }

    /* Text.Whitespace */
    .highlight .mf {
        color: #a5d6ff;
    }

    /* Number.Float */
    .highlight .mh {
        color: #a5d6ff;
    }

    /* Number.Hex */
    .highlight .mi {
        color: #a5d6ff;
    }

    /* Number.Integer */
    .highlight .mo {
        color: #a5d6ff;
    }

    /* Number.Oct */
    .highlight .sb {
        color: #a5d6ff;
    }

    /* String.Backtick */
    .highlight .sc {
        color: #a5d6ff;
    }

    /* String.Char */
    .highlight .sd {
        color: #a5d6ff;
    }

    /* String.Doc */
    .highlight .s2 {
        color: #a5d6ff;
    }

    /* String.Double */
    .highlight .se {
        color: #79c0ff;
    }

    /* String.Escape */
    .highlight .sh {
        color: #a5d6ff;
    }

    /* String.Heredoc */
    .highlight .si {
        color: #a5d6ff;
    }

    /* String.Interpol */
    .highlight .sx {
        color: #a5d6ff;
    }

    /* String.Other */
    .highlight .sr {
        color: #79c0ff;
    }

    /* String.Regex */
    .highlight .s1 {
        color: #a5d6ff;
    }

    /* String.Single */
    .highlight .ss {
        color: #a5d6ff;
    }

    /* String.Symbol */
    .highlight .bp {
        color: #c9d1d9;
    }

    /* Name.Builtin.Pseudo */
    .highlight .vc {
        color: #79c0ff;
    }

    /* Variable.Class */
    .highlight .vg {
        color: #79c0ff;
    }

    /* Variable.Global */
    .highlight .vi {
        color: #79c0ff;
    }

    /* Variable.Instance */
    .highlight .il {
        color: #a5d6ff;
    }

    /* Number.Integer.Long */
}