Local axisymmetry-breaking–induced transition of trapped-particle orbit and loss channels in quasi-axisymmetric stellarators