China put on a lavish welcoming ceremony for the US president, followed by hours of talks and a press conference filled with compliments.