Introduction

As the largest developing country in the world, China’s foreign trade has been accompanied by rapid economic growth in the past 40 years. Behind the ever-increasing economic aggregate, China suffers from environmental pollution to varying degrees. In 2013, the outbreak of severe smog pollution caused China’s environmental problems to attract domestic and foreign attention, but in recent years, the degree of environmental pollution has been greatly improved. According to the Statistical Bulletin of China’s Ecological Environment in 2020, the air quality of 202 cities above 337 prefecture-level cities in China reached the standard, accounting for 59.9%, while the proportion was 24.9% in 2016, which decreased by 35 percentage points in 4 years. In the “14th Five-Year Plan and Outline of Long-term Goals for 2035,” China clearly emphasizes “to speed up the development of green transformation mode and continuously improve environmental quality” to realize the green transformation and upgrading of China’s economy. Therefore, it is of great theoretical and practical significance to study China’s green transformation and its main transformation modes for China’s environmental pollution control and high-quality economic development. In theory, many scholars explain environmental pollution from urbanization (Khan et al. 2021; Koyuncu et al. 2021), economic growth (Xie and Liu 2019; Asiedu et al. 2021), FDI (Sabir et al. 2020), financial development (Chien et al. 2021; Ye et al. 2021), and energy consumption (Zafar et al. 2020; Jun et al. 2021). Under the support of the “Trade Power” strategy, China’s export trade continues to expand. Compared with the above factors, the impact of export trade on environmental pollution should be paid attention to. According to statistics, China’s total export trade rose 1070 times in 2020 compared with 1978. Despite the severe and complex international situation in the past 2 years, and the serious impact of the 2019-new coronavirus (2019-nCoV), China’s export of goods still shows a positive growth trend. As the share of general export trade continues to expand, China has gradually formed an export trade model integrating processing trade and general trade into the global value chain (Yi 2003). Therefore, does the transformation in China’s export trade mode (ETM) worsen or improve environmental pollution? How to effectively achieve the “win-win” goal of export trade development and environmental protection?

Since 1990, the trade patterns of various countries have changed with the acceleration of economic globalization, and the expansion of trade scale has further promoted technological innovation and economic growth (Figueiredo and de Matos Ferreira 2020). Economic growth is often accompanied by environmental pollution. In the context of the rapid advancement of trade globalization and the severe deterioration of the environment, trade and the environment have always been the research hotspots of scholars. There are many studies discussing the impact of trade on environmental pollution (Essandoh et al. 2020), which can be summarized into the following three aspects: first, trade has deteriorated the environment (Al-mulali 2012; Yu et al. 2019; He et al. 2020). Most studies use CO2 emissions to characterize environmental quality, and believe that trade liberalization has a negative effect on environmental quality. Second, trade has improved the environment (Shahbaz et al. 2012; Dean 2002; Kim et al. 2019). For the research in China, Xu et al. (2020) used panel data from 279 prefecture-level cities and found that trade liberalization significantly reduced PM2.5. Third, the relationship between trade and environmental pollution is unclear (Al-Mulali et al. 2015; Xie and Wu 2021). Shahbaz et al. (2017) researched that the combined effects of trade openness can help improve environmental quality, while the comparative advantage effect will worsen environmental quality.

The existing literature on the environmental effects of trade mostly focuses on trade opening, trade liberalization, etc., without considering the important issue of ETM transformation. Processing trade and general trade, which are based on the international division of production, have different impacts on environmental pollution. Moreover, under the background of international division of labor, how does the transformation of ETM promoted by general export trade affect environmental pollution? Under the above background, exploring the impact of the change of ETM on environmental pollution and its transmission mechanism has important academic value and practical significance for the change of ETM and environmental pollution control in China and even other developing countries.

In view of this, this study took 194 cities in China from 2000 to 2016 as the research object, uses the PM2.5 concentration value from satellite remote sensing data, and the Chinese customs database to calculate the general trade volume and processing trade of each city, to systematically investigate the impact of ETM transformation on environmental pollution and its internal mechanism. The possible marginal contributions of this paper are as follows: Firstly, based on the novel perspective of ETM transformation, the paper empirically examines the relationship between the transformation of ETM and environmental pollution, enriching the related research on trade and environment; Secondly, based on city data, this paper can more accurately identify the non-linear relationship between the transformation of ETM and environmental pollution; Thirdly, this paper applies the intermediary effect model to the nonlinear model to investigate the intermediary effect of ETM transformation, which enriches the application of intermediary effect model to extend to nonlinear model.

The structure of this paper is as follows: the second part is literature review and theoretical hypotheses; the third part is research design; the fourth part is empirical results and analysis; the fifth part is further analysis; the last part is the main conclusions and policy suggestion.

Theoretical analysis and research hypothesis

At present, the academic research on trade and environmental pollution is mainly based on the following three theories: First is the “pollution shelter” hypothesis (PHH). In order to promote their economic development and reduce environmental pollution, developed countries usually transfer low-end manufacturing industries with “high pollution and high energy consumption” to developing countries with relatively weak environmental regulations; in addition, the increase in external demand will expand the export trade volume of developing countries, resulting in developing countries eventually using their own resource consumption and environmental pollution in exchange for economic development. Second is the “Environmental Kuznets Curve” hypothesis (EKC). The theory holds that there is an “inverted U-shaped” curve relationship between the degree of environmental pollution and the level of per capita income. On the left side of the turning point, although economic development increases income, the initial economic development is at the expense of the environment; when the level of per capita income exceeds the turning point, high-level income improves the quality of life of the general public. Residents’ high requirements for environmental quality will prompt them to pay more to improve environmental quality. Third is “the theory of environmental trade effect.” The theory mainly includes three aspects: scale effect, structure effect, and technology effect (Copeland and Taylor 1994). The scale effect is that trade liberalization promotes economic growth by expanding the scale of production, but the low-end and backward mode of production aggravates environmental pollution, with the development of international trade. In addition, scale effect will indirectly enhance public awareness of environmental protection through the increase of total economic output, and then improve environmental quality. The structural effect is that the detailed international division of labor strengthens the cooperation among the participating countries, and in this context, the trade structure of various countries will change due to the effect of trade comparative advantage. Therefore, the impact of trade structure effect on the environment is as follows: if a country has a comparative advantage of clean products, trade will improve the environment; if it has a comparative advantage in pollution-intensive sectors, trade will worsen the environment. The effect of technology is that the expanded division of labor and economies of scale caused by trade liberalization have improved the efficiency of the use of factor resources; international trade has promoted the mutual infiltration and global flow of advanced technologies, improving global environmental pollution; and trade has promoted economic growth. The income level of various countries has increased, and the demand for green products has increased, which has indirectly improved the environmental quality.

In the process of participating in the global division of labor, developing countries initially participated in the global division of labor system through the processing trade of processing trade and compensation trade. With the gradual establishment of the production capacity and industrial system of the developing countries, the developed countries will transfer the links of environmental regulation in their production to the developing countries, and the developing countries will become the “pollution havens” of the developed countries. At this time, the deep processing industry in developing countries can develop, but these enterprises have the characteristics of high energy consumption, serious pollution, and low level of production technology. As the level of deep processing in developing countries continues to improve, they begin to engage in general trade aimed at the export of final consumer goods. In the global division of labor system, developing countries begin to rise from the low end of the global value chain to both ends, but the high-end link of the global value chain is still restricted by developed countries. At this time, the scale effect and structural effect will lead to increasingly serious environmental pollution in developing countries. With the development of deep processing trade and general trade in developing countries, the developing countries have formed their own industrial system, especially the introduction and transformation of advanced technology and equipment from developed countries, and enhance the status of the global value chain through technological innovation. The “technological innovation effect” began to play a leading role, and the negative impact of trade on the environment gradually changed into a positive effect.

To sum up, in the initial stage of the development of export trade, the proportion of general trade is small. With the increase of the proportion of processing trade, the ETM based on processing trade will aggravate environmental pollution. With the further change of ETM, especially the state attaches importance to environmental protection and restricts enterprises with high pollution and high energy consumption, the transformation of ETM has improved environmental pollution due to the decline in the proportion of processing trade and the increase in the proportion of general trade. At the same time, rapid economic development has improved the quality of life in developing countries. The demand preference for environmental quality has also increased, the public awareness of environmental protection has been enhanced, and the environment has been better managed. With the strengthening of environmental regulation in developing countries, low-end products will gradually lose their market in developing countries, and developing countries will achieve “green” transformation and upgrading by improving the level of technological innovation. The reverse technology spillover effects of developed countries and strict international environmental policies will promote the research and development of advanced new environmental governance technologies and improve environmental standards in developing countries. At this time, the positive effect of “technological innovation effect” on environmental pollution will be greater than the negative effect of “scale effect,” and the environmental quality will be improved. Accordingly, this paper proposes the following hypothesis 1:

  • H1: The transformation of ETM has a non-linear “inverted U-shaped” effect on environmental pollution.

The impact mechanism of ETM transformation on environmental pollution may be analyzed from the following five aspects: Firstly, trade development not only expands the scale of trade, promotes domestic capital accumulation, but also accelerates the upgrading of industrial structure. Also, through increasing domestic consumer demand to force enterprises to carry out technological innovation, as well as learning from foreign advanced economic systems and other measures to promote the upgrading of industrial structures, industrial structure through green transformation and upgrading will help to improve environmental quality (Xu and Lin 2015). Secondly, the development of trade with high pollution and high energy consumption will worsen the environment, but export trade will also promote the improvement of energy efficiency through “export middle schools” and “economies of scale” in the adjustment of energy structure, which will help to improve environmental quality (Melitz 2003; Lin and Liu 2015). Thirdly, industrial co-agglomeration is the coordinated development level of manufacturing and producer services. As an important support of economic growth, the coordinated development of the manufacturing and producer services will promote the upgrading and rationalization of the industrial structure. The upgrading and rationalization of industrial structures will reduce the proportion of polluting industries, thus promoting the improvement of environmental quality. Fourthly, with the development of general trade, the country’s profits from trade will improve environmental technology by increasing investment in environmental protection, so as to improve environmental quality. Fifthly, the efficiency of resource allocation is the main embodiment of the efficiency of economic development. In the process from processing trade to general trade, the efficiency of labor and capital allocation will be further improved (Grossman and Rossi-Hansberg 2008). The improvement of the efficiency of resource allocation will make resources flow to greener and healthier industries, thus improving environmental quality (Shi et al. 2018). Accordingly, this paper proposes the following hypothesis 2:

  • H2: The upgrading of industrial structure, energy structure, industrial coordination and agglomeration, environmental protection investment, and resource allocation are the main ways for the transformation of export trade mode to affect environmental pollution.

Research design

Model design

According to H1, the transformation of ETM may have a non-linear relationship with environmental pollution. In this paper, the square term of ETM transformation is added to the empirical model, and the following econometric model can be constructed to examine the environmental governance effect of ETM transformation:

$$PM{2.5}_{it}=\alpha +{\beta}_1{Ts}_{it}+{\beta}_2 Ts\_{sq}_{it}+\gamma X+{u}_i+{v}_i+{\zeta}_{it}$$
(1)

Among them, i represents the city; t represents the year; PM2.5 is the environmental pollution level; Ts and Ts_sq represent primary term and quadratic term of transformation of ETM respectively; X is the vector of factors that affect the environmental pollution; γ represents the coefficient vector of the control variables; μi and vt represent the city and year effects to control factors that change over time and region respectively; and ζit is the random disturbance item. If β2 is significantly negative, it indicates that there is a non-linear “inverted U-shaped” relationship between the transformation of ETM and environmental pollution; on the contrary, it shows that there is a “U” curve relationship between them.

Variable definition

Explained variable

Environmental pollution (PM2.5)

This paper selects the PM2.5 concentration value. Considering that the period for China to include PM2.5 concentration in the monitoring range is 2012, the research time span of this paper needs to be 2000–2016, so there are a large number of missing values in the sample period. In view of this, this article refers to the research of Li et al. (2021a, b), through the use of ArcGIS software technology to match the raster data of the annual average concentration of PM2.5 released by Columbia University with the administrative map of China (prefecture-level city), and parse it out the average concentration of PM2.5 in prefecture-level cities in China. The data source is satellite remote sensing monitoring data, so it can more accurately and reliably reflect the true situation of China’s environmental pollution. In the robustness test, we also used the natural logarithm of industrial sulfur dioxide (lnso2) and industrial smoke-dust emissions (lnind-smoke) to test.

Core explanatory variables

The core explanatory variables of this paper are primary term (Ts) and quadratic term (Ts_sq) of ETM transformation, which measured by the ratio of general trade to processing trade. This data identifies the annual export value of each trade method in each city through the region and trade mode in the Chinese customs database, and then measures the change in export trade mode by the ratio of the general trade export value to the processing trade export value.

Control variables

In addition to the core explanatory variables of ETM transformation, this paper draws on relevant literature and controls the following variables:

  1. 1.

    Industrial structure (lnsecond): Measured by the proportion of the quadratic industry in GDP. Due to the large differences in the quadratic industry of each city, this paper also takes the logarithm. Since the pollutant gas produced by a large number of fossil fuels and the emission of industrial smoke-dust in the process of industrialization will aggravate environmental pollution. The expected sign is positive.

  2. 2.

    Per capita GDP (lnpgdp): Measured using the natural logarithm of the actual per capita GDP. The higher the level of economic development, the higher the quality of life of the people and the increased awareness of environmental protection may improve environmental pollution. However, the increase in the level of urban economic development will also cause environmental pollution. The expected sign is uncertain.

  3. 3.

    Foreign direct investment (fdi): Measured by the actual foreign direct investment as a percentage of GDP. On the one hand, in the process of foreign investment, the country’s high-polluting and high-energy-consuming industries will be transferred to areas with lower environmental regulations in China, which will intensify environmental pollution in this area and become a “pollution refuge” in other countries; on the other hand, foreign direct investment has advanced environmental governance technologies and management levels will not only directly reduce local environmental pollution, but will also enhance the production technology innovation level of Chinese enterprises through technology spillover effects and reduce environmental pollution (Shao et al. 2016). The expected sign is uncertain.

  4. 4.

    Government expenditure (gov): Measured by the ratio of local government fiscal expenditure to GDP. Local fiscal expenditures are mostly used for economic development and relatively low investment in environmental protection. The expected sign is positive.

  5. 5.

    Urbanization level (urb): Measured by the ratio of the urban non-agricultural population to the total urban population at the end of the year. On the one hand, the urbanization process will destroy the ecosystem along with the expansion of the city scale, and at the same time, will produce a large amount of environmental pollution and energy consumption; on the other hand, the increase in the level of urbanization will increase the demand of urban residents for high environmental quality, which will increase its environmental awareness and improve environmental pollution (Shao et al. 2019). The expected sign is uncertain.

  6. 6.

    Capital to labor ratio (lnkl): Measured by the ratio of capital stock to labor force (Shi et al. 2018). Reasonable resource allocation will promote the flow of factors to low-pollution and low-energy-consuming industries. On the one hand, industries with high pollution and high energy consumption can be eliminated and environmental pollution can be improved; on the other hand, the improvement of resource allocation efficiency will bring capital, labor, etc. The more flexible use of the elements can avoid the waste of resources to a certain extent, thereby reducing environmental pollution. The expected sign is positive.

  7. 7.

    Energy structure (energy): Measured by the proportion of coal consumption in total energy consumption, the main source of environmental pollution is the polluting gas produced by coal combustion. The expected sign is positive.

  8. 8.

    Environmental regulation (lneg): Measured by the natural logarithm of the investment in industrial pollution control. Increasing investment in industrial pollution control will help improve environmental pollution, the expected sign is negative.

Data sources and descriptive statistics

The main sources of data used in this paper are China Customs Database, China Urban Statistics Yearbook, China Energy Statistics Yearbook, and China Environmental Statistics Yearbook. Because there are a large number of cities in the China Customs Database that can not identify the values of general trade and processing trade, this paper only retains 194 cities that can identify general trade and processing trade. At present, the available Chinese customs database mainly starts from 2000, and the latest data can be until 2016. Therefore, the research samples of this paper are 3298 samples from 2000 to 2016 of 194 cities. In order to deal with the heteroscedasticity in empirical research, some variables will be logarithmic, and Table 1 reports the descriptive statistics of related variables. In the sample period, the average annual concentration of PM2.5, the emission intensity of sulfur dioxide (lnso2), and the emission intensity of industrial smoke dust (lnind-smoke) were 38.2950, 10.6016, and 9.8257 respectively, while the maximum values corresponding to the above environmental pollution indicators were 91.1600, 16.8567, and 9.8257 respectively, indicating that most cities in China have serious smog pollution and poor environmental quality. The average value of the change in export trade mode (Ts) is 5.4144, indicating that during the sample period, the ETM of China’s prefecture-level cities gradually changed from processing trade mode to general trade mode, and the proportion of general trade exports, which can better represent the independent development ability, in total exports increased. It is worth noting that there is a large gap between the maximum and minimum values of environmental regulation (lneg) indicators, indicating that China’s prefecture-level cities have a large gap in the intensity of environmental regulations. The possible explanation is that compared with other countries, China has its own particularity in environmental policy, that is to say, the formulation of environmental policies in China’s major provinces is managed by the central government, but the provinces still have certain autonomy.

Table 1 Descriptive statistics of variables

Empirical results and analysis

Benchmark regression analysis

According to research 1 and formula (1), Table 2 is the result of benchmark regression. Columns (1) and (2) only take into account the impact of the primary term (Ts) of ETM transformation on environmental pollution. Columns (3) and (4) also add the impact of the primary (Ts) and quadratic (Ts_sq) items of the ETM transformation on environmental pollution. The four models all control time and city fixed effects.

Table 2 Benchmark regression results

In columns (1) and (2) are not significant, the coefficients of the primary term of ETM transformation, which indicates that there is no linear relationship between the transformation of ETM and environmental pollution regardless of whether Control variables are added. In columns (3) and (4), the results show that the estimated coefficients of the primary and quadratic terms of ETM transformation are significant positive and negative effects respectively at the 1% statistical level, indicating that the Control variables are added or not in general, there is a significant “inverted U-shaped” relationship between the transformation of ETM and environmental pollution. Furthermore, based on the results in column (4), the turning point value of the “inverted U-shaped” curve for calculating the transformation of ETM and environmental pollution is 9.1688, indicating that the transformation of ETM is at a low level (<9.1688) (that is, if there are only processing trade and general trade, the export volume of general trade accounts for less than 90% and the export volume of processing trade accounts for more than 10%); at this time, the transformation of ETM will aggravate environmental pollution; on the contrary, when the proportion of general trade in exports value exceeds 90%, the transformation of ETM will significantly improve the environment. H1 was tested.

From the results in column (4), the coefficients of capital-labor ratio (lnkl), foreign direct investment (fdi), and energy structure (energy) are all significantly positive at the 1% statistical level, indicating that increasing the capital-labor ratio, increasing foreign direct investment, and increasing the proportion of coal consumption will increase environmental pollution. The estimated coefficient of environmental regulation (lneg) is significantly negative at the 1% statistical level, indicating that an increase in the intensity of environmental regulation will significantly improve environmental pollution. The possible explanation is that environmental regulation greatly promotes enterprise innovation by promoting enterprises to create new technologies and products (Ai et al. 2020; Shao et al. 2020). Including many small and medium-sized enterprises (Li et al. 2021a, b, c). The coefficients of industrial structure (lnsecond) and government expenditure (gov) are both positive, but not significant, indicating that the increase in the proportion of the quadratic industry in the three major industries may aggravate environmental pollution. Zhang et al. (2021) found that green credit can promote the upgrading of industrial structure by guiding capital flow, and then reduce environmental pollution; the impact of government expenditure on environmental pollution is confirmed to a certain extent “the Hypothesis of Gradually Low Competition.” The estimated coefficients of per capita GDP (lnpgdp) and urbanization level (urb) are negative, but still not significant. This may be explained by the possible non-linear relationship between per capita GDP and urbanization level and environmental pollution (Shao et al. 2019). In addition, Shao et al. (2021) use the microdata of rural communities from the Chinese Family Database and the China Community Governance Survey, and empirical research shows that labor transfer has a significant impact on environmental pollution.

Robustness test

In this part, three strategies will be adopted to test the robustness of the benchmark regression model, including substitution variables, one-period lag processing of control variables, and change estimation methods.

Substitution the explained variable

First, this paper will select sulfur dioxide emissions (lnso2) and industrial smoke-dust emissions (lnind-smoke) as the substitute variables of environmental pollution (PM2.5) for robustness testing, and the results are reported in Table 3.

Table 3 Substitution explained variable

The estimation results in the first two columns show that when sulfur dioxide emissions (lnso2) are used to characterize environmental pollution, the primary coefficient of ETM transformation is significantly positive and the quadratic coefficient is significantly negative, indicating that there is a significant “inverted U-shaped” relationship between the transformation of ETM and environmental pollution. Similarly, when the explained variable is industrial smoke-dust emissions (lnind-smoke), it can be seen from the results of the latter two columns that, regardless of whether the Control variables is added or not, the primary and quadraticfirst coefficients of ETM transformation are both significantly positive and negative respectively, once again verify that there is an “inverted U-shaped” relationship between the transformation of ETM and environmental pollution. In summary, the robustness test of this part is basically consistent with the previous benchmark analysis, indicating that the benchmark regression results have strong robustness. Regarding sulfur dioxide emissions and industrial smoke-dust emissions, the turning points for the transformation of ETM are around 15 and 14, respectively, indicating that for these two pollutants, the proportion of general trade exports needs to reach 94% or more, that is to say, processing trade requires below 6%, the effect of environmental governance can only be achieved by the transformation of ETM.

One-period lag test

Considering that environmental pollution is a continuous and dynamic process, the behavior in the early stage may have an impact on the current period or the lag period. The transformation of ETM and Control variables may have a lag effect. The results are shown in Table 4. The lag effect test results show that no matter the explained variables are smog pollution (PM2.5), sulfur dioxide emission (lnso2), or industrial smoke-dust emission (lnind-smoke), the primary term of ETM transformation is positive at the 1% statistical level, and the quadratic coefficient is negative at the 5% statistical level at least. The results show that the significant “inverted U-shaped” relationship between the transformation of ETM and environmental pollution is still valid, and the benchmark regression results have strong robustness. H1 still holds. At this point, the three turning points all increased to a certain extent, indicating that the impact of ETM transformation in the last period on the current environmental pollution will make the time lag of the turning point.

Table 4 One-period lag test

Replacement estimation method

This part adopts SYS-GMM estimation (Arellano and Bover 1995) to re-estimate the impact of ETM transformation on environmental pollution. It can be seen from Table 5 that the value of AR(2) is greater than 0.1, indicating that the residual terms of each equation have second-order sequence irrelevance; at the same time, the Sargan statistics are not significant, indicating that the instrumental variables used in each model are all valid. The estimation results in column (1) show that the L.PM2.5 coefficient is significantly 0.8693 at the 1% statistical level, indicating that environmental pollution has a strong path dependence. The primary and quadratic coefficients of ETM transformation are significantly 0.1409 and −0.0091 at the 1% statistical level respectively, indicating that there is an “inverted U-shaped” relationship between the transformation of ETM and environmental pollution. Similarly, the results in columns (2) and (3) also verify that there is an “inverted U-shaped” relationship between the transformation of ETM and the environmental pollution caused by different pollutants. In summary, the regression results are consistent with the previous benchmark regression results, indicating that the research results in this article are robust. At this time, the size of the three turning points has decreased to a certain extent, indicating that the lagging period of environmental pollution can explain a considerable part of the current environmental pollution, which leads to an earlier change in the current ETM.

Table 5 Replacement estimation method

Threshold effect test

Because the threshold effect model is one of the common methods to deal with nonlinear relations, we use the threshold effect model to test the robustness in this part. Based on the research of Hansen (1999), this paper constructs a panel threshold model between transformation of ETM and environmental pollution:

$${\displaystyle \begin{array}{l} PM{2.5}_{it}=\alpha +{\theta}_1{Ts}_{it}\times I\left({Ts}_{it}\le {\delta}_1\right)+{\theta}_2{Ts}_{it}\times I\left({\delta}_1<{Ts}_{it}\le {\delta}_2\right)+\\ {}\kern4.25em \cdots +{\theta}_n{Ts}_{it}\times I\left({Ts}_{it}>{\delta}_n\right)+\gamma {X}_{it}+{\mu}_i+{\nu}_t+{\zeta}_{it}\end{array}}$$
(2)

Among them, n represents the number of thresholds; Ts represents the threshold variable; δ is the threshold value with estimation; I(⋅) is the indicator function; and θ is the influence coefficient of the explanatory variable in different intervals. Other variables are the same as above.

Based on the relevant literature and the threshold effect model, the transformation of ETM is used as the threshold variable to examine the degree of impact of ETM transformation on environmental pollution. In order to test the existence of the model threshold, the F statistic value, P value, and threshold value of the threshold effect are calculated by Bootstrap method. The results are shown in part 1 of Table 6. The results show that when the explained variable is environmental pollution (PM2.5), the transformation of ETM has a double threshold effect on environmental pollution. Among them, the single threshold and the double threshold are significant at the statistical level of 1% and 10%, and the triple threshold not obvious.

Table 6 Threshold regression test and regression results

After determining the threshold value, estimate the threshold effect model. Part 2 of Table 6 reports the estimated results of the threshold effect model. The transformation of ETM has a significant threshold effect on environmental pollution (at least through the 5% statistical level). When the transformation of ETM is lower than the threshold value of 1.8333, the threshold coefficient is (−4.3649), indicating that the transformation of ETM has improved environmental pollution; when the transformation of ETM is between the threshold values (1.8333, 1.8478), the threshold coefficient is (−1.1265), The transformation of ETM significantly improves environmental pollution; when the transformation of ETM is higher than the threshold value of 1.8478 and the threshold coefficient is (−0.0761), the transformation of ETM still significantly improves environmental pollution, but the degree of this effect is gradually weakened. It shows that appropriate transformation of ETM will help improve environmental pollution, but excessive changes in ETM may “backfire” and will weaken the effect of transformation of ETM on environmental pollution.

Further discussion

Mechanism analysis

From the previous H2, it can be seen that the transformation of ETM may affect environmental pollution through five ways: industrial structure upgrading effect, energy structure effect, industrial co-agglomeration effect, environmental protection investment effect, and resource allocation effect. Therefore, this section adopts the mediation effect model for estimate. Taking into account the non-linear relationship between the transformation of ETM and environmental pollution, based on the research of Baron and Kenny (1986), a mediating effect model that includes both the first and second terms of the explanatory variables is set up. The specific model is as follows:

$$PM{2.5}_{it}={\alpha}_0+{cTs}_{it}+{c}_1 Ts\_{sq}_{it}+\gamma {X}_{it}+{\mu}_i+{v}_t+{\zeta}_{it}$$
(3)
$${M}_{it}={\alpha}_0+{aTs}_{it}+{a}_1 Ts\_{sq}_{it}+\gamma {X}_{it}+{\mu}_i+{v}_t+{\zeta}_{it}$$
(4)
$$PM{2.5}_{it}={\alpha}_0+{c}^{\prime }{Ts}_{it}+{c_1}^{\prime } Ts\_{sq}_{it}+{bM}_{it}+\gamma {X}_{it}+{\mu}_i+{v}_t+{\zeta}_{it}$$
(5)

Among them, in formula (4), M represents the intermediary variables. Including industrial structure update (update), energy consumption structure (energy), industrial co-agglomeration (coll), environmental protection investment (lneg), capital labor ratio (lnkl), Ts, Ts_sq, and PM2.5 are the primary term, quadratic term, and the explained variable PM2.5 concentration value of ETM transformation, respectively. If the coefficients c, a, c', c1, a1, c1', and b are significant, it means that the transformation of ETM has a mediating effect on environmental pollution. By comparing the turning point changes of Eqs. (3) and (5): when the turning point becomes smaller, it indicates that the intermediary variable can accelerate the negative effect stage of ETM transformation on environmental pollution; and when the turning point becomes larger, it also shows that the intermediary variable will postpone the depressive effect of ETM transformation on environmental pollution. In short, the changes in the turning point of the nonlinear curve all prove that the intermediary variable plays an intermediary role in the process of ETM transformation and affecting environmental pollution.

Industrial structure upgrading effect

Based on the research of Gan et al. (2011), the paper uses the ratio of the output value of the secondary industry to the output value of the tertiary industry to measure upgrading level of industrial structure (update). Compared with the tertiary industry, the greater the proportion of the secondary industry, the more serious the pollution, which may cause a lot of environmental pollution during the development of the industry. Therefore, if the ratio drops, it indicates that the industrial structure is approaching “industrial greening,” which will reduce environmental pollution. The industrialization process led by the secondary industry in China is an important factor in environmental pollution. At the same time, trade development can promote the optimization of industrial structure by promoting technological innovation and promoting consumer consumption. It can be seen that the transformation of ETM not only directly affects environmental pollution, but may also indirectly affect environmental pollution through optimizing the industrial structure. This part will focus on the analysis of the intermediary effect test of ETM transformation affecting environmental pollution. Table 7 reports the estimated results of the mediation effect based on the upgrading of industrial structure.

Table 7 Industrial structure upgrading effect

Regardless of the impact of the industrial structure, the results in column (1) show that the primary and quadratic coefficients of ETM transformation are positive and negative at the 1% statistical level respectively, indicating that there is an “inverted U-shaped” relationship between the transformation of ETM and environmental pollution, and the curve turning point value is 9.1519. Considering the influence of industrial structure, the results in column (3) show that the coefficient of industrial structure is significant at the 1% statistical level, and there is still an “inverted U-shaped” relationship between the transformation of ETM and environmental pollution, with a curve turning point value of 9.4515. It can be seen that with and without considering the influence of industrial structure, the turning points of the “inverted U-shaped” curve of ETM transformation and environmental pollution are 9.4515 and 9.1519, respectively, indicating that the effect of industrial structure upgrading will delay the transformation of ETM and have a negative impact on environmental pollution. To sum up, by optimizing the industrial structure and upgrading, and promoting the “green” transformation of the industry, it will help to promote the transformation of ETM and improve environmental pollution. H2 holds.

Energy structure effect

According to the previous variable setting, the energy structure (energy) is used as the intermediary variable. Columns (1)–(3) of Table 8 report the regression results of the impact of ETM transformation on environmental pollution through energy structures. The results of column (3) show that, as expected, the energy structure has a significant positive impact on environmental pollution, and the increase in the proportion of coal consumption will aggravate environmental pollution. The estimated coefficients of the primary and quadratic coefficients of ETM transformation are significantly positive and negative respectively, indicating that after the addition of intermediate variables, the relationship between the transformation of ETM and environmental pollution still shows an “inverted U-shaped” relationship of first promotion and then suppression. and compared with the model without intermediate variables in column (1), the turning point in column (3) is smaller. This means that the transformation of ETM is to reduce environmental pollution by optimizing the energy structure. Optimizing the energy structure will help to offset the energy consumed by pollution-intensive trade, reduce the difficulty of environmental pollution control, and improve the effectiveness of environmental control at the same time. H2 holds.

Table 8 Energy structure effect

Industrial co-agglomeration effect

According to the formula (3)–(5), this part will test the intermediary effect of industrial co-agglomeration, and the test results are shown in Table 9. First of all, we draw lessons from the research of Cui et al. (2019) to calculate the industrial co-agglomeration index (coll). The specific formula is as follows:

$${coll}_{it}=1-\left|{aggm}_{it}-{aggps}_{it}\right|/\left({aggm}_{it}+{aggps}_{it}\right)+\left({aggm}_{it}+{aggps}_{it}\right)$$
(6)
Table 9 Industrial synergy and agglomeration effect

Among them, coll is the industrial co-agglomeration index, aggm represents the manufacturing agglomeration index, and aggps is the producer services agglomeration index. As far as the method of measuring the agglomeration index of producer services is concerned, this paper draws lessons from the research of Xuan et al. (2019). Four categories are selected to represent producer services: “financial industry,” “scientific research, technical service and geological exploration industry,” “information transmission, computer service and software industry,” and “leasing and commercial service industry.” The specific calculation formula is as follows:

$${aggps}_{it}={\sum}_{\mathrm{s}}\left({E}_{is}/{E}_s\right)/\left({E}_i/E\right)$$
(7)

Among them, Eis represents the number of employees in the city i producer services s, Ei represents the number of employees in all industries in the city i, Es represents the number of employees in producer services s in China, and E represents the number of employees in all industries in China. If the index is larger, it means that the city has a higher degree of professional agglomeration of producer services. The calculation method of manufacturing agglomeration index is such as formula (7).

The results in column (2) of Table 9 show that there is a “U-shaped” relationship between the transformation of ETM and industrial co-agglomeration, but it is not significant. In column (3), the significant level of industrial co-agglomeration is significantly negative, that is, the economies of scale, competition, specialization, and technology spillover effects of industrial co-agglomeration can significantly improve environmental pollution (Cai et al. 2020). It shows that the transformation of ETM has an impact on environmental pollution through the intermediary variable of industrial co-agglomeration. In addition, from the results in column (3), we can see that the primary and quadratic coefficients of ETM transformation are still significant, indicating that the direct effect of ETM transformation on environmental pollution also exists. Comparing the turning point values of column (1) and column (3), it can be found that the turning point value decreases to a certain extent after adding industrial co-agglomeration, indicating that industrial co-agglomeration does have an intermediate effect between the transformation of ETM and environmental pollution. H2 holds.

Investment effect of environmental protection

The effective control of environmental pollution is inseparable from environmental protection investment. As one of the transformation ways of green development of export enterprises, the transformation of ETM can have a direct impact on environmental protection investment. Therefore, this part focuses on the environmental protection investment effect of ETM transformation. Based on the data of China Environmental Statistical Yearbook, the natural logarithm of investment in the treatment of industrial pollution sources is used to characterize the amount of investment in environmental protection. Table 10 reports the estimated intermediary effects based on environmental investment. The results of column (2) show that the quadratic term of ETM transformation is positive at the level of 10% significance, indicating that with the transformation of ETM, that is, in the process of changing from processing trade to general trade, export enterprises will gradually expand their investment in environmental protection. The results of column (3) listed as the empirical results of ETM transformation, environmental protection investment, and environmental pollution, and the results show that the coefficient of environmental protection investment and environmental pollution is significantly negative at 1% statistical level, indicating that environmental pollution can be significantly improved with the increase of environmental protection investment. In addition, there is still an “inverted U-shaped” relationship between the transformation of ETM and environmental pollution. To sum up, in the process of the impact of ETM transformation on environmental pollution, the investment effect of environmental protection has played a significant intermediary role. H2 holds.

Table 10 Investment effect of environmental protection

Resource allocation effect

Reasonable allocation of resources will help to reduce the production cost of the enterprises. Export enterprises with high pollution and high energy consumption are abandoned by the market because of their low efficiency of resource allocation, thus reducing environmental pollution. In order to explore the internal mechanism of “resource-allocation effect of the ETM transformation,” Table 11 reports the estimated results of using resource allocation as an intermediate variable. In column (2) is the estimated result of the impact of ETM transformation on the allocation of resources, and it can be seen that there is a significant “inverted U-shaped” relationship between the transformation of ETM and resource allocation, that is, with the transformation of ETM, it will have an impact on resource allocation that is promoted first and then suppressed. When considering the impact of ETM transformation and resource allocation on environmental pollution at the same time, the results in column (3) show that the estimated coefficient of resource allocation is positive at the significant level of 1%. And the transformation of ETM also has a non-linear impact on environmental pollution, which means that with the transformation of ETM, environmental pollution can be reduced through the effect of resource allocation. In addition, by comparing the turning points in columns (1) and (3), it is found that the turning point after adding resource allocation has moved to the left. Accelerating the improvement of the efficiency of resource allocation of export enterprises will help to change the mode of export trade and reduce environmental pollution. H2 holds.

Table 11 Resource allocation effect

Heterogeneity analysis

In order to discuss the difference in the impact of ETM transformation on environmental pollution, this part will analyze the heterogeneity of the following two aspects: Firstly, according to regional division, the sample is divided into eastern, central, and western regions; Secondly, according to administrative divisions, that is, provincial capital cities and non-provincial capital cities.

Table 12 reports the estimated results of environmental pollution caused by the transformation of ETM in the eastern, central, and western regions. According to the first three columns, for the eastern and central regions, the quadratic coefficient of ETM transformation is significantly negative at the statistical level of 5%. It shows that there is a significant “inverted U-shaped” relationship between the transformation of ETM and environmental pollution in the eastern and central regions, that is, environmental pollution increases at first and then decreases with the transformation of ETM. In addition, after calculating the curve, turning point values of the eastern and central regions are 5.6226 and 11.6492 respectively, compared with the turning point value of the whole sample curve 9.1519, it can be seen that in terms of the inhibitory effect stage of ETM transformation on environmental pollution, the eastern region will be ahead of the whole country, while the time point of the inhibitory effect stage in the central region lags behind that of the whole country. Different from the eastern and central regions, the primary and quadratic coefficients of ETM transformation in the western region are not significant, which means that there is no non-linear relationship between the transformation of ETM and environmental pollution in the western region. To sum up, there are significant differences in the impact of ETM transformation on environmental pollution in the eastern, central, and western regions. The last two columns of estimates in Table 12 show that the transformation of ETM has a significant “inverted U-shaped” curve relationship with environmental pollution in both provincial capital city and non-provincial capital city.

Table 12 Analysis of regional heterogeneity

Conclusion and policy implications

Based on the panel data of 194 cities in China from 2000 to 2016, this paper investigates the influence of ETM transformation on environmental pollution and its internal mechanism. The main conclusions are as follows: There is a significant “inverted U-shaped” relationship between the transformation of ETM and environmental pollution, and after the transformation of ETM exceeds the turning point, it will show a significant inhibitory effect on environmental pollution; The threshold effect model test results show that there are double threshold effects in the transformation of ETM; After a series of robustness tests, such as substitution of variables, lag effect, and SYS-GMM estimation, the research conclusion is still valid; The results of heterogeneity test show that the transformation of ETM and environmental pollution in the eastern and central regions show a significant “inverted U-shaped” relationship; The impact of ETM transformation on environmental pollution has strong heterogeneity in different time periods. Mechanism analysis shows that industrial structure, energy structure, industrial synergy, environmental protection investment, and resource allocation are the main ways for the transformation of export trade mode to affect environmental pollution.

According to the above analysis and research conclusions, although the development of export trade can promote high-quality economic development, it also causes environmental pollution to a certain extent. Export trade and the environment should become issues that cannot be ignored in the development of various countries, and we should neither blindly pursue trade development but ignore it. The environment cannot abandon export trade to protect the environment. Countries should implement effective trade policies and environmental policies, truly realize the effective connection between the two, promote the coordinated development of export trade and the environment (Tian et al. 2020), and strive to break the real dilemma of “not having both the fish and the bear’s paw” between trade and the environment. Based on the research conclusions, we come to the following four suggestions:

Firstly, from the perspective of the government. On the one hand, formulate practical trade policies, the transformation of ETM, and guide domestic enterprises to actively undertake clean production links with high profits and low energy consumption when participating in global value division through policies, so as to avoid pursuing economic interests to undertake production links with serious pollution discharge. Abandon the trade concept of “no comers,” guide processing trade enterprises to achieve green transformation and upgrading, take the road of intensive and green production, make full use of domestic and international market resources, pay attention to scientific research, and strengthen technological innovation, to issue more subsidies to advanced production technologies and environmental treatment technologies, thereby reducing production costs and technology research and development costs. Reasonable control of processing trade activities to avoid the negative effects of excessive processing trade on environmental pollution. In addition, the government should provide environmental protection subsidies to Chinese export enterprises to encourage green development. On the other hand, further establish and improve export trade laws and regulations; rely on laws, advanced technologies, and other factors to improve China’s export quality; regulate export trade and environmental coordination mechanisms; and promote the coordinated development of trade and the environment.

Secondly, based on the regional perspective. China has a vast territory, and there are obvious differences in the factor endowments of various regions. Governments at all levels should formulate trade policies in accordance with local conditions based on the actual conditions of each region (the same is true for the formulation of environmental policies). In the process of ETM transformation and improving environmental pollution, it is reasonable to make overall plans for the development of different regions, and the eastern and central regions should play a leading role in promoting trade development and effective environmental governance, and strengthen inter-regional cooperation and exchanges; Pay attention to technological innovation while trade development promotes economic growth; The western region needs to strengthen the intensity of environmental control when undertaking the industrial transfer in the eastern region, and the local government should reasonably coordinate enterprises to realize the benign development of trade.

Thirdly, based on the industrial perspective. Encourage the co-agglomeration of producer services and manufacturing industries. On the one hand, promote Chinese export trade enterprises to enhance their production technology innovation capabilities, transform green production methods, and improve the competitiveness of green products. On the other hand, accelerate the transformation and upgrading of China’s industrial structure and vigorously promote the development of the producer service industry, increase the proportion of the tertiary industry in the national economy, and promote a more rational and green industrial structure. Actively change the ETM, make it organically integrate with producer services, and realize their common development. Actively advocate the development of green finance, derive diversified financial products, and give consumers more choices of green products. In addition, increase green investment, make it an important part of the development strategy of Chinese export enterprises, promote the green process of enterprises, and improve the environmental quality.

Fourthly, from the perspective of enterprises, export enterprises should focus on the transformation of export trade mode while expanding the scale of trade. Through the technology spillover effect of upstream and downstream foreign enterprises, the level of their own production technology innovation is continuously improved, and the traditional extensive trade mode is gradually transformed into a green trade mode to reduce environmental pollution. On the other hand, export enterprises should encourage exchanges and cooperation among various departments, accelerate the transformation and upgrading of the industrial chain of enterprises, and reduce the environmental burden of enterprises’ export activities.

Of course, there are still some shortcomings and further expansion directions in this paper. The shortcomings are mainly reflected in endogenous problems, but it is very difficult to use instrumental variables that affect the transformation of trade mode without affecting environmental pollution. The further development direction mainly includes the theoretical model of environmental governance effect of trade mode transformation and the mechanism analysis of how trade mode transformation improves environmental quality.