Design, synthesis, and application of amphoteric macromolecular dyes with controllable solubility