/* ===== 数据接入管理模块样式 ===== */
.data-ingest-section { display: none; }

.data-ingest-header {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    color: #fff;
    padding: 24px 32px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.data-ingest-header h2 { font-size: 1.3rem; margin: 0; }
.data-ingest-header p { margin: 4px 0 0; opacity: 0.85; font-size: 0.85rem; }
.data-ingest-header .refresh-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.data-ingest-header .refresh-btn:hover { background: rgba(255,255,255,0.35); }

/* 指标卡片 */
.di-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.di-stat-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--r-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.di-stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.di-stat-icon.blue { background: #DBEAFE; color: #2563EB; }
.di-stat-icon.green { background: #D1FAE5; color: #059669; }
.di-stat-icon.amber { background: #FEF3C7; color: #D97706; }
.di-stat-icon.cyan { background: #CFFAFE; color: #0891B2; }
.di-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.di-stat-label { font-size: 0.8rem; color: var(--text-muted, #6b7280); }

/* 面板 */
.di-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.di-panel-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.di-panel-header h3 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.di-panel-body { padding: 20px 24px; }

/* 日志表格 */
.di-log-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.di-log-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}
.di-log-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.di-log-table tr:hover td { background: #f9fafb; }
.di-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.di-status-success { background: #D1FAE5; color: #059669; }
.di-status-fail { background: #FEE2E2; color: #B91C1C; }
.di-status-pending { background: #FEF3C7; color: #D97706; }

/* 数据源配置卡片 */
.di-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.di-source-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--r-md);
    padding: 16px;
    background: #f9fafb;
}
.di-source-card h4 { margin: 0 0 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.di-source-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.82rem; border-bottom: 1px solid #f3f4f6; }
.di-source-row:last-child { border-bottom: none; }
.di-source-row .label { color: #6b7280; }
.di-source-row .value { font-weight: 500; }

/* 空状态 */
.di-empty { text-align: center; padding: 40px; color: #9ca3af; }
.di-empty i { font-size: 48px; display: block; margin-bottom: 12px; }

/* 响应式 */
@media (max-width: 768px) {
    .di-stats { grid-template-columns: 1fr 1fr; }
    .di-source-grid { grid-template-columns: 1fr; }
}
