Ideological Change and Regime Legitimacy in China