Phytodiversity is associated with habitat heterogeneity from Eurasia to the Hengduan Mountains.