China learned from Trump’s first trade war and changed its tactics when tariffs came again