China has released a mixed set of data, underlining the challenges facing Chinese leaders heading into 2025, when trade relations with the US could worsen.