Water inflow and endogenous factors drove the changes in the buffering capacity of biogenic elements in Erhai Lake, China.