Karst groundwater is one of three types of groundwater. In northern China, unconfined or shallow karst groundwater is usually abundant and of good quality. It is a major source of water for urban and rural residents, irrigation, and important industrial and mining enterprises (He et al., 2019; Liang & Zhao, 2018). Therefore, karst groundwater is an important factor for socio-economic development and improving the standard of living in northern China. Understanding the hydrochemical characteristics of karst groundwater helps facilitate the proper development and utilization of karst groundwater (Yang et al., 2016). The hydrochemical characteristics of karst groundwater are affected by many factors, such as its sedimentary environment, the chemical composition of precipitation water, ion exchange, water–rock interactions, and human activities (Li et al., 2019; Liu et al., 2018; Luo et al., 2018; Sheng et al., 2013; Wang et al., 2015; Yuan et al., 2016).

Because of its special sensitivity, karst groundwater is more vulnerable than any other type of groundwater. Many researchers have used classic hydrochemical methods and statistical theory to investigate karst groundwater hydrochemistry, its influencing factors, and how best to protect karst groundwater resources (Civita, 2008; Escolero et al., 2002; Hassen et al., 2016; Maramathas, 2006; Plagnes & Bakalowicz, 2002; Reddy & Kumar, 2010; Zang et al., 2015). In these studies, factor analysis techniques and graphical methods were often used to explain correlations among variables and to understand the hydrochemical processes of groundwater. For instance, Smith et al. (2020) used the trilinear Durov plot to investigate the effects of land use on groundwater quality in a karstic aquifer. Lü et al. (2020) evaluated the characteristics and influencing factors of hydrochemistry and dissolved organic matter using statistical analyses in the southwest of Hunan Province, China. Sheikhy Narany et al. (2019) integrated classic geochemical methods and multivariate statistical analysis to demonstrate that the hydrofacies correlate directly with the lithofacies (dolomite). In recent years, isotopic methods have increasingly been used to study the origins of groundwater. Deiana et al. (2018) applied δ18O-δ2 H and 87Sr/86Sr analyses in order to determine that the source of groundwater recharge in the Berceto landslide is local rainwater, and that external contributions from a local stream can be disregarded. Ventura-Houle et al. (2021) utilized δD and δ18O data to describe how groundwater interacts with geological formations within the El Abra Formation, the most crucial geological-water unit in their study area. The karst groundwater systems in northern China have played a pivotal role in domestic, industrial, and agricultural water use in the west of Zoucheng. As early as 2000, Bu (2000) evaluated the environmental quality of karst groundwater in the study area and reported that the massive exploitation of groundwater and the leakage of severely polluted river water were the main causes for the deterioration of the groundwater quality in the present study area. Since then, karst groundwater has been over-exploited for 20 years in the western Zoucheng, resulting in a series of geological and environmental problems such as water quality deterioration and a sharp drop in water level. However, information on the main factors determining the water hydrochemistry and the influence of water hydrochemistry on the karst water system remains lacking. The formation process of the groundwater chemistry in western Zoucheng is still unclear.

The present study collected surface water, pore groundwater, and karst groundwater samples in the study area during the wet and dry seasons, and comprehensively uses descriptive statistics, Piper diagrams, Gibbs diagrams, correlation analysis, principal component analysis (PCA), and other methods to analyze the chemical characteristics and formation mechanisms of groundwater. The main objectives of this study were to (1) investigate the difference in the hydrochemical characteristics of pore water and karst water and (2) further explore the formation process of groundwater chemistry in the karst area and (3) provide a reference for the sustainable development and utilization of karst groundwater.

Study area

The study area is located in the west of Zoucheng City, Shandong Province, China, with geographical coordinates of 35°06′05″ ~ 35°21′48″N and 116°40′14″ ~ 117°02′23″E and an area of about 550 km2. The southern part of the study area is hilly and mountainous with an elevation of 200–300 m. The southwestern section of the study area is adjacent to Nanyang Lake and Dushan Lake. The terrain there is low-lying and the elevation is about 35 m. The plain in front of the mountains slopes gradually from south to north, with an elevation of 40 ~ 70 m. The terrain in the area is generally high in the east and south, and low in the west and north.

The study area has a warm temperate and a semi-humid continental monsoon climate. Its main characteristics are four distinct seasons and concentrated precipitation. The multi-year average temperature in the study area (1956 ~ 2018) is 14.1 °C; the average annual precipitation is about 710 mm with a maximum of 1263.8 mm (1964) and a minimum of 268.5 mm (1988). The annual precipitation is concentrated in the summer months from June to September, which account for about 70% of the annual precipitation. The average annual evaporation is about 1900 mm.

The study area has a relatively independent karst groundwater system with obvious boundaries. To the east of the Jiehe-Kanzhuang-Beilonghe line, the magmatic rocks of the Taishan Group are exposed on the east side of the Yishan fault, forming a no-flow boundary. The southern boundary is the outcropping of Archean metamorphic rocks on the north side of the Fushan fault. The northern Ordovician limestone aquifer is buried under the coal-bearing strata north of Shuangcun. It has poor runoff conditions and can be regarded as a flow barrier. In the northwest, coal-bearing strata occur to the west of the Sunshidian fault that can also be regarded as a no-flow boundary. The southwest corner can be considered a boundary with low permeability (Fig. 1). The southern Cambrian Ordovician strata of the karst groundwater system are exposed to the surface while the northern Ordovician strata are hidden under the Quaternary, and the thickness of the Quaternary gradually increases from south to north, ranging from 0 to 110 m.

Fig. 1
figure 1

Map of study area showing sampling locations, geomorphology, hydrogeology, and stratigraphic profile

The groundwater in the study area is mainly pore groundwater and karst groundwater, of which karst groundwater is the main source for the water supply. The level of pore groundwater is 30 ~ 35 m, and the level of karst groundwater is 0 ~ 10 m. There is no direct connection between the karst and porous aquifer. The burial depth of the karst groundwater gradually increases from south to north, from 10 to 40 m. In the center of exploitation, the dynamic water level can reach more than 50 m below ground. After receiving atmospheric precipitation in the southern hilly area, the karst groundwater generally flows from south to north. Some areas are affected by pumping and groundwater flows towards the pumping center. The pumped water is consumed by the Beikang-Shuangcun-Tangcun area in the northeast of the study area (Fig. 1).

Material and methods

Sample collection and analysis

Thirty-six samples were collected in May (dry season) and another 36 samples were collected in September (wet season) of 2017, including 42 karst groundwater samples, 24 pore groundwater samples, and 6 surface water samples (Fig. 1). The samples were collected in the same wells in the dry and wet seasons. The wells were pumped for a few minutes before taking a water sample to drain the old water from the well pipe. The sampling bottle was rinsed more than 3 times using the pre-sampling product before sampling. The samples were then placed in a thermostat in the sampling vehicle for storage and transportation, and sent to the laboratory on the same day. All samples were analyzed by the Water and Soil Testing Center of the Shandong Provincial Lunan Geology and Exploration Institute. K+ and Na+ were determined by flame emission spectrometry, while Ca2+, Mg2+, and TH were determined by EDTA titration. Cl, SO42−, F, and NO3 were determined by ion chromatography, and HCO3 was determined by titration. TDS values were obtained based on the analysis of data in the lab. The national standard (Ministry of Ecological and Environment, 2009) was used to conduct quality assurance and quality control (QA/QC) of the ion determinations. During the analysis, three replicate water samples were used to assess the precision of the analysis. The analytical precision of the ion charge balance was within 5% for all water samples.

Data analysis method

The Piper diagram and Gibbs diagram were adopted to analyze the water chemistry type and formation effect (He & Li, 2020). GW-Chart Calibration Plots and Surfer software were used to produce the Piper diagram and Gibbs diagram, respectively. SPSS22 helped carry out the statistical analysis, correlation analysis, and principal component analysis. The above results were then combined with geological and hydrogeological data to explore the hydrochemical characteristics and formation mechanism of groundwater in the study area.

Results and discussion

Hydrochemical characteristics

Table 1 shows the chemical composition of karst groundwater, pore groundwater, and surface water in the study area. The order of cation concentration in the karst groundwater during the wet and dry seasons is Ca2+  > Mg2+  > Na+  > K+ and Ca2+  > Na+  > Mg2+  > K+, respectively, with little difference between Na+ and Mg2+. The order of anion concentration in the wet and dry seasons is HCO3  > SO42−  > Cl  > NO3  > F. The order of cation concentrations in the pore groundwater during the wet and dry seasons is Ca2+  > Na+  > Mg2+  > K+, which is consistent with the karst groundwater. The order of cation concentrations in the groundwater as a whole in the study area is Ca2+  > Na+  > Mg2+  > K+, and that of the anion concentrations is HCO3  > SO42−  > Cl  > NO3  > F.

Table 1 Statistics of hydrochemical parameters of groundwater and surface water (mg l.1)

During wet and dry seasons, the average concentrations of TDS, Na+, Mg2+, and Cl are the highest in surface water, followed by pore groundwater, and are lowest in karst groundwater. The average concentrations of Ca2+, HCO3, NO3, and TH are the highest in pore groundwater, followed by karst groundwater, and then surface water. Average concentration of K+ is the highest in surface water, followed by karst groundwater, and then pore groundwater. The average concentration of SO42− is the highest in surface water, followed by pore groundwater, and then karst groundwater in the wet season, and followed by karst groundwater and then pore groundwater during the dry season. The average concentration of F is the lowest in karst groundwater, followed by surface water and then pore groundwater during the wet season, and followed by pore groundwater and then surface water in the dry season. In general, karst groundwater quality is better than pore groundwater, and surface water has the worst quality.

The average concentrations of TDS, K+, Ca2+, Mg2+, SO42−, HCO3, and TH in the karst groundwater during the wet season are higher than those found during the dry season, while the other indicators are the opposite. The average concentration of all indicators in the pore groundwater during the wet season is higher than that in the dry season. The average concentrations of all indicators in the surface water are higher in the wet season than in the dry season except for Na+ and Cl, which show the opposite. On the whole, the quality of karst groundwater, pore groundwater, and surface water in the dry season is better than that in the wet season, which may reflect the fact that precipitation carries various ion components into the groundwater during the wet season.

The ion content of karst groundwater shows variations along the karst groundwater flow from the mountainous area in the south to the piedmont plain in the north and northwest (Fig. 2). The concentrations of Na+, Mg2+, Cl, SO42−, TDS, and TH in karst groundwater during the wet and dry seasons showed a continuously increasing trend from the mountains to the piedmont plain area, while Ca2+, HCO3, and NO3 showed a continuously decreased. Karst groundwater constantly dissolves the ionic components in the rock formations during its migration to the piedmont plains after receiving precipitation in the southern, mountainous area. Therefore, the concentrations of Na+, Cl, SO42−, TDS, and TH increase. The steady decrease of Ca2+ can be attributed to cation exchange. The reduction of HCO3 may be related to the greater depth of the aquifers far away from the mountainous area, because less corrosive CO2 can lead to less CaCO3 dissolution in limestone or dolomite. The continuous decrease of NO3 may be due to the increase in the depth of the karst aquifer. Karst aquifers are not easily affected by human activities on the surface.

Fig. 2
figure 2

Spatial distribution of ion content in karst groundwater in the study area (a–i represent the spatial distribution of Na+, Ca2+, Cl-, HCO3-, Mg2+, NO3-, SO42-, TDS, TH respectively)

In the vertical direction, the variation range of the ion concentration of the upper pore groundwater during the wet and dry seasons is significantly larger than that of the lower karst groundwater, while the ion concentration of the karst groundwater increases slightly with the depth of the well (Fig. 3). The large range of ion changes in the pore groundwater may be because it is more susceptible to human activities. The increase of ion content in karst groundwater with wellbore depth may be caused by slower runoff due to the greater depth of the well.

Fig. 3
figure 3

Vertical distribution of groundwater ion content in the study area

Figure 4 shows that there are 7 types of karst groundwater in the dry season, mainly HCO3-Ca and HCO3·SO4-Ca·Mg types. There are 5 types of water in the wet season, mainly HCO3·SO4-Ca·Mg and HCO3·SO4-Ca types. Compared with the dry season, the HCO3 and SO4 types of the karst groundwater during the wet season increased by 14% and 24%, respectively. The significant changes in karst groundwater chemical types between the wet and dry seasons indicate that the groundwater in the southern, mountainous area can quickly drain to the whole study area after receiving a precipitation recharge, so the karst groundwater circulation is faster. Compared with karst groundwater, the chemical types of pore groundwater are more complex, with 10 types in both dry and wet periods. Compared with the dry season, the HCO3 type of pore groundwater during the wet season increased, and the Cl type and Mg type decreased. The inconsistency of groundwater chemistry types between wet and dry seasons may reflect precipitation recharge. The water chemistry type of surface water is quite different from that of pore groundwater and karst groundwater. There are 2 and 3 types of surface water chemistry in dry season and wet season, respectively, with Cl type and Na type being dominant.

Fig. 4
figure 4

Piper diagram of groundwater in the study area

Comparing the hydrochemical types of karst groundwater, pore groundwater, and surface water in the study area, Na type water rarely appears in karst groundwater and only occurs during the dry season of hole J23. However, 33% of pore groundwater and 100% of surface water samples are Na type water. In addition, the hydrochemical types of karst groundwater also show a clear spatial distribution. The southern mountainous area and the intermountain areas directly replenish the karst groundwater, where the groundwater chemistry types are relatively simple, generally HCO3-Ca and HCO3·SO4-Ca types. The northern region of the study area is the drainage area for the karst groundwater. The groundwater chemistry types are complex and changeable there, showing HCO3·SO4-Ca·Mg, HCO3-Ca, SO4·Cl-Ca, HCO3·SO4-Ca, and other types. The complex groundwater chemistry types indicate that the water chemistry characteristics of pore groundwater and karst groundwater are affected by many factors.

Correlation analysis

The origin of solutes can be illustrated by the correlation coefficient within hydrochemical parameters and their correlations are divided into three types: strong (|r|> 0.7), moderate (0.5 <|r|< 0.5), and weak (|r|< 0.5) (Lü et al., 2020). Table 2 shows the Pearson correlation coefficients of hydrochemical parameters of the karst groundwater in the study area. TDS is strongly associated with Cl, Mg2+, Na+, and SO42− and is moderately associated with Ca2+ and HCO3 in karst groundwater demonstrating higher TDS due to the presence of these ions. TH shows a strong positive correlation with Mg2+, Cl, Ca2+, and HCO3 and a moderate positive correlation with SO42− and Na+. Both TDS and TH have weak associations with K+, F, and NO3, indicating that K+, F, and NO3 are different from other ions and are mainly affected by human activities in karst groundwater. Cl is strongly correlated with Na+ (correlation coefficient is 0.816), suggesting that weathering of halite is an important process for karst groundwater. HCO3 has moderate correlation to Ca2+ and Mg2+ in karst groundwater, indicating that HCO3, Ca2+, and Mg2+ may have the same source. They may originate from the dissolution of calcite and dolomite.

Table 2 Correlation matrices of hydrochemical parameters of karst groundwater

Table 3 shows the Pearson correlation coefficients of the hydrochemical parameters of the pore groundwater. Unlike karst groundwater, TDS is strongly associated with SO42−, Cl, Ca2+, Na+, and Mg2+ in pore groundwater and is weakly associated with the other parameters. TH shows a strong positive correlation with Ca2+, Cl, and SO42−, a moderate positive correlation with Mg2+, and a weak correlation with the other parameters in pore groundwater indicating that the dissolution of carbonate rocks is not on the main processes in the formation of pore water. The absence of strong correlations between HCO3 and the other parameters indicates that the HCO3 type is not predominant in pore groundwater. Cl shows a strong positive correlation with TH, TDS, and Ca2+; a moderate positive correlation with SO42−, Mg2+, and Na+; and a weak correlation with the other parameters.

Table 3 Correlation matrices of hydrochemical parameters of pore groundwater

Formation mechanisms controlling groundwater chemistry

Water–rock interaction

The Gibbs graphic method (Gibbs., 1970) can be used to analyze the role of precipitation, water–rock interaction, and evaporation in the chemical evolution of groundwater (Brindha et al., 2011; Wang et al., 2014; Liu et al., 2015; Bouzourra et al., 2015; Li et al., 20152016; Adimalla, 2019). The karst groundwater, pore groundwater, and surface water in the study area are all located within the dominant area of water–rock interaction in the Gibbs diagram (Fig. 5), indicating that they are all mainly affected by water–rock interaction. Figure 5a shows that Na/(Na + Ca) has the smallest value in karst groundwater, followed by pore groundwater, and surface water has the highest value. Some pore groundwater and surface water are close to the evaporation dominant area and may also be affected by evaporation to some extent.

Fig. 5
figure 5

Gibbs diagrams of groundwater samples in the study area

Karst groundwater mainly occurs in the Ordovician Majiagou Group strata. The lithology of this stratum is dominated by carbonate rocks such as limestone (CaCO3) and dolomite (CaMg (CO3)). If HCO3, Ca2+, and Mg2+ are from the dissolution of carbonate rocks, then HCO3 and Ca2+  + Mg2+ should exist in basically equal amounts, but Fig. 6b shows that the karst groundwater points are all located above the 1:1 line, indicating that the Ca2+ and Mg2+ have other sources. According to the drilling core data, there is a gypsum layer in the area. The dissolution of the gypsum will also increase the Ca2+ in karst groundwater. Figure 6c shows that the karst groundwater sample points are all distributed near the 1:1 line, further confirming that the HCO3, SO42−, Ca2+, and Mg2+ in the karst groundwater come from the dissolution of limestone, dolomite, and gypsum.

Fig. 6
figure 6

Hydrochemical relationships between the rates of the selected ions of water samples

Most of the karst groundwater samples from the wet season are located to the upper right side of those from the dry season (Fig. 6b, c), indicating that the content of HCO3, Ca2+, and Mg2+ in the wet season is higher than that during the dry season. This may be related to rainfall carrying CO2 into the karst groundwater during the wet season, which promotes the dissolution of carbonate rocks.

Cation exchange

The correlation between (Na+–Cl), [(Ca2+  + Mg2+)–(HCO3  + SO42−)], and the chlor-alkali index (CAI-1, CAI-2) can be used to explain the cation exchange effect (Li et al., 2019, 2016; Marghade et al., 2012; Rajesh et al., 2015; Salem et al., 2015). When cation exchange is the main factor affecting the formation of groundwater chemistry, the relationship between (Na+–Cl) and [(Ca2+  + Mg2+)–(HCO3  + SO42−)] is linear, and the slope is close to − 1. The correlation equations of karst groundwater in the wet and dry seasons are y =  − 0.523x + 0.9399 and y =  − 1.3976x + 1.3393, in which R2 is 0.2897 and 0.1877, respectively. The correlation equations of pore groundwater in the wet and dry seasons are y =  − 1.0329x + 1.1758 and y =  − 1.3511x + 1.0595, in which R2 is 0.921 and 0.946 (Fig. 7a), respectively. Comparing and analyzing the correlation equations and correlation coefficients of karst groundwater and pore groundwater, pore groundwater appears to be more affected by cation exchange than karst groundwater.

Fig. 7
figure 7

Bivariate diagrams for studying cation exchange (a (Na+–Cl) versus [(Ca2+  + Mg2+)–(HCO3  + SO4.2−)]; b CAI-1 versus CAI-2)

The expression of the chlor-alkali index is shown in formulas (1) and (2). When the chlor-alkali index is positive, the exchange of Na+ and Ca2+ occurs according to formula (3); that is, when Ca2+ enters the groundwater, Na+ is adsorbed by solid particles in the positive direction. When the chlor-alkali index is negative, Na+ and Ca2+ exchange in the opposite direction (4). The greater the absolute value of the chlor-alkali index, the stronger the cation exchange effect. Figure 7b shows that the chlor-alkali index of most of the karst groundwater samples is positive (only two samples are negative in the dry season). This shows that the cation exchange of the karst groundwater is mainly in the positive direction, and the maximum value does not exceed 0.8, indicating that the exchange is not strong. The negative and positive values of the chlor-alkali index of pore groundwater are about half and half, which means both positive and negative directions of cation exchange are present. The reason for this may be related to pore groundwater’s susceptibility to evaporation and human activities. The maximum value of CAI-1 in pore groundwater reached − 5.20, indicating that cation exchange in pore groundwater is stronger than karst groundwater.

$$\mathrm{CAI}-1=\frac{{\text{Cl}}^{-}-({\text{Na}}^{+}+{\text{K}}^{+})}{{\text{Cl}}^{-}}$$
(1)
$$\mathrm{CAI}-1=\frac{{\text{Cl}}^{-}-({\text{Na}}^{+}+{\text{K}}^{+})}{{\text{Cl}}^{-}+{\text{SO}}_{4}^{2-}+{\text{CO}}_{3}^{2-}+{\text{NO}}_{3}^{-}}$$
(2)
$${2\mathrm{Na}}^{+}+{\mathrm{CaX}}_{2}={\mathrm{Ca}}^{2+}+2\mathrm{NaX}$$
(3)
$${\mathrm{Ca}}^{2+}+2\mathrm{NaX}={2\mathrm{Na}}^{+}+{\mathrm{CaX}}_{2}$$
(4)

Human activities

Human activities that can affect the hydrochemical characteristics of groundwater in the study area include agricultural activities, karst groundwater extraction, and industrial production, each of which has direct or indirect effects on the formation of groundwater hydrochemistry. Fertilizers and pesticides used in agriculture enter the groundwater with precipitation infiltration, directly affecting the quality of groundwater. The average concentration of NO3 and Cl in pore groundwater in the study area is clearly greater than that in karst groundwater (Fig. 5). The NO3 concentration in karst groundwater gradually decreases from the mountainous areas to the piedmont plains (Fig. 4). Samples with higher NO3 concentrations are located in the groundwater replenishment area at the foot of the mountains which means that agricultural activities have an impact on karst groundwater chemistry. The urban and rural residents of Zoucheng City and the industrial enterprises of the Taiping industrial zone mainly use karst groundwater as a water supply source. The large-scale extraction of karst groundwater promotes water–rock interaction and cation exchange, which indirectly affects the hydrochemical characteristics of groundwater. Taiping Town in the northern part of the study area is a high-tech industrial zone in Zoucheng City with many industries, such as chemical, pharmaceutical, and paper production. These industries extract a large amount of karst groundwater and the discharge of sewage and wastewater from them will affect the quality of pore and karst groundwater.

Principal component analysis

Principal component analysis (PCA) is a multivariate statistical method that examines the correlation between multiple variables. It reveals the internal structure of multiple variables through a few principal components. It enables the user to derive a few key components from the original variables and then allows these components to preserve as much information as possible about the original variables independently of one another. This study contains 11 factors, the correlation between the factors is relatively strong, and the factors are continuous variables. Based on these traits, this study is best suited to principal component analysis. The selection of the factors is based on both the significance (eigenvalues > 1) of the factor and the cumulative percentage of data variance (cumulative percentage > 80%). Table 4 shows the PCA results of K+, Na+, Ca2+, Mg2+, Cl, SO42−, HCO3, F, NO3, TDS, and TH during the dry and wet seasons of karst groundwater. For karst groundwater in the dry season, two principal components were extracted based on a characteristic value greater than 1, which explained 82.27% of the original variables. Among them, the principal components RC1 and RC2 explained 58.36% and 23.91% of the variance, respectively. The principal component RC1 has high correlation with Na+, Mg2+, Cl, SO42−, HCO3, F, TDS, and TH, and the correlation coefficients are 0.897, 0.971, 0.918, 0.894, 0.609, 0.802, 0.945, and 0.915, respectively. This represents the dissolution of salt rock, carbonate rock, and gypsum, indicating the occurrence of water–rock interaction (Wu et al., 2014, 2020). The main component RC2 is closely related to K+, Ca2+, and NO3, and the correlation coefficients are 0.748, 0.824, and 0.939, respectively, representing human activities (such as pesticides, fertilizer use, and industrial wastewater discharge). For the karst groundwater in the wet season, three principal components were extracted based on a characteristic value greater than 1, which explained 84.85% of the variance. The principal components RC1 and RC2 explained 51.13% and 24.33% of the variance, respectively. The principal component RC1 has a high correlation with Na+, Ca2+, Mg2+, Cl, SO42−, TDS, and TH, and the correlation coefficients are 0.851, 0.649, 0.812, 0.903, 0.801, 0.977, and 0.965, respectively. The principal component RC2 has a high correlation with K+ and NO3, and the correlation coefficients are 0.896 and 0.939, respectively. It is clear that RC1 and RC2 in the wet season are caused by the same factors as RC1 and RC2 in the dry season, which are water–rock interaction and human activity influence, respectively. The principal component RC3, which explains 9.39% of the variance, has a high correlation with HCO3 and F. Some studies have speculated that CO2 in precipitation promotes the dissolution of carbonate rocks and precipitation carries industrial wastewater into the aquifer (Ren et al., 2021). Therefore, RC3 indicates the influence of atmospheric precipitation.

Table 4 The principal component analysis results of karst groundwater

Table 5 shows the PCA results of K+, Na+, Ca2+, Mg2+, Cl, SO42−, HCO3, F, NO3, TDS, and TH during the dry and wet seasons of pore groundwater. For pore groundwater during the dry season, three principal components were extracted based on a characteristic value greater than 1, which explained 83.72% of the original variables. Among them, the principal components RC1, RC2, and RC3 explained 45.79%, 27.07%, and 10.86% of the variance, respectively. The main component RC1 has a high correlation with Na+, Ca2+, Mg2+, Cl, SO42−, TDS, and TH, and the correlation coefficients are 0.647, 0.636, 0.828, 0.919, 0.835, 0.989, and 0.916, respectively. This represents the dissolution of chlorine rock, magnesium rock, and gypsum; in other words, water–rock interactions (Ren et al., 2021; Wu et al., 2014, 2020). The main component RC2 is closely related to Na+, Ca2+, Mg2+, HCO3, F, and NO3, and the correlation coefficients are 0.551, − 0.647, 0.500, 0.814, 0.682, and − 0.760, respectively. This indicates that the pore groundwater is affected by human activities such as industrial sewage, wastewater discharge, domestic sewage, agricultural activities, and mining. The principal component RC3 is closely related solely to K+, with a correlation coefficient of 0.892, which may be due to the dissolution of silicate. For pore groundwater in the wet season, three principal components were extracted based on a characteristic value greater than 1, which explained 84.54% of the variance. The principal components RC1, RC2, and RC3 explained 51.71%, 22.30%, and 10.53% of the variance, respectively. The principal component RC1 also has a high correlation with Na+, Ca2+, Mg2+, Cl, SO42−, TDS, and TH, and the correlation coefficients are 0.768, 0.826, 0.601, 0.927, 0.955, 0.964, and 0.890, respectively, indicating that the principal component RC1 is similar to that of the dry season. The main component RC2 has a high correlation with K+, Ca2+, F, and NO3, and the correlation coefficients are 0.724, 0.534, 0.640, and 0.721, respectively. As in the dry season, it is affected by human activities such as industrial wastewater discharge, domestic sewage, agricultural activities, and mining activities. The main component RC3 has a high correlation with Mg2+, HCO3, and F, and the correlation coefficients are 0.718, 0.882, and 0.632, respectively, which may be affected by precipitation during the wet season.

Table 5 The principal component analysis results of pore groundwater

Conclusions

  1. 1.

    On the whole, the concentrations of cations in both the karst groundwater and pore groundwater in the study area are in the order of Ca2+  > Na+  > Mg2+  > K+, while the concentrations of anions are in the order of HCO3  > SO42−  > Cl  > NO3  > F. The chemical makeup of karst groundwater is quite different from that of pore groundwater. There are 7 hydrochemical types of karst groundwater in the dry season, mainly HCO3-Ca and HCO3·SO4-Ca·Mg. There are 5 hydrochemical types in the wet season, of which the HCO3·SO4-Ca·Mg and HCO3·SO4-Ca types are predominant. HCO3 and SO4 type groundwater increases during the wet season compared with the dry season. The hydrochemical types of pore groundwater are complex and changeable. Compared with karst groundwater, the Na type water in pore groundwater is clearly more prevalent.

  2. 2.

    The indicators of Ca2+, Na+, Mg2+, HCO3, SO42−, Cl, and TH in groundwater are highly correlated with TDS, while K+, F, and NO3 have poor correlation with TDS, indicating that the former and the latter have different sources. The former is mainly affected by water–rock interactions, while the latter is mainly affected by human activities.

  3. 3.

    The formation of karst groundwater and pore groundwater is primarily affected by water–rock interactions and human activities, and secondly affected by cation exchange. The formation of 82.27% and 75.46% of karst groundwater in the dry and wet season respectively are affected by water–rock interactions and human activities. The formation of 72.86% and 74.01% of the pore groundwater are affected by water–rock interactions and human activities in dry and wet seasons, respectively. The main cation exchange direction in karst groundwater is positive, and the pore groundwater has both positive and negative directions. The cation exchange in the pore groundwater is stronger than that in the karst groundwater.