Home Chinese stocks post first annual gain since 2020, HK ends 4-year rout