/* 左侧导航栏通用样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Logo 区域 */
.logo-area {
    padding: 25px 20px 15px;
    text-align: center;
}

.logo {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    display: block;
    height: 30px;
    width: auto;
}

/* 主导航区域 */
.main-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #f7f7f7;
}

.nav-item.active {
    color: #ff2e4d;
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff2e4d;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

/* 我的下拉菜单样式 */
.nav-item.has-dropdown {
    cursor: pointer;
}

.nav-item.has-dropdown .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #999;
}

.nav-item.has-dropdown.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */
.nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
    border-left: 3px solid transparent;
}

.nav-dropdown.show {
    max-height: 600px;
    border-left-color: #ff2e4d;
}

/* 下拉菜单分组 */
.dropdown-group {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-group:last-child {
    border-bottom: none;
}

.dropdown-group:first-child {
    padding-top: 4px;
}

.dropdown-group-title {
    font-size: 12px;
    color: #999;
    padding: 5px 20px 5px 46px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 下拉菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 46px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #ff2e4d;
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    margin-right: 10px;
    font-size: 14px;
    color: #999;
    text-align: center;
}

.dropdown-item:hover i {
    color: #ff2e4d;
}

.dropdown-item span:first-of-type {
    flex: 1;
}

/* VIP标识 */
.vip-badge {
    margin-left: 6px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    font-size: 10px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 分隔线 */
.nav-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 20px;
}

/* 底部更多菜单 */
.more-menu {
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.more-toggle {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.more-toggle:hover {
    color: #333;
    background: #f5f5f5;
}

.more-toggle i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.more-toggle.active i {
    transform: rotate(180deg);
}

.more-content {
    display: none;
    padding: 0 0 10px;
    background: #fafafa;
}

.more-content.show {
    display: block;
}

.more-item {
    display: block;
    padding: 10px 20px 10px 46px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.more-item:hover {
    color: #333;
    background: #f0f0f0;
}

/* 主内容区配合侧边栏 */
.with-sidebar .main-content {
    margin-left: 200px;
    min-height: 100vh;
}

/* 响应式 - 平板和小屏幕笔记本 */
@media (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .with-sidebar .main-content {
        margin-left: 180px;
    }
}

/* 移动端隐藏侧边栏 */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .with-sidebar .main-content {
        margin-left: 0 !important;
    }
}