/* ========== 全局样式 ========== */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #0f1923; color: #e8eaed; font-size: 14px; min-height: 100vh; } a { color: #4fc3f7; text-decoration: none; } a:hover { text-decoration: underline; } .container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } /* ========== 顶部栏 ========== */ .topbar { background: #1a2332; border-bottom: 1px solid #2a3441; padding: 0 20px; display: flex; align-items: center; height: 56px; gap: 32px; position: sticky; top: 0; z-index: 100; } .logo { font-size: 18px; font-weight: bold; color: #4fc3f7; } .nav { display: flex; gap: 4px; } .nav-link { padding: 8px 16px; border-radius: 6px; color: #9aa0a6; transition: all 0.2s; } .nav-link:hover { background: #2a3441; color: #e8eaed; text-decoration: none; } .nav-link.active { background: #263238; color: #4fc3f7; } .status-bar { margin-left: auto; display: flex; gap: 12px; } .status-item { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; } .status-item.setting { background: #1b3a2f; color: #4caf50; } .status-item.running { background: #2a2a1b; color: #ffeb3b; } .status-item.paused { background: #3a2a1a; color: #ff9800; } .status-item.idle { background: #2a2a2a; color: #9aa0a6; } /* ========== 环境切换开关 ========== */ .env-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; } .env-label { font-size: 12px; font-weight: 500; min-width: 48px; text-align: right; transition: color 0.2s; } .env-label.test { color: #ff9800; } .env-label.prod { color: #4fc3f7; } .toggle-switch { width: 40px; height: 22px; background: #3a3a3a; border-radius: 11px; position: relative; transition: background 0.25s; flex-shrink: 0; } .toggle-switch.active { background: #ff9800; } .toggle-knob { width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left 0.25s; } .toggle-switch.active .toggle-knob { left: 20px; } /* ========== 卡片 ========== */ .card { background: #1a2332; border-radius: 12px; padding: 20px; border: 1px solid #2a3441; } .card h2 { font-size: 16px; margin-bottom: 16px; color: #4fc3f7; } /* ========== 状态卡片 ========== */ .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .status-card { background: #0f1923; border-radius: 8px; padding: 16px; text-align: center; border: 1px solid #2a3441; } .status-card.ok { border-color: #2e7d32; background: #0d1f14; } .status-card.error { border-color: #c62828; background: #1f0d0d; } .status-icon { font-size: 24px; margin-bottom: 8px; } .status-label { font-size: 12px; color: #9aa0a6; margin-bottom: 4px; } .status-value { font-size: 14px; font-weight: bold; } /* ========== 按钮 ========== */ .btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; transition: all 0.2s; background: #263238; color: #e8eaed; font-family: inherit; } .btn:hover:not(:disabled) { background: #37474f; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: #0277bd; color: #fff; } .btn-primary:hover:not(:disabled) { background: #0288d1; } .btn-secondary { background: #37474f; } .btn-danger { background: #d32f2f; color: #fff; } .btn-danger:hover:not(:disabled) { background: #f44336; } .btn-success { background: #2e7d32; color: #fff; } .btn-success:hover:not(:disabled) { background: #388e3c; } .btn-warning { background: #e65100; color: #fff; } .btn-error { background: #c62828; color: #fff; } .btn-large { padding: 12px 24px; font-size: 16px; } .btn-small { padding: 4px 10px; font-size: 12px; } .btn-icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 4px; } .btn-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } /* ========== 表单 ========== */ .form-group { margin-bottom: 12px; } .form-group label { display: block; font-size: 12px; color: #9aa0a6; margin-bottom: 4px; } .form-group input, .form-group select { width: 100%; padding: 8px 12px; background: #0f1923; border: 1px solid #2a3441; border-radius: 6px; color: #e8eaed; font-size: 14px; font-family: inherit; } .form-group input:focus, .form-group select:focus { outline: none; border-color: #4fc3f7; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } /* ========== Tabs ========== */ .tabs { background: #1a2332; border-bottom: 1px solid #2a3441; padding: 0 20px; display: flex; gap: 4px; } .tab { padding: 12px 20px; background: none; border: none; color: #9aa0a6; cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; font-family: inherit; } .tab.active { color: #4fc3f7; border-bottom-color: #4fc3f7; } .tab:hover { color: #e8eaed; } /* ========== 摄像头预览 ========== */ .camera-preview { width: 100%; max-width: 480px; border-radius: 8px; overflow: hidden; margin: 0 auto 16px; background: #000; } .camera-preview img, .camera-full img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; } .camera-full { width: 100%; border-radius: 8px; overflow: hidden; background: #000; } /* ========== 关节控制 ========== */ .joints-panel { margin-top: 16px; } .joints-panel h3 { margin-bottom: 12px; font-size: 14px; } .joint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .joint-control { background: #0f1923; border-radius: 8px; padding: 12px; text-align: center; border: 1px solid #2a3441; } .joint-control label { font-size: 12px; color: #4fc3f7; font-weight: bold; } .joint-value { font-size: 18px; font-weight: bold; color: #fff; margin: 4px 0; } .joint-buttons { display: flex; align-items: center; gap: 4px; justify-content: center; } .joint-buttons button { width: 32px; height: 32px; border-radius: 4px; border: 1px solid #2a3441; background: #263238; color: #e8eaed; cursor: pointer; font-size: 14px; } .joint-buttons input { width: 60px; padding: 4px; text-align: center; background: #0f1923; border: 1px solid #2a3441; border-radius: 4px; color: #e8eaed; font-size: 12px; } /* ========== 点位列表 ========== */ .point-item { background: #0f1923; border: 1px solid #2a3441; border-radius: 8px; padding: 12px; margin-bottom: 12px; } .point-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .point-name { font-weight: bold; font-size: 15px; } .point-coords { font-size: 12px; color: #9aa0a6; margin-bottom: 8px; } .badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #263238; color: #4fc3f7; } .pose-list { margin-top: 8px; } .pose-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #2a3441; font-size: 13px; } .angles { color: #9aa0a6; font-size: 11px; font-family: monospace; } .pose-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .pose-add input { flex: 1; padding: 6px 10px; background: #1a2332; border: 1px solid #2a3441; border-radius: 4px; color: #e8eaed; font-size: 13px; } .pose-add select { padding: 6px; background: #1a2332; border: 1px solid #2a3441; border-radius: 4px; color: #e8eaed; } .empty-hint { color: #9aa0a6; text-align: center; padding: 20px; } .hint { font-size: 12px; color: #9aa0a6; margin-top: 8px; } .alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; } .alert-error { background: #1f0d0d; border: 1px solid #c62828; color: #ef5350; } .checkbox-group { display: flex; gap: 16px; } .checkbox-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #e8eaed; } /* ========== 运行页面 ========== */ .running-header { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; } .running-status { font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 8px; } .running-status.idle { color: #9aa0a6; } .running-status.running { color: #4caf50; } .running-status.paused { color: #ff9800; } .pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } } .running-progress { flex: 1; display: flex; align-items: center; gap: 12px; } .progress-bar { flex: 1; height: 8px; background: #2a3441; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: #4fc3f7; border-radius: 4px; transition: width 0.3s; } /* ========== 报告 ========== */ .report-summary { display: flex; gap: 16px; margin-bottom: 16px; } .stat { padding: 8px 16px; border-radius: 8px; background: #0f1923; border: 1px solid #2a3441; } .stat.ok { border-color: #2e7d32; color: #4caf50; } .stat.error { border-color: #c62828; color: #ef5350; } .report-item { padding: 8px 12px; background: #0f1923; border-radius: 6px; margin-bottom: 8px; border: 1px solid #2a3441; } .report-point { display: flex; align-items: center; gap: 8px; font-weight: bold; } .report-status { font-size: 16px; } .report-pose { font-size: 12px; color: #9aa0a6; padding-left: 24px; margin-top: 4px; } /* ========== 响应式 ========== */ @media (max-width: 768px) { .container { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .joint-grid { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: 1fr; } } /* AGV 移动控制面板 */ .agv-status-bar { display: flex; gap: 16px; align-items: center; padding: 10px 14px; background: #0f1923; border-radius: 8px; margin-bottom: 16px; font-size: 13px; color: #9aa0a6; flex-wrap: wrap; } .agv-status-bar strong { color: #e8eaed; } .agv-control-panel { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 280px; margin: 0 auto; } .agv-dir-row { display: grid; grid-template-columns: 80px 80px 80px; gap: 6px; width: 100%; } .agv-dir-placeholder { width: 80px; height: 44px; } .agv-btn { height: 44px; border-radius: 8px; border: 1px solid #2a3441; background: #263238; color: #e8eaed; cursor: pointer; font-size: 13px; font-family: inherit; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 4px; user-select: none; } .agv-btn:active, .agv-btn:focus { outline: none; } .agv-btn-up { background: #1b3a2f; border-color: #2e7d32; color: #4caf50; } .agv-btn-down { background: #3a1b1b; border-color: #7d2e2e; color: #f44336; } .agv-btn-left { background: #1b2d3a; border-color: #1565c0; color: #42a5f5; } .agv-btn-right { background: #2d2a1b; border-color: #7d6e2e; color: #ffc107; } .agv-btn-stop { background: #37474f; border-color: #546e7a; } .agv-btn-up:active { background: #1e4d38; } .agv-btn-down:active { background: #4d2020; } .agv-btn-left:active { background: #1e3a4d; } .agv-btn-right:active { background: #3d3820; } .agv-btn-stop:active { background: #455a64; } .agv-btn-lateral { background: #2d1b4a; border-color: #7c4dff; color: #b388ff; font-size: 13px; min-width: 120px; } .agv-btn-lateral:active { background: #3d2560; } .agv-lateral-row { display: flex; gap: 12px; justify-content: center; margin-top: 8px; max-width: 280px; width: 100%; } .speed-control { display: flex; align-items: center; gap: 10px; } .speed-value { min-width: 44px; text-align: right; font-weight: bold; color: #4fc3f7; } /* 运行页速度控制面板 */ .speed-panel { display: flex; flex-direction: column; gap: 16px; } .speed-row { display: flex; flex-direction: column; gap: 6px; } .speed-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #b0c4de; } .speed-val { font-weight: bold; font-size: 15px; color: #4fc3f7; min-width: 80px; text-align: right; } .speed-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: #1a2d3d; border-radius: 4px; outline: none; cursor: pointer; } .speed-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #4fc3f7; cursor: pointer; border: 2px solid #0f1923; box-shadow: 0 0 6px rgba(79, 195, 247, 0.4); } .speed-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #4fc3f7; cursor: pointer; border: 2px solid #0f1923; } /* 双摄像头预览布局 */ .camera-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; } .camera-box { background: #111; border-radius: 8px; overflow: hidden; } .camera-label { padding: 8px 12px; font-size: 13px; color: #aaa; background: #1a1a1a; border-bottom: 1px solid #333; } .camera-img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; } .camera-img.arm { /* no flip */ } .camera-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #666; font-size: 14px; } /* ========== 地图标记 ========== */ .map-marker { position: absolute; transform: translate(-50%, -100%); font-size: 20px; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); z-index: 10; } .map-marker:hover { transform: translate(-50%, -100%) scale(1.2); } /* ========== 任务配置 M×N 网格 ========== */ .mission-grid-wrap { margin-top: 12px; overflow-x: auto; } .mission-grid { display: grid; gap: 4px; grid-template-columns: 80px repeat(var(--cols,4), 90px); } .grid-cell { min-width: 80px; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; cursor: pointer; border: 1px solid #2a3441; background: #0f1923; transition: background 0.15s, border-color 0.15s; } .grid-cell.active { background: #1b3a2f; border-color: #2e7d32; color: #4caf50; } .grid-cell.active:hover { background: #234; } .grid-cell.selected { border-color: #4fc3f7 !important; box-shadow: 0 0 0 2px #4fc3f7; } .grid-header { background: transparent; border-color: transparent; cursor: default; font-weight: bold; color: #9aa0a6; font-size: 12px; } /* 机器配置表单 */ .machine-form { background: #0f1923; border: 1px solid #2a3441; border-radius: 8px; padding: 16px; margin-top: 12px; } .machine-form h3 { font-size: 14px; color: #4fc3f7; margin-bottom: 10px; } .machine-form h4 { font-size: 13px; color: #9aa0a6; margin: 8px 0 6px; } /* 姿态列表 */ .pose-list { margin-top: 8px; } .pose-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #2a3441; font-size: 13px; } .pose-name { font-weight: bold; min-width: 80px; } .pose-angles { color: #9aa0a6; font-size: 11px; font-family: monospace; flex: 1; } .pose-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .pose-add input { flex: 1; padding: 6px 10px; background: #1a2332; border: 1px solid #2a3441; border-radius: 4px; color: #e8eaed; font-size: 13px; } /* 蛇形序列预览 */ .sequence-preview { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; } .sequence-step { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0f1923; border-radius: 6px; border: 1px solid #2a3441; font-size: 13px; } .step-index { background: #263238; color: #4fc3f7; border-radius: 10px; min-width: 28px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; } .step-info { flex: 1; } .step-side { padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: bold; } .step-side:contains('正面') { background: #1b3a2f; color: #4caf50; } .step-side:contains('背面') { background: #3a1b2f; color: #ce93d8; } /* 网格单元格点位配置 */ .cell-machine { font-size: 11px; font-weight: bold; color: #2c3e50; } .cell-points { margin-top: 2px; font-size: 9px; } .point-row { display: flex; align-items: center; gap: 2px; padding: 1px 2px; background: #f8f9fa; border-radius: 3px; cursor: pointer; margin: 1px 0; } .point-row:hover { background: #e9ecef; } .point-label { color: #666; min-width: 24px; } .point-coords { color: #0366d6; font-family: monospace; font-size: 8px; flex: 1; } .btn-icon-small { background: none; border: none; cursor: pointer; font-size: 10px; padding: 1px 3px; border-radius: 3px; } .btn-icon-small:hover { background: #ddd; } /* ========== 任务配置 弹窗 + 网格增强样式 ========== */ /* 弹窗遮罩 */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-box { background: #1a1f2e; border: 1px solid #2a3a50; border-radius: 12px; padding: 20px 24px; min-width: 380px; max-width: 500px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); } .modal-box h3 { margin: 0 0 8px; color: #e0e6f0; font-size: 16px; } /* 点位行单元格 */ .point-cell { cursor: pointer; flex-direction: column; gap: 2px; } .point-cell:hover { border-color: #4fc3f7; background: #162030; } .point-cell.point-filled { background: #0d2535; border-color: #1565c0; } .point-coords { font-size: 10px; color: #64b5f6; font-family: monospace; } .point-empty { font-size: 10px; color: #455a64; } /* 机器行单元格 */ .machine-cell { cursor: pointer; } .machine-cell:hover { border-color: #4caf50; background: #1b3a2f; } .machine-cell.active { background: #1b3a2f; border-color: #2e7d32; color: #4caf50; } .machine-icon { font-size: 18px; } .machine-empty { font-size: 16px; color: #455a64; } /* ========== 任务配置 弹窗 + 网格增强样式 ========== */ /* 弹窗遮罩 */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-box { background: #1a1f2e; border: 1px solid #2a3a50; border-radius: 12px; padding: 20px 24px; min-width: 380px; max-width: 500px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); } .modal-box h3 { margin: 0 0 8px; color: #e0e6f0; font-size: 16px; } /* 点位行单元格 */ .point-cell { cursor: pointer; flex-direction: column; gap: 2px; } .point-cell:hover { border-color: #4fc3f7; background: #162030; } .point-cell.point-filled { background: #0d2535; border-color: #1565c0; } .point-coords { font-size: 10px; color: #64b5f6; font-family: monospace; } .point-empty { font-size: 10px; color: #455a64; } /* 机器行单元格 */ .machine-cell { cursor: pointer; } .machine-cell:hover { border-color: #4caf50; background: #1b3a2f; } .machine-cell.active { background: #1b3a2f; border-color: #2e7d32; color: #4caf50; } .machine-icon { font-size: 18px; } .machine-empty { font-size: 16px; color: #455a64; } /* 点位编辑弹窗 */ .modal-overlay .modal-box { min-width: 420px; } .modal-overlay .form-row { gap: 8px; } .modal-overlay .btn-row { gap: 8px; flex-wrap: wrap; } /* 地图坐标点覆盖层 */ .map-container { position: relative; } .map-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; } .map-dot { position: absolute; transform: translate(-50%, -50%); } .point-dot { width: 10px; height: 10px; background: #f39c12; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 6px rgba(243,156,18,0.9); } /* AGV 实时位置点 */ .agv-dot { width: 14px !important; height: 14px !important; background: #ff5722 !important; border: 2px solid #fff !important; border-radius: 50% !important; box-shadow: 0 0 8px #ff5722, 0 0 16px #ff572288 !important; animation: agv-pulse 1.5s ease-in-out infinite !important; z-index: 10 !important; } @keyframes agv-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } } /* 二维码位置点 */ .qr-dot { width: 12px !important; height: 12px !important; background: #ff9800 !important; border: 2px solid #fff !important; border-radius: 3px !important; box-shadow: 0 0 8px #ff9800, 0 0 14px #ff980088 !important; animation: qr-pulse 2s ease-in-out infinite !important; z-index: 10 !important; } @keyframes qr-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.6; } } /* 机器行:有机/无机器 切换 */ .machine-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; } .machine-toggle input[type="checkbox"] { accent-color: #4caf50; width: 16px; height: 16px; cursor: pointer; } .machine-status.on { color: #4caf50; font-size: 12px; } .machine-status.off { color: #666; font-size: 12px; } /* ========== 实时日志 ========== */ .log-box { background: #0a0a0a; color: #00ff88; font-family: 'Courier New', 'Menlo', monospace; font-size: 13px; line-height: 1.6; max-height: 320px; overflow-y: auto; padding: 12px 16px; border-radius: 6px; margin-top: 8px; border: 1px solid #1a1a1a; } .log-line { padding: 2px 0; border-bottom: 1px solid #111; word-break: break-all; } .log-empty { color: #555; font-style: italic; padding: 12px 0; } /* ========== 弹窗 ========== */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 9999; } .modal { background: #1a1a2e; padding: 28px 32px; border-radius: 12px; min-width: 400px; max-width: 90%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); } .modal h3 { margin: 0 0 12px 0; color: #e0e0e0; } .modal p { color: #aaa; margin: 0 0 16px 0; } .modal input[type="text"] { width: 100%; padding: 10px 12px; background: #0a0a0a; border: 1px solid #333; border-radius: 6px; color: #e0e0e0; font-size: 15px; outline: none; box-sizing: border-box; } .modal input[type="text"]:focus { border-color: #409eff; } .modal-actions { display: flex; gap: 12px; margin-top: 20px; } .modal-actions .btn { flex: 1; } /* ========== 任务清单 ========== */ .task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; } .task-cell { background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 8px; padding: 12px; text-align: center; transition: all 0.3s; } .task-cell.task-active { border-color: #409eff; background: #0d1b2a; } .task-cell.task-completed { border-color: #4caf50; opacity: 0.7; } .task-cell.task-active .task-step-text { color: #409eff; font-weight: bold; } .task-pos { font-size: 16px; font-weight: bold; color: #e0e0e0; margin-bottom: 6px; } .task-status-icon { font-size: 20px; margin-bottom: 4px; } .task-step-text { font-size: 12px; color: #888; margin-bottom: 4px; } .task-info { font-size: 11px; color: #666; } .task-qr { font-family: monospace; color: #aaa; } .task-photos { color: #888; } .pulse-icon { animation: taskPulse 1s infinite; } @keyframes taskPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* ========== 运行页双摄像头 ========== */ .camera-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; } /* ========== 任务步骤控制开关 ========== */ .toggle-grid { display: flex; flex-direction: column; gap: 12px; } .toggle-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 8px; transition: border-color 0.2s; } .toggle-item:hover { border-color: #333; } .toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; border-radius: 24px; transition: 0.3s; } .toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: #888; border-radius: 50%; transition: 0.3s; } .toggle-switch input:checked + .toggle-slider { background-color: #2e7d32; } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); background-color: #4caf50; } .toggle-label { font-size: 14px; font-weight: 600; color: #e0e0e0; min-width: 140px; } .toggle-hint { font-size: 12px; color: #666; } /* ===== 运行页网格任务状态 ===== */ /* 点位单元格 - 导航状态 */ .point-cell { min-height: 52px; } .cell-nav-icon { font-size: 18px; text-align: center; } .cell-nav-label { font-size: 11px; color: #8899aa; text-align: center; margin-top: 2px; } .point-cell.nav-pending { background: #141e28; border-color: #2a3a4a; } .point-cell.nav-active { background: #1a3020; border-color: #4caf50; animation: navPulse 1.5s infinite; } .point-cell.nav-done { background: #152522; border-color: #2e7d32; } .point-cell.nav-done .cell-nav-icon { color: #4caf50; } .point-cell.nav-skipped { background: #141e28; border-color: #2a3a4a; opacity: 0.5; } @keyframes navPulse { 0%,100% { border-color: #4caf50; } 50% { border-color: #1b5e20; } } /* 机器单元格状态 */ .machine-cell { min-height: 62px; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; } .machine-label { font-size: 12px; font-weight: 600; color: #ccc; } .machine-steps-mini { display: flex; gap: 8px; font-size: 13px; } .machine-qr-mini { font-size: 10px; color: #4fc3f7; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .empty-cell { color: #445566; font-size: 12px; } /* 步骤圆点 */ .step-dot { opacity: 0.4; transition: opacity 0.3s; } .step-dot.dot-done { opacity: 1; } .step-dot.dot-scanning, .step-dot.dot-shooting { opacity: 0.8; animation: dotPulse 0.8s infinite; } @keyframes dotPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } } .step-dot.dot-manual { opacity: 0.7; } .step-dot.dot-skipped { opacity: 0.3; } /* 机器状态背景 */ .machine-cell.mstatus-pending { background: #141e28; border-color: #2a3a4a; } .machine-cell.mstatus-active { background: #1a2535; border-color: #4fc3f7; } .machine-cell.mstatus-completed { background: #152522; border-color: #2e7d32; } /* ===== 报关单选择 ===== */ .customs-panel { display: flex; flex-direction: column; gap: 4px; } .customs-row { display: flex; align-items: center; gap: 8px; } .customs-select { flex: 1; max-width: 400px; padding: 10px 12px; background: #1a2535; border: 1px solid #2a3a4a; border-radius: 8px; color: #e0e0e0; font-size: 14px; outline: none; } .customs-select:focus { border-color: #4fc3f7; } .customs-select:disabled { opacity: 0.5; cursor: not-allowed; } .customs-select option { background: #1a2535; color: #e0e0e0; } .customs-select:disabled option { opacity: 1; } .customs-info { font-size: 13px; color: #8899aa; } .customs-badge { font-size: 13px; } .customs-actions { display: flex; align-items: center; gap: 4px; } /* ===== 数据表格 ===== */ .table-wrapper { overflow-x: auto; margin-top: 8px; } .data-table { width: 100%; border-collapse: collapse; font-size: 13px; } .data-table th { text-align: left; padding: 10px 12px; background: #0f1923; color: #8899aa; font-weight: 500; border-bottom: 1px solid #2a3a4a; white-space: nowrap; } .data-table td { padding: 10px 12px; border-bottom: 1px solid #1a2a3a; color: #ccc; } .data-table tbody tr:hover { background: #1a2a3a; } .clickable-row { cursor: pointer; transition: background 0.15s; } .clickable-row:hover { background: #1a2535 !important; } .row-selected { background: #142a3a !important; border-left: 3px solid #4fc3f7; } /* ===== Badge 状态标签 ===== */ .badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; } .badge-unknown { background: #2a3441; color: #8899aa; } .badge-normal { background: #1a3a2a; color: #4caf50; } .badge-active { background: #1a3050; color: #4fc3f7; } .badge-finished { background: #1a3a2a; color: #4caf50; } .badge-waiting { background: #3a3020; color: #ffc107; } .badge-error { background: #3a1a1a; color: #f44336; } /* ===== 分页控件 ===== */ .pagination { display: flex; align-items: center; justify-content: center; padding: 16px 0 8px; } /* ===== 查验进度 ===== */ .inspection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; } .inspection-item { background: rgba(26, 26, 46, 0.7); border-radius: 8px; padding: 12px; border: 1px solid #2a2a3e; transition: all 0.3s; } .inspection-item.insp-done { border-color: #4caf50; background: rgba(76, 175, 80, 0.08); } .inspection-item.insp-active { border-color: #ff9800; background: rgba(255, 152, 0, 0.08); } .insp-name { font-weight: bold; font-size: 14px; margin-bottom: 4px; color: #e0e0e0; } .insp-code { font-family: monospace; font-size: 12px; color: #8899aa; margin-bottom: 2px; } .insp-spec { font-size: 11px; color: #667788; margin-bottom: 8px; } .insp-count { font-size: 20px; font-weight: bold; margin-bottom: 6px; display: flex; align-items: baseline; gap: 4px; } .insp-num { color: #4fc3f7; } .insp-sep { color: #667788; font-size: 14px; } .insp-total { color: #8899aa; font-size: 14px; } .insp-bar { height: 4px; background: #0a0a14; border-radius: 2px; overflow: hidden; } .insp-fill { height: 100%; background: linear-gradient(90deg, #4fc3f7, #4caf50); border-radius: 2px; transition: width 0.5s ease; }