').removeClass('hidden');
        }

        function toggleLanguage() {
            currentLang = currentLang === 'en' ? 'zh' : 'en';
            localStorage.setItem('language', currentLang);
            updateUIText();
            refreshMail();
        }

        function updateUIText() {
            const t = translations[currentLang];
            
            // 更新页面文本
            $('#page-title').text(t.title);
            $('.text-center.text-gray-400.mb-6 p').text(t.description);
      