Understanding the flow processes and pattern optimization of ecosystem services (ESs) supply and demand is crucial for integrated regional ecological management. However, the understanding of the flow process of ESs at the 1 km grid scale is still limited, especially in areas dominated by mineral resource development. The landscape in these areas has undergone significant changes due to mining activities. It is urgent to construct a regional management model that integrates the flow of ecosystem services and mine restoration. This study developed a framework that links ecosystem service flows (ESFs) and ecological security patterns (ESP) based on multi-source ecological monitoring data, constructed an ES supply-demand flow network through the flow properties, and determined the sequence and optimization strategies for mine rehabilitation to achieve integrated regional management. The results show that, except for food production (FP), other services were in surplus overall, mostly in synergistic relationships, but the spatial distribution of their supply and demand was not coordinated. Surplus areas were located mainly in the eastern woodlands, and deficit areas were located in the northwestern production agglomeration centers, suggesting that areas of supply-demand imbalance can be mitigated through ecological integration. Among these, water yield (WY) had a small number of sources and sinks and is limited in area range. Habitat quality (HQ) sources and sinks had the largest area coverage and the highest number. The distribution of ESF corridors, influenced by factors such as the number of sources and sinks, flow characteristics, and spatial resistance, varied significantly. HQ exhibited a more uniform distribution range, while WY had a longer average length of flow path. Overlaying ecological and mining factors, we identified ecological strategic spots, important supply areas, beneficiary areas, and mine priority restoration areas to further optimize the overall layout and rationally allocate the intrinsic structure of the patches based on ES supply and demand.