/* 账户左侧栏样式 */
.account-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: transparent; /* 取消背景色 */
    color: #333; /* 修改文字颜色为深色，以便在浅色背景上更易读 */
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.account-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: none; /* 删除下方横线 */
    text-align: left;
}

.sidebar-header .sidebar-logo {
    margin-bottom: 20px;
    text-align: left;
}

.user-info .sidebar-logo {
    margin-right: 10px;
    flex-shrink: 0;
}

.logo-image {
    width: 50px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #333; /* 修改标题文字颜色为深色 */
}

.sidebar-title i {
    font-size: 28px;
    color: #ffd700;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 15px 25px;
    color: #333; /* 修改文字颜色为深色 */
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05); /* 修改悬停背景为浅灰色 */
    padding-left: 35px;
}

.menu-item.active {
    background: transparent; /* 移除背景色 */
    /* 移除右边框 */
}

.menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.menu-item-text {
    font-weight: 500;
}

.menu-item.active .menu-item-text {
    font-weight: 700; /* 活动项文字加粗 */
}

/* 主内容区域调整 */
.main-content.with-sidebar {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .account-sidebar {
        width: 100%;
        transform: translateX(0); /* 始终展开 */
    }
    
    .account-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content.with-sidebar {
        margin-left: 0;
    }
}

/* 滚动条样式 */
.account-sidebar::-webkit-scrollbar {
    width: 6px;
}

.account-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); /* 修改滚动条轨道背景色 */
}

.account-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2); /* 修改滚动条滑块背景色 */
    border-radius: 3px;
}

.account-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3); /* 修改滚动条滑块悬停背景色 */
}

/* 用户信息部分样式 */
.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: transparent; /* 取消背景色 */
    border-top: none; /* 删除上方横线 */
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #37c856;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}