body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 20px; max-width: 1800px; margin: 0 auto; background-color: #f5f5f7; color: #333; } .container { display: flex; flex-wrap: wrap; gap: 20px; } .control-panel, .status-panel, .animation-panel { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); flex: 1; min-width: 300px; } h1, h2, h3 { color: #2c3e50; } /* 手部配置面板 */ .hands-config { background-color: #e8f4fd; padding: 20px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid #3498db; } .hands-config h3 { margin-top: 0; margin-bottom: 15px; color: #2980b9; } .hands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; } .hand-item { background: white; padding: 15px; border-radius: 8px; border: 2px solid transparent; transition: all 0.3s ease; } .hand-item.enabled { border-color: #27ae60; box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2); } .hand-item.disabled { opacity: 0.6; background-color: #f8f9fa; } .hand-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .hand-checkbox { width: 18px; height: 18px; accent-color: #27ae60; } .hand-title { font-weight: bold; font-size: 16px; } .hand-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .control-group { display: flex; flex-direction: column; gap: 5px; } .control-label { font-size: 12px; color: #666; font-weight: 500; } .hand-select { padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .hand-status { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; } .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .status-dot.online { background-color: #27ae60; } .status-dot.offline { background-color: #e74c3c; } .status-dot.loading { background-color: #f39c12; animation: pulse 1s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } /* 控制按钮区域 */ .global-controls { background-color: #fff3cd; padding: 15px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #ffc107; } .global-controls h4 { margin: 0 0 10px 0; color: #856404; } .control-buttons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .slider-container { margin: 15px 0; } .slider-label { display: flex; justify-content: space-between; margin-bottom: 5px; } .finger-slider { width: 100%; } .value-display { width: 40px; text-align: center; font-weight: bold; } .control-buttons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; } button { padding: 10px 15px; background-color: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #2980b9; } button:disabled { background-color: #bdc3c7; cursor: not-allowed; } button.preset { background-color: #27ae60; } button.preset:hover { background-color: #219955; } button.stop { background-color: #e74c3c; } button.stop:hover { background-color: #c0392b; } button.global { background-color: #f39c12; } button.global:hover { background-color: #e67e22; } .refresh-button { background-color: #9b59b6; padding: 6px 10px; font-size: 12px; } .refresh-button:hover { background-color: #8e44ad; } .status-output { background-color: #f8f9fa; border: 1px solid #eee; border-radius: 5px; padding: 10px; font-family: monospace; height: 300px; overflow-y: auto; } .log-entry { margin-bottom: 5px; padding: 5px; border-bottom: 1px solid #eee; } .log-entry:last-child { border-bottom: none; } .status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; } .log-timestamp { color: #7f8c8d; font-size: 0.8em; margin-right: 5px; } .status-success { background-color: #2ecc71; } .status-error { background-color: #e74c3c; } .status-info { background-color: #3498db; } .animation-controls { display: flex; flex-direction: column; gap: 10px; } .preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; } .slider-group { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 10px; } .slider-group h3 { margin-top: 0; font-size: 1.1em; } .info-badge { display: inline-block; font-size: 0.7em; padding: 2px 5px; background-color: #95a5a6; color: white; border-radius: 3px; margin-left: 5px; vertical-align: middle; } .connection-warning { background-color: #fff3cd; border: 1px solid #ffeeba; color: #856404; padding: 10px; border-radius: 5px; margin-bottom: 15px; display: none; } /* 响应式调整 */ @media (max-width: 1200px) { .container { flex-direction: column; } .hands-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .hand-controls { grid-template-columns: 1fr; } .control-buttons-grid { grid-template-columns: 1fr; } }