(e) {
                e.preventDefault();
                aiSettingsDialog.style.display = 'block';
                
                // Âä†ËΩΩÂΩìÂâçËÆæÁΩÆ
                if (window.aiCompanion) {
                    const preference = window.aiCompanion.userPreference;
                    
                    // ËÆæÁΩÆÂ§çÈÄâÊ°Ü
                    const checkboxes = document.querySelectorAll('input[name="promptType"]');
                    checkboxes.forEach(checkbox => {
