Shanghai sweltered under a new record high of 40.9°C (105°F) on Friday (Jul 21), authorities said as they issued a weather "red alert" over a stubborn heat wave that has plagued much of the country.