Maoist theory is actually pro-middle class. They call it the "national bourgeoisie", whole Leninist theory of capitalist development under a "people's government". You couldn't have government bodies with names like "
the All-China Federation of Industry and Commerce" if anyone suspected of engaging industry and commerce was cannibalised on the spot. The middle classes suffered badly in the Cultural Revolution, that's true, but that was part of a generalised outburst of violence against anyone perceived as being part of the Old Guard: teachers, government officials and academics were also heavily persecuted, despite the impeccably socialist credentials of their professions.