/* theme/custom.css */
/* 基础表格样式 */
 table:not([class]) {
    border-collapse: collapse; /* 合并边框 */
    display: table; /* 确保表格布局 */
    width: 100%; /* 让表格宽度自适应容器 */
    overflow-x: auto; /* 如果表格太宽，添加横向滚动条 */
}

table:not([class]) th {
    background-color: #f2f2f2; /* 表头背景色 */
    font-weight: bold;
    min-width: 100px; /* 为表头设置最小宽度 */
}

 table:not([class]) td,
 table:not([class]) th {
    border: 1px solid #ddd; /* 单元格边框 */
    padding: 0.5em 0.75em; /* 单元格内边距 */
    vertical-align: top; /* 内容顶部对齐 */
    text-align: left; /* 内容左对齐 */
}

/* 斑马条纹（可选） */
 table:not([class]) tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 鼠标悬停高亮（可选） */
 table:not([class]) tr:hover {
    background-color: #f1f1f1;
}

.sidebar-scrollbox{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.sidebar-scrollbox li  .chapter-link-wrapper,.content li ,blockquote p{
    line-height: 28px !important;
}

.sidebar-scrollbox .header-item .section{
    padding-inline-start: 10px;
}

.chapter {
    line-height: 3em;
}

.chapter li.part-title {
    font-weight: unset;
    color: var(--sidebar-non-existant);
}
.chapter li .chapter-fold-toggle div {
    visibility: hidden; /* 隐藏原始文本 */
    position: relative;
}

.chapter li .chapter-fold-toggle div::before {
    /* 将默认箭头替换为符号 */
    content: "❯"; /* 使用新箭头 */
    visibility: visible; /* 显示伪元素 */
    position: absolute;
    left: 0;
    font-size: 0.9em;
}
.chapter>.chapter-item>.section {
    padding-inline-start: 10px
}
.chapter li.expanded > span > .chapter-fold-toggle div,   .chapter-item.expanded>span>a  {
    color: var(--sidebar-active) !important;
}

/* 展开状态 */
.chapter-link-wrapper .chapter-fold-toggle.open div {
    color: #42b983;
    transform: rotate(90deg);
}

.on-this-page {
    margin-left: 10px;
}
.hljs {
    line-height: 24px;
}
.hljs-comment {
    color: #909399
}
.light, html:not(.js) {
    --bg: hsl(0, 0%, 100%);
    --fg: hsl(0, 0%, 20%);

    --sidebar-bg: #fafafa;
    --sidebar-fg: #364149;
    --sidebar-non-existant: #939da3;
    --sidebar-active: #008cff;
    --sidebar-spacer: #f4f4f4;

    --scrollbar: #8F8F8F;

    --icons: #747474;
    --icons-hover: #000000;

    --links: #20609f;

    --inline-code-color: #301900;

    --theme-popup-bg: #fafafa;
    --theme-popup-border: #cccccc;
    --theme-hover: #e6e6e6;

    --quote-bg: hsl(197, 37%, 96%);
    --quote-border: hsl(197, 37%, 91%);

    --warning-border: #ff8e00;

    --table-border-color: hsl(0, 0%, 95%);
    --table-header-bg: hsl(0, 0%, 80%);
    --table-alternate-bg: hsl(0, 0%, 97%);

    --searchbar-border-color: #aaa;
    --searchbar-bg: #fafafa;
    --searchbar-fg: #000;
    --searchbar-shadow-color: #aaa;
    --searchresults-header-fg: #666;
    --searchresults-border-color: #888;
    --searchresults-li-bg: #e4f2fe;
    --search-mark-bg: #a2cff5;

    --color-scheme: light;

    /* Same as `--icons` */
    --copy-button-filter: invert(45.49%);
    /* Same as `--sidebar-active` */
    --copy-button-filter-hover: invert(14%) sepia(93%) saturate(4250%) hue-rotate(243deg) brightness(99%) contrast(130%);

    --footnote-highlight: #7e7eff;

    --overlay-bg: rgba(200, 200, 205, 0.4);

    --blockquote-note-color: #0969da;
    --blockquote-tip-color: #008000;
    --blockquote-important-color: #8250df;
    --blockquote-warning-color: #9a6700;
    --blockquote-caution-color: #b52731;

    --sidebar-header-border-color: #008cff;
}

/* 代码块自动换行 */
pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 长代码行处理 */
.highlight pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.page em {
    color: red;
}

.page .table-wrapper {
    display: table;
}

