Enhancing Evolving Domain Generalization through Dynamic Latent Representations