* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}
#容器 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#控制面板 {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}
.关节控制组 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.关节标签 {
    width: 80px;
    color: #0088ff;
    font-size: 14px;
    margin-right: 5px;
}
.滑动控制器 {
    flex: 1;
    margin: 0 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(0, 128, 255, 0.2);
    border-radius: 3px;
    outline: none;
}
.滑动控制器::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 128, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}
.滑动控制器::-webkit-slider-thumb:hover {
    background: rgba(0, 128, 255, 1);
    transform: scale(1.2);
}
#工具栏 {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 95px;
    max-height: 50vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 10px;
border-radius: 10px;
}
#工具栏头部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#性能统计 {
    font-size: 12px;
    color: #0088ff;
    margin-left: 10px;
}
#工具栏内容 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.动作按钮 {
    padding: 2px;
    background: rgba(0, 128, 255, 0.2);
    border: 2px solid rgba(0, 128, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.动作按钮:hover {
    background: rgba(0, 128, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.3);
}
.动作按钮:active {
    transform: translateY(1px);
}
.动作按钮::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.动作按钮:active::after {
    opacity: 1;
    animation: ripple 0.6s linear;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
.数值显示 {
    display: inline-block;
    width: 50px;
    text-align: right;
    margin-left: 5px;
    color: #0088ff;
    font-family: monospace;
}
.工具按钮 {
    padding: 6px 12px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
.工具按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
.切换按钮 {
    width: 30px;
    height: 30px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}
.切换按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
.菜单 {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    z-index: 1100;
}
.菜单.活动 {
    display: block;
}
.菜单项 {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}
.菜单项:hover {
    background: rgba(0, 128, 255, 0.2);
}
.预设项 {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.预设名称 {
    flex-grow: 1;
}
.预设控制 {
    display: flex;
    gap: 5px;
}
.预设按钮 {
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
}
.预设按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
#日志面板 {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
#日志面板头部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
#脑容器 {
    width: 100%;
    height: 250px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}
#日志控制 {
    display: flex;
    gap: 10px;
}
.日志按钮 {
    padding: 6px 12px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    flex: 1;
}
.日志按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
#示例命令菜单 {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 10px;
    width: 350px;
    display: none;
    z-index: 1100;
    max-height: 80vh;
    overflow-y: auto;
}
.示例命令项 {
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}
.示例命令项:hover {
    background: rgba(0, 128, 255, 0.2);
}
.示例命令分组 {
    margin: 8px 0;
    border-bottom: 1px solid rgba(0, 128, 255, 0.3);
    padding-bottom: 5px;
}
.示例命令标题 {
    font-weight: bold;
    color: #0088ff;
    margin-bottom: 5px;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 128, 255, 0.5);
}
#宏定义菜单 {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 10px;
    width: 350px;
    display: none;
    z-index: 1100;
    max-height: 80vh;
    overflow-y: auto;
}
.宏项 {
    margin: 10px 0;
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}
.宏头部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(0, 128, 255, 0.1);
    cursor: pointer;
}
.宏名称 {
    font-weight: bold;
    color: #0088ff;
}
.宏控制 {
    display: flex;
    gap: 5px;
}
.宏按钮 {
    padding: 3px 6px;
    font-size: 10px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
}
.宏按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
.宏内容 {
    padding: 8px;
    display: none;
    background: rgba(0, 0, 128, 0.1);
    font-family: monospace;
    white-space: pre-wrap;
}
.宏内容.显示 {
    display: block;
}
#录制状态 {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 12px;
}
#录制指示器 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff3333;
    margin-right: 5px;
    display: none;
}
#录制指示器.活动 {
    display: block;
    animation: 闪烁 1s infinite;
}
@keyframes 闪烁 {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
#表情控制面板 {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    z-index: 1100;
    width: 280px;
    display: none;
}
#表情按钮组 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.表情按钮 {
    padding: 8px;
    background: rgba(0, 128, 255, 0.2);
    border: 1px solid rgba(0, 128, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}
.表情按钮:hover {
    background: rgba(0, 128, 255, 0.4);
}
.表情按钮.活动 {
    background: rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}
/* 响应式设计 */
@media (max-width: 768px) {
    #控制面板 {
        width: 250px;
        right: 10px;
        top: 60px;
        max-height: 60vh;
    }
    #工具栏 {
        padding: 5px;
    }
    .动作按钮 {
        padding: 8px 12px;
        font-size: 12px;
    }
    .工具按钮 {
        padding: 5px 10px;
        font-size: 11px;
    }
    #日志面板 {
        width: 300px;
        max-height: 200px;
        left: 10px;
        bottom: 10px;
    }
    #脑容器 {
        height: 120px;
    }
}
@media (max-width: 480px) {
    #控制面板 {
        width: 200px;
        font-size: 12px;
    }
    .关节标签 {
        font-size: 12px;
    }
    .数值显示 {
        width: 40px;
        font-size: 12px;
    }
    .动作按钮 {
        padding: 6px 10px;
        font-size: 11px;
    }
    #性能统计 {
        font-size: 10px;
    }
    #日志面板 {
        width: 250px;
        max-height: 45vh;
    }
    #脑容器 {
        height: 100%;
    }
    .日志按钮 {
        padding: 4px 8px;
        font-size: 10px;
    }
}