.dashboard-page { position: relative; width: 100%; height: 100%; background: var(--bg-primary); overflow-x: hidden; overflow-y: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0; &::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12), transparent 45%), radial-gradient(circle at 80% 10%, rgba(0, 255, 136, 0.08), transparent 45%), radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.08), transparent 55%); z-index: 0; pointer-events: none; } .dashboard-bg-animation { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px); background-size: 40px 40px; animation: gridMove 32s linear infinite; z-index: 0; pointer-events: none; } } /* Main Content Grid */ .dashboard-spin { height: 100%; display: block; flex: 1; min-height: 0; :global(.ant-spin-nested-loading) { height: 100%; } :global(.ant-spin-container) { height: 100%; min-height: 0; display: flex; flex-direction: column; } } .dashboard-page::-webkit-scrollbar { width: 6px; } .dashboard-page::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.18); border-radius: 3px; } .dashboard-content { flex: 1; padding: 16px 18px; overflow-x: hidden; overflow-y: hidden; position: relative; z-index: 1; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; } /* 说明:通用大屏不做“整体缩放舞台”,避免在不同浏览器/缩放下出现渲染空白; 屏幕适配沿用海事首页的思路:固定 100% 高度链路 + 内部网格自适应压缩。 */ .dashboard-grid { display: grid; grid-template-columns: minmax(0, 25%) minmax(0, 50%) minmax(0, 25%); grid-template-rows: minmax(0, 1fr); gap: 14px; flex: 1; min-height: 0; height: 100%; width: 100%; } .grid-col { display: flex; flex-direction: column; gap: 16px; height: 100%; min-height: 0; overflow: visible; } /* 宽度自适应:根据屏幕宽度逐级重排,避免笔记本/小屏左右被挤爆 */ @media (max-width: 1680px) { .dashboard-grid { grid-template-columns: minmax(0, 28%) minmax(0, 44%) minmax(0, 28%); } } @media (max-width: 1440px) { .dashboard-grid { grid-template-columns: minmax(0, 30%) minmax(0, 40%) minmax(0, 30%); gap: 10px; } } /* 说明:大屏场景保持三列结构,不做“改列/改行”的重排,避免造成视觉割裂与高度不可控。 */ .dashboard-page--smartcity { /* 以视口为基准的密度系统:不写死屏幕尺寸,随窗口自动收缩/放大 */ font-size: clamp(12px, 1.15vh, 14px); --dash-pad-x: clamp(8px, 1.0vw, 14px); --dash-pad-y: clamp(6px, 0.7vh, 10px); --dash-gap: clamp(6px, 0.8vw, 10px); --dash-head-h: clamp(28px, 3.1vh, 34px); --dash-body-pad: clamp(6px, 0.8vh, 9px); --dash-kpi-h: clamp(50px, 6.4vh, 76px); --dash-kpi-num: clamp(16px, 2.4vh, 24px); --dash-title: clamp(20px, 2.8vh, 24px); --dash-sub: clamp(11px, 1.4vh, 12px); /* 关键:用变量控制“上大框/下内容”高度配比,随屏幕高度自动调整,不需要按某个分辨率写死 */ --left-top-flex: 0.82; --left-bottom-flex: 1.58; --center-portal-flex: 1.18; --center-bottom-flex: 1.62; .dashboard-content { padding: var(--dash-pad-y) var(--dash-pad-x); } .dashboard-grid { gap: var(--dash-gap); } .grid-col { display: flex; flex-direction: column; gap: var(--dash-gap); min-height: 0; } .left-col, .center-col, .right-col { min-height: 0; } .panel-card, .chart-wrapper { min-height: 0; } .panel-card :global(.ant-card-head) { min-height: var(--dash-head-h); } .panel-card :global(.ant-card-body) { padding: var(--dash-body-pad); } /* 按列控制高度配比:压缩上半区,给下半区留出空间,避免底部卡片“看不见” */ .left-col .panel-card--left-tabs { flex: var(--left-top-flex); min-height: 0; } .left-col .panel-card--events { flex: var(--left-bottom-flex); min-height: 0; } .center-col .kpi-strip { flex: 0 0 var(--dash-kpi-h); } .center-col .twin-portal { flex: var(--center-portal-flex); min-height: 0; } .center-col .panel-card--snap { flex: var(--center-bottom-flex); min-height: 0; } .right-col .panel-card--dispatch { flex: 1.1; } .right-col .panel-card--right-tabs { flex: 1.9; } } /* 小屏/系统缩放下做“密度压缩”,避免底部裁切(不做整体缩放) */ @media (max-height: 900px) { .dashboard-page--smartcity { overflow-y: hidden; /* 仅通过变量压缩密度,避免“写死高度”在不同电脑上失真 */ --dash-pad-x: clamp(8px, 0.9vw, 12px); --dash-pad-y: clamp(4px, 0.6vh, 8px); --dash-gap: clamp(6px, 0.7vw, 9px); --dash-head-h: clamp(28px, 3.0vh, 34px); --dash-body-pad: clamp(6px, 0.8vh, 9px); --dash-kpi-h: clamp(44px, 5.8vh, 66px); --dash-kpi-num: clamp(14px, 2.0vh, 20px); --dash-title: clamp(18px, 2.4vh, 22px); /* 小高度:进一步压缩“城市体征/孪生中枢”,确保底部卡片可见 */ --left-top-flex: 0.68; --left-bottom-flex: 1.72; --center-portal-flex: 0.92; --center-bottom-flex: 1.88; } .panel-card :global(.ant-card-head) { min-height: 36px; } .panel-card :global(.ant-card-body) { padding: 10px; } } @media (max-height: 760px) { .dashboard-page--smartcity { --dash-kpi-h: clamp(42px, 5.4vh, 60px); --left-top-flex: 0.60; --left-bottom-flex: 1.80; --center-portal-flex: 0.80; --center-bottom-flex: 2.00; } } /* Panel Card Styles */ .panel-card { background: transparent !important; border-radius: 8px; display: flex; flex-direction: column; &.glass-panel { position: relative; background: rgba(19, 26, 61, 0.7) !important; border: 1px solid rgba(0, 212, 255, 0.15) !important; backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); overflow: hidden; &::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 212, 255, 0.6), transparent 60px) top left / 60px 2px no-repeat, linear-gradient(180deg, rgba(0, 212, 255, 0.6), transparent 60px) top left / 2px 60px no-repeat, linear-gradient(270deg, rgba(0, 212, 255, 0.6), transparent 60px) top right / 60px 2px no-repeat, linear-gradient(180deg, rgba(0, 212, 255, 0.6), transparent 60px) top right / 2px 60px no-repeat, linear-gradient(90deg, rgba(0, 212, 255, 0.6), transparent 60px) bottom left / 60px 2px no-repeat, linear-gradient(0deg, rgba(0, 212, 255, 0.6), transparent 60px) bottom left / 2px 60px no-repeat, linear-gradient(270deg, rgba(0, 212, 255, 0.6), transparent 60px) bottom right / 60px 2px no-repeat, linear-gradient(0deg, rgba(0, 212, 255, 0.6), transparent 60px) bottom right / 2px 60px no-repeat; opacity: 0.35; } } :global(.ant-card-head) { min-height: 40px; padding: 0 12px; border-bottom: 1px solid rgba(0, 212, 255, 0.1); .ant-card-head-title { font-size: 15px; color: #fff; padding: 8px 0; } } :global(.ant-card-body) { flex: 1; padding: 12px; overflow: hidden; position: relative; display: flex; flex-direction: column; } } .chart-wrapper { flex: 1; width: 100%; position: relative; min-height: 0; /* Important for flex child */ > div { height: 100% !important; } } .flex-grow { flex: 1; } .fill-bottom { flex: 1; } /* Alert List */ .alert-list-container { height: 100%; overflow: hidden; &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 2px; } } .alert-item { padding: 8px 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; .alert-row { display: flex; width: 100%; align-items: flex-start; .alert-badge { margin-right: 8px; margin-top: 2px; } .alert-content { flex: 1; .alert-head { display: flex; justify-content: space-between; margin-bottom: 2px; .alert-name { color: #fff; font-weight: 500; font-size: 13px; } .alert-time { color: var(--accent-blue); font-size: 12px; font-family: monospace; } } .alert-msg { color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.2; } } } } /* Center Column Specifics */ .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; height: 80px; } .kpi-card { background: rgba(19, 26, 61, 0.7); border: 1px solid rgba(0, 212, 255, 0.15); border-radius: 6px; display: flex; align-items: center; padding: 0 16px; .kpi-icon { font-size: 24px; margin-right: 12px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); &.blue { color: #00d4ff; box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); } &.green { color: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); } &.yellow { color: #ffb800; box-shadow: 0 0 10px rgba(255, 184, 0, 0.2); } &.purple { color: #9d4edd; box-shadow: 0 0 10px rgba(157, 78, 221, 0.2); } } .kpi-info { .label { font-size: 12px; color: rgba(255,255,255,0.6); } .value { font-size: 24px; font-weight: bold; color: #fff; font-family: 'Segoe UI', sans-serif; line-height: 1.2; } small { font-size: 14px; margin-left: 2px; } } } .map-portal-wrapper { flex: 2; /* Occupy most space */ position: relative; background: rgba(0,0,0,0.2); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 12px; overflow: hidden; display: flex; justify-content: center; align-items: center; /* Grid Background */ .map-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 212, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.2) 1px, transparent 1px); background-size: 80px 80px; perspective: 1000px; transform: perspective(500px) rotateX(20deg) scale(1.5); opacity: 0.3; animation: gridMove 20s linear infinite; } .map-content { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; } .radar-sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: center; &::before { content: ''; width: 520px; height: 520px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0, 212, 255, 0.22) 0 1px, transparent 1px 28px), radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 62%), radial-gradient(circle, rgba(0, 255, 136, 0.10), transparent 70%); filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.25)); opacity: 0.55; } &::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: conic-gradient( from 0deg, rgba(0, 212, 255, 0.00) 0deg, rgba(0, 212, 255, 0.28) 18deg, rgba(0, 212, 255, 0.06) 45deg, rgba(0, 212, 255, 0.00) 75deg, rgba(0, 212, 255, 0.00) 360deg ); mix-blend-mode: screen; animation: radarRotate 2.8s linear infinite; opacity: 0.9; } } .portal-center { text-align: center; width: 340px; height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(10, 14, 39, 0.78); padding: 0 34px; border-radius: 50%; border: 1px solid var(--accent-blue); box-shadow: 0 0 30px rgba(0, 212, 255, 0.2); backdrop-filter: blur(5px); position: relative; overflow: hidden; &::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.22), transparent 45%), radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.12), transparent 50%); opacity: 0.6; pointer-events: none; } .portal-title { color: #fff; margin-bottom: 24px; font-size: 22px; letter-spacing: 2px; text-shadow: 0 0 10px var(--accent-blue); } .portal-btn { height: 44px; padding: 0 32px; font-size: 16px; background: linear-gradient(90deg, #00d4ff, #007aff); border: none; box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4); transition: all 0.3s; &:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6); } } } } .task-filter { :global(.ant-segmented) { background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.18); } :global(.ant-segmented-item-label) { color: rgba(255, 255, 255, 0.75); font-size: 12px; } :global(.ant-segmented-item-selected) { background: rgba(0, 212, 255, 0.22) !important; } :global(.ant-picker) { background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.18); color: rgba(255, 255, 255, 0.85); } :global(.ant-picker-input > input) { color: rgba(255, 255, 255, 0.85); font-size: 12px; } :global(.ant-picker-suffix) { color: rgba(255, 255, 255, 0.55); } } /* Right Column */ .task-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; .task-stat-box { background: rgba(255,255,255,0.03); padding: 8px; text-align: center; border-radius: 4px; .val { font-size: 18px; font-weight: bold; color: #fff; } .lbl { font-size: 11px; color: rgba(255,255,255,0.5); } .val.pending { color: var(--accent-yellow); } .val.running { color: var(--accent-blue); } .val.completed { color: var(--accent-green); } .val.failed { color: var(--accent-red); } } } /* Smart City New UI */ .panel-title { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.92); :global(.anticon) { color: rgba(0, 212, 255, 0.95); } } .panel-subtitle { margin: -2px 0 8px; font-size: var(--dash-sub, 12px); color: rgba(255, 255, 255, 0.55); letter-spacing: 0.2px; } .panel-card--tight { :global(.ant-card-body) { padding-top: 10px; } } .kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--dash-gap, 10px); height: var(--dash-kpi-h, 96px); } .kpi-tile { position: relative; border-radius: 10px; padding: 12px 14px; border: 1px solid rgba(0, 212, 255, 0.14); background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.18), transparent 52%), linear-gradient(180deg, rgba(19, 26, 61, 0.86), rgba(10, 14, 39, 0.74)); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); overflow: hidden; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; &:hover { transform: translateY(-2px); border-color: rgba(0, 212, 255, 0.26); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); } &::after { content: ''; position: absolute; top: -60%; left: -40%; width: 120%; height: 120%; background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 55%); transform: rotate(18deg); opacity: 0.45; pointer-events: none; } .kpi-tile__head { display: flex; align-items: center; justify-content: space-between; } .kpi-tile__label { font-size: 12px; color: rgba(255, 255, 255, 0.64); letter-spacing: 0.4px; } .kpi-tile__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 212, 255, 0.95); box-shadow: 0 0 10px rgba(0, 212, 255, 0.35); } .kpi-tile__value { margin-top: 6px; display: inline-flex; align-items: baseline; gap: 6px; } .kpi-tile__num { font-size: var(--dash-kpi-num, 28px); line-height: 1.1; font-weight: 700; color: rgba(255, 255, 255, 0.92); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; text-shadow: 0 0 18px rgba(0, 212, 255, 0.18); } .kpi-tile__unit { font-size: 12px; color: rgba(255, 255, 255, 0.62); } .kpi-tile__sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.52); } } .kpi-tile--green .kpi-tile__dot { background: rgba(0, 255, 136, 0.92); box-shadow: 0 0 12px rgba(0, 255, 136, 0.32); } .kpi-tile--yellow .kpi-tile__dot { background: rgba(255, 184, 0, 0.92); box-shadow: 0 0 12px rgba(255, 184, 0, 0.26); } .kpi-tile--red .kpi-tile__dot { background: rgba(255, 71, 87, 0.92); box-shadow: 0 0 12px rgba(255, 71, 87, 0.26); } .kpi-tile--purple .kpi-tile__dot { background: rgba(157, 78, 221, 0.92); box-shadow: 0 0 12px rgba(157, 78, 221, 0.26); } .twin-portal { flex: 2; position: relative; border-radius: 14px; border: 1px solid rgba(0, 212, 255, 0.28); overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.18), transparent 55%), radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.10), transparent 60%), linear-gradient(180deg, rgba(6, 10, 24, 0.85), rgba(10, 14, 39, 0.62)); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); } .twin-portal__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.12) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.22; transform: perspective(520px) rotateX(18deg) scale(1.2); animation: gridMove 20s linear infinite; } .twin-portal__sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0.9; &::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0, 212, 255, 0.22) 0 1px, transparent 1px 28px), radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 62%), radial-gradient(circle, rgba(0, 255, 136, 0.10), transparent 70%); filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.20)); opacity: 0.6; } &::after { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient( from 0deg, rgba(0, 212, 255, 0.00) 0deg, rgba(0, 212, 255, 0.30) 18deg, rgba(0, 212, 255, 0.06) 45deg, rgba(0, 212, 255, 0.00) 75deg, rgba(0, 212, 255, 0.00) 360deg ); mix-blend-mode: screen; animation: radarRotate 2.8s linear infinite; opacity: 0.95; } } .twin-portal__overlay { position: relative; z-index: 2; height: 100%; padding: var(--dash-body-pad, 10px); display: flex; flex-direction: column; justify-content: space-between; min-height: 0; } .twin-portal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .twin-portal__tags :global(.ant-tag) { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; color: rgba(255, 255, 255, 0.78) !important; } .twin-portal__chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0, 212, 255, 0.16); background: rgba(0, 212, 255, 0.05); color: rgba(255, 255, 255, 0.75); font-size: 12px; :global(.anticon) { color: rgba(0, 212, 255, 0.95); } } .twin-portal__center { text-align: center; margin-top: 4px; } .twin-portal__title { font-size: var(--dash-title, 24px); font-weight: 700; letter-spacing: 2px; color: rgba(255, 255, 255, 0.94); text-shadow: 0 0 14px rgba(0, 212, 255, 0.20); } .twin-portal__desc { margin-top: 6px; font-size: clamp(12px, 1.5vh, 13px); color: rgba(255, 255, 255, 0.65); letter-spacing: 0.6px; } .twin-portal__btn { margin-top: 10px; height: clamp(32px, 3.8vh, 38px); padding: 0 clamp(16px, 2.0vw, 30px); font-size: clamp(12px, 1.6vh, 14px); background: linear-gradient(90deg, #00d4ff, #007aff) !important; border: none !important; box-shadow: 0 10px 24px rgba(0, 212, 255, 0.25); transition: transform 0.25s ease, box-shadow 0.25s ease; &:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0, 212, 255, 0.34); } } .twin-portal__bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dash-gap, 10px); margin-top: 6px; } .mini-metric { padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 4px; } .mini-metric__label { font-size: 12px; color: rgba(255, 255, 255, 0.55); } .mini-metric__value { font-size: clamp(14px, 2.0vh, 18px); font-weight: 700; color: rgba(255, 255, 255, 0.90); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .mini-metric__value--warn { color: rgba(255, 184, 0, 0.92); } .panel-card--snap { :global(.ant-card-body) { padding: 10px 12px 12px; } } .snapshot-carousel { height: 100%; flex: 1; min-height: 0; :global(.slick-dots) { bottom: -2px; } :global(.slick-dots li button) { background: rgba(255, 255, 255, 0.25) !important; } :global(.slick-dots li.slick-active button) { background: rgba(0, 212, 255, 0.85) !important; } } .snapshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--dash-gap, 12px); } .snapshot-card { border-radius: 12px; padding: 12px 12px 10px; border: 1px solid rgba(0, 212, 255, 0.16); background: radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.16), transparent 55%), linear-gradient(180deg, rgba(19, 26, 61, 0.78), rgba(10, 14, 39, 0.62)); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); transition: transform 0.18s ease, border-color 0.18s ease; &:hover { transform: translateY(-2px); border-color: rgba(0, 212, 255, 0.28); } } .snapshot-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .snapshot-card__tag { font-size: 12px; color: rgba(255, 255, 255, 0.72); padding: 2px 8px; border-radius: 999px; background: rgba(0, 212, 255, 0.10); border: 1px solid rgba(0, 212, 255, 0.18); } .snapshot-card__time { font-size: 12px; color: rgba(255, 255, 255, 0.55); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .snapshot-card__title { font-size: clamp(13px, 1.8vh, 16px); font-weight: 700; color: rgba(255, 255, 255, 0.92); margin-bottom: 6px; } .snapshot-card__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.62); } .snapshot-card--critical { border-color: rgba(255, 71, 87, 0.26); } .snapshot-card--warning { border-color: rgba(255, 184, 0, 0.24); } .snapshot-card--normal { border-color: rgba(0, 212, 255, 0.16); } /* 机队态势 */ .fleet-pane { gap: var(--dash-gap, 12px); } .fleet-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dash-gap, 12px); } .fleet-metric { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); background: radial-gradient(circle at 25% 20%, rgba(0, 212, 255, 0.14), transparent 55%), linear-gradient(180deg, rgba(19, 26, 61, 0.74), rgba(10, 14, 39, 0.62)); } .fleet-metric__label { font-size: 12px; color: rgba(255, 255, 255, 0.58); } .fleet-metric__value { margin-top: 6px; font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, 0.92); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .fleet-metric__sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.52); } .fleet-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--dash-gap, 12px); } .fleet-split__left, .fleet-split__right { min-height: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03); padding: 10px 12px; display: flex; flex-direction: column; } .region-list { flex: 1; min-height: 0; overflow: hidden; padding-right: 2px; &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.18); border-radius: 2px; } } .region-item { padding: 8px 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 8px; } .region-item__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; } .region-item__name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .region-item__meta { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; } .region-item__tag { margin-inline-end: 0 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; color: rgba(255, 255, 255, 0.86) !important; } .region-item__time { font-size: 12px; color: rgba(255, 255, 255, 0.55); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .region-item__bar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; :global(.ant-progress) { margin: 0; } } .region-item__pct { width: 48px; text-align: right; font-size: 12px; color: rgba(255, 255, 255, 0.72); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .region-item__pending { font-size: 12px; color: rgba(255, 255, 255, 0.52); white-space: nowrap; } /* 空域合规 */ .airspace-pane { gap: var(--dash-gap, 12px); } .airspace-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--dash-gap, 12px); min-height: 0; } .airspace-score { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); background: radial-gradient(circle at 18% 24%, rgba(0, 255, 136, 0.10), transparent 55%), linear-gradient(180deg, rgba(19, 26, 61, 0.72), rgba(10, 14, 39, 0.62)); :global(.ant-progress) { flex: 0 0 auto; } } .airspace-score__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .airspace-score__title { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.9); } .airspace-score__sub { font-size: 12px; color: rgba(255, 255, 255, 0.55); } .airspace-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--dash-gap, 12px); } .airspace-metric { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03); } .airspace-metric__val { font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, 0.92); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .airspace-metric__lbl { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.55); } .airspace-notes { flex: 1; min-height: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 10px; } .airspace-note { display: flex; gap: 10px; align-items: flex-start; } .airspace-note__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: rgba(0, 212, 255, 0.9); box-shadow: 0 0 10px rgba(0, 212, 255, 0.25); flex: 0 0 auto; } .airspace-note__dot--warn { background: rgba(255, 184, 0, 0.92); box-shadow: 0 0 10px rgba(255, 184, 0, 0.25); } .airspace-note__dot--ok { background: rgba(0, 255, 136, 0.92); box-shadow: 0 0 10px rgba(0, 255, 136, 0.25); } .airspace-note__text { font-size: 12px; color: rgba(255, 255, 255, 0.62); line-height: 1.35; } @media (max-width: 1440px) { .fleet-metrics { grid-template-columns: repeat(2, 1fr); } .fleet-split { grid-template-columns: 1fr; } .airspace-top { grid-template-columns: 1fr; } } .event-list-container { flex: 1; min-height: 0; overflow: hidden; &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.22); border-radius: 2px; } } .event-item { padding: 10px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; } .event-item__row { display: flex; gap: 10px; align-items: flex-start; width: 100%; } .event-item__badge { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.22); flex: 0 0 auto; } .event-item__content { flex: 1; min-width: 0; } .event-item__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .event-item__title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .event-item__time { font-size: 12px; color: rgba(255, 255, 255, 0.55); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .event-item__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; } .event-item__loc { font-size: 12px; color: rgba(255, 255, 255, 0.65); } .event-item__tag { margin-inline-end: 0 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; color: rgba(255, 255, 255, 0.82) !important; } .event-item__desc { font-size: 12px; color: rgba(255, 255, 255, 0.56); line-height: 1.3; } .panel-card--dispatch { :global(.ant-card-body) { padding-top: 12px; } } .dispatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .dispatch-stat { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); } .dispatch-stat__val { font-size: 22px; font-weight: 800; color: rgba(255, 255, 255, 0.92); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } .dispatch-stat__lbl { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.55); } .dispatch-stat__val--pending { color: rgba(255, 184, 0, 0.92); } .dispatch-stat__val--running { color: rgba(0, 212, 255, 0.92); } .dispatch-stat__val--done { color: rgba(0, 255, 136, 0.92); } .dispatch-stat__val--fail { color: rgba(255, 71, 87, 0.92); } .dispatch-highlight { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0, 255, 136, 0.18); background: radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.12), transparent 55%), linear-gradient(180deg, rgba(19, 26, 61, 0.78), rgba(10, 14, 39, 0.62)); display: flex; align-items: baseline; justify-content: space-between; } .dispatch-highlight__val { font-size: clamp(26px, 3.6vh, 34px); font-weight: 900; color: rgba(0, 255, 136, 0.92); letter-spacing: 1px; } .dispatch-highlight__lbl { font-size: 12px; color: rgba(255, 255, 255, 0.60); } .dispatch-trend { margin-top: 12px; min-height: 0; } .dispatch-trend__title { margin-bottom: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.56); } /* 旧的洞察卡片样式已合并到右侧 Tabs 卡片中(保留空定义避免历史引用报错) */ .panel-card--insights {} /* Tabs 必须占满卡片剩余高度(否则看起来“框很大内容很小”,小屏还容易溢出被裁切) */ .dash-tabs { height: 100%; min-height: 0; display: flex; flex-direction: column; :global(.ant-tabs-nav) { margin: 0 0 8px; } :global(.ant-tabs-nav::before) { border-bottom-color: rgba(0, 212, 255, 0.12); } :global(.ant-tabs-tab) { color: rgba(255, 255, 255, 0.62); } :global(.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn) { color: rgba(255, 255, 255, 0.92); } :global(.ant-tabs-ink-bar) { background: rgba(0, 212, 255, 0.9); } :global(.ant-tabs-content-holder) { flex: 1; min-height: 0; } :global(.ant-tabs-content) { height: 100%; } :global(.ant-tabs-tabpane) { height: 100%; min-height: 0; padding: 0; } } .tab-pane { height: 100%; min-height: 0; display: flex; flex-direction: column; } .empty-holder { height: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.55); } /* Animation Keyframes */ @keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 80px; } } @keyframes radarRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 响应式布局已在上方按 1680/1440/1280/960 统一收敛,避免重复规则互相覆盖。 */ /* 无滚动模式:通过“内容裁剪 + 密度压缩”保证一屏显示 */ .dashboard-page--compact-1 { .panel-subtitle { margin-bottom: 6px; } .snapshot-card { padding: 10px 10px 8px; } .fleet-metric { padding: 8px 10px; } .event-item__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } } .dashboard-page--compact-2 { .panel-subtitle { margin-bottom: 4px; } .kpi-tile { padding: 8px 10px; } .snapshot-grid { gap: 8px; } .snapshot-card { padding: 8px 10px 6px; .snapshot-card__head { margin-bottom: 6px; } .snapshot-card__title { margin-bottom: 4px; } } .fleet-metrics { gap: 8px; } .fleet-metric { padding: 6px 8px; .fleet-metric__sub { margin-top: 2px; } } .region-item { padding: 6px 8px 4px; margin-bottom: 6px; } .event-item { padding: 6px 0 !important; } .event-item__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; } .twin-portal__bottom { grid-template-columns: repeat(2, 1fr); } }