China’s struggle to recover from the shock of COVID-19 in 2024 laid bare long-standing vulnerabilities in its economy.