
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    /* 相对定位 */
    position: relative;
}

.sidebar .bg-shadow {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-inner {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    /* 百分之百窗口高度 */
    height: 100vh;
    /* background: #5558c9; */
    z-index: 999;
    transition: all 0.3s ease;
}

.main-container {
    width: 100%;
    margin-left: 250px;
    justify-content: left;
    align-items: start;
    width: calc(100% - 250px);
    transition: all 0.3s ease;
}

.sidebar-inner .profile-info {
    padding: 20px;
    text-align: center;
}

.sidebar-inner .profile-info .profile-img {
    width: 100px;
    margin: 0 auto 5px;
}

.sidebar-inner .profile-info .profile-img img {
    width: 100%;
    border-radius: 50%;
    display: block;
}

.sidebar-inner .profile-info .profile-data .name {
    font-size: 18px;
    color: 0xfff;
    margin-bottom: 5px;
    font-family: 'Trade Winds';
}

.sidebar-inner .profile-info .profile-data span {
    color: #c4dcff;
}

/* 侧边栏 */
.sidebar-inner .sidebar-menu {
    height: 490px;
    overflow: auto;
}

.sidebar-inner .sidebar-menu> li > a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1px;
    color: #c4dcff;
}

.sidebar-inner .sidebar-menu> li > a .icon {
    font-size: 25px;
    margin-right: 15px;
}

.sidebar-inner .sidebar-menu> li.active > a,
.sidebar-inner .sidebar-menu> li > a:hover {
    background: #3d3d79;
}

.sidebar-inner .sidebar-menu> li > a .arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    transition: all 0.3s ease;
}

.sidebar .logout-btn a {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 210px;
    border: 1px solid #fff;
    color: #FFF;
    border-radius: 3px;
    font-weight: 600px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar .logout-btn a:hover {
    background: #fff;
    color: #3d3d79;
}

.sidebar-inner .close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 25px;
    color: #fff;
    cursor: pointer;
    display: none;
}

.sidebar-inner .close:hover,
.navbar .hamburger:hover {
    opacity: 0.7;
}

.navbar {
    background: rgba(0, 0, 0, 0.125);
    height: 50px;
    width: 100%;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border: #c4dcff;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
}

.navbar .hamburger {
    font-size: 25px;
    cursor: pointer;
    margin-right: 20px;
    color: #c4dcff;
    display:  none;
}

.navbar .logo a {
    font-family: 'Trade Winds';
    color: #5558c9;
    font-size: 20px;
}

.content {
    height: calc(100vh - 50px);
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
}

/* 子菜单 */
.accordion {
    background-color: #6f6fc7;
    padding-left: 50px;
    height: 0px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 子菜单列表中的a元素 */
.accordion li a {
    display: block;
    color: #c4dcff;
    padding: 12px 0;
    padding-left: 10px;
}

/* 子菜单列表最后一项中的a元素 */
.accordion li:last-child a {
    border-bottom: 0px;
}

/* 子菜单列表中的a元素当鼠标滑过/选中时 */
.accordion li a:hover,
.accordion li a.active {
    color: #fff;
}

/* 侧边栏菜单项激活时，子菜单高度 */
.sidebar-menu > li.active .accordion {
    height: 215px;
}

/* 侧边栏菜单项激活时，右侧角标方向变化 */
.sidebar-menu > li.active .arrow {
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

/* 自适应布局，媒体查询当宽度小于1024像素时 */
@media (max-width: 1024px) {
    .sidebar-inner {
        left: -115%;
        transition: all 0.5s ease;
    }

    .main-container {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-inner .close,
    .navbar .hamburger {
        display: block;
    }

    .dashboard-container.active .sidebar-inner {
        left: 0;
        transition: all 0.5s ease;
    }

    .dashboard-container.active .sidebar .bg-shadow {
        visibility: visible;
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 0;
    }
}


