A Universal Deep Learning Framework for Materials X-ray Absorption Spectra