/*  
 * Copyright (c) 2024 YiDing, all rights reserved. 
 *  
 * This is an example file of the site. You can freely copy,
 * fork, clone and download the file to your local machine.
 * But attention to replace it by your own file before you
 * deploying the site.
 */

/* -------- 右侧Toc(nav标签)原代码 ----------- */
/*                                             */
/*   docsify-toc plugin styles (right navbar)   */
/* --------------------------------------------- */
.content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}
.markdown-section {
    /*   flex: 1 1 0%; */
    margin: 0 25px;
}
.nav {
    width: var(--toc-width, 150px);
    /*     align-self: flex-start;
    flex: 0 0 auto; */
}
aside.nav.nothing {
    width: 0;
}
.page_toc {
    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: 10px;
    width: auto;
    margin-top: -50px;
    overflow-y: auto;
    max-height: 98%;
    -webkit-scrollbars-style: none;
}
/* 滑动条样式修改 */
.page_toc::-webkit-scrollbar {
    width: 10px;
    /* Width of the scrollbar */
}
.page_toc::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Color of the track */
}
.page_toc::-webkit-scrollbar-thumb {
    background: #cacaca;
    /* Color of the scrollbar thumb */
    border-radius: 5px;
    /* Rounded corners for the thumb */
}
.page_toc::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Color of the scrollbar thumb on hover */
}
@media screen and (max-width: 1300px) {
    /* Change Toc's position */
    .page_toc {
        position: relative;
        left: 0;
        top: -20px;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #ddd;
        font-size: 1em;
        width: 100%;
    }

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

    .nav {
        margin: 0 auto;
        width: 800px;
    }

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

    .content {
        display: block;
    }

    .markdown-section {
        margin: 0 auto;
    }
}
@media screen and (max-width: 768px) {
    .page_toc {
        margin-top: 0px;
        width: 100%;
        max-height: 300px;
    }
}
.page_toc a > * {
    pointer-events: none;
}
.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: 15px 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(--text-color-base, black);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.6em;
}
.page_toc ul a:hover span {
    color: var(--text-color-tertiary, #42b983);
    border-bottom: none !important;
    text-decoration: none !important;
}
.page_toc ul a {
    color: var(--text-color-base, black);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.6em;
}
.page_toc .active {
    border-left: 5px solid;
    color: var(--theme-color, #42b983);
    padding-left: 10px;
}

/*                                             */
/* -------- 右侧Toc(nav标签)原代码 ----------- */

/* ----------- 自定义右侧Toc样式 -------------- */
/*                                             */
aside.nav:empty {
    /* 无内容时取消占位 */
    width: 0;
    overflow: hidden;
}
@media screen and (min-width: 769px) {
    .page_toc p.title {
        width: auto;
        text-align: center;
        text-shadow: 2px 2px 5px gray;
        color: rgba(0, 0, 0, 0.9);
        font-size: 1.5rem;
        font-weight: 500;
    }
}
@media screen and (max-width: 768px) {
    /* 屏幕 [0,768] 时使用 */
    .page_toc p.title {
        text-align: left;
    }
}
.page_toc ul li a span {
    color: var(--color-h2);
    font-weight: 550;
}
.page_toc ul li ul li a span {
    color: var(--color-h3);
    font-weight: 300;
}
/*                                             */
/* ----------- 自定义右侧Toc样式 -------------- */
