📋 任务进度
const allTasks = dv.pages('""').file.tasks;
const total = allTasks.length;
const completed = allTasks.where(t => t.completed).length;
const incomplete = total - completed;
const pct = total > 0 ? Math.round(completed/total*100) : 0;
dv.paragraph(`待完成 **${incomplete}** · 已完成 **${completed}** · 进度 **${pct}%**`);