JurisCTC: Enhancing Legal Judgment Prediction via Cross-Domain Transfer and Contrastive Learning