Bethe/Gauge correspondence for ABCDEFG-type 3d gauge theories