Exposure problems, including underexposure and overexposure, can significantly degrade image quality. Poorly exposed images often suffer from coupled illumination degradation and detail degradation, aggravating the difficulty of recovery. These necessitate a spatial discriminating exposure correction, making achieving uniformly exposed and visually consistent images challenging. To address these issues, we propose an Illumination-guided Dual-domain Network (IDNet), which employs a Dual-Domain Module (DDM) to simultaneously recover illumination and details from the frequency and spatial domains, respectively. The DDM also integrates a structural re-parameterization technique to enhance the detail-aware capabilities with reduced computational cost. An Illumination Mask Predictor (IMP) is introduced to guide exposure correction by estimating the optimal illumination mask. The comparison with 26 methods on three benchmark datasets shows that IDNet achieves superior performance with fewer parameters and lower computational complexity. These results confirm the effectiveness and efficiency of our approach in enhancing image quality across various exposure scenarios.