Metastable-State Photoacid: A Comprehensive Theoretical Study of the Photoreaction, Reverse Reaction, Thermal Isomerization, and TD-DFT Absorption in Solvent