= status;
            statusIndicator.className = 'status-indicator ' + status;
            statusText.textContent = '状态: ' + message;
        }

        // 添加日志
        function addLog(message, type = 'system') {
            const entry = document.createElement('div');
            entry.className = `log-entry ${type}`;
            entry.textContent = `[${new Date().toLocaleTimeString()}] ${message}`;
            logContent.appendChild(entry);
            logContent.scrollTop = logContainer.scro