.container {
    display: flex;
    float: left;
    width: 16%;
    height: unset;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: #37474f;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 4px;
}

.sidebar {

    width: 100%;
    height: auto;
    background: #37474f;
    color: #fff;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px 15px;
    background: #263238;
    border-bottom: 1px solid #455a64;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 500;
}

.main-menu {
    list-style: none;
    padding: 15px 0;
}

.menu-item {
    position: relative;
    border-bottom: 1px solid #455a64;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-title {
    display: flex;
    align-items: center;
    padding: 22px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #eceff1;
    font-size: 15px;
}

.menu-title:hover {
    background: #455a64;
}

.menu-icon {
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.arrow {
    margin-left: 10px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sub-menu {
    list-style: none;
    background: #455a64;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sub-menu li {
    border-bottom:  1px solid #0f9ae0;
}

.sub-menu li a {
    display: block;
    padding: 22px 10px 12px 30px;
    color: #cfd8dc;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.sub-menu li a:hover {
    background: #546e7a;
    color: white;
}

.sub-menu li a.active {
    background: #546e7a;
    color: white;
}

.sub-menu li a:hover::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 60%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

.active > .menu-title .arrow {
    transform: rotate(180deg);
}

.active > .sub-menu {
    max-height: 1000px; /* 使用最大高度实现平滑展开动画 */
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.content-header h1 {
    color: #37474f;
    font-weight: 500;
}

.cards {
    display: grid;

}


/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container{
        width: 32%;
    }
    .rightmain{
        width: 60% !important;
    }
    .sidebar {
        left: -260px;
        z-index: 999;


    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-title {
        padding: 12px 10px;
        font-size: 1.6rem;
        line-height:2.5rem;
    }
    .sub-menu li a{
        font-size: 1.6rem;
        line-height:2.5rem;
    }

}

.rightmain{
    width: 76%;
    height: auto;
    float: right;
    margin-right: 3%;
    display: inline;
    margin-left: 18px;
}