.sidebar {
    width: 220px;
    background-color: #ffffff;
    color: #333;
    overflow-y: auto;
    border-right: 1px solid #eee;
}

.menu {
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.menu-item:hover {
    background-color: #f6f8ff;
    color: #1890ff;
}

.menu-item.active {
    color: #1890ff;
    background-color: #e6f7ff;
    font-weight: 500;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #1890ff;
}

.submenu-title {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.submenu-title:hover {
    color: #1890ff;
}

.arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    color: #666;
}

.submenu.open .arrow svg {
    transform: rotate(180deg);
    color: #1890ff;
}

.submenu-content {
    background-color: #fafafa;
    display: none;
}

.submenu.open .submenu-content {
    display: block;
}

.submenu-item {
    padding: 10px 20px 10px 40px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.submenu-item:hover {
    color: #1890ff;
    background-color: #f6f8ff;
}

.submenu-item.active {
    color: #1890ff;
    background-color: #e6f7ff;
    font-weight: 500;
}

.submenu-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #1890ff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -220px;
        top: 60px;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: flex !important;
    }


    .sidebar.open::after {
        content: '';
        position: fixed;
        top: 60px;
        left: 220px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
}