/* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Microsoft YaHei', Arial, sans-serif; background: linear-gradient(135deg, #0a1128 0%, #1a2b57 100%); color: #fff; overflow: hidden; } /* 标题栏样式 */ .title-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: rgba(26, 43, 87, 0.8); border-bottom: 2px solid #1e54e7; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .title-left { display: flex; align-items: center; gap: 15px; } .logo { width: 40px; height: 40px; filter: brightness(1.2); } .title-left h1 { font-size: 24px; color: #fff; text-shadow: 0 0 10px rgba(30, 84, 231, 0.5); margin: 0; } .title-right { display: flex; align-items: center; } .datetime { text-align: right; line-height: 1.5; } #current-time { font-size: 24px; font-weight: bold; color: #66a3ff; } #current-date { font-size: 14px; color: #8bb4ff; } .container { width: 100vw; height: 100vh; padding: 0; display: flex; flex-direction: column; } /* 顶部总览区样式 */ .header { display: flex; justify-content: space-between; gap: 20px; height: 15vh; padding: 0 20px; margin-bottom: 20px; } .header-item { flex: 1; background: rgba(14, 36, 89, 0.8); border: 1px solid #1e54e7; box-shadow: 0 0 15px rgba(30, 84, 231, 0.2); backdrop-filter: blur(10px); border-radius: 4px; padding: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .header-item h3 { font-size: 16px; color: #66a3ff; margin-bottom: 10px; } .header-item .value { font-size: 32px; font-weight: bold; color: #fff; } .warning { color: #ff4d4f !important; } /* 中间主区域样式 */ .main { display: flex; gap: 20px; height: 60vh; padding: 0 20px; margin-bottom: 20px; } .left-panel, .center-panel, .right-panel { background: rgba(14, 36, 89, 0.8); border: 1px solid #1e54e7; box-shadow: 0 0 15px rgba(30, 84, 231, 0.2); backdrop-filter: blur(10px); border-radius: 4px; padding: 15px; } .left-panel { flex: 3; } .center-panel { flex: 4; } .right-panel { flex: 3; } h2 { font-size: 18px; color: #66a3ff; margin-bottom: 15px; } .chart-container { width: 100%; height: 300px; } /* 设备详情面板 */ .details-panel { margin-top: 15px; padding: 10px; background: rgba(0, 0, 0, 0.2); border-radius: 4px; } .params-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; } .param-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: rgba(30, 84, 231, 0.1); border-radius: 4px; } /* 工单列表样式 */ .order-list { margin-top: 15px; overflow-y: auto; max-height: 200px; } table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } th { background: rgba(30, 84, 231, 0.2); color: #66a3ff; } /* 故障列表样式 */ .scrolling-list { height: 200px; overflow-y: auto; margin-top: 10px; } .fault-item { padding: 10px; margin-bottom: 8px; background: rgba(255, 77, 79, 0.1); border-left: 3px solid #ff4d4f; border-radius: 2px; } /* 底部辅助区样式 */ .footer { display: flex; gap: 20px; height: 20vh; padding: 0 20px; margin-bottom: 20px; } .footer .chart-container { flex: 1; background: rgba(14, 36, 89, 0.8); border: 1px solid #1e54e7; border-radius: 4px; padding: 15px; height: 100%; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); } ::-webkit-scrollbar-thumb { background: rgba(30, 84, 231, 0.5); border-radius: 3px; } /* 动画效果 */ @keyframes warning-flash { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .warning-flash { animation: warning-flash 1s infinite; }