SHANGHAI — Last year, an expensive, red-brick residential complex opened here, equipped with a hair salon, cinema, toy-cluttered game rooms and a karaoke suite offering the latest in pop music.