This prospective, multicenter, open-label, randomized controlled trial will evaluate the safety and efficacy of gecacitinib for the prevention of graft-versus-host disease (GVHD) in patients undergoing unrelated donor or haploidentical HSCT. Approximately 270 participants aged 18 to 75 years will be randomized in a 1:1 ratio to receive anti-thymocyte globulin (ATG) alone or ATG plus gecacitinib. Both groups will receive ATG at a total dose of 7.5 mg/kg on days -5 to -2 before transplantation, together with standard GVHD prophylaxis. The experimental group will additionally receive gecacitinib 50 mg orally once daily from day +1 through day +180 after transplantation. The primary outcome is the cumulative incidence of grade II-IV acute GVHD by day +100 after transplantation. The secondary outcomes include incidence and severity of adverse events, 2-year cumulative incidence of moderate-to-severe chronic graft-versus-host disease, overall survival (OS), cumulative incidence of relapse (CIR), graft-versus-host disease-free, relapse-free survival (GRFS).