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

/* 字体全局优化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
}

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* 文本颜色优化 */
.text-gray-800 { color: #2c3e50; }
.text-gray-700 { color: #34495e; }
.text-gray-600 { color: #666666; }
.text-gray-500 { color: #7f8c8d; }
.text-gray-400 { color: #95a5a6; }

/* 元数据文本样式 */
.meta {
    color: #95a5a6;
    font-size: 0.875rem;
}

/* 客户详情页面样式优化 */
.customer-detail-section {
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.customer-detail-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 分隔线样式 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1rem 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

/* 基本信息卡片样式增强 */
.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666666;
    min-width: 100px;
    margin-right: 15px;
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    font-weight: 500;
    color: #333333;
    font-size: 0.95rem;
}

/* 客户信息状态标签样式 - 提高可读性 */
.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 状态标签颜色变体 */
.status-badge.status-completed {
    background-color: #28a745;
    color: white;
}

.status-badge.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-badge.status-cancelled {
    background-color: #dc3545;
    color: white;
}

.status-badge.status-info {
    background-color: #17a2b8;
    color: white;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 增强版表格样式 - 提高可读性 */
.enhanced-table {
    font-size: 15px;
    font-weight: 450;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(142, 68, 173, 0.2);
}

.enhanced-table thead {
    background: linear-gradient(120deg, #8e44ad 0%, #3498db 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.enhanced-table th {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 25px 20px !important;
    text-align: left !important;
    border-bottom: none !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background-color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    border-right: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.enhanced-table td {
    padding: 15px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #343a40;
    line-height: 1.6;
    font-weight: 450;
}

.enhanced-table tr {
    height: 60px;
    transition: all 0.2s ease;
}

.enhanced-table tbody tr:last-child td {
    border-bottom: none;
}

.enhanced-table tr:hover {
    background-color: rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #1f2937;
    font-weight: 500;
}

.enhanced-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.enhanced-table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.enhanced-table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

/* 优化表格头部的复选框样式 */
.enhanced-table th input.form-check-input {
    margin-top: 0;
    transform: scale(1.1);
}

/* 优化表格单元格的复选框样式 */
.enhanced-table td input.form-check-input {
    margin-top: 0;
    transform: scale(1.1);
}

/* 按钮样式优化 */
.btn {
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 6px;
}

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

/* 客户详情页面按钮样式 */
.customer-detail-btn {
    background-color: #ffffff;
    color: #2563eb;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.customer-detail-btn:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.customer-detail-btn i {
    font-size: 16px;
}

/* 客户详情信息项样式 */
.customer-detail-section .card-body {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    min-width: 100px;
}

.info-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.info-value.font-bold {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
}

/* 状态徽章样式 */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.status-badge.bg-blue-100 {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-badge.bg-green-100 {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.bg-yellow-100 {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.bg-red-100 {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 分隔线样式 */
.divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 15px 0;
}

/* 文本颜色类 */
.text-gray-500 {
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-md-4,
    .col-md-8 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .customer-detail-section {
        margin-bottom: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .info-label {
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-header-primary {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .enhanced-table td {
        padding: 8px 10px;
        font-size: 0.875rem;
    }
    /* 保持表头样式在平板设备上的视觉效果 */
    .enhanced-table th {
        padding: 12px 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    
    .timeline-content {
        padding: 12px;
        margin-left: 15px;
    }
    
    .timeline-marker {
        width: 10px;
        height: 10px;
        left: -5px;
    }
    
    .timeline-item::before {
        left: 0;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header .d-flex {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .card-header-primary {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .enhanced-table {
        font-size: 0.8rem;
    }
    
    .enhanced-table th {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
    
    .enhanced-table td {
        padding: 8px 10px;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .enhanced-table .btn-sm {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .enhanced-table .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 客户备注样式 */
.notes-section {
    background-color: #fff8f0;
    border-left: 4px solid #fa8c16;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 1.5rem;
    position: relative;
}

.notes-section::before {
    content: '📝';
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #fa8c16;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 主题颜色变量 - 优化的橙色系列 */
:root {
    --primary-color: #FF6B35;
    --primary-hover: #E55E2E;
    --primary-light: #FFF0E6;
    --primary-border: #FFD9C8;
    --success-color: #2ECC71;
    --success-light: #E8F5E9;
    --warning-color: #F39C12;
    --warning-light: #FFF3E0;
    --danger-color: #E74C3C;
    --danger-light: #FFEBEE;
    --info-color: #3498DB;
    --info-light: #E3F2FD;
    --light-gray: #F8F9FA;
    --border-color: #E9ECEF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --shadow-sm: 0 2px 5px rgba(255, 107, 53, 0.1);
    --shadow-md: 0 4px 15px rgba(255, 107, 53, 0.08);
    --shadow-lg: 0 8px 25px rgba(255, 107, 53, 0.12);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 14px;
    --transition-speed: 0.3s;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
    gap: 6px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.3);
}

/* 统一按钮基础样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 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, var(--primary-color) 0%, #FF8A65 100%);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 成功按钮样式 */
.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #27AE60 100%);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

/* 警告按钮样式 */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #E67E22 100%);
    color: white;
    border-color: var(--warning-color);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #C0392B 100%);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* 信息按钮样式 */
.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2980B9 100%);
    color: white;
    border-color: var(--info-color);
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* 操作按钮特殊样式 */
.btn-action {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
    min-width: 60px;
}

/* 详情按钮 */
.btn-detail {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8A65 100%);
    color: white;
    border-color: var(--primary-color);
}

.btn-detail:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 编辑按钮 */
.btn-edit {
    background-color: white;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-edit:hover {
    background-color: var(--light-gray);
    border-color: var(--info-color);
    color: var(--info-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* 小按钮样式 */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* 大按钮样式 */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* 卡片通用样式 */
.card {
    background-color: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3, .card-header h4 {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* 卡片样式增强 */
.card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-enhanced:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

/* 卡片头部样式 */
.card-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* 彩色卡片头部 */
.card-header-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-bottom: none;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1.25rem 1.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-header-success {
    background-color: #28a745;
    color: white;
    border-bottom: none;
}

.card-header-info {
    background-color: #17a2b8;
    color: white;
    border-bottom: none;
}

.card-header-warning {
    background-color: #ffc107;
    color: #212529;
    border-bottom: none;
}

.card-header-secondary {
    background-color: #6c757d;
    color: #fff;
    border-bottom: none;
}

.card-header-danger {
    background-color: #dc3545;
    color: #fff;
    border-bottom: none;
}

/* 表单元素通用样式 */
.form-control,
.form-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.15);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

/* 徽章通用样式 */
.badge {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
}

.badge-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.badge-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.badge-warning {
    background-color: var(--warning-color);
    color: #ffffff;
}

.badge-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.badge-info {
    background-color: var(--info-color);
    color: #ffffff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

/* 客户类型标签特殊样式 */
.badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

/* 客户意向徽章 */
.badge.customer-intent {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.customer-intent:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 状态徽章 */
.badge.status-badge {
    background-color: var(--warning-light);
    color: var(--warning-color);
    border-color: var(--warning-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.status-badge:hover {
    background-color: var(--warning-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* 自定义客户意向徽章颜色 */
.badge.intent-s {
    background-color: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border-color: #FFD700;
}

.badge.intent-a {
    background-color: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-color: #FF6B35;
}

.badge.intent-b {
    background-color: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
    color: white;
    border-color: #4ECDC4;
}

.badge.intent-c {
    background-color: linear-gradient(135deg, #96CEB4 0%, #88D8B0 100%);
    color: white;
    border-color: #96CEB4;
}

/* 表格通用样式 */
.table {
    width: 100%;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.table:hover {
    box-shadow: var(--shadow-lg);
}

.table th,
.table td {
    padding: 20px 24px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.975rem;
    transition: all 0.2s ease;
}

/* 表格行样式 */
.table tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

/* 交替行背景色 */
.table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

/* 表格行悬停效果 */
.table tbody tr:hover {
    background-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
    z-index: 5;
    position: relative;
}

.table th {
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8A65 100%);
    color: white;
    text-align: left;
    letter-spacing: 0.2px;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 确保enhanced-table的表头样式优先级高于.table */
.enhanced-table thead th {
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 20px 24px !important;
    text-align: left !important;
    border-bottom: 3px solid var(--primary-color) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    letter-spacing: 0.5px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8A65 100%) !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase;
}

.table thead th {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.table thead th:last-child {
    border-right: none;
}

.table tbody + tbody {
    border-top: 1px solid var(--border-color);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(22, 93, 255, 0.08);
    transform: scale(1.005);
    border-radius: 4px;
}

/* 优化表格行hover效果 */
.enhanced-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.enhanced-table tbody tr:hover td {
    color: #1f2937;
    font-weight: 500;
}

/* 状态徽章样式优化 */
.enhanced-table .status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: inline-block;
    margin: 2px 0;
    border: 1px solid transparent;
}

.enhanced-table .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 表格按钮样式优化 */
.enhanced-table .btn-sm {
    font-size: 13px;
    padding: 7px 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.enhanced-table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

/* 时间线样式优化 */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -1.5rem;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.timeline-content {
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-content h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 0.75rem;
    color: #34495e;
    line-height: 1.6;
}

.timeline-content .meta {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 500;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 面包屑导航通用样式 */
.breadcrumb {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: '/';
}

.breadcrumb-item:first-child::before {
    display: none;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 分页控件通用样式 */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: var(--border-radius-sm);
    margin: 0;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #6c757d;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin: 0 2px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.page-link:hover {
    z-index: 2;
    color: var(--primary-color);
    background-color: #f1f3f5;
    border-color: var(--primary-color);
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: var(--border-color);
}

/* 提示框通用样式 */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 复选框和单选框通用样式 */
.form-check {
    position: relative;
    display: block;
    padding-left: 1.5rem;
}

.form-check-input {
    position: relative;
    margin-top: 0;
    margin-left: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

/* 表格中的复选框特殊样式 */
.table th input.form-check-input,
.table td input.form-check-input {
    position: relative;
    margin: 0;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

/* 模态框通用样式 */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    background-color: var(--light-gray);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

/* 页面标题通用样式 */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1,
.page-header h2,
.page-header h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    /* 按钮组响应式 */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    /* 表格响应式 */
    .table-responsive {
        overflow-x: auto;
    }
    
    /* 表单响应式 */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* 分页响应式 */
    .pagination {
        flex-wrap: wrap;
    }
    
    /* 统计数据响应式 */
    .data-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        justify-content: space-between;
    }
}

/* 加载状态样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-speed) ease;
}

.card-shadow:hover {
    box-shadow: var(--shadow-lg);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}