Contamination Characteristics and Source Identiﬁcation of Groundwater in Xishan Coal Mining Area of Taiyuan Based on Hydrochemistry and Sulfur–Oxygen Isotopes

: Xishan mining area in Taiyuan is a typical coal industry cluster with a variety of coal-related industrial sites such as coal mines, power plants and coking plants, which seriously pollute the native ecological environment. Study of the hydrochemical characteristics and pollution sources of groundwater in the area can contribute to the ecological protection and remediation of regional groundwater resources. In this study, we collected surface water and groundwater samples from the Xishan mining area and measured and analyzed hydrochemical and sulfur–oxygen isotopes. Results showed that 64.7% of groundwater in the study area exceeded the sulfate standard due to the inﬂuence of the coal industry, with some karst groundwater up to 2000 mg/L. In the runoff and discharge area of karst groundwater, the proportion of anthropogenic input of SO 42 − increased, which led to the hydrochemical type of karst groundwater gradually changing from HCO 3 -Ca · Mg (recharge area) to SO 4 -Ca · Mg (discharge area). Results of sulfur–oxygen isotope tests indicated that the δ 34 S SO4 and δ 18 O SO4 values of samples were − 10.01~24.42‰ and − 4.90~12.40‰, respectively, and the sulfur–oxygen isotope values of some karst groundwater were close to the dissolved end of sulﬁde minerals, indicating their sulfate mainly came from the oxidation of pyrite. Sulfate sources in groundwater water were parsed using IsoSource model. Calculated results revealed that sulfate in pore groundwater mostly originated from pyrite oxidation, and karst groundwater in the recharge area was mainly inﬂuenced by atmosphere precipitation, while groundwater in the runoff and discharge areas were signiﬁcantly affected by pyrite oxidation, accounting for up to 90% in some karst groundwater. Comparing the sulfur–oxygen isotope values of karst groundwater in 1989, 2016 and 2022, we found that the δ 34 S SO4 values in 2022 decreased signiﬁcantly, which indicated the expansion of karst groundwater pollution in the Xishan mining area. This study highlights the pollution of regional groundwater by coal-related industrial agglomerations, and the groundwater pollution in the Xishan mining area requires urgent remediation and restoration.


Introduction
Coal plays an important role in China's primary energy system [1]. During the process of coal resources development, a number of industrial zones have gradually formed in the main coal producing areas of Shanxi Province, mainly including coal mines, thermal power plants, coking plants, sorting plants and coal-washing plants. These coal-related plants cause different degrees of pollution of the surrounding environment during production and day-to-day activities. For example, coal gangue is produced during the process of coal mining, coal washing and coal separation, and thermal power plants produce large amounts of fly ash and desulfurization ash. These solid wastes usually accumulate directly on the ground surface, and the leachate formed under the long-term drenching effect of atmospheric rainfall causes surface water pollution or direct infiltration to pollute groundwater [2]. Furthermore, as a large number of coal mines with backward capacity have been closed, the wastewater generated by these abandoned coal mines can also damage the ecological environment [3]. Coal-related industrial agglomerations are characterized by many types of industrial sites, a wide range of pollution and complex sources of pollutants, and the impact of such industrial agglomerations on the regional ecological environment needs more attention.
The hydrochemistry of surface and groundwater is influenced by rock weathering, the recharge and discharge process of runoff, occurrence conditions and human activities [4,5]. Based on hydrochemical parameters of different water bodies, the source and transformation law of surface-groundwater hydrochemical ions can be revealed by means of hydrochemical statistical diagrams [6]. Zhou et al., analyzed the main ion characteristics and controlling factors of surface water and groundwater in the upper reaches of Shule River by hydrochemical analysis [7]. Li et al., analyzed the hydrochemical characteristics of groundwater in karst wetland in different hydrological cycles by hydrochemical statistical diagrams and discussed the influence of natural and human factors on major chemical ions [8]. In addition to hydrochemical analysis, due to the exchange of matter and energy in the transformation of different water bodies, the source and circulation process of surface water and groundwater can be revealed by comprehensively analyzing the hydrochemistry and isotopic composition of water bodies [9,10]. Gu et al., analyzed the relationship between recharge and discharge of groundwater and surface water in the Liujiang Basin by environmental isotopes and hydrochemical analysis [11]. Liu et al., used hydrochemistry and stable isotopes of hydrogen and oxygen to reveal the temporal and spatial variation characteristics and recharge sources of surface water and groundwater in the Donggong River Basin [12].
Stable isotopes can be used to trace the source of water pollution. Sulfur isotopes of sulfate in nature have unique isotopic values associated with their sources [13], and there is little significant sulfur isotope fractionation during the biogeochemical cycle of sulfur, except for sulfate bacterial reduction [14]. Therefore, sulfur isotopes have become an important tool for tracing the source of sulfate in water [15]. SO 4 2− in acid mine drainage water is mainly derived from the oxidation of pyrite and thus has the same δ 34 S SO4 value as pyrite [16], with δ 18 O SO4 values depending mainly on the oxidation pathway of pyrite and the oxygen isotopic composition of its oxygen source [17]. Therefore, the analysis of the sulfur and oxygen isotope composition of sulfates (δ 34 S SO4 and δ 18 O SO4 ) can reveal the source of sulfate pollution and trace the pollution of underground water by acidic mine drainage [18]. For example, Li et al., used sulfur and oxygen isotopes to trace and quantify the pollution of acid mine drainage from Heshan Coal Mine and found that the groundwater in the mining area was basically affected by the infiltration of acid mine drainage, with the contribution ratio to groundwater sulfate ranging from 16% to 52% [16]. Zhao et al., analyzed the distribution characteristics of SO 4 2− and sulfur isotopes in karst groundwater in Niangziguan spring area, Shanxi Province. They have found that SO 4 2− in karst groundwater in northwest and southwest areas of the spring area was mainly from the dissolution of gypsum, while the high content of SO 4 2− and low δ 34 S SO4 value of karst groundwater in the central confluence area of Spring mainly originated from coal mine water [19].
As a typical coal industry cluster, more than 200 coal mines, as well as coal-washing plants, sorting plants, thermal power plants, etc., are located in Xishan coal mining district. The mineable coal seams in the Xishan mining area contain medium-and high-sulfur coal, and the sulfide minerals associated with the coal seams and gangue are oxidized to form acid mine water [20]. The discharge of acid gangue leachate and mine water has caused serious pollution of the local environment. Especially in recent years, the acid mine water generated by some abandoned coal mines has further aggravated the pollution of regional surface and groundwater systems. In order to identify the pollution of regional groundwater by typical coal-related industrial agglomerations, we collected surface water, mine water and gangue leachate groundwater from Xishan mining area to analyze the hydrochemical characteristics and pollution causes based on hydrochemical and sulfuroxygen isotopes. This study can contribute to the elaboration of regional strategies for ecosystem restoration.

Hydrogeological Background of Study Area
Xishan coalfield is located in the eastern edge of Lvliang Mountain and the west side of Cenozoic fault basin in Taiyuan, with the geographical coordinates ranging from 111 • 50 55 to 112 • 31 35 E and 37 • 23 49 to 38 • 02 14 N. The northern part is a typical northern karst landform, and the mountains are mostly composed of hard carbonate rocks of the Cambrian and Ordovician age and Archean metamorphic rocks. The southeastern part is the Taiyuan fault basin, which is flat and generally high in the northwest and low in southeast [21]. Rivers of the study region belong to the Fen River system in the Yellow River Basin, and the main rivers are Fen River and its tributaries, such as Tunlan River, Yuanping River and Dachuan River. The main groundwater aquifers include the Middle Ordovician limestone karst aquifer, Taiyuan Formation fissure karst aquifer, Shanxi Formation and Xiashihezi Formation sandstone fissure aquifer and Quaternary gravel stratum pore aquifer. Groundwater Springs leak out along Fen River Valley and mountains. The rocks in the karst aquifer are mainly Cambrian and Ordovician carbonate rocks, and the groundwater flows from the north and northwest to south and southeast, forming karst springs. The fractured aquifers mainly include clastic rocks, clastic rocks intercalated with carbonate rocks, metamorphic rocks and magmatic rocks, mainly sandstone and limestone. The groundwater flows from northwest to southeast. The porous aquifers are composed of loose rocks, and the main recharge sources are atmospheric precipitation and surface water.
The study area is located in the Jinci Spring area, which is divided into the runoff recharge area, runoff discharge area and alluvial plain area according to hydrogeological units. Most of the areas north of Tunlan River and Fen River belong to the recharge-runoff area of karst groundwater, while the area south of Fen River belongs to the runoff-discharge area. Jinci Spring is the discharge point of karst groundwater [22]. The main recharge of karst groundwater is atmospheric precipitation and river leakage. There are a large number of coal mines in the runoff area, and the mine field area accounts for about 60%. Production activities such as mine drainage and coal processing, as well as leachate from abandoned coal mines and gangue dumps, influence the groundwater quality in the region through surface leakage and other factors.

Sample Collection
According to the geology, landform and the distribution of coal resources of the study area, water samples, including 5 surface water samples (S1~S5), 3 gangue leachate samples (G1~G3), 5 mine water samples (M1~M5) and 17 groundwater samples, were collected in 2022. The distribution of sampling points is shown in Figure 1. Among them, surface water samples were collected from Tunlan River and Fen River, respectively, and leachate was from Tunlan Mine and Malan Mine gangue dumps, while mine water samples were collected from Tunlan, Malan, Dongqu and Xiqu Coal Mines. Pore groundwater samples (P1~P6) were taken from the civil wells in Gujiao mining area (the buried depth of groundwater of 5~20 m). Eleven karst groundwater samples (K1~K11) were collected in the recharge area, runoff area and discharge area, respectively. Water samples were collected using high-density polyethylene plastic containers fore sampling, containers were washed three times with the water to be taken, fi quickly without any headspace, sealed and quickly transported back to the laboratory low-temperature storage for subsequent testing. The water sample used for ion anal was filtered by a 0.45μm membrane. Sulfate in samples was completely transformed BaSO4 by the chemical precipitation method and purified and prepared as BaSO4 sam by DTPA dissolution and the reprecipitation method (DDARP) [23], for isotopic m spectrometry analysis.

Physicochemical Indicators
The position of each sampling point was evaluated by a handheld GPS locator, the pH value and total dissolved solids (TDS) were measured in the field. The pH v was measured by a portable water quality tester (DS5, HACH, Ames, IA, USA), and TDS was measured by a portable detector (SX-650, Sanxin Instrumentation, Shang China). The anions Cl − , SO4 2− , F − , NH4 + and NO3− were tested by an ion chromatogr Water samples were collected using high-density polyethylene plastic containers. Before sampling, containers were washed three times with the water to be taken, filled quickly without any headspace, sealed and quickly transported back to the laboratory for low-temperature storage for subsequent testing. The water sample used for ion analysis was filtered by a 0.45µm membrane. Sulfate in samples was completely transformed into BaSO 4 by the chemical precipitation method and purified and prepared as BaSO 4 samples by DTPA dissolution and the reprecipitation method (DDARP) [23], for isotopic mass spectrometry analysis.

Physicochemical Indicators
The position of each sampling point was evaluated by a handheld GPS locator, and the pH value and total dissolved solids (TDS) were measured in the field. The pH value was measured by a portable water quality tester (DS5, HACH, Ames, IA, USA), and the TDS was measured by a portable detector (SX-650, Sanxin Instrumentation, Shanghai, China). The anions Cl − , SO 4 2− , F − , NH 4 + and NO 3− were tested by an ion chromatograph (ICS-Aquion, Thermo, Waltham, MA, USA), and HCO 3 − and CO 3 2− were determined by titration [24]. K + and Na + were tested by an atomic absorption spectrophotometer (GFA-6880, Shimadzu, Kyoto, Japan), and Ca 2+ and Mg 2+ were tested by the EDTA titration method. Heavy metals Al, Ba, Fe and Mn were determined by inductively coupled plasma mass spectrometry (ICP-MS, TFS, Waltham, MA, USA). Sulfur isotopes (δ 34 S SO4 ) of water samples were measured by an elemental analyzer (Flash 2000 HT, Thermo, Waltham, MA, USA) and a stable isotope mass spectrometer (Delta V, Thermo, Waltham, MA, USA) with an accuracy of less than 0.2‰. The test was completed at the Nanjing Institute of Geology and Paleontology, Chinese Academy of Sciences. Oxygen isotopes (δ 18 O SO4 ) were measured by an elemental analyzer (Flash 2000 HT, Thermo, Waltham, MA, USA) and isotope mass spectrometer (MAT253, Thermo, Waltham, MA, USA) with an analytical accuracy of over 0.5‰ at the School of Resources and Environment of Henan Polytechnic University.

Statistical Analysis
Origin software (v. 2018) was used to draw the box plots of hydrochemical indicators and the distribution diagrams of sulfur and oxygen isotopes for the analysis of the ionrelated correlations. The hierarchical clustering method based on Euclidean distance was used to cluster the distribution of sulfur and oxygen isotopes in water samples. The IsoSource model was adopted to analyze the source of sulfur and oxygen isotopes. Based on the law of mass conservation, the IsoSource model could estimate the contribution rate of various sulfate sources to groundwater sulfate pollution [25]. In this paper, the values of sulfur and oxygen isotopes from three kinds of sulfate sources in groundwater were input to establish the mass conservation model. The tolerance parameters and incremental parameters of the model were set, and the percentages of sulfate from different sources were calculated by an iterative method. Only when the difference between sulfur and oxygen isotopes from different sources and those in water samples was less than 0.1% could the solution be considered possible. where

Physicochemical Parameters of Samples
Physicochemical parameters of the water samples are shown in Table 1. The pH values of surface water, pore groundwater and karst groundwater were 7.97~8.55, 7.63~8.20 and 7.80~8.39, respectively, indicating weakly alkaline, while the gangue leachate and mine water samples were acidic or nearly neutral, with the lowest pH values of 3.22 and 4.72, respectively. As the comprehensive index of water samples, the TDS of pore groundwater and karst groundwater in the study area was 550.00~1760.00 and 248.00~2180.00 mg/L, respectively. Compared with the level III limit of groundwater quality standard (1000.00 mg/L) [26], 58.82% of the TDS in groundwater exceeded the standard, indicating that the groundwater may have been contaminated. The average SO 4 2− concentrations of pore groundwater and karst groundwater were 504.01 and 598.94 mg/L, respectively. A total of 64.70% of groundwater exceeded the level III limit of standard (250 mg/L) [26], and the highest SO 4 2− concentration reached 2000 mg/L. The average SO 4 2− concentrations of gangue leachate and mine water were 4282.00 and 1407.59 mg/L, respectively, and the higher concentration of sulfate may mainly derive from the oxidation of sulfide minerals (mainly pyrite) during acid production. The oxidation of pyrite leads to a decrease in pH, while releasing large amounts of sulfate, iron and manganese [27]. The highest concentrations of Fe, Mn and sulfate in gangue leachate were 690.00, 53.50 and 6637.00 mg/L, respectively. The high concentration of sulfate in the gangue leachate may enter the groundwater system through surface infiltration, leading to the increase in SO 4 2− in the groundwater. Therefore, it is necessary to use sulfur-oxygen isotopes of sulfate to trace the pollution sources in the study area.  3 -in groundwater were mainly from anthropogenic sources, indicating that the pore water in the study area may have been contaminated by agricultural irrigation or domestic wastewater [28]. The concentrations of Mn in pore groundwater P2 and P3 were relatively high, 4.63 and 10.00 mg/L, respectively, which seriously exceeded the standard limit (1.5 mg/L). The higher concentration of Mn in the pore groundwater may mainly derive from the surface infiltration of gangue leachate. As illustrated in Figure 1, P2 and P3 are distributed downstream of gangue leachate (G1 and G2). The content of Mn in gangue leachate G2 was as high as 53.5 mg/L due to the influence of acid production of gangue oxidation, and this contaminated water may enter the groundwater system through surface infiltration, leading to the increase in Mn content in downstream pore groundwater. The Fe and Mn concentrations in karst groundwater K8 and K9 were 0.60 and 2.03 mg/L, with 1.49 and 0.10 mg/L, respectively. The higher Fe and Mn concentrations in karst groundwater K8 and K9 may be attributed to the influence of acidic water infiltration from abandoned coal mines near Huanglou Village [29]. Figure 2 indicates the main hydrochemical indexes of karst groundwater in different areas of the study area. The average concentrations of TDS, SO 4 2− , Ca 2+ and Mg 2+ in karst groundwater in the recharge area (K1~K2) are 269.50, 31.8, 57.6 and 24.55 mg/L, respectively. Both TDS and SO 4 2− could meet the level I standard of groundwater. There are multiple coal mines and coal processing industrial sites in the runoff area of karst groundwater. With the infiltration of surface pollution, the TDS content of karst groundwater (K3~K6) gradually increased (with an average of 620.25 mg/L), and the average contents of Ca 2+ , Mg 2+ and SO 4 2− increased to 1.68, 2.00 and 9.26 times that of the recharge area, respectively. The SO 4 2− contents of K5 and K6 have exceeded the level V limit (350 mg/L) of groundwater. As shown in Figure 2, the chemical indexes of karst groundwater (K7~K11) in the drainage area were further increased, with the average contents of TDS, Ca 2+ , Mg 2+ and SO 4 2− of 1488.00, 153.60, 71.36 and 1069.2 mg/L, respectively. The average SO 4 2− concentration increased to 33.62 times that of the recharge area. The karst groundwaters in all charge areas exceeded the level V standards of groundwater, with a concentration of up to 2000.00 mg/L in Niujiaokou Village (K7). On the whole, the TDS and main ion contents in karst groundwater are increasing gradually from the recharge area and runoff area to the discharge area, which is consistent with the trend of changes in the hydrochemical indexes of karst groundwater in the region over the years [30,31]. The results of groundwater quality evaluation show that the karst groundwater was level II and level IV water in the runoff area and drainage area in 2015, respectively [30]. However, with the gradual increase in groundwater pollution, the water quality has exceeded the Class V limit, indicating a deteriorating trend in the water quality of karst groundwater in the Jinci Spring area.
(K3~K6) gradually increased (with an average of 620.25mg/L), and the average contents of Ca 2+ , Mg 2+ and SO4 2− increased to 1.68, 2.00 and 9.26 times that of the recharge area, respectively. The SO4 2− contents of K5 and K6 have exceeded the level V limit (350 mg/L) of groundwater. As shown in Figure 2, the chemical indexes of karst groundwater (K7~K11) in the drainage area were further increased, with the average contents of TDS, Ca 2+ , Mg 2+ and SO4 2− of 1488.00, 153.60, 71.36 and 1069.2 mg/L, respectively. The average SO4 2− concentration increased to 33.62 times that of the recharge area. The karst groundwaters in all charge areas exceeded the level V standards of groundwater, with a concentration of up to 2000.00mg/L in Niujiaokou Village (K7). On the whole, the TDS and main ion contents in karst groundwater are increasing gradually from the recharge area and runoff area to the discharge area, which is consistent with the trend of changes in the hydrochemical indexes of karst groundwater in the region over the years [30,31]. The results of groundwater quality evaluation show that the karst groundwater was level II and level IV water in the runoff area and drainage area in 2015, respectively [30]. However, with the gradual increase in groundwater pollution, the water quality has exceeded the Class V limit, indicating a deteriorating trend in the water quality of karst groundwater in the Jinci Spring area.

Hydrochemical Characteristics of Samples
Since the hydrochemical characteristics of regional surface and groundwater can be influenced by geological conditions, hydrodynamic conditions and human engineering activities, this complex information can be better inverted by analyzing the hydrochemical characteristics of karst groundwater [32,33]. The Piper diagram is an important tool to study the characteristics of hydrochemical types and can reflect the distribution of main anions and cations (Figure 3). The anions in surface river water (Group S) were mainly SO4 2− and HCO3 -, and the main cations were Ca 2+ , Na + and Mg 2+ . According to the Shukalev classification [34], the main hydrochemical types were SO4•HCO3-Ca•Na and SO4•HCO3-Ca•Na•Mg.SO4 2− that dominated in the anions of gangue leachate, accounting for 96.61% on average, and the hydrochemical types were SO4-Na and SO4-Ca•Na. The distribution of ions was discrete in the mine water of different coal mines, which may be related to

Hydrochemical Characteristics of Samples
Since the hydrochemical characteristics of regional surface and groundwater can be influenced by geological conditions, hydrodynamic conditions and human engineering activities, this complex information can be better inverted by analyzing the hydrochemical characteristics of karst groundwater [32,33]. The Piper diagram is an important tool to study the characteristics of hydrochemical types and can reflect the distribution of main anions and cations (Figure 3). The anions in surface river water (Group S) were mainly SO 4 2− and HCO 3 − , and the main cations were Ca 2+ , Na + and Mg 2+ . According to the Shukalev classification [34], the main hydrochemical types were SO 4 ·HCO 3 -Ca·Na and SO 4 ·HCO 3 -Ca·Na·Mg·SO 4 2− that dominated in the anions of gangue leachate, accounting for 96.61% on average, and the hydrochemical types were SO 4 -Na and SO 4 -Ca·Na. The distribution of ions was discrete in the mine water of different coal mines, which may be related to differences in coal seams and production conditions. Among them, SO 4 2− in M3 and M5 was up to over 90%, and the hydrochemical type was SO 4 -Ca·Na·Mg. The hydrochemical types of other mine water were SO 4 ·HCO 3 -Na (M1), SO 4 -Ca·Na (M2) and SO 4 ·Cl-Na (M4). The main anions of pore groundwater were SO 4 2− and HCO 3 − , and the main cations were Ca 2+ and Mg 2+ . The pore groundwater (P2 and P3) near Jijiazhuang Village had high contents of Ca 2+ and SO 4 2− , its hydrochemical type was SO 4 -Ca and the hydrochemistry of other pore groundwater was SO 4 ·HCO 3 -Ca·Mg. SO 4 2− in pore groundwater may derive from the dissolution of gypsum minerals or surface infiltration. There are gangue dumps upstream of Jijiazhuang Village, so the infiltration of high-concentration sulfate in leachate from gangue may be the reason for the dominance of SO 4 2− in P2 and P3. Ca 2+ and Mg 2+ are the main cations in karst groundwater, with average percentages of 48.71% and 38.23%, respectively, while the distribution of anions was different. HCO 3 − was the main anion in the karst groundwater (K1 and K2) in the recharge area, and the hydrochemical type is HCO 3 -Ca·Mg. Affected by the dissolution of sulfur-bearing minerals in coal-bearing strata, mine drainage and human activities, the proportion of SO 4 2− in karst groundwater in the runoff area gradually increased from 13.64% to the highest at 89.91%, and the proportion of HCO 3 − gradually decreased from 71.33% to 7.78%. Meanwhile, the hydrochemical types in the runoff area also evolved into SO 4 ·HCO 3 -Ca·Mg. SO 4 2− was the main anion in the karst groundwater in the drainage area, accounting for more than 80%, so the hydrochemical type also changed to SO 4 -Ca·Mg.
was up to over 90%, and the hydrochemical type was SO4-Ca•Na•Mg. The hydrochemical types of other mine water were SO4HCO3-Na (M1), SO4-Ca•Na (M2) and SO4•Cl-Na (M4). The main anions of pore groundwater were SO4 2− and HCO3 − , and the main cations were Ca 2+ and Mg 2+ . The pore groundwater (P2 and P3) near Jijiazhuang Village had high contents of Ca 2+ and SO4 2− , its hydrochemical type was SO4-Ca and the hydrochemistry of other pore groundwater was SO4•HCO3-Ca•Mg. SO4 2− in pore groundwater may derive from the dissolution of gypsum minerals or surface infiltration. There are gangue dumps upstream of Jijiazhuang Village, so the infiltration of high-concentration sulfate in leachate from gangue may be the reason for the dominance of SO4 2− in P2 and P3. Ca 2+ and Mg 2+ are the main cations in karst groundwater, with average percentages of 48.71% and 38.23%, respectively, while the distribution of anions was different. HCO3 − was the main anion in the karst groundwater (K1 and K2) in the recharge area, and the hydrochemical type is HCO3-Ca•Mg. Affected by the dissolution of sulfur-bearing minerals in coal-bearing strata, mine drainage and human activities, the proportion of SO4 2− in karst groundwater in the runoff area gradually increased from 13.64% to the highest at 89.91%, and the proportion of HCO3 − gradually decreased from 71.33% to 7.78%. Meanwhile, the hydrochemical types in the runoff area also evolved into SO4•HCO3-Ca•Mg. SO4 2− was the main anion in the karst groundwater in the drainage area, accounting for more than 80%, so the hydrochemical type also changed to SO4-Ca•Mg.

Analysis of Water-Rock Interaction of Water Samples
TDS of water samples in the study area was highly correlated with SO4 2− , with a correlation coefficient of 0.969, indicating that SO4 2− was the main factor affecting the overall indicators of water quality. Therefore, the analysis of sulfate sources can be used to judge the attribution of regional water pollution. According to Figure 4a, the increasing trend of SO4 2− concentration and TDS in regional surface water, pore groundwater and karst

Analysis of Water-Rock Interaction of Water Samples
TDS of water samples in the study area was highly correlated with SO 4 2− , with a correlation coefficient of 0.969, indicating that SO 4 2− was the main factor affecting the overall indicators of water quality. Therefore, the analysis of sulfate sources can be used to judge the attribution of regional water pollution. According to Figure 4a, the increasing trend of SO 4 2− concentration and TDS in regional surface water, pore groundwater and karst groundwater samples are the same as those in mine water and leachate from gangue, so it can be inferred that mine water and gangue leachate may impact the water quality of surface water and groundwater at the same time [35]. According to the relationship between Ca 2+ and SO 4 2− , the degree of the impact of gypsum dissolution on regional groundwater can be judged. If the groundwater is significantly affected by gypsum dissolution, the Water 2023, 15, 1169 9 of 16 dissolved components in groundwater should be close to the gypsum dissolution line. It can be seen from Figure 4b that the pore groundwater is basically distributed near the gypsum dissolution line, indicating that gypsum dissolution has an obvious influence on pore groundwater. Karst groundwater (K1~K3) is slightly distributed below the gypsum dissolution line, indicating that Ca 2+ cannot be balanced by SO 4 2− . One reason is that there may be other potential sources of Ca 2+ , such as the dissolution of calcite and dolomite, and the other reason is that the concentration of Ca 2+ in the surface recharge water may be slightly higher than that of SO 4 2− since these three types of karst groundwater were highly influenced by the recharge of surface water. Other samples of karst groundwater, mine water and gangue leachate are all distributed above the gypsum dissolution line, indicating that SO 4 2− still has other sources, such as artificial input or pyrite dissolution.

Distribution of Sulfur and Oxygen Isotopes in Water Samples
The ranges of δ 34 SSO4 and δ 18 OSO4 values of 30 water samples in the study area were 10.01 to +24.42‰ and −4.90 to +12.40‰, respectively. At the same time, sulfur and oxygen isotope data of three local atmospheric precipitation samples of Taiyuan were collected as the control group (Figure 5a). The hierarchical clustering results based on Euclidean distance show that the water samples in the study area can be grouped into three clusters (Figure 5b). Cluster I is mainly distributed in the center of Figure 5a, the δ 34 SSO4 value ranges from −2.77 to 6.71‰ and δ 18 OSO4 ranges from 0.50 to 5.50‰. Surface water, atmospheric precipitation and some groundwater samples were distributed in this area. Cluster II is mainly distributed at the lower left of Figure 5a. δ 34 SSO4 of these points ranges from −10.01 to −3.95‰, and δ 18 OSO4 ranges from −4.90 to 1.40‰. Leachate from gangue, part of the mine water and pore groundwater (P2~P4) and karst groundwater (K5, K7) were distributed in the area, and they have relatively negative sulfur and oxygen isotopes. The The ratio of (Ca 2+ + Mg 2+ )/(SO 4 2− + HCO 3 − ) can be used to determine the source of Ca 2+ , Mg 2+ , SO 4 2− and HCO 3 − [36]. As shown in Figure 4c, K1, K2 and P1 are basically distributed near the equilibrium line, indicating that the groundwater composition is mainly controlled by water-rock interaction. The leachate from gangue, mine water and karst groundwater (K5~K11) is located at the lower right of the equilibrium line, indicating that the decrease in equivalent concentrations of Ca 2+ and Mg 2+ or the increase in SO 4 2− and HCO 3 − in groundwater may be related to cation exchange or artificial input of SO 4 2− and organic matter. This is basically consistent with the conclusion of the analysis in Figure 4b. Karst groundwater K4 and pore groundwater P5 are slightly above the equilibrium line, which may be related to the reverse cation exchange or sulfate bacteria reduction process [36]. Salt rock dissolution is an important source of Na + and Cl − in groundwater. In Figure 4d, it can be seen that all the samples except K1 and K2 are slightly below the salt rock dissolution line, which indicates that Na + in groundwater cannot be balanced by Cl − , which may be due to ion exchange between Na + , Ca 2+ and Mg 2+ [37] or other sources of Na + , such as human input.

Distribution of Sulfur and Oxygen Isotopes in Water Samples
The ranges of δ 34 S SO4 and δ 18 O SO4 values of 30 water samples in the study area were 10.01 to +24.42‰ and −4.90 to +12.40‰, respectively. At the same time, sulfur and oxygen isotope data of three local atmospheric precipitation samples of Taiyuan were collected as the control group (Figure 5a). The hierarchical clustering results based on Euclidean distance show that the water samples in the study area can be grouped into three clusters (Figure 5b). Cluster I is mainly distributed in the center of Figure 5a, the δ 34 S SO4 value ranges from −2.77 to 6.71‰ and δ 18 O SO4 ranges from 0.50 to 5.50‰. Surface water, atmospheric precipitation and some groundwater samples were distributed in this area. Cluster II is mainly distributed at the lower left of Figure 5a. δ 34 S SO4 of these points ranges from −10.01 to −3.95‰, and δ 18 O SO4 ranges from −4.90 to 1.40‰. Leachate from gangue, part of the mine water and pore groundwater (P2~P4) and karst groundwater (K5, K7) were distributed in the area, and they have relatively negative sulfur and oxygen isotopes. The increase in gypsum input ratio and the reduction in sulfate bacteria could cause the positive values of δ 34 S SO4 and δ 18 O SO4 at the same time, while the increase in sulfide mineral input ratio can lead to the negative values of δ 34 S SO4 and δ 18 O SO4 [38]. Therefore, the SO 4 2− at these points may mainly derive from the oxidation of sulfide minerals. Cluster III is mainly distributed in the upper right, with δ 34 S SO4 and δ 18 O SO4 values ranging from 14.16 to 24.42‰ and 2.40 to 12.40‰, respectively. The sulfur and oxygen isotopes of these samples are all positive, on the one hand, probably because their sulfates may mainly derive from gypsum dissolution, and on the other hand, possibly because of the fractionation effect of the sulfate bacterial reduction process, which led to the increase in sulfur-oxygen isotope values.
The potential sources of sulfate include atmospheric precipitation, rock weathering (gypsum dissolution and pyrite oxidation) and human factors [39]. Sulfates from different sources have different δ 34 S SO4 values. In this study, three atmospheric precipitation samples were collected in Taiyuan area, and sulfur and oxygen isotopes were analyzed. The range of δ 34 S SO4 values was 2.41 to 3.83‰, mainly distributed in the central area of Figure 5c. Marine sedimentary gypsum minerals usually have high δ 34 S SO4 composition. The δ 34 S SO4 value of Precambrian gypsum is as high as 31‰, and the δ 34 S SO4 value of Handan Middle Ordovician gypsum is in the range of 20 to 24‰ [40]. The δ 34 S SO4 value of the Middle Ordovician gypsum in Shanxi is 23.8~31.4‰ [41]. In this study, some karst groundwaters (K3, K6, K9, K10 and K11) were distributed in the upper right area, and the range of δ 34 S SO4 was 19.61 to 24.42‰. Sulfate in these samples may mainly derive from the dissolution of gypsum minerals. The composition of δ 34 S SO4 in sedimentary rock pyrite is usually low; for example, pyrite in coal seams of different regions of China ranges from 3.4‰ to 10.2‰ for δ 34 S SO4 [42], and δ 34 S SO4 values of magmatic pyrite range from −5‰ to +5‰ [40,43]. The sulfur isotope is not obviously fractionated during pyrite oxidation, so the content of δ 34 S SO4 in sulfate formed by oxidation is similar to that of pyrite, and some studies show that the δ 34 S SO4 value in pyrite oxide is −15~4‰ [44]. According to Figure 4c, the samples of leachate from gangue, mine water, pore groundwater and some karst groundwaters (K5, K7 and K8) are all distributed in the lower right, and the δ 34 S SO4 values of these samples are mostly negative, so SO 4 2− in these samples may mainly derive from the oxidation of pyrite.

Identification of Groundwater Contamination Sources Based on Sulfur Isotopes
Sulfates from different potential sources in groundwater have different compositions of δ 34 S SO4 and δ 18 O SO4 . This study calculated the contribution rates of sulfate sources to groundwater sulfate pollution by IsoSource model [25]. The calculation had considered the input of sulfide mineral (pyrite) oxidation, atmospheric precipitation and gypsum dissolution to the groundwater and surface water sulfate. Figure 6 shows the calculation results. SO 4 2− from gypsum dissolution, atmospheric precipitation and pyrite oxidation in surface water was 20%~36% (average 31%), 2.0%~6.8% (4%) and 61%~73.3% (64%), respectively, with pyrite oxidation being the main source of sulfate in surface water. Sulfate produced by pyrite oxidation mainly comes from mine water and leachate from gangue, indicating that the surface rivers in Xishan mining area have been polluted by coal-related industrial sites to varying degrees. SO 4 2− produced by pyrite oxidation in pore groundwater accounted for 44.50%~95.30% (81% on average), which may be due to the infiltration of mine water or gangue leachate through the surface or rock cracks, resulting in pore groundwater pollution. In particular, P2, P3 and P4 directly affected by gangue dumps had higher proportions of pyrite oxidation, exceeding 88% at a single point. Pore groundwater P1 was highly influenced by atmospheric precipitation infiltration (54%), while sulfates in P5 and P6 pore groundwater derive from the dissolution of gypsum minerals (accounting for 18% and 12%, respectively). samples of leachate from gangue, mine water, pore groundwater and some karst ground-waters (K5, K7 and K8) are all distributed in the lower right, and the δ 34 SSO4 values of these samples are mostly negative, so SO4 2− in these samples may mainly derive from the oxidation of pyrite.

Identification of Groundwater Contamination Sources Based on Sulfur Isotopes
Sulfates from different potential sources in groundwater have different compositions of δ 34 SSO4 and δ 18 OSO4. This study calculated the contribution rates of sulfate sources to groundwater sulfate pollution by IsoSource model [25]. The calculation had considered the input of sulfide mineral (pyrite) oxidation, atmospheric precipitation and gypsum dissolution to the groundwater and surface water sulfate. Figure 6 shows the calculation results. SO4 2− from gypsum dissolution, atmospheric precipitation and pyrite oxidation in surface water was 20%~36% (average 31%), 2.0%~6.8% (4%) and 61%~73.3% (64%), respectively, with pyrite oxidation being the main source of sulfate in surface water. Sulfate produced by pyrite oxidation mainly comes from mine water and leachate from gangue, indicating that the surface rivers in Xishan mining area have been polluted by coal-related industrial sites to varying degrees. SO4 2− produced by pyrite oxidation in pore groundwater accounted for 44.50%~95.30% (81% on average), which may be due to the infiltration of mine water or gangue leachate through the surface or rock cracks, resulting in pore groundwater pollution. In particular, P2, P3 and P4 directly affected by gangue dumps had higher proportions of pyrite oxidation, exceeding 88% at a single point. Pore groundwater P1 was highly influenced by atmospheric precipitation infiltration (54%), while sulfates in P5 and P6 pore groundwater derive from the dissolution of gypsum minerals (accounting for 18% and 12%, respectively).  The proportion of sulfate from dissolved gypsum, atmospheric precipitation and pyrite oxidation sources in karst groundwater ranged from 1.9% to 85.9%, 1.3% to 44.2% and 5.7% to 90.1%, respectively, with significant differences among karst groundwater samples ( Figure 6). The percentages of sulfate in karst groundwater K1 and K2 from gypsum dissolution, atmospheric precipitation and pyrite oxidation were25%, 44% and 31%, respectively, indicating that karst group of the recharge area was significantly influenced by atmospheric precipitation. The karst groundwater in K3 and K6 in the runoff area was mainly influenced by the dissolution of the Ordovician gypsum interlayer (86% and 74%, respectively), while SO 4 2− of K4 and K5 was mainly influenced by the oxidation of pyrite (53% and 87%, respectively), and in addition, karst groundwater K4 was also affected by the infiltration of atmospheric precipitation (24%). The concentration of SO 4 2− in karst groundwater of the discharge area ranged from 660 to 2000 mg/L. It can be seen that sulfate in K9 and K10 samples mainly came from gypsum dissolution, accounting for 77%, 61% and 69%, respectively. The concentrations of sulfate in K7 and K8 are as high as 2000 and 1000 mg/L, respectively, and the source analysis results indicate that they may be mainly from pyrite oxidation, accounting for up to 90% and 82%, respectively. This may be due to the rebound of groundwater to the mining area after the abandonment of the coal mines near K7 and K8 to form acid mine water [29], which later caused cascading contamination of karst groundwater through channels such as rock fissures.

Temporal Variation of Sulfate Pollution in the Jinci Spring Area
The concentration of SO 4 2− in karst groundwater samples in the Jinci Spring area ranged from 53.8 to 919 mg/L in the year of 1989, with δ 34 S SO4 values ranging from −0.33 to +37.00‰ [45]. The δ 34 S SO4 values of karst groundwater were positive (+8.2~+37.0‰) except for samples collected from Getashang village. In 2016, Tang et al., carried out sulfur isotope analysis of karst water in the drainage area of the Bianshan fracture zone in the Jinci Spring domain and found that the SO 4 2− concentration range of karst water was 35.00 to 1221.51 mg/L, with a δ 34 S SO4 range of +8.21‰ to +25.84‰ [46]. Gypsum minerals usually have a high δ 34 S SO4 composition [40]. In 1989 and 2016, the sulfate of karst groundwater in the Jinci Spring area was mainly distributed in the upper right area (Figure 7). Therefore, it is speculated that sulfate may mainly derive from the dissolution of gypsum minerals. Results of the measurements in 2022 showed that the range of SO 4 2− concentration in the karst groundwater of the Jinshi spring domain was 28.26 to 200.000 mg/L, with the range of δ 34 S SO4 of −6.72‰ to +24.42‰. Compared with 1989 and 2016, the δ 34 S SO4 values of some karst groundwater were significantly decreased. The values of δ 34 S SO4 in pyrite oxide usually range from −15‰ to 4‰ [44]. The δ 34 S SO4 values of K5, K7 and K8 were −6.72‰, −5.36‰ and −1.06‰, respectively, which was likely due to the pyrite oxidation dissolution. The coal production activities have led to the gradual oxidation and dissolution of pyrite in coal strata and gangue and infiltration to groundwater, resulting in the expansion of karst water pollution in the Xishan mining area in terms of time change.

Conclusions
In this study, Xishan mining area, a typical coal-related industrial cluster in North China, was selected as the research area. Through the analysis of hydrochemical char

Conclusions
In this study, Xishan mining area, a typical coal-related industrial cluster in Northern China, was selected as the research area. Through the analysis of hydrochemical characteristics and sulfur and oxygen isotopes of surface water and groundwater in the region, the hydrochemical characteristics and pollution causes were revealed. It was found that due to the influence of the coal industry, TDS in 58.82% of groundwater exceeded the standard in Xishan mining area, sulfate in 64.7% of groundwater exceeded the standard, and the quality of some karst groundwaters exceeded the Class V limit of groundwater, up to 2000 mg/L, showing a deteriorating trend of the groundwater quality. The proportion of SO 4 2− artificially input into karst groundwaters increased in the runoff area and discharge area. The hydrochemical type of karst groundwater gradually changed from HCO 3 -Ca·Mg type to SO 4 -Ca·Mg type from the recharge area to discharge area.
The range of δ 34 S SO4 and δ 18 O SO4 values of water samples in the study area were −10.01 to +24.42‰ and −4.90 to +12.40‰, respectively. The sulfur and oxygen isotope values of gangue leachate, mine water and part of karst groundwaters were close to the dissolved end members of sulfide minerals, indicating that the sulfates mainly derive from sulfide minerals (FeS 2 ) in coal and gangue, particularly the oxidation of pyrite. The sources of sulfate in surface water and groundwater were analyzed by using the IsoSource model. The results showed that sulfate in surface water mainly came from pyrite oxidation (64% on average) and gypsum dissolution (31%), and pore groundwater mainly came from pyrite oxidation (81%). The karst groundwater in the recharge area was greatly influenced by atmospheric precipitation recharge, and the proportion of sulfate in some karst groundwater was significantly increased (up to 90%), affected by pyrite oxidation in the runoff area and drainage area. Comparing the distributions of sulfur and oxygen isotopes in karst groundwaters in the study area over the years, it was found that δ 34 S SO4 in some areas decreased significantly in 2022, towards the dissolved end members of sulfide minerals, and the pollution range of karst groundwater in Xishan mining area has expanded. Therefore, it is necessary to control groundwater pollution in Xishan mining area.