*{ margin:0; padding:0; box-sizing:border-box; } html, body{ width:100%; height:100%; font-family:"Microsoft YaHei"; } body{ background:#fff; } /* 页面背景 */ .page-box{ width:100%; min-height:100vh; height: auto; padding:20px 60px; background: linear-gradient( 180deg, #fafcff 0%, #edf5ff 45%, #dbeafc 100% ); } /* 顶部导航 */ .top-nav{ height:48px; display:flex; align-items:center; padding-left:15px; border-bottom:1px solid #d9e7ff; } .top-item{ position:relative; margin-right:60px; font-size:15px; font-weight:600; color:#333; cursor:pointer; transition:.25s; } .top-item.active{ color:#4E6EFF; } .top-item.active:after{ content:""; position:absolute; left:50%; bottom:-15px; transform:translateX(-50%); width:80px; height:2px; background:#4E6EFF; } /* 主区域 */ .main{ display:flex; margin-top:16px; height:calc(100vh - 90px); } /* 左侧菜单 */ .sidebar{ width:130px; background:#fff; border-radius:14px; box-shadow: 0 0 15px rgba(112,166,255,.08); padding-top:15px; } .menu-item{ height:42px; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#333; cursor:pointer; transition:.25s; } .menu-item:hover{ color:#4E6EFF; } .menu-item.active{ color:#4E6EFF; } /* 内容区 */ .content{ flex:1; margin-left:12px; background:#fff; border-radius:14px; box-shadow: 0 0 15px rgba(112,166,255,.08); overflow:hidden; } /* iframe */ #contentFrame{ width:100%; height:100%; border:none; } /* AI调度中心 */ #aiContainer{ position: relative; margin-top:16px; border-radius:14px; box-shadow: 0 0 15px rgba(112,166,255,.08); flex:1; height: auto; padding:10px; width:100%; } /* Loading遮罩 */ #pageLoading{ position:absolute; left:0; top:0; right:0; bottom:0; z-index:99; display:none; background: rgba(255,255,255,.92); backdrop-filter: blur(2px); } /* content相对定位 */ .content{ position:relative; } .loading-box{ position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); text-align:center; } .loading-spinner{ width:42px; height:42px; margin:0 auto; border-radius:50%; border:3px solid #d8e7ff; border-top-color:#4E6EFF; animation: loadingRotate 0.8s linear infinite; } .loading-text{ margin-top:12px; color:#666; font-size:14px; } @keyframes loadingRotate{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } } .main-card{ border-radius:14px !important; border:none !important; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.04); } .main-card .el-card__body{ padding:12px; } .top-area{ margin-bottom:10px; } .stat-wrap{ display:flex; flex-direction:column; gap:8px; height:100%; } .big-card{ height:70px; border-radius:14px !important; position:relative; overflow:hidden; background-repeat: no-repeat; background-size: cover; background-position: center; display:flex; align-items:center; justify-content:space-between; padding:0 18px; cursor: pointer; } .big-card.orange{ background:linear-gradient(135deg,#fff,#fff0eb); } .big-card::after{ content:""; position:absolute; right:-25px; top:-25px; width:90px; height:90px; border-radius:50%; background:rgba(137,67,221,.06); } .big-left { position: relative; z-index: 2; height: 100%; margin-left: auto; margin-right: 1.5vw; white-space: nowrap; } .big-title { font-size: 16px; font-weight: bold; color: #333333; white-space: nowrap; position: absolute; right: 100px; /* 根据value宽度调整 */ top: 50%; transform: translateY(-50%); } .big-value { font-size: 24px; font-weight: 600; color: #333333; z-index: 2; white-space: nowrap; position: absolute; right: 0; top: 50%; transform: translateY(-50%); min-width: 60px; text-align: right; margin-right: -1vw; } .small-grid{ flex:1; } .stat-card { flex:1 1 100px; padding:12px; border-radius: 14px; color:#333333FF; background-repeat: no-repeat; background-size: cover; background-position: center; width: 100%; height:100px; margin-top: 7px; } .stat-card h3 { margin-top:5px;font-size:16px;color: #333333FF} .stat-card p { margin:5px 0 0;font-size:22px; font-weight: bold} .small{ height:142px; } .icon{ margin-top: 7px; } .arrow{ margin-left: 7px; } .center-banner { width: 100%; height: 100%; background: #fff; border-radius: 8px; display: flex; justify-content: center; align-items: center; margin-top: -2vh; overflow: hidden; position: relative; } .center-banner video { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); position: relative; left: 0.5px; /* 微调偏移 */ } .loading-ico{ margin-top: 4px; position: absolute; margin-left: -25px; animation: rotate 3s linear infinite; } .table-card{ border:none !important; border-radius:14px; overflow:hidden; margin-top: 20px; box-shadow:0 2px 12px rgba(0,0,0,.04); padding:12px; } .table-card .el-card__body{ padding:0; } .table-header{ height:46px; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:600; color:#444; margin-top: -3vh; margin-left: 27vw; position: absolute; } .tab-item{ width:12vw; max-width:260px; min-width:200px; height:3.4vw; max-height:72px; min-height:58px; display:flex; align-items:center; justify-content:center; margin-right:-1vw; position:relative; z-index:1; color:#333; cursor:pointer; font-weight:700; background:url("/static/ai/img/hill.png") no-repeat center; background-size:100% auto; transition:.2s; } .tab-item.active{ color:#2d7df7; background-image:url("/static/ai/img/hill-active.png"); z-index:10; } .tab-item:last-child{ margin-right:0; } .el-table th, .el-table td { text-align:center;color: #333333FF; } .el-table__row:hover td{ background:#f8fbff !important; } .status-dispatch { color:#7000FBFF; font-weight:600; } /* 紫色 */ .status-pending { color:#fa8c16; font-weight:600; } /* 橙色 */ .status-inprogress { color:#7000FBFF; font-weight:600; } /* 蓝色 */ .status-fail { color: #da0727; font-weight:600; } /* 蓝色 */ .page{ margin: 15px 0; text-align: center; } @media(max-width:1200px){ .big-value{ font-size:28px; } .stat-card p{ font-size:28px; } .center-banner{ margin-top:10px; } } .dashboard-card{ border:none !important; box-shadow:none !important; background:transparent !important; margin-top: 20px; } .dashboard-card>.el-card__body{ padding:0 !important; } .panel{ background:#fff; border-radius:14px; padding:12px; box-shadow:0 2px 12px rgba(15,23,42,.05); } .mt20{ margin-top:20px; } .panel-header{ display: flex; justify-content: space-between; } .panel-title{ font-size:17px; font-weight:700; color:#1f2937; margin-left: 1vw; } .staff-card:hover{ transform:translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,.08); } .dashboard-row{ display:flex; align-items:stretch; } .left-col{ display:block; } .order-chart{ width:100%; height:220px; } /* 在岗区域 */ .staff-wrap{ height:100%; display:flex; align-items:center; gap:16px; margin-top: 10px; } .staff-chart{ width:38%; aspect-ratio:1/1; min-width:100px; max-width:180px; flex-shrink:0; } /* 卡片 */ .staff-cards{ flex:1; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-left: -10px; } .staff-card{ display:flex; align-items:center; justify-content:space-between; height:70px; padding:0 4px; border: 1px solid #E5F1FF; border-radius:4px; } .card-label{ font-size:14px; color:#606266; font-weight: bold; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display: flex; gap: 5px; } .staff-icon{ margin-top: 1px; height: 16px; width: 16px; } .card-num{ display:flex; align-items:flex-end; flex-shrink:0; white-space:nowrap; font-size:16px; font-weight:700; } .card-num span{ font-size:14px; color:#909399; } /* 图表 */ .order-chart{ flex:1; max-height:200px; } /* 小屏 */ @media (max-width:1200px){ .dashboard-row{ display:block; } .staff-wrap{ flex-direction:column; } .staff-chart{ width:180px; max-width:none; } .staff-cards{ width:100%; } } .date-tabs{ display:flex; gap:10px; } .date-tab{ width:48px; height:28px; border:1.5px solid #dbe4f0; border-radius:4px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; font-weight: 500; color: #333333; } .date-tab.active{ color:#4d7cff; border-color:#4d7cff; background:#f5f8ff; } .table-panel{ height:100%; width: 100%; } .table-header2{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; } .role-tabs{ display:flex; gap:8px; } .role-tab{ min-width:48px; height:28px; border-radius:4px; border:1.5px solid #dbe4f0; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; font-weight: 500; color: #333333; } .role-tab.active{ color:#4d7cff; border-color:#4d7cff; background:#f5f8ff; } .staff-table::before{ display:none; } .staff-table{ border:none; } .staff-table th{ background:#fff !important; color:#4b5563; font-size:14px; font-weight:600; } .staff-table td{ height:34px; } .staff-table th .cell, .staff-table td .cell{ white-space:nowrap !important; word-break:keep-all !important; } .user-cell{ display:flex; align-items:center; } .avatar{ width:23px; height:23px; border-radius:50%; margin-right:10px; } .pagination-wrap{ margin-top: 10px; text-align: left; } @media (max-width:1400px){ .panel-title{ font-size:13px; } .staff-chart{ width:200px; height:200px; } .card-num{ font-size:38px; } } @media (max-width:1200px){ .staff-wrap{ flex-direction:column; } .staff-cards{ width:100%; } .table-header2{ flex-direction:column; align-items:flex-start; gap:15px; } } @media (max-width:768px){ .staff-cards{ grid-template-columns:1fr; } .staff-chart{ width:180px; height:180px; } .panel-title{ font-size:10px; } .card-num{ font-size:32px; } } .chart-card{ margin-top:20px; border-radius:14px; border:none !important; } .chart-header{ display: flex; justify-content: space-between; } .chart-tabs{ display: flex; gap:10px; } .chart-tab{ width:48px; height:28px; border:1.5px solid #dbe4f0; border-radius:4px; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; font-weight: 500; color: #333333; } .chart-tab.active{ color:#4d7cff; border-color:#4d7cff; background:#f5f8ff; } .chart-card .el-card__body{ height:25vh; padding:10px; display:flex; flex-direction:column; } #chart{ flex:1; width:100%; min-height:160px; } .chart-title{ font-size:16px; font-weight:700; color:#444; margin-left: 1vw; }