China shares rally, but biggest monthly drop in 7 years