SurgPLAN++: Universal Surgical Phase Localization Network for Online and Offline Inference