"There is nothing illegal about traveling with cash, the $18,000 must simply be reported to CBP on arrival . . ."
That amount of money must certainly also be reported to Chinese Customs on departure (and perhaps also to transiting countries) and it may very well also be necessary to get other approvals beforehand in China or risk confiscation. Look into this closely.