China, the world’s biggest energy importer, is vulnerable to an oil shock that is slowing trade, lifting factory costs and darkening the outlook.