function page_dashboard(c){
  api('/api/admin/services').then(function(d){
    var h = '<div class="card"><div class="card-title">系统概览</div>'+
      '<div class="stats-grid">'+
      '<div class="stat-card"><div class="stat-value">'+(d.length||0)+'</div><div class="stat-label">服务数</div></div>'+
    '</div></div>';
    c.innerHTML = h;
  }).catch(function(){ c.innerHTML = '<div class="card">加载失败</div>'; });
}
