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

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    letter-spacing: 0;
}

.btn-edit {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
}

.btn-view {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.btn-view:hover {
    background: linear-gradient(135deg, #fed6e3 0%, #a8edea 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%);
}

.btn-info {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #333;
}

.btn-info:hover {
    background: linear-gradient(135deg, #8fd3f4 0%, #84fab0 100%);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.alert:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    border-left: 12px solid #e67e22;
    font-weight: 600;
    animation: pulse 1s infinite;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
    font-size: 16px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    border-left: 5px solid #e74c3c;
    animation: pulse 2s infinite;
}

.alert-dismissible {
    padding-right: 35px;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: inherit;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}

/* 业务到期提醒样式 */
.reminder-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-left: 5px solid #007bff;
    transition: all 0.3s ease;
}

.reminder-section:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.reminder-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminder-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reminder-summary {
    display: flex;
    gap: 8px;
}

.reminder-summary .badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.reminder-summary .badge-danger {
    background-color: #ff6b6b;
    color: white;
    animation: pulse 2s infinite;
}

.reminder-summary .badge-warning {
    background-color: #ffa502;
    color: white;
}

.reminder-summary .badge-info {
    background-color: #4dabf7;
    color: white;
}

.reminder-overview {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reminder-overview strong {
    font-size: 1.4em;
    font-weight: 800;
    color: #e74c3c !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(231, 76, 60, 0.1);
    animation: pulse 1.5s infinite;
}

.reminder-overview strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e67e22;
    border-radius: 2px;
}

.reminder-overview.cursor-pointer {
    cursor: pointer;
}

.reminder-overview.cursor-pointer:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25);
    border-left-width: 15px;
    border-color: #c0392b;
    transition: all 0.3s ease;
    background-color: #fff9c4;
}

.reminder-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: inherit;
    opacity: 0.7;
}

.reminder-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.3s ease;
}

.reminder-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.reminder-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.reminder-list th,
.reminder-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.reminder-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.reminder-list tr:hover {
    background-color: #f8f9fa;
}

.reminder-list tr.bg-danger-light {
    background-color: #ffebee;
}

.reminder-list tr.bg-warning-light {
    background-color: #fff3e0;
}

.reminder-list tr.bg-info-light {
    background-color: #e3f2fd;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reminder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .reminder-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .reminder-list th,
    .reminder-list td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .reminder-list th {
        font-size: 11px;
    }
}

/* 统计卡片样式 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
}

.stat-card .stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.1;
    color: #667eea;
}

/* 特定状态的统计卡片颜色 */
.stat-card-all::before {
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.stat-card-active::before {
    background: linear-gradient(to bottom, #4facfe, #00f2fe);
}

.stat-card-expired::before {
    background: linear-gradient(to bottom, #ff9a9e, #fecfef);
}

.stat-card-completed::before {
    background: linear-gradient(to bottom, #84fab0, #8fd3f4);
}

/* 提醒摘要样式 */
.reminder-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    align-items: center;
}

.reminder-summary h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Badge样式增强 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* 特定状态的Badge样式 */
.badge-danger {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #ffffff;
}

.badge-warning {
    
    color: #92400e;
}

.badge-info {
    background: linear-gradient(135deg, #cffafe 0%, #bae6fd 100%);
    color: #0369a1;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* 紧急提醒的动画效果 */
.badge-urgent {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 3px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 3px 10px rgba(0,0,0,0.1), 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 3px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 提醒列表样式 */
.reminder-list {
    margin-top: 20px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* 背景颜色辅助类 */
.bg-danger-light {
    background-color: #fdf2f2;
}

.bg-warning-light {
    background-color: #fffbf0;
}

.bg-info-light {
    background-color: #f0f7ff;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 响应式提醒样式 */
@media (max-width: 768px) {
    .alert h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .reminder-summary {
        margin-top: 10px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 表格容器 */
.table-container { border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); overflow: hidden; border: 1px solid #e9ecef; }

.table { border: none; border-radius: 12px; margin-bottom: 0; width: 100%; border-collapse: collapse; background-color: white; }

/* 表头样式 */
.table thead th { background-color: #f8f9fa; font-weight: 600; color: #495057; border-bottom: 2px solid #e3e6e8; position: relative; padding: 14px 16px; white-space: nowrap; }
.table thead th::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 1px; background: linear-gradient(to right, transparent, #dee2e6, transparent); }

/* 排序表头样式 */
.sortable-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.header-text { font-weight: 600; }
.sort-icon { margin-left: 4px; color: #6c757d; font-size: 14px; transition: transform 0.2s ease; }
.table thead th:hover .sort-icon { transform: scale(1.1); }
.table thead th a { color: inherit; text-decoration: none; display: block; }
.table thead th a:hover { color: #007bff; }

/* 表格单元格样式 */
.table td { vertical-align: middle; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.table th { border-top: none; }

/* 表格行样式 */
.customer-row { transition: all 0.25s ease; border-left: 3px solid transparent; }
.customer-row:hover { background-color: #f8f9fa; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05); border-left-color: #007bff; }
.table tbody tr:last-child td { border-bottom: none; }

/* 列宽和特定列样式 */
.id-column { width: 80px; text-align: center; }
.checkbox-column { width: 60px; text-align: center; }
.name-column { width: 150px; }
.phone-column { width: 140px; }
.email-column { width: 200px; }
.address-column { width: 220px; }
.date-column { width: 160px; }
.actions-column { width: 180px; }

/* ID徽章样式 */
.id-badge { display: inline-block; padding: 4px 10px; background-color: #e3f2fd; color: #1976d2; border-radius: 12px; font-size: 12px; font-weight: 600; }

/* 客户信息样式 */
.customer-info { display: flex; align-items: center; }
.customer-name { font-weight: 600; color: #007bff; }

/* 信息单元格样式 */
.info-cell { display: flex; align-items: center; }
.info-cell i { color: #6c757d; margin-right: 8px; font-size: 14px; min-width: 16px; text-align: center; }
.text-muted { color: #999; }
.truncate { max-width: 300px; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; white-space: pre-wrap; }

/* 操作按钮容器 */
.action-buttons { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.action-buttons .btn { font-size: 12px; padding: 5px 10px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; border: none; }
.action-buttons .btn i { margin-right: 4px; font-size: 11px; }
.action-text { font-size: 11px; }

/* 按钮样式优化 */
.btn-edit { background-color: #28a745; color: white; }
.btn-edit:hover { background-color: #218838; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3); }

.btn-view { background-color: #17a2b8; color: white; }
.btn-view:hover { background-color: #138496; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3); }

.btn-info { background-color: #6c757d; color: white; }
.btn-info:hover { background-color: #5a6268; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3); }

.btn-danger { background-color: #dc3545; color: white; }
.btn-danger:hover { background-color: #c82333; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3); }

/* 状态行样式 */
.table tbody tr.status-active { background-color: #f0f9ff; border-left: 3px solid #007bff; }
.table tbody tr.status-inactive { background-color: #fff5f5; border-left: 3px solid #dc3545; }
.table tbody tr.status-pending { background-color: #fffaf0; border-left: 3px solid #ffc107; }

/* 表格间距样式 */
.table > thead > tr > th, .table > tbody > tr > td { line-height: 1.5; }

/* 响应式表格样式 */
@media (max-width: 1200px) {
    .table-container { overflow-x: auto; }
    .table { min-width: 900px; }
}

@media (max-width: 768px) {
    .table-responsive { border: 0; overflow: visible; }
    .table-container { box-shadow: none; border: none; }
    .table thead { display: none; }
    .customer-row { display: block; margin-bottom: 20px; border: 1px solid #e8e8e8; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); overflow: hidden; background-color: white; }
    .customer-row td { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 16px; position: relative; border: none; border-bottom: 1px solid #f5f5f5; text-align: left; }
    .customer-row td:last-child { border-bottom: none; padding-bottom: 16px; }
    .customer-row td:before { content: attr(data-label); font-weight: 600; color: #666; display: block; margin-bottom: 4px; font-size: 13px; }
    
    /* 响应式按钮样式 */
    .action-buttons { display: flex; gap: 8px; margin-top: 8px; width: 100%; flex-wrap: wrap; }
    .action-buttons .btn { flex: 1; min-width: 80px; justify-content: center; padding: 8px 12px; font-size: 13px; }
    .action-text { display: inline-block; font-size: 12px; }
    .action-buttons .btn i { margin-right: 4px; font-size: 13px; }
    
    /* 信息单元格响应式 */
    .info-cell { flex-direction: column; align-items: flex-start; width: 100%; }
    .info-cell i { margin-bottom: 4px; margin-right: 0; font-size: 14px; }
    
    /* 修复移动端文字重叠问题 - 允许文本换行 */
    .truncate { white-space: normal; overflow: visible; text-overflow: clip; }
    .address-column .info-cell { white-space: normal; word-wrap: break-word; }
}

.text-center {
    text-align: center;
}

/* 导航栏样式 */
.nav-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-tab:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.nav-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.nav-tab.badge {
    position: relative;
}

.nav-tab .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 10px;
    background: #e74c3c;
    color: white;
}

/* 状态样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-notice {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-normal {
    background-color: #d4edda;
    color: #155724;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #adb5bd;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.card h2, .card h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
}

/* 信息项样式 */
.info-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.info-item:hover {
    background-color: #e9ecef;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.info-item strong {
    color: #2c3e50;
    display: inline-block;
    width: 120px;
}

/* 表单行样式 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* 表单操作按钮区域 */
.form-actions {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.radio-group label:hover {
    color: #667eea;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 媒体查询 */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    .nav-tab {
        display: inline-block;
        min-width: 120px;
    }
    .search-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 5px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* 响应式表格 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 640px;
    }
    
    /* 响应式统计卡片 */
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* 分页基础样式 */
    .pagination {
        display: flex;
        justify-content: center;
        padding: 20px 0;
        list-style: none;
        margin: 0;
    }

    .pagination li {
        margin: 0 4px;
    }

    .pagination a {
        display: block;
        padding: 10px 16px;
        text-decoration: none;
        color: #667eea;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
    }

    .pagination a:hover {
        background-color: #f8f9fa;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .pagination .active a {
        background-color: #667eea;
        color: white;
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .pagination .disabled a {
        color: #ccc;
        cursor: not-allowed;
        background-color: #f9f9f9;
    }

    .pagination .disabled a:hover {
        background-color: #f9f9f9;
        border-color: #ddd;
        transform: none;
        box-shadow: none;
    }

    /* 响应式分页 */
    .pagination {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .pagination-info {
        margin-right: 10px;
        text-align: left;
    }
    
    /* 响应式搜索 */
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    .input-group input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    
    /* 统计卡片单列显示 */
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    /* 按钮适应屏幕 */
    .btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 15px;
    }
    .header-actions {
        flex-direction: column;
    }
    
    /* 客户列表进一步优化 */
    .table-responsive {
        padding: 0 5px;
    }
    
    .customer-row {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .customer-row td {
        padding: 10px 14px !important;
    }
    
    /* 按钮组优化 */
    .action-buttons {
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .action-buttons .btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 14px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .action-buttons .btn i {
        margin-right: 4px;
        font-size: 14px;
    }
    
    .action-text {
        display: inline-block !important;
        font-size: 12px;
    }
    
    /* 优化图标大小 */
    .info-cell i {
        font-size: 13px;
    }
}