﻿* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif; line-height: 1.6; }
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.header {
    height: 4.5rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.header-logo {
    width: 10rem;
    height: 2.5rem;
    margin-left: 2.5rem;
}
.header-title {
    color: slategrey;
    font-size: 1.5rem;
    margin-left: 0.5rem;
}
.header-item {
    margin-right: 2rem;
    font-size: 1.2rem;
    a {
        color: #2c3e50;
        text-decoration: none;
        display: block;
    }
    a:hover {
        text-decoration: underline;
    }
}
.header-section {
    a {
        color: #4CB3F5;
        text-decoration: none;
    }
}
.header-link {
    font-size: 1rem;
    a {
        color: #409EFF;
        text-decoration: none;
    }
}
.body{
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.divHideBtn {
    z-index: 100000;
    position: fixed;
    top: 4.2rem;
    left: 0.5rem;
    width: 2rem;
    height: 1.5rem;
    display: none;
}
.sidebar {
    width: 18.75rem;
    height: 100%;
    background: #f8f9fa;
    overflow: auto;
    padding: 0.2rem 1.25rem 1.25rem 1.25rem;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}
.sidebar-btn {
    position: relative;
    z-index: 1;
}
.sidebar-title {
    color: slategrey;
    font-size: 1.2rem;
}
.sidebar ul {
    list-style: none;
    padding-left: 1rem;
}
.sidebar li {
    margin: 0.5rem 0;
}
.sidebar a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}
.sidebar a:hover {
    background: skyblue;
}
.content {
    flex: 1;
    border: none;
}
.menu-btn {
    position: absolute;
    top: 0.3rem;
    right: 0;
    width: 1.625rem;
    height: 1.25rem;
    border-top: 0.25rem solid darkslategray;
    border-bottom: 0.25rem solid darkslategray;
    padding: 0.25rem 0;
    background-color: darkslategray;
    background-clip:content-box;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    html { font-size: 14pt; }
    .header-item {
        display: none;
    }
    .divHideBtn{
        left: 2rem;
    }
    .sidebar a {
        font-size: 1.6rem;
    }
    .menu-btn {
        width: 2.4rem;
        height: 1.8rem;
        border-top: 0.375rem solid darkslategray;
        border-bottom: 0.375rem solid darkslategray;
        padding: 0.375rem 0;
        margin-left: 1rem;
        margin-top: 1rem;
    }
}
