Hard magnet topological semimetals in XPt3 compounds with the harmony of Berry curvature