@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');

#content {
    max-width: none !important;
}

main {
    max-width: 1200px !important;
}

pre {
    overflow-x: auto;
}

.content img {
    max-width: min(100%, 600px); /* 取两者较小值 */
    height: auto;
}

:root {
    /* ✅ 必须定义这两个变量，否则 var() 会失效 */
    --text-font-family: "Fira Sans", sans-serif;
    --mono-font-family: "Fira Code", monospace;
}

/* 应用正文字体 */
body, .content {
    font-family: var(--text-font-family) !important;
}

/* 应用代码字体 + 连字 */
code, pre, code span {
    font-family: var(--mono-font-family) !important;
    font-variant-ligatures: common-ligatures contextual;
}


.content table {
    width: auto;
    min-width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* 取消斑马纹 */
.content table tbody tr:nth-child(odd),
.content table tbody tr:nth-child(even) {
    background: transparent !important;
}

/* 行悬浮高亮不受影响 */
.light .content table tbody tr:hover {
    background-color: rgba(120, 180, 255, 0.22) !important;
}
.coal .content table tbody tr:hover {
    background-color: rgba(100, 160, 240, 0.25) !important;
}

/* 表头不悬浮变色 */
.content table thead tr:hover {
    background: inherit !important;
}
/* Sidebar: part titles + SUMMARY --- separators */
#sidebar .chapter > .part-title {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--sidebar-fg);
    opacity: 0.95;
}

#sidebar .chapter > li.spacer {
    margin: 0.55rem 0.75rem;
    height: 0;
    border-top: 1px solid color-mix(in srgb, var(--sidebar-fg) 28%, transparent);
}
