Multi-photon Rabi model: Generalized parity and its applications