OASIS: A Deep Learning Framework for Universal Spectroscopic Analysis Driven by Novel Loss Functions