Exploring perovskite oxide for advancing salt-resistant photothermal membranes and reliable thermoelectric generators