As lead-colored air blanketed the capital, moving in from the industrial heartland of surrounding Hebei Province, residents posted photographs on social media showing how the skies had changed to gloomy gray at sunset from bright blue in the morning.