China’s factories and ports are learning to make and export more goods faster, cheaper and with fewer workers.