| | |
| | | .kpi-row { |
| | | position: relative; z-index: 1; |
| | | display: grid; |
| | | grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); |
| | | grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); |
| | | gap: 12px; margin-bottom: 16px; |
| | | } |
| | | |
| | |
| | | .chart-row { |
| | | position: relative; z-index: 1; |
| | | display: grid; |
| | | grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); |
| | | grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); |
| | | gap: 12px; |
| | | margin-bottom: 16px; |
| | | } |
| | |
| | | :deep(.ant-empty-description) { color: var(--text-muted); } |
| | | |
| | | /* ======== 响应式 ======== */ |
| | | |
| | | /* 大屏 / 4K:放大间距与字号,图表列宽加大 */ |
| | | @media (min-width: 1921px) { |
| | | .bi-dashboard { padding: 24px 32px; } |
| | | .kpi-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } |
| | | .chart-row { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); } |
| | | .kpi-value { font-size: 28px; } |
| | | } |
| | | |
| | | /* 宽屏 */ |
| | | @media (min-width: 1600px) and (max-width: 1920px) { |
| | | .bi-dashboard { padding: 20px 26px; } |
| | | } |
| | | |
| | | /* 笔记本 / 平板横屏:头部空间紧张时压缩 */ |
| | | @media (max-width: 1280px) { |
| | | .dash-status-tags { display: none; } |
| | | .dash-title-group p { display: none; } |
| | | } |
| | | |
| | | /* 平板竖屏 */ |
| | | @media (max-width: 1024px) { |
| | | .bi-dashboard { padding: 14px; } |
| | | .dash-header { flex-wrap: wrap; gap: 10px; } |
| | | .dash-header-divider { display: none; } |
| | | .kpi-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } |
| | | .chart-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } |
| | | } |
| | | |
| | | /* 手机 */ |
| | | @media (max-width: 768px) { |
| | | .bi-dashboard { padding: 10px; } |
| | | .dash-header { flex-wrap: wrap; } |
| | | .dash-header { flex-wrap: wrap; gap: 8px; } |
| | | .dash-header-divider { display: none; } |
| | | .kpi-row { grid-template-columns: 1fr 1fr; } |
| | | .chart-row { grid-template-columns: 1fr; } |
| | | .dash-header-right { width: 100%; justify-content: space-between; } |
| | | .dash-live-badge { display: none; } |
| | | .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; } |
| | | .kpi-card { padding: 10px 12px; gap: 8px; } |
| | | .kpi-icon { width: 32px; height: 32px; font-size: 15px; } |
| | | .kpi-value { font-size: 18px; } |
| | | .kpi-label { font-size: 10px; } |
| | | .chart-row { grid-template-columns: 1fr; gap: 10px; } |
| | | .chart-row > div { grid-column: 1 / -1 !important; } |
| | | .kpi-value { font-size: 20px; } |
| | | } |
| | | |
| | | /* 超窄屏(小屏手机) */ |
| | | @media (max-width: 400px) { |
| | | .kpi-row { grid-template-columns: 1fr; } |
| | | } |
| | | |
| | | </style> |