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

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    font-weight: 500;
}

/* #uploadStatus, #exportStatus {
    font-size: 0.9rem;
} */

#uploadStatus  {
    height: 200px;          /* 想要的固定高度 */
    overflow-y: auto;       /* 超出后自动出现垂直滚动条 */
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: .5rem;
    background-color: #f8f9fa;
}

#exportStatus  {
    height: 120px;          /* 想要的固定高度 */
    overflow-y: auto;       /* 超出后自动出现垂直滚动条 */
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: .5rem;
    background-color: #f8f9fa;
}

.analysis-section {
    margin-bottom: 2rem;
}

.table-responsive {
    margin-top: 1rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert {
    border-radius: 8px;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

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

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 自定义 Bootstrap Tooltip 文字左对齐 */
.tooltip-inner {
    text-align: left !important; /* 强制左对齐 */
}