/* 自定义样式 */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* 导航栏样式 */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* 表格样式 */
table {
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
}

table tbody tr:hover {
    background-color: #f9fafb;
}

/* 卡片悬浮效果 */
section:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}