0)}...`;
                entryDiv.appendChild(keyInfo);

                mediaListDiv.appendChild(entryDiv);
            }
        }
    }

    // 3. 允许图片点击放大预览 - Modal handling JavaScript
    window.addEventListener('DOMContentLoaded', () => {
        const modal = document.getElementById('mediaModal');
        const modalCloseButton = document.getElementById('modalCloseButton');

        function closeModal() {
            modal.style.display = "none";
            docume