
        const historyItemEl = document.createElement('div');
        historyItemEl.className = 'history-item' + (item.id === newItemId ? ' new' : '');
        const date = new Date(item.timestamp);
        const formattedDate = `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}`;
        const downloadText = lang === 'en' ? 'Download' : '下�