Evolution of the Three Spectral Components in the Prompt Emission of GRB 240825A