Trade and investment flows settle into new patterns around two rival power centers—with major risks.