/* ===== 数据中心 通用样式 ===== */
.dc-page { padding: 0; }
.dc-page-title { font-size: 20px; font-weight: 600; color: #171A20; margin-bottom: 14px; letter-spacing: -0.3px; }

/* 顶部子 Tab（仿客服工具 info-tabs 样式） */
.dc-tabs { display: flex; align-items: center; gap: 0; border-bottom: 1px solid #EEEEEE; margin-bottom:16px; flex-wrap: wrap; }
.dc-tab { position: relative; padding: 12px 22px 14px; font-size: 14px; color: #4b5563; background: none; border: none; cursor: pointer; transition: color 0.2s; white-space: nowrap; font-family: inherit; }
.dc-tab:hover { color: #1D4ED8; }
.dc-tab.active { color: #1D4ED8; font-weight: 600; }
.dc-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 22px; right: 22px; height: 2px; background: #1D4ED8; border-radius: 1px; }

.dc-pane { display: none; }
.dc-pane.active { display: block; }

/* 容器卡 */
.dc-card { background: #fff; border: 1px solid #EEF0F3; border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.dc-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 14px; flex-wrap: wrap; }
.dc-card-title { font-size:14px; font-weight: 600; color: #171A20; display: flex; align-items: center; gap: 8px; }
.dc-card-title::before { content: ""; width: 3px; height: 14px; background: #1D4ED8; border-radius: 2px; }
.dc-card-title .meta { font-size: 12px; font-weight: 400; color: #8B90A0; margin-left: 8px; }

/* 日期 chips */
.dc-date-bar { display: flex; align-items: center; gap: 8px; }
.dc-date-chip { padding: 5px 14px; font-size: 13px; border: 1px solid #E5E7EB; background: #fff; border-radius: 6px; cursor: pointer; color: #4b5563; font-family: inherit; transition: all 0.18s; }
.dc-date-chip:hover { border-color: #1D4ED8; color: #1D4ED8; }
.dc-date-chip.active { background: rgba(79,110,247,0.10); border-color: #1D4ED8; color: #1D4ED8; font-weight: 500; }
.dc-date-bar .date-input { height: 28px; padding: 0 10px; border: 1px solid #E5E7EB; border-radius: 6px; font-size: 13px; font-family: inherit; color: #171A20; outline: none; }

/* KPI 卡片网格 */
.dc-kpi-grid { display: grid; gap: 14px; }
.dc-kpi-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dc-kpi-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.dc-kpi-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.dc-kpi { padding: 16px 18px; background: linear-gradient(180deg, #fff 0%, #FAFBFC 100%); border: 1px solid #EEF0F3; border-radius: 10px; transition: all 0.18s; }
.dc-kpi:hover { border-color: #1D4ED8; box-shadow: 0 4px 12px rgba(79,110,247,0.06); }
.dc-kpi .lbl { font-size: 12px; color: #4b5563; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 4px; }
.dc-kpi .help { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: #E0E4EA; color: #6C7285; font-size: 9px; cursor: help; line-height: 1; }
.dc-kpi .val { font-size: 24px; font-weight: 600; color: #171A20; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; letter-spacing: -0.3px; line-height: 1.1; }
.dc-kpi .val.zero { color: #B8BCC9; }
.dc-kpi .foot { margin-top: 8px; font-size: 12px; color: #8B90A0; }
.dc-kpi .foot .up { color: #22C55E; }
.dc-kpi .foot .down { color: #EF4444; }

/* 图表盒 */
.dc-chart-box { position: relative; height: 280px; padding: 12px; border: 1px solid #EEF0F3; border-radius: 8px; background: linear-gradient(to bottom, #FAFBFC, #fff); }
.dc-chart-box svg { width: 100%; height: 100%; overflow: visible; }
.dc-chart-box .grid line { stroke: #E8ECF0; stroke-dasharray: 2 4; }
.dc-chart-box .axis text { font-size: 10px; fill: #94A3B8; }
.dc-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 12px; color: #4b5563; }
.dc-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.dc-legend .dot { width: 10px; height: 10px; border-radius: 2px; }

/* 表格 */
.dc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dc-table thead th { background: #F9FAFB; padding: 12px 16px; font-size: 13px; color: #1A1D26; font-weight: 500; text-align: left; border-bottom: 1px solid #F3F4F6; white-space: nowrap; }
.dc-table tbody td { padding: 14px 16px; border-bottom: 1px solid #F3F4F6; color: #1A1D26; vertical-align: middle; font-size: 13px; }
.dc-table tbody tr:hover { background: #EFF6FF; }
.dc-table tbody tr:nth-child(even) { background: transparent; }
.dc-table tbody tr:nth-child(even):hover { background: #EFF6FF; }
.dc-table tbody tr:last-child td { border-bottom: none; }
.dc-table .num { text-align: right; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-variant-numeric: tabular-nums; }
.dc-table .pos { color: #FF6E00; }
.dc-table .neg { color: #EF4444; }
.dc-table .ok { color: #22C55E; }

/* 信息提示 */
.dc-tip { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; background: linear-gradient(135deg, #EFF6FF, #F8FAFF); border: 1px solid #BFDBFE; border-radius: 8px; font-size: 13px; color: #1E40AF; line-height: 1.6; margin-bottom: 16px; }
.dc-tip .ico { color: #3B82F6; flex-shrink: 0; }
.dc-tip strong { color: #1E3A8A; }

/* 空态 */
.dc-empty { padding: 80px 20px; text-align: center; color: #9CA3AF; }
.dc-empty .icon { font-size: 56px; margin-bottom: 12px; opacity: 0.5; }
.dc-empty .title { font-size: 14px; margin-bottom: 4px; color: #6B7280; }
.dc-empty .desc { font-size: 12px; }

/* 排行榜 */
.dc-rank-list { display: flex; flex-direction: column; gap: 10px; }
.dc-rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; transition: background 0.18s; }
.dc-rank-row:hover { background: #FAFBFC; }
.dc-rank-row .rk { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #F2F4F7; color: #6B7280; flex-shrink: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; }
.dc-rank-row.r1 .rk { background: #FAAD14; color: #fff; }
.dc-rank-row.r2 .rk { background: #B0B8C5; color: #fff; }
.dc-rank-row.r3 .rk { background: #D49B6C; color: #fff; }
.dc-rank-row .name { flex: 1; font-size: 13px; color: #171A20; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-rank-row .val { font-size: 13px; color: #1D4ED8; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; flex-shrink: 0; }

/* 双列 grid */
.dc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .dc-row-2 { grid-template-columns: 1fr; } .dc-kpi-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } .dc-kpi-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
