The surplus highlight Beijing's growing reliance on overseas demand to support an economy hobbled by subdued consumption and a property slump.