Performance of a haloalkaliphilic bioreactor and bacterial community shifts under different COD/SO₄²⁻ ratios and hydraulic retention times.