The most intensively star-forming galaxies are extremely luminous at far-infrared (FIR) wavelengths, highly obscured at optical and ultraviolet wavelengths, and lie at z≥1−3. We present a programme of Herschel FIR spectroscopic observations with the SPIRE FTS and photometric observations with PACS, both on board Herschel, towards a sample of 45 gravitationally lensed, dusty starbursts across z∼1−3.6. In total, we detected 27 individual lines down to 3-σ, including nine [CII] 158-μm lines with confirmed spectroscopic redshifts, five possible [CII] lines consistent with their far-infrared photometric redshifts, and in some individual sources a few [OIII] 88-μm, [OIII] 52-μm, [OI] 145-μm, [OI] 63-μm, [NII] 122-μm, and OH 119-μm (in absorption) lines. To derive the typical physical properties of the gas in the sample, we stack all spectra weighted by their intrinsic luminosity and by their 500-μm flux densities, with the spectra scaled to a common redshift. In the stacked spectra, we detect emission lines of [CII] 158-μm, [NII] 122-μm, [OIII] 88-μm, [OIII] 52-μm, [OI] 63-μm, and the absorption doublet of OH at 119-μm, at high fidelity. We find that the average electron densities traced by the [NII] and [OIII] lines are higher than the average values in local star-forming galaxies and ULIRGs, using the same tracers. From the [NII]/[CII] and [OI]/[CII] ratios, we find that the [CII] emission is likely dominated by the photo-dominated regions (PDR), instead of by ionised gas or large-scale shocks.