/* 社会宏观数据：宽屏数据看板，沿用 common.css 基础配色 */
#app { max-width: 1380px; }
#view { max-width: none; padding: 16px 20px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; }
[hidden] { display: none !important; }

.mc-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #0f766e, #4f46e5);
  color: #fff; border-radius: 16px; padding: 17px 20px;
  line-height: 1.75; font-size: 13px; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .12);
}
.mc-hero b { font-size: 17px; }
.mc-disc { margin-left: auto; font-size: 12px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 12px; white-space: nowrap; }

.mc-controls { padding: 14px 16px; }
.mc-meta { font-size: 11px; color: #94a3b8; font-weight: 400; }
.mc-controls-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mc-controls-row label { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.mc-controls-row select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fff; color: #1e293b; outline: none; }
.mc-controls-row select:focus { border-color: #6366f1; }
.mc-controls .status { margin-top: 10px; }

.mc-tabs { flex-wrap: wrap; margin: 14px 0 10px; }
.mc-tabs .tab { user-select: none; }

.mc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mc-grid > .panel { margin-bottom: 0; }
.mc-pane > .panel { margin-bottom: 12px; }
.mc-pane > .mc-grid { margin-bottom: 12px; }
.mc-hint { font-size: 11px; color: #94a3b8; line-height: 1.65; margin-bottom: 10px; }
.mc-note-block { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12px; line-height: 1.7; }
.mc-list { margin: 0; padding-left: 18px; font-size: 12px; color: #64748b; line-height: 1.8; }
.mc-list li { margin-bottom: 4px; }

.mc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mc-kpi { background: linear-gradient(180deg, #ffffff, #f8fafc); border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; }
.mc-kpi .k { font-size: 11px; color: #64748b; }
.mc-kpi .v { font-size: 20px; font-weight: 750; margin-top: 5px; color: #0f172a; font-variant-numeric: tabular-nums; }
.mc-kpi .s { font-size: 10px; color: #94a3b8; margin-top: 4px; line-height: 1.4; }

.mc-chart { min-height: 220px; }
.mc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.mc-svg .grid { stroke: #eef2f7; stroke-width: 1; }
.mc-svg .axis { stroke: #cbd5e1; stroke-width: 1; }
.mc-svg .lbl { fill: #94a3b8; font-size: 10px; }
.mc-svg .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mc-svg .dot { stroke: #fff; stroke-width: 1.5; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; color: #64748b; }
.mc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.mc-empty { text-align: center; color: #94a3b8; font-size: 12px; padding: 28px 0; }

.mc-stack { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.mc-stack-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 116px; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.mc-stack-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.mc-stack-bar span { display: block; height: 100%; }
.mc-stack-val { text-align: right; font-variant-numeric: tabular-nums; color: #475569; }
.mc-stack-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #64748b; margin-top: 10px; }
.mc-stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.mc-scroll { max-height: 560px; overflow: auto; border: 1px solid #eef2f7; border-radius: 10px; }
.mc-table { min-width: 1600px; }
.mc-table th { position: sticky; top: 0; z-index: 2; }
.mc-table td { font-variant-numeric: tabular-nums; }
.mc-table .partial { color: #b45309; background: #fffbeb; }

.mc-events { display: flex; flex-direction: column; gap: 7px; max-height: 260px; overflow-y: auto; }
.mc-event { border: 1px solid #eef2f7; border-radius: 9px; padding: 8px 10px; font-size: 11px; color: #64748b; }
.mc-event b { color: #1e293b; font-size: 12px; }
.mc-event .rates { margin-top: 4px; color: #475569; font-variant-numeric: tabular-nums; }
.mc-event .note { color: #b45309; margin-top: 3px; }

.mc-source { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 9px; }
.mc-source .nm { font-size: 13px; font-weight: 650; }
.mc-source .url { font-size: 11px; color: #4f46e5; word-break: break-all; margin-top: 3px; }
.mc-source .note { font-size: 11px; color: #64748b; line-height: 1.6; margin-top: 5px; }

@media (max-width: 1000px) {
  #view { padding: 12px 12px 40px; }
  .mc-grid { grid-template-columns: 1fr; }
  .mc-hero { flex-direction: column; align-items: flex-start; }
  .mc-disc { margin-left: 0; }
  .mc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-stack-row { grid-template-columns: 46px minmax(0, 1fr) 96px; }
}
