:root {
    --active-brightness: 0.80;
    --border-radius: 5px;
    --box-shadow: 2px 2px 10px;
    /* --color-accent: #118bee15; */
    --color-accent: #EBEBEB;
    /* --color-bg: #FDFBF9; */
    /* --color-bg: #fff; */
    --color-bg-secondary: #e9e9e9;
    --color-link: #D7336C;
    --color-secondary: #792D85;
    --color-secondary-accent: #920de90b;
    --color-shadow: #f4f4f4;
    --color-table: #10263B;
    --color-text: #10263B;
    --color-text-secondary: #999;
    /* --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
    /* --font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; */

    --hover-brightness: 1.2;
    --justify-important: center;
    --justify-normal: left;
    --line-height: 1.5;
    --width-card: 285px;
    --width-card-medium: 460px;
    --width-card-wide: 800px;
    --width-content: 1080px;
    --toc-width: 300px;
}

.nav {
    width: var(--toc-width, 300px);
    align-self: flex-start;
    flex: 0 0 auto;
    /* margin: 0 10px 0 10px; */
    overflow: auto;
    font-size: 14px;
    /* padding-right: 50px; */
    position: relative;
    /* position: sticky; */
    /* right: 1px; */
    max-width: 90%;
}

aside.nav.nothing {
    width: 0;
}

.page_toc {
    /* width: var(--toc-width, 350px); */
    width: 300px;
    /* min-width: 200px; */
    font-size: 14px;

    right: 20px;
    position: fixed;
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: rgba(0, 0, 0, 0.07);
    border-image-slice: 1;
    padding-left: 5px;
    /* padding-right: 20px;   */
    /* margin-left: 20px; */
    /* margin-right: 20px; */
    scroll-behavior: smooth;
    overflow-y: auto;
    /* 启用垂直方向上的滚动条 */
    max-height: 90%;
    /* 设置最大高度，例如视口高度的 90% */
}

.page_toc::-webkit-scrollbar {
    width: 4px;
    /* width: thin; */
}

.page_toc::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.page_toc:hover::-webkit-scrollbar-thumb {
    /* background: rgba(136, 136, 136, 0.4); */
}

.page_toc:hover::-webkit-scrollbar-track {
    /* background: rgba(136, 136, 136, 0.1); */
}

.page_toc code {
    background-color: #f8f8f8;
    border-radius: 2px;
    color: #e96900;
    font-family: 'Roboto Mono', Monaco, courier, monospace;
    font-size: 0.8rem;
    margin: 0 2px;
    padding: 3px 5px;
}

.page_toc p.title {
    margin: 0px 0 0px 9px;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 1.2em;
}

.page_toc .anchor:hover:after {
    content: "";
}

.page_toc ul {
    list-style-type: none;
    margin-top: 0px;
    padding-left: 10px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.6em;
}

.page_toc ul a:hover span {
    color: var(--color-link);
    border-bottom: none !important;
    text-decoration: none !important;
}

.page_toc ul a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
    /* font-weight: bold; */
    line-height: 1.6em;
}

.page_toc ul li ul li ul a {
    color: var(--color-text);
    opacity: 0.7;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.6em;
}

.page_toc ul li ul li ul .anchor {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    line-height: 1.6em;
}

.page_toc ul a:hover {
    text-decoration: none;
}

@media screen and (max-width: 1300px) {
    .page_toc {
        position: relative;
        left: 0;
        top: -20px;
        padding: 10px 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        font-size: 1.0em;
        width: 100%;
    }

    .page_toc a:before {
        content: "- ";
    }

    .nav {
        margin: 0 0;
        width: 100%;
    }

    .page_toc p.title {
        font-weight: 300;
        font-size: 1.8em;
    }

    .content {
        display: block;
    }

    .markdown-section {
        margin: 0 0;
    }
}

.page_toc .active {
    /* border-left: 2px solid; */
    /* display: block; */
    /* margin-left: -25px; */
    /* color: var(--theme-color, #D7336C) !important; */
    /* text-decoration: underline; */
    /* padding-left: 23px; */
    /* text-align: -webkit-match-parent; */
}

.page_toc .active .anchor span {
    color: #D7336C !important;
    text-decoration: none;
    /* font-weight: 600; */
    opacity: 1;
    line-height: 1.6em;
}

.nav .active {
    display: block;
    color: var(--theme-color, #D7336C) !important;
    /* text-decoration: underline; */
    /* border-left: 2px solid; */
    /* margin-left: -15px; */
    /* padding-left: 13px; */
    /* padding-left: 15px; */
    /* text-align: -webkit-match-parent; */
    /* margin-right: -25px; */
    /* border-right: #D7336C  4px solid; */
}


/* element.style {
    top: 117px;
    opacity: 1;
} */

.nav .outline-marker {
    position: absolute;
    /* top: 100px; */
    /* left: 65%; */
    /* left: -10; */
    z-index: 999 !important;
    opacity: 1;
    width: 4px;
    border-radius: 2px;
    height: 18px;
    background-color: var(--theme-color, #D7336C);
    transition: top .25s cubic-bezier(0, 1, .5, 1), background-color .5s, opacity .25s;
    display: block;
    box-sizing: border-box;
}