/* ========================================
   📱 手机端底部Tab导航 - 确保可见
   ======================================== */

@media (max-width: 768px) {
    
    /* ========== 强制显示底部Tab ========== */
    
    .sidebar {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100px !important;
        background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%) !important;
        padding: 6px !important;
        gap: 4px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 99999 !important;
    }
    
    /* Tab项目 */
    .nav-item {
        display: flex !important;
        visibility: visible !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px 2px !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        transition: all 0.2s !important;
        cursor: pointer !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    /* Tab图标 */
    .nav-item .icon {
        font-size: 20px !important;
        margin: 0 0 2px 0 !important;
        display: block !important;
    }
    
    /* 激活Tab */
    .nav-item.active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4)) !important;
        color: #ffffff !important;
    }
    
    /* 触摸反馈 */
    .nav-item:active {
        transform: scale(0.95) !important;
    }
    
    /* ========== 内容区域留空间 ========== */
    
    .content {
        padding-bottom: 110px !important;
    }
    
    /* ========== 隐藏桌面版侧边栏的其他样式 ========== */
    
    .main-container {
        flex-direction: column !important;
    }
}

