// ===== Sidebar 侧边栏样式 =====

.sidebar {
    width: 256px;
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    border-right: 1px solid rgba(241, 245, 249, 0.5);
    background: rgba(255, 255, 255, 0.5);
    padding: 24px;
    overflow-y: auto;
    z-index: 40;

    &::-webkit-scrollbar {
        width: 6px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(209, 213, 219, 0.5);
        border-radius: 3px;

        &:hover {
            background: rgba(209, 213, 219, 0.8);
        }
    }
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;

    // 悬停状态
    &:hover {
        background: #F3F4F6;
        color: #1F2937;
        transform: translateX(2px);

        .iconify {
            transform: scale(1.1);
        }
    }

    // 激活状态
    &.active {
        background: #EFF6FF;
        color: #1D4ED8;
        font-weight: 600;
        
        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: #1D4ED8;
            border-radius: 0 2px 2px 0;
        }

        .iconify {
            color: #1D4ED8;
        }
    }

    // 按下状态
    &:active {
        transform: translateX(1px);
    }

    .iconify {
        font-size: 20px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
}

.promo-section {
    margin-top: 48px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1D4ED8 0%, #172554 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;

    .promo-content {
        position: relative;
        z-index: 10;
    }

    .promo-label {
        font-size: 12px;
        opacity: 0.8;
        margin-bottom: 8px;
    }

    .promo-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .promo-btn {
        font-size: 10px;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 9999px;
        background: #FFFFFF;
        color: #1D4ED8;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover {
            transform: scale(1.05);
        }
    }

    .promo-icon {
        position: absolute;
        right: -16px;
        bottom: -16px;
        font-size: 72px;
        opacity: 0.1;
        color: #FFFFFF;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}
