/* 数据展示样式系统 - 与网站整体设计规范保持一致 */

/* ===== Hero Section 样式 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary, #165DFF) 0%, #2B6AFF 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-light .breadcrumb-item.active {
    color: white;
}

/* ===== 紧凑型指标卡片 ===== */
.metric-card-compact {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.metric-card-compact:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.metric-card-compact .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.metric-card-compact .label {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.metric-card-compact .value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-card-compact .unit {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.metric-card-compact .change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ===== 自定义标签页 ===== */
.nav-tabs-custom {
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.nav-tabs-custom .nav-link {
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray, #86909C);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
    background: var(--light-gray, #F2F3F5);
    color: var(--dark, #1D2129);
}

.nav-tabs-custom .nav-link.active {
    background: linear-gradient(135deg, var(--primary, #165DFF), #2B6AFF);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

/* ===== 数据表格样式 ===== */
.data-table th {
    background: var(--light-gray, #F2F3F5);
    font-weight: 600;
    color: var(--dark, #1D2129);
    border-bottom: 2px solid var(--border, #E5E6EB);
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-table td {
    vertical-align: middle;
    color: var(--dark, #1D2129);
}

/* ===== 排名徽章 ===== */
.rank-badge-national {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #FF7D00, #FF9A2E);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-badge-province {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== 进度条 ===== */
.progress-thin {
    height: 4px;
    background: var(--light-gray, #F2F3F5);
    border-radius: 2px;
    overflow: hidden;
}

.progress-thin .progress-bar {
    border-radius: 2px;
}

/* ===== 同比变化指示器 ===== */
.yoy-up { 
    color: var(--success, #00B42A); 
    font-weight: 600; 
}
.yoy-down { 
    color: var(--danger, #F53F3F); 
    font-weight: 600; 
}
.yoy-flat { 
    color: var(--gray, #86909C); 
    font-weight: 600; 
}

/* ===== 年份区块 ===== */
.year-section {
    margin-bottom: 1.5rem;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.year-badge {
    background: linear-gradient(135deg, var(--primary, #165DFF), #2B6AFF);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
    }
}
