Rational design of π bridge to forecast photoelectric performance of dye