#post-toc {
    position: fixed;
    left: 40px;
    top: 200px;
    width: 250px; 
    background: #ffffff;
    padding: 15px;
    /*border: 1px solid #fff;*/
    overflow-y: auto;
    padding-top: 0; 
    max-height: 70vh;
    z-index: 100;
    cursor: move;
    box-shadow: 1 1px 15px rgba(0, 0, 0, 0.11);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    scrollbar-width: thin; 
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent; 
}

#post-toc mdui-list-subheader{
    cursor: move;
}

#post-toc::-webkit-scrollbar {
    width: 2px;
}

#post-toc::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); 
    border-radius: 10px; 
}

#post-toc::-webkit-scrollbar-track {
    background: transparent; 
}

#post-toc.hidden {
    display: none;
}

#post-toc mdui-list {
    list-style: none;
    padding: 20px 0 0 0; 
    margin: 0;
    margin-top: -20px;
}


#post-toc mdui-list-item {
    margin-bottom: 0px;
    height: 50%;
}

#post-toc h3 {
    position: sticky;
    top: 0;
    /*background-color: #ffffff;*/
    z-index: 1;
    letter-spacing: 2px; 
    padding: 10px 0;
    margin: 0; 
    font-size: 16px;
    font-weight: bold;
    color: #242424;
    /*text-align: center;*/
}

#post-toc mdui-list-item a {
    color: #303030; 
    font-size: 14px; 
    letter-spacing: 0.2px; 
    text-decoration: none;
    display: block;
    padding: 5px 5px;
    border-radius: 4px;
    transition: all 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#post-toc mdui-list-item a:hover,
#post-toc mdui-list-item a.active {
    /*background-color: rgba(200, 200, 200, 0.2);*/
    color: #000000;
    font-weight: 500;
}

.toc-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    color: white;
    width: 50px;
    height: 40px;
    scale: 1.2;
    /*border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;*/
}
.toc-toggle span{
    margin-top: 5px;
}

/*.toc-toggle:hover {
    background-color: #43677a;
}*/

@media (max-width: 768px) {
    #post-toc {
        position: fixed;
        bottom: 70px; 
        right: 20px;
        left: auto; 
        top: auto; 
        width: 300px; 
    }
}

#post-toc a{
    color: black;
}