llHeight;
        }


        // 切换日志显示
        function toggleLogs() {
            logsVisible = !logsVisible;
            logContainer.classList.toggle('visible', logsVisible);
            logToggle.innerHTML = logsVisible ? '<i class="fas fa-times"></i>' : '<i class="fas fa-bars"></i>';
        }

        // 更新对话
        function updateDialogue(dialogue) {
            const container = document.getElementById('dialogue-container');
            const existingMessages = container.queryS