Countries that once saw American success as their own now view the US as an adversary and Beijing as a model