function page_sys_services(c){
  api('/api/admin/services').then(function(d){
    var h = '<div class="card"><div class="card-title">外部服务</div>';
    (d||[]).forEach(function(s){
      h += '<div class="service-card"><div class="service-info"><span class="name">'+s.name+'</span><span class="desc">'+s.url+'</span></div>'+
        '<div class="service-actions"><span class="status-dot '+(s.enabled?'status-running':'status-stopped')+'"></span>'+(s.enabled?'运行中':'已停止')+'</div></div>';
    });
    c.innerHTML = h+'</div>';
  });
}
