/* --- 1. 全局与背景 --- */
body {
    background-color: #f5f7fa;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: #344767;
}

/* --- 2. 登录页面样式 (新增) --- */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #e2e8f0 0%, #f5f7fa 100%);
}
.login-card {
    width: 400px;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* --- 3. 导航栏样式 (升级) --- */
.navbar-glass {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.navbar-logo {
    mix-blend-mode: multiply; 
    object-fit: contain;
    height: 40px; /* 稍微调小一点适配导航 */
}
/* 导航链接样式 */
.nav-link-custom {
    color: #67748e !important;
    font-weight: 600;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: #cb0c9f !important; /* 品牌色高亮 */
}

/* --- 4. KPI 卡片与图表 --- */
.premium-card {
    background: #ffffff;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.trend-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 8px;
}
.trend-up { background-color: #ecfdf5; color: #059669; }
.trend-down { background-color: #fef2f2; color: #dc2626; }

/* 字体与大数字 */
.metric-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.metric-value {
    font-size: 2.5rem; /* 放大数字 */
    font-weight: 800;
    color: #2d3748;
}

/* 排行榜 */
.ranking-item {
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}
.rank-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: bold;
}
.rank-1 { background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%); }
.rank-2 { background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%); }
.rank-3 { background: linear-gradient(135deg, #B08D55 0%, #8C7853 100%); }
.rank-other { background: #E2E8F0; color: #718096; }