China’s trade surplus surged to a record of almost $1.2 trillion last year, the government said Wednesday, as exports picked up in December.