    removeBtn.style.display = 'none';
            }
        });
        
        doneBtn.addEventListener('click', async () => {
            const name = nameInput.value;
            const parentId = folderSelect.value;

            if (pageData.bookmark) { // 更新现有
                console.log('[书签弹窗] 更新书签，包含favicon:', pageData.favicon);
                await window.api.updateBookmark({
                    id: pageData.bookmark.id,
                    title: name,
              