Dual threat of tidal flat loss and invasive Spartina alterniflora endanger important shorebird habitat in coastal mainland China.