A Unified Shape-Aware Foundation Model for Time Series Classification