/* 客户数据统计页面 - 苹果风格设计 */

/* 登录页面样式 - 使用更高优先级 */
body .login-container {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 20px !important;
}

body .login-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 24px !important;
    padding: 48px !important;
    width: 100% !important;
    max-width: 480px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    z-index: 10 !important;
    animation: slideUp 0.6s ease-out !important;
}

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

body .login-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

body .logo-container {
    margin-bottom: 24px !important;
}

body .logo-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3) !important;
}

.logo-icon i {
    font-size: 36px;
    color: white;
}

body .login-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em !important;
}

body .login-subtitle {
    font-size: 16px !important;
    color: #86868b !important;
    font-weight: 500 !important;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.error-message i {
    font-size: 16px;
}

.login-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    font-size: 14px;
}

.form-label i {
    color: #667eea;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.input-focus-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control:focus + .input-focus-border {
    border: 2px solid #667eea;
    transform: scale(1.02);
}

.form-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint i {
    color: #667eea;
    font-size: 12px;
}

body .login-button {
    width: 100% !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3) !important;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.button-text {
    font-size: 16px;
}

.security-note {
    text-align: center;
    color: #86868b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.security-note i {
    color: #667eea;
    font-size: 14px;
}

.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .logo-icon {
        width: 64px;
        height: 64px;
    }
    
    .logo-icon i {
        font-size: 28px;
    }
}

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1d1d1f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding: 20px 0;
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 页面标题样式 */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 30px 0 40px 0;
    color: #1d1d1f;
    position: relative;
    letter-spacing: -0.02em;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007aff, #5856d6);
    border-radius: 2px;
}

/* 统计卡片样式 */
.stats-cards {
    margin-bottom: 40px;
}

.stats-cards .col-md-2,
.stats-cards .col-md-3 {
    padding: 0 8px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007aff, #5856d6);
    border-radius: 16px 16px 0 0;
}

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

.stat-header {
    font-size: 0.85rem;
    color: #86868b;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.stat-change {
    font-size: 0.8rem;
    color: #86868b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.change-icon {
    font-size: 0.9rem;
    color: #007aff;
}

/* 特殊卡片样式 */
.today-new::before { background: linear-gradient(90deg, #34c759, #30d158); }
.yesterday-new::before { background: linear-gradient(90deg, #ff9500, #ffb340); }
.week-new::before { background: linear-gradient(90deg, #007aff, #5856d6); }
.month-new::before { background: linear-gradient(90deg, #5856d6, #af52de); }
.active-30::before { background: linear-gradient(90deg, #ff3b30, #ff6961); }
.total-customers::before { background: linear-gradient(90deg, #34c759, #007aff); }

/* 渐变背景卡片样式 */
.stat-card[style*="gradient"] {
    color: white;
    border: none;
}

.stat-card[style*="gradient"] .stat-header {
    color: rgba(255, 255, 255, 0.85) !important;
}

.stat-card[style*="gradient"] .stat-number {
    color: white !important;
}

.stat-card[style*="gradient"] .stat-change {
    color: rgba(255, 255, 255, 0.75) !important;
}

.stat-card[style*="gradient"] .change-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 刷新按钮样式 */
.refresh-btn {
    background: #007aff;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.refresh-btn:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    color: white;
}

/* 导出按钮样式 */
#exportTodayUsersBtn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    font-size: 0.9rem;
}

#exportTodayUsersBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1e9a85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
    color: white;
}

#exportTodayUsersBtn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

/* 区域标题样式 */
.custom-date-query {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.custom-date-query h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.custom-date-query p {
    color: #86868b;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.5;
}

/* 图表容器样式 */
.chart-container {
    margin-bottom: 40px;
}

.chart-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 400px;
    margin-bottom: 20px;
}

.chart-panel h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f2f7;
    letter-spacing: -0.01em;
}

.chart-panel canvas {
    max-width: 100% !important;
    max-height: 320px !important;
}

/* 数据表格容器样式 */
.data-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.data-table-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

/* 表格样式 - 修复对齐问题 */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e5e5ea;
    background: white;
    width: 100%;
    table-layout: auto;
}

.table thead th {
    background: #f2f2f7;
    color: #1d1d1f;
    font-weight: 600;
    border: none;
    padding: 16px 12px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #e5e5ea;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f2f2f7;
    vertical-align: middle;
    color: #1d1d1f;
    font-weight: 500;
    background: white;
    text-align: center;
    word-wrap: break-word;
}

/* 特定列的对齐方式 */
.table tbody td:nth-child(1) { /* 客户ID */
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', Monaco, monospace;
    font-weight: 600;
}

.table tbody td:nth-child(2) { /* 姓名 */
    text-align: left;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table tbody td:nth-child(3) { /* 手机号 */
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
}

.table tbody td:nth-child(4),  /* 总消息数/总链接消息 */
.table tbody td:nth-child(5),  /* 活跃天数/Telegram消息 */
.table tbody td:nth-child(6) { /* 最后消息时间/WhatsApp消息 */
    text-align: center;
}

.table tbody td:nth-child(7) { /* 操作列 */
    text-align: center;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
    background: white;
}

.table tbody tr:hover {
    background: #f9f9fb !important;
    transform: none;
}

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

/* 确保表格中的数字和文字清晰可见 */
.table tbody td {
    color: #1d1d1f !important;
    font-weight: 500 !important;
}

/* 链接样式 */
.table tbody td a {
    color: #007aff !important;
    text-decoration: none;
    font-weight: 600;
}

.table tbody td a:hover {
    color: #0056cc !important;
    text-decoration: underline;
}

/* 表格中的数字样式美化 */
.table tbody td:nth-child(4) span,  /* 总消息数/总链接消息 */
.table tbody td:nth-child(5) span,  /* 活跃天数/Telegram消息 */
.table tbody td:nth-child(6) span { /* WhatsApp消息 */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5ea;
}

/* 特殊数字样式 */
.table tbody td:nth-child(4) span {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0 !important;
    border-color: #90caf9;
}

.table tbody td:nth-child(5) span {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32 !important;
    border-color: #81c784;
}

.table tbody td:nth-child(6) span {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #ef6c00 !important;
    border-color: #ffb74d;
}

/* 美化表格图标 */
.table thead th i {
    color: #007aff;
    margin-right: 6px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 操作按钮美化 */
.table tbody td:last-child a,
.table tbody td .btn {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    border: none;
    cursor: pointer;
}

.table tbody td:last-child a:hover,
.table tbody td .btn:hover {
    background: linear-gradient(135deg, #0056cc, #4c44c4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    text-decoration: none !important;
}

/* 响应式表格 */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 时间显示样式 */
.table tbody td small {
    color: #86868b;
    font-size: 0.8rem;
    font-weight: 400;
}

/* 客户名称链接样式 */
.customer-name-link {
    color: #007aff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.customer-name-link:hover {
    color: #0056cc !important;
    text-decoration: underline;
}

/* 表格头部固定样式 */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f2f2f7 !important;
}

/* 表格内容对齐优化 */
.table tbody td:first-child {
    font-weight: 600;
    color: #007aff;
}

/* 数字列样式统一 */
.table tbody td[data-type="number"] {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', Monaco, monospace;
    font-weight: 600;
    text-align: center;
}

/* 表格加载状态 */
.table tbody .loading-placeholder {
    padding: 60px 20px;
}

/* 表格空状态 */
.table tbody .empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #86868b;
}

.table tbody .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 表格分页样式 */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-link {
    color: #007aff;
    border: 1px solid #e5e5ea;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #f2f2f7;
    border-color: #007aff;
    color: #0056cc;
}

.pagination .page-item.active .page-link {
    background: #007aff;
    border-color: #007aff;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #86868b;
    background: #f8f9fa;
    border-color: #e5e5ea;
}

/* 徽章样式 - 苹果风格 */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 2px;
    letter-spacing: 0.01em;
}

.badge-primary {
    background: #007aff;
    color: white;
}

.badge-info {
    background: #5856d6;
    color: white;
}

.badge-success {
    background: #34c759;
    color: white;
}

/* 加载动画 */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #86868b;
}

.loading-placeholder span {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    font-weight: 600;
    color: #1d1d1f;
    backdrop-filter: blur(20px);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f2f2f7;
    border-top: 2px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示样式 */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #d70015;
    border-left: 3px solid #ff3b30;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #1f8400;
    border-left: 3px solid #34c759;
}

.alert-info {
    background: rgba(0, 122, 255, 0.1);
    color: #0040dd;
    border-left: 3px solid #007aff;
}

/* 按钮样式 */
.btn {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #007aff;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    color: white;
}

.btn-secondary {
    background: #8e8e93;
    color: white;
    box-shadow: 0 4px 16px rgba(142, 142, 147, 0.3);
}

.btn-secondary:hover {
    background: #6d6d70;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142, 142, 147, 0.4);
    color: white;
}

/* 页脚样式 */
.footer-info {
    background: rgba(242, 242, 247, 0.8);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-info p {
    margin: 0;
    line-height: 1.6;
    color: #86868b;
}

.footer-info i {
    color: #007aff;
}

#lastUpdateTime {
    font-weight: 600;
    color: #1d1d1f;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container-fluid {
        max-width: 100%;
        margin: 0 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px 0;
    }
    
    .container-fluid {
        margin: 0 8px;
        padding: 0 16px;
        border-radius: 20px;
    }
    
    .page-title {
        font-size: 2rem;
        margin: 24px 0 32px 0;
    }
    
    .stats-cards .col-md-2,
    .stats-cards .col-md-3 {
        width: 50%;
        float: left;
        padding: 0 4px;
    }
    
    .stat-card {
        height: 120px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .chart-panel {
        height: 350px;
        padding: 24px;
        border-radius: 16px;
    }
    
    .chart-panel canvas {
        max-height: 250px !important;
    }
    
    .custom-date-query,
    .data-table-container {
        padding: 24px;
        border-radius: 16px;
    }
    
    .footer-info {
        padding: 16px;
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .stats-cards .col-md-2,
    .stats-cards .col-md-3 {
        width: 100%;
        float: none;
        padding: 0 4px;
        margin-bottom: 12px;
    }
    
    .stat-card {
        height: 110px;
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .chart-panel {
        height: 300px;
        padding: 20px;
    }
    
    .chart-panel canvas {
        max-height: 200px !important;
    }
    
    .custom-date-query,
    .data-table-container {
        padding: 20px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .footer-info {
        padding: 16px;
        margin: 16px 0;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
}

/* 特殊效果 - 苹果风格 */
.stat-card,
.chart-panel,
.custom-date-query,
.data-table-container {
    position: relative;
    overflow: hidden;
}

.stat-card:hover,
.chart-panel:hover,
.custom-date-query:hover,
.data-table-container:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 滚动条样式 - 苹果风格 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f2f2f7;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #c7c7cc;
    border-radius: 8px;
}

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

/* 图标动画效果 */
.fas, .fab {
    transition: all 0.3s ease;
}

.stat-card:hover .fas,
.stat-card:hover .fab {
    transform: scale(1.05);
}

.chart-panel:hover .fas,
.chart-panel:hover .fab {
    color: #007aff;
}

/* 数据加载状态 */
.loading-placeholder .fas {
    color: #007aff;
}

/* 表格行悬停效果增强 */
.table tbody tr:hover {
    box-shadow: none;
}

/* 按钮组样式 */
.btn-group .btn {
    margin: 0 4px;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 500;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 进度条样式 */
.progress {
    height: 6px;
    border-radius: 8px;
    background: #f2f2f7;
    overflow: hidden;
}

.progress-bar {
    background: #007aff;
    border-radius: 8px;
    transition: width 0.6s ease;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background: #34c759;
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3);
}

.status-offline {
    background: #ff3b30;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.3);
}

.status-warning {
    background: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.3);
} 
 