/* 手机端专用样式 - 修复侧边栏白色文字问题 */
@media (max-width: 768px) {
    /* 显示菜单按钮 */
    .mobile-only {
        display: inline-block !important;
        background: #333 !important;
        color: white !important;
        border-radius: 8px !important;
        padding: 5px 10px !important;
    }
    
    /* 顶部导航栏 */
    .top-nav-container, .top-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .top-user-info {
        gap: 8px !important;
    }
    .top-points, .logout-top {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* 侧边栏 - 深色背景，白色文字 */
    .sidebar {
        position: fixed !important;
        top: 60px !important;
        left: -85% !important;
        width: 85% !important;
        height: calc(100% - 60px) !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        background: #2c3e50 !important;  /* 深蓝灰色背景 */
        overflow-y: auto !important;
        color: white !important;
    }
    .sidebar.open {
        left: 0 !important;
    }
    
    /* 侧边栏菜单项 */
    .sidebar .nav-item {
        color: white !important;
        padding: 12px 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    .sidebar .nav-item:hover {
        background: #1a252f !important;
    }
    .sidebar .nav-section-title {
        color: #ecf0f1 !important;
        font-size: 12px !important;
        padding: 15px 20px 5px !important;
    }
    
    /* 主内容区 */
    .main-content {
        margin-left: 0 !important;
        padding: 10px !important;
    }
    
    /* 表格滚动 */
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    table {
        min-width: 600px !important;
    }
    
    /* 商品网格 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    body {
        font-size: 14px !important;
    }
    h2, .card-title {
        font-size: 18px !important;
    }
}
