/* 员工端样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #f8f9fa;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.login-header h2 {
    color: #333;
    margin-bottom: 8px;
}

/* 侧边栏 */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar .nav-link {
    color: #666;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.sidebar .nav-link.active {
    background-color: #667eea;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* 页面内容 */
.page-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.stat-card .label {
    color: #999;
    font-size: 14px;
}

/* 客户卡片 */
.customer-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.customer-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.customer-card .customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.customer-card .customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.customer-card .customer-phone {
    color: #999;
    font-size: 14px;
}

/* 抵扣券标签 */
.voucher-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.voucher-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.voucher-badge i {
    margin-right: 6px;
}

.voucher-badge.aftermarket {
    background-color: #e3f2fd;
    color: #1976d2;
}

.voucher-badge.phone {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.voucher-badge.accessory {
    background-color: #fff3e0;
    color: #f57c00;
}

.voucher-badge.universal {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ==================== 移动端适配 ==================== */

/* 手机端隐藏侧边栏，使用底部导航 */
@media (max-width: 768px) {
    /* 隐藏桌面侧边栏 */
    .sidebar {
        display: none !important;
    }
    
    /* 主内容区占满宽度 */
    .col-md-10 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* 顶部导航栏优化 */
    .navbar-brand {
        font-size: 16px;
    }
    
    /* 统计卡片适配 - 2x2网格 */
    .stat-card {
        margin-bottom: 12px;
        padding: 16px;
    }
    
    .stat-card .icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .stat-card .value {
        font-size: 32px;
        margin-bottom: 6px;
    }
    
    .stat-card .label {
        font-size: 12px;
    }
    
    /* 工作台行间距优化 */
    .row.g-3 {
        --bs-gutter-y: 12px;
        --bs-gutter-x: 12px;
    }
    
    /* 手机端统计卡片2列布局 */
    .row.g-3 .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* 客户卡片适配 */
    .customer-card {
        padding: 16px;
    }
    
    .customer-card .customer-name {
        font-size: 16px;
    }
    
    /* 抵扣券标签适配 */
    .voucher-badges {
        gap: 8px;
    }
    
    .voucher-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* 表单适配 */
    .form-label {
        font-size: 14px;
    }
    
    .form-control {
        font-size: 14px;
    }
    
    /* 按钮适配 */
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* 模态框适配 */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    /* 页面内容适配 */
    .page-content {
        padding: 12px;
    }
    
    /* 页面标题适配 */
    .page-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    /* 卡片标题适配 */
    .card-header h5,
    .card-header h6 {
        font-size: 14px;
    }
    
    /* 列表组适配 */
    .list-group-item {
        padding: 12px;
        font-size: 14px;
    }
    
    /* 表格适配 */
    .table {
        font-size: 13px;
    }
    
    .table td, .table th {
        padding: 8px;
    }
    
    /* 登录卡片适配 */
    .login-card {
        padding: 30px 20px;
    }
}

/* 底部导航栏（手机端） */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
    
    /* 为底部导航留出空间 */
    .container-fluid {
        padding-bottom: 70px;
    }
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: #667eea;
}

.mobile-nav-item.active i {
    color: #667eea;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.3s ease-out;
}

