Exogenous melatonin enhances tomato heat resistance by regulating photosynthetic electron flux and maintaining ROS homeostasis.