The nation of 1.4 billion people stands out amid a slowing global economy, with its appeal burnished by China’s tepid post-pandemic recovery and Beijng's tensions with the West.