
/* General layout */
.html-layout {
    display: flex;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* Responsive toggle */
.nav-toggle {
    display: none;
    position: absolute;
    /*top: 10px;
    right: 20px;*/
    top: 9px;
    right: 42px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Sidebar */
.html-sidebar {
    font-size: 17px;
    width: 20%;
    background-color: #f3f3f3;
    padding: 20px;
    border-right: 1px solid #ddd;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Close button inside sidebar */
.close-btn {
    display: none;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: right;
}

.html-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.html-sidebar li {
    margin: 6px 0;
}

/* First-level links */
.html-sidebar .menu-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;/*font-weight: bold;*/
    user-select: none;
}

.html-sidebar .menu-item span.arrow {
    margin-right: 11px;
    transition: transform 0.2s;
}

/* Submenu */
.html-sidebar .submenu {
    display: none;
    padding-left: 18px;
    margin-top: 6px;
}

.html-sidebar .submenu li {
    font-weight: normal;
}

.html-sidebar .submenu a {
    display: block;
    margin: 6px 0;
    text-decoration: none;
    color: #333;
}

.html-sidebar .submenu a:hover {
    color: #007acc;
}

/* Expanded arrow */
.menu-item.expanded span.arrow {
    transform: rotate(90deg);
}

/* Main content */
.html-content {
    flex-grow: 1;
    padding: 19px;
    background-color: #fff;
    width: 80%;
}

.html-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
}

.html-content pre {
    background-color: #eee;
    padding: 10px;
    border-left: 4px solid #007acc;
    overflow-x: auto;
}

.html-content code {
    font-family: Consolas, monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .html-layout {
        flex-direction: column;
    }

    .html-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        height: 100%;
        z-index: 1000;
        width: 220px;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        background-color: #f3f3f3;
    }

    .html-sidebar.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }

    .close-btn {
        display: block;
    }

    .html-content {
        padding: 19px;
    }
}

/*自定义begin*/
ul .navtitle{ list-style-type: circle;}
@media (min-width: 769px) and (max-width: 1000px){
    
    .html-layout {
        flex-direction: column;
    }

    .html-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        height: 100%;
        z-index: 1000;
        width: 26%;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        background-color: #f3f3f3;
    }

    .html-sidebar.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }

    .close-btn {
        display: block;
    }

    .html-content {
        padding: 19px;
    }

}




pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 10px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
}
 
code {
    color: #333;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 4px;
}


table, td, th{
    border:2px solid #165748;padding:1px 14px;
}


.html-sidebar .menu-item.expanded {
    font-weight: bold;
    color: #007acc;
}

/*自定义end*/
