Introduction

Over the past 40 years of reform and opening-up, China’s economy has achieved a miracle of sustained and rapid growth. According to the latest issued data of World Bank, China’s gross domestic product (GDP) has grown from US $149.541 billion in 1978 to US $14.723 trillion in 2020, and accounts for 17.39% up from 1.8% of the world economy, rises from the 10th to the 2nd in the world. However, China’s economic growth miracle is based on consuming large amounts of energy and raw materials, and emitting pollutants that the environment can no longer bear (Zhao and Lin 2020; Huo et al. 2020; Yang et al. 2020; Li and Ma 2021). What’s worse, China’s energy consumption is dominated by fossil fuels such as coal and oil. Once these fossil fuels are burned, they will produce large amounts of sulfur dioxide and carbon dioxide. Sulfur dioxide will cause regional ecological damage, such as acid rain, and carbon dioxide is a direct cause of greenhouse gases, which resulted in the decline of environmental quality (Akram et al. 2020; Engo 2021; Hossain et al. 2021; Yang et al. 2021). According to the International Energy Agency (IEA), China consumed 2.252 billion tons of oil equivalent energy in 2009, surpassing the 2.17 billion tons of energy in the USA, which makes China the world’s largest energy consumer. Moreover, it is reported that China’s total energy consumption reached 4.87 billion tons in 2019, of which coal and oil accounted for 76.6%. Meanwhile, “2021 Global Environmental Performance Index (EPI) Report” shows that among the 178 countries participating in the ranking, China ranks 118 with a score of 43.00, and the ranking is still lagging behind. Therefore, the economic development mode urgently needs to be transformed into a connotative development mode that pursues structural adjustment and energy efficiency improvement (Shao et al. 2019). With China’s environmental carrying capacity reaching its limit, in order to realize the coordinated development of the economy and environment, how to effectively improve energy efficiency has become a key problem that needs to be solved urgently.

Faced with how to solve the problem of balancing economic development and environmental protection, Comrade Xi Jinping emphasized that “Firmly establish the idea that lucid waters and lush mountains are invaluable assets.” The Fifth Plenary Session of the 18th CPC Central Committee put forward the five development concepts of “innovation, coordination, green, openness, and sharing,” and adhered to the basic national policy of resource conservation and environmental protection. The 19th National Congress of CPC also proposed to establish and improve the economic system of green and low-carbon circular development, promote the revolution of energy production and consumption, and advocate the green development. Green technological innovation, as the combination of the two development concepts of green development and innovation-driven development, will play a more important role than ever before in the new normal of China’s economic development shifting from factor-driven, investment-driven to innovation-driven, and severe resource and environmental constraints (De Medeiros et al. 2014; Miao et al. 2017). Green technological innovation has gradually become the main theme of ecological civilization construction. The “Guidance on building a market-oriented green technological innovation system” issued on April 15, 2019 pointed out that green technological innovation is an important driving force for green development and important support for fighting the battle against pollution and promoting the construction of ecological civilization. Therefore, under the background of a new round of scientific and technological revolution and industrial transformation accelerating the reconstruction of the global competition pattern, if China wants to promote the efficient recycling of resources and energy conservation and emission reduction, and promote the improvement of energy efficiency, accelerating the promotion of green technological innovation is undoubtedly an important breakthrough direction (Diaz-Rainey and Ashton 2015; Miao et al. 2017).

As the largest manufacturing country in the world, the process of China creating the miracle of rapid economic development is also the process of vigorous agglomeration development of manufacturing industry. Manufacturing agglomeration is conducive to promoting green technological innovation and improving energy efficiency through scale economy effect, resources optimized allocation effects, and knowledge or technology spillover effects. However, a single manufacturing agglomeration will not only produce negative environmental externalities due to “policy rent-seeking” (or free-riding), resulting in unsustainable green technological innovation effects, distorted resource allocation and inefficient energy utilization, but also weaken the promotion effect of green technological innovation on energy efficiency due to the existence of energy rebound effect (Khazzoom 1980; Berkhout et al. 2000; Cheng et al. 2018; Liu et al. 2018; Ai et al. 2020). As an intermediate input of capital and knowledge-intensive industries and manufacturing industries, producer service industries can effectively promote the technological progress and energy efficiency improvement (Grubel and Walker 1989). Therefore, in order to promote the green and low-carbon transformation and upgrading of China’s economy and improve energy efficiency, it is urgent to promote the co-agglomeration of manufacturing and producer services, and then promote industrial transformation and economic development mode from the “single-wheel driven” of manufacturing agglomeration to the “double-wheel driven” of manufacturing and producer services co-agglomeration. This article takes the co-agglomeration of manufacturing and producer services industry as the starting point to carry out research and tries to answer the following questions: What is the current state of energy efficiency in China? What is the impact of industrial co-agglomeration on energy efficiency? How does this impact occur? Are there differences in the impact of industrial co-agglomeration on energy efficiency among different regions, namely that is there regional heterogeneity in the impact of industrial co-agglomeration on energy efficiency? Will industrial co-agglomeration also indirectly affect energy efficiency through the mediating effect of green technological innovation? By discussing these questions, it will be helpful for government departments to foster industrial co-agglomeration, promote the organic combination of green development and innovation-driven, so as to provide useful practice and experience reference for improving energy efficiency and achieving “peak carbon dioxide emissions, carbon neutrality,” and further promoting the construction of ecological civilization and beautiful China.

Literature review

In recent years, with the imbalance between energy supply and demand and environmental constraints gradually becoming the main bottleneck of sustainable economic growth, the issue of energy efficiency is not only highly concerned by the party and government but also more and more widely concerned by the academic community. From the existing literature, the research on energy efficiency mainly focuses on the following two aspects: one is the measurement of energy efficiency; the second aspect is the research on the influencing factors of energy efficiency.

  1. (1)

    The measurement of energy efficiency. The measurement of energy efficiency mainly covers two frameworks: single factor (partial factor) and total factor. Single factor (partial factor) energy efficiency refers to the energy efficiency that only considers the relationship between energy input and output and does not consider other production factors. In existing studies, energy productivity or energy intensity is generally defined as a single factor or partial factor energy efficiency index (Chien and Hu 2007; Duro 2015; Lyubich et al. 2018). But first of all, energy productivity or energy intensity as a single factor (partial factor) energy efficiency index cannot completely reflect the connotation of energy efficiency; secondly, the single factor (partial factor) energy efficiency measurement method solves the problem of single energy efficiency change (Sun 1998; Ma and Stern 2008), which can only examine the one-to-one relationship between energy input and desirable output, but cannot take into account the influence of other input factors in the production process, and cannot reflect the mutual substitution relationship between different input factors, the production relationship of multi-input and multi-output makes the measurement method of single factor (partial factor) energy efficiency complex or even infeasible, thus, it is impossible to measure the potential energy technical efficiency (York et al. 2004). To fill the gap, Hu and Wang (2006) proposed the concept of total factor energy efficiency (TFEE), which fully considers the influence of the interaction between various input factors (energy is also regarded as an input factor) on energy efficiency, it not only accords with the meaning of “Pareto optimal” energy efficiency, but also makes the measurement of energy efficiency under “multi-input and multi-output” complex production become simple and feasible. Generally, the efficiency measurement idea derived from Farrell (1957) is mainly adopted, DEA method is used to evaluate the production relationship between multiple input factors and desirable output, and the ratio between the energy target value and the actual value is used as the measurement index of total factor energy efficiency (Wei et al. 2007; Mukherjee 2008). However, it should not be ignored that production activities will not only produce desired output such as GDP or industrial added value but also bring undesired output (pollutant emissions) due to energy consumption. Therefore, when calculating total factor energy efficiency, undesired outputs need to be added further, otherwise, the measurement of total factor energy efficiency will be distorted. With the increasing severity of environmental pollution problems, many scholars have incorporated the environmental impact of energy utilization into energy efficiency and defined it as total factor energy efficiency considering environmental constraints, so as to solve the problem of “environmental pollution endogenization” and make energy efficiency research more scientific and systematic (Camioto et al. 2016; Wang and Yuan 2018; Li 2019; Yang and Wei 2019).

  2. (2)

    The research on the influencing factors of energy efficiency. Scholars have made extensive exploration on the influencing factors of energy efficiency from different angles. Through combing, it can be found that the existing studies have mainly conducted a more in-depth analysis on energy efficiency from the perspective of industrial structure (Newell et al. 1999; Fisher-Vanden et al. 2004; Mulder and De Groot 2007; Freire-González et al. 2017; Li and Ma 2021), economic development level (Kumar 2006; Managi and Jena 2008; Hu et al. 2019; Yang et al. 2020), energy structure (Murtishaw and Schipper 2001; Li and Ma 2021), urbanization (Poumanyvong and Kaneko 2010; Sadorsky 2013; Liu and Xie 2013), energy prices (Kaufmann 2004; Zhao and Lin 2020), enterprise scale (Liao and He 2018; Guan et al. 2019), opening up or FDI (Wagner 2008; Wang et al. 2020b; Pan et al. 2020), market reform or property right reform (Fisher-Vanden et al. 2004; Li 2019), and environmental regulation (Porter and Van der Linde 1995; Jin et al. 2019; Ouyang et al. 2019; Pan et al. 2019). However, the research on energy efficiency from the perspective of industrial co-agglomeration is still in its infancy.

Industrial co-agglomeration has become an important phenomenon of economic activities in the real world. The concept of “industrial co-agglomeration” was first proposed by Ellison and Glaeser (1997), which refers to the general trend of mutual attraction and joint location among different industries. Helsley and Strange (2014) also proposed that industrial co-agglomeration is different from single industrial agglomeration, which refers to the phenomenon that different types of industries are highly concentrated in a specific geographical range, and is an intermediate situation between a single industry and a complete multi-industry economic structure. With the upgrading of industrial structure, the refinement of social division of labor, and the improvement of specialization level, as well as the transformation from “industrial economy” to “service economy,” the collaborative development trend between manufacturing industry and producer services is becoming more and more obvious (Ke et al. 2014). At present, the research on the impact of industrial co-agglomeration on energy efficiency mainly focuses on the impact of single industrial agglomeration on energy efficiency, and the research conclusions are quite different, and there are mainly the following three kinds of most representative views: The first view holds that industrial agglomeration is conducive to improving energy efficiency. Liu et al. (2017) found that industrial agglomeration can effectively promote the improvement of energy efficiency through the empirical analysis based on 285 cities panel data from 2004 to 2013. The research results of Wang et al. (2020b) showed that industrial agglomeration can significantly promote the improvement of transportation infrastructure on energy efficiency. The second view holds that industrial agglomeration does not always have a positive impact on energy efficiency, and may even have a certain negative impact. Peng et al. (2015) found that industrial agglomeration has no significant impact on energy efficiency through quantitative analysis of the influencing factors of energy efficiency of China’s chemical fiber industry. Han et al. (2018) found that industrial specialization and diversified agglomeration can significantly reduce the energy efficiency of surrounding cities. The third view holds that there is a nonlinear relationship between industrial agglomeration and energy efficiency. Shi and Shen (2013) showed that enterprise agglomeration led by market mechanism can significantly improve energy efficiency, but due to the “free rider” tendency of government intervention and environmental governance, industrial agglomeration and energy efficiency show a U-shaped change. The results of Zheng and Lin (2018) showed that there is a threshold effect on the impact of industrial agglomeration on energy efficiency. Only when the industrial agglomeration degree reaches a certain level (the location quotient is greater than 0.5447), the industrial agglomeration can have a positive impact on energy efficiency (the agglomeration degree is increased by 1%, and the dynamic energy efficiency is increased by at least 0.23%). Zhao and Lin (2019) also found that there is a threshold effect on the impact of industrial agglomeration on total factor energy efficiency.

In summary, the existing studies have made some achievements, but there are still spaces for further study: (1) Most of the existing studies focus on analyzing the impact of single industrial agglomeration on energy efficiency, such as manufacturing agglomeration or service agglomeration. However, in reality, industrial activities are more manifested in the phenomenon of co-agglomeration among different industries. Therefore, it is necessary to explore energy efficiency from the perspective of industrial co-agglomeration. Moreover, most of the existing literature studies the impact on the energy efficiency in the local region, but it is less to further introduce the geographical distance weight matrix and use the spatial econometric analysis method to explore the spatial spillover effect of industrial co-agglomeration on energy efficiency in the surrounding regions. (2) There is no consensus on the influence mechanism and effect of industrial co-agglomeration on energy efficiency, and the existing studies mainly focus on the analysis of the impact of industrial co-agglomeration on energy efficiency in a given period; however, it ignores the inter-temporal energy technical change and the inter-temporal energy technology boundary movement, which is to say that there is a lack of in-depth research on the impact of industrial co-agglomeration on total factor energy efficiency. (3) The existing research is relatively lacking analysis on the possible differences of the impact of industrial co-agglomeration on energy efficiency between different regions, namely that, there is a lack of in-depth study on the possible regional heterogeneity of the impact of industrial co-agglomeration on energy efficiency. What’s more important, green technological innovation is an important driving force for promoting the improvement of energy efficiency, improving economic quality and efficiency, and green transformation and upgrading. However, the existing literature lacks a further discussion on whether industrial co-agglomeration will have a mediating effect through green technological innovation, which indirectly affects energy efficiency.

In view of these deficiencies, the contribution of this paper is mainly reflected in the following three aspects: (1) Different from the measurement model of single industrial agglomeration degree, the location entropy method is used to measure the agglomeration degree of manufacturing (\(Maagg\)) and producer services (\(Seragg\)) respectively, and then a measurement model of producer services and manufacturing industrial co-agglomeration is constructed based on the difference of agglomeration indicators. Moreover, the spatial weight matrix is further introduced to construct the spatial panel econometric model of the impact of industrial co-agglomeration on energy efficiency, so as to investigate the spatial spillover effect of industrial co-agglomeration on energy efficiency in the surrounding regions. (2) Different from the traditional simple empirical analysis, this paper first takes industrial co-agglomeration as the main variable into the analysis framework of affecting energy efficiency and deeply analyzes the internal mechanism of the impact of industrial co-agglomeration on energy efficiency. On this basis, a more reasonable econometric model of the impact of industrial co-agglomeration on energy efficiency is constructed. Moreover, based on the framework of “total-factor,” the undesired output caused by energy use is included into the measurement model of energy efficiency, so as to solve the problem of “environmental pollution endogenous.” At the same time, based on the perspective of “dynamic productivity,” the Malmquist-Luenberger index model considering undesired output with non-radial and non-angle is further used to measure total factor energy efficiency, so as to comprehensively analyze the deep-seated reasons of the impact of industrial co-agglomeration on energy efficiency. (3) Different from the existing studies that have less explored the impact of industrial co-agglomeration on total factor energy efficiency in different regions, this paper will further explore the regional heterogeneity of the impact of industrial agglomeration on total factor energy efficiency in the eastern, central, and western regions. Last but not least, taking green technological innovation as a mediator variable, this paper analyzes the direct effect and indirect effect of industrial co-agglomeration on total factor energy efficiency, and thus reveals the total effect and direct effects of industrial co-agglomeration on total factor energy efficiency, as well as the mediating effect caused by green technological innovation, so as to make the research results of the impact of industrial co-agglomeration on total factor energy efficiency more scientific and accurate. What’s more important, the threshold panel regression model is further used to investigate the nonlinear effect of industrial co-agglomeration on total factor energy efficiency, and this paper also deeply discusses when the threshold value of industrial co-agglomeration degree is reached, it will have a positive effect on the improvement of total factor energy efficiency, so as to analyze its internal mechanism accurately.

Theoretical analysis and research hypothesis

The traditional industrial agglomeration mostly focuses on the single industrial agglomeration, such as manufacturing agglomeration or producer services agglomeration, and it mainly reflects the economic phenomenon that enterprises in the same industry choose to close to each other due to the constraints of production factors, transaction costs, and location advantages. However, in reality, the industrial activities are more manifested in the phenomenon of co-agglomeration among different industries. With the upgrading of industrial structure, the refinement of social division of labor, the improvement of specialization level, and the transformation from “industrial economy” to “service economy,” the collaborative development trend between manufacturing and producer services is becoming more and more obvious (Ke et al. 2014). Industrial co-agglomeration is a higher stage of industrial agglomeration, which not only multiplies the knowledge spillover effect and crowding effect of single industrial agglomeration but also produces the economic, technological and knowledge linkages due to the vertical connection among heterogeneous industries, then will have an impact on total factor energy efficiency. The co-agglomeration driven by double-wheel of manufacturing and producer services is of great significance for changing the economic growth mode driven by a single industry, integrating and extending regional resources and industries, and improving the total factor energy efficiency.

On the one hand, manufacturing and producer services industrial co-agglomeration can realize industry division and cooperation through the mechanisms of mutual dependence, cooperation, and mutual supplement, refining division of labor and resource sharing, which is not only conducive to establishing long-term and stable cooperative relations, so as to reduce the search time and transactions cost among enterprises, simplify the transaction process and improve the transaction efficiency (Pandit et al. 2001). But also it can promote industrial linkage and spatial linkage, effectively solve the problem of industrial resources mismatch, guide the optimal allocation of industrial resources, and then produce scale economy effect, technology spillover effect, and centralized governance effect, thus directly promote the improvement of total factor energy efficiency. Firstly, industrial co-agglomeration can bring increasing returns to scale to enterprises by forming scale economy effect, which is conducive to comprehensively improving factor production efficiency and effectively reducing the average production and transaction costs. Moreover, the loss of raw materials in production is further reduced, and the in-transit loss of intermediate inputs is continuously reduced, so as to greatly improve the utilization efficiency of resources, greatly reduce the unit energy consumption, and improve the energy efficiency (Hosoe and Naito 2006; Zeng and Zhao 2009; Liu et al. 2017; Wang et al. 2020b). Secondly, industrial co-agglomeration is also conducive to strengthening the inter-regional agglomeration and flow of innovative elements such as talent, capital, information, and technology, thus resulting in technology spillover effect and accelerating the process of new technology R&D and technology diffusion (Teece 1986). Therefore, it can improve the technical efficiency, effectively reduce the capital, personnel and energy inputs in the production process, as well as resource waste, save production costs and energy consumption, then the undesired output in production activities is significantly reduced, the desired output is effectively improved, and finally, the total factor energy efficiency of enterprises will be improved (Yang et al. 2020). In addition, industrial co-agglomeration is also conducive for government departments to adopting interview, rectification, punishment, and other means to carry out centralized control of environmental pollution, and promoting the centralized governance effect, then making it possible to deal with pollutants on a large scale. Therefore, it can help to reduce the governance cost and energy input per unit pollutant, so as to reduce pollutant emissions and energy consumption, further improve resource utilization efficiency, and promote energy-efficient recycling, and finally promote the continuous improvement of total factor energy efficiency (Liu et al. 2017).

On the other hand, as the same with single industrial agglomeration, manufacturing, and producer services, industrial co-agglomeration also comes from the four key factors proposed by Marshall, which are the relationship between intermediate inputs and final product suppliers, the sharing of the labor market, increase opportunities for information exchange and innovation. Through the agglomeration of related industries and supporting industries, industrial co-agglomeration can strengthen the connection between peripheral industries and central industries, so as to promote the “collective efficiency” and “external economy” level, improve the “knowledge content” in the industrial agglomeration zone, and promote green technological innovation (Ehrenfeld 2003; Howard et al. 2016), then bringing about the energy-saving technology progress, promote the green transformation of the economy, optimize and adjust the energy structure, and effectively reduce energy consumption. Therefore, it can improve energy technical efficiency and accelerate energy technological progress, promote the effective increase of desirable output and the significant decrease of undesirable output in the production activities, and finally indirectly drive the rapid improvement of total factor energy efficiency.

In summary, industrial co-agglomeration not only has a significant direct impact on total factor energy efficiency but also has a significant indirect effect on total factor energy efficiency through promoting green technological innovation. The influence mechanism of industrial co-agglomeration on total factor energy efficiency can be illustrated by Fig. 1.

Fig. 1
figure 1

The influence mechanism of industrial co-agglomeration on the TFEE

However, it cannot be ignored that in the initial stage of producer services and manufacturing industrial co-agglomeration, the proportion of manufacturing industry is usually high. With the continuous agglomeration of producer services industries, the production cost of manufacturing industries can be effectively reduced and is also convenient to the massive flow of talents, information, and technology in the industrial agglomeration zone (Yang et al. 2021). Therefore, enterprises have the motivation to expand production scale, which may produce a “crowding effect,” then leads to an increase in energy consumption and a significant increase in pollutant emissions (Verhoef and Nijkamp 2002; Akbostanci et al. 2007; Shen et al. 2019), and finally the improvement of total factor energy efficiency will be restrained. That is to say, industrial co-agglomeration also has a certain negative effect on total factor energy efficiency. Moreover, the spatial co-agglomeration of industries in the specific regions may also lead to frequent “free-riding” by some enterprises, resulting in the failure of government policies, which leads to they are not willing to make efforts to save the energy and improve the environment while enjoying government’s preferential policies, making it difficult to achieve the required level of energy intensive utilization and environmental centralized governance in the agglomeration zone, and finally the total factor energy efficiency will be decreased (Cheng 2016; Han et al. 2018). What is more important, in the early stage of industrial co-agglomeration, the scale of industrial co-agglomeration is relatively small, and the resource allocation has yet been optimally allocated, which not only leads to a serious waste of resources but also easily leads to the superposition of cross regional pollutants, then leads to the increase of the cost of environmental pollution control and the decrease of energy efficiency. Last but not least, the positive effects of industrial co-agglomeration on total factor energy efficiency have obvious hysteresis (Henderson 2003). Therefore, in the initial stage of industrial co-agglomeration, its negative impact on total factor energy efficiency is dominant. With the growing co-agglomeration between manufacturing and producer services industry, producer services industry gradually shows the characteristics of low energy consumption and low pollution by its high-tech and high value-added attributes. By providing clean outsourcing services, it can reduce the production and transaction costs of manufacturing industry and improve the energy utilization efficiency, thus the promotion effect of industrial co-agglomeration on total factor energy efficiency begins to rise and gradually occupies a dominant position (Zheng and Lin 2018).

In summary, this paper proposes the hypothesis H1: There may be a U-shaped curve relationship between industrial co-agglomeration and total factor energy efficiency. That is, with the improvement of industrial co-agglomeration degree, it first shows a certain inhibitory effect on the total factor energy efficiency, and then shows an obvious promoting effect.

At present, the green technological innovation ability of Chinese enterprises is not strong, the resource utilization efficiency is low, and the pollutant emission is serious. In the initial stage of industrial co-agglomeration, it is often manifested in the single agglomeration of manufacturing or producer services industry in the spatial dimension, and there may be a spatial mismatch between manufacturing and producer service industry, resulting in enterprises spending money on the information search and matching process, inhibiting enterprises’ green technological innovation, which is not conducive to the improvement of total factor energy efficiency. With the deepening of manufacturing and producer services industrial co-agglomeration degree, producer services industries, which are matched with manufacturing, pour into the agglomeration region continuously. Industrial co-agglomeration is bound to strengthen the information and knowledge dissemination among enterprises, which is conducive to the transfer of tacit knowledge and the generation of technology spillover effect, so as to promote green scientific and technological innovation of enterprises, bring about energy-saving technological progress, and thus effectively reduce the energy consumption and improve the energy utilization efficiency, and reduce the pollutant emission, and finally improve the total factor energy efficiency of enterprises.

Therefore, this paper proposes the hypothesis that H2: industrial co-agglomeration has a significant indirect impact on total factor energy efficiency through green technological innovation. That is to say, green technological innovation has an obvious mediating effect on the impact of industrial co-agglomeration on total factor energy efficiency.

Methodology

The measurement of the TFEE

In general, the existing literature mainly adopts the efficiency measurement idea derived from Farrell (1957) and applies the DEA method to evaluate the production relationship between multiple input factors and desirable output, and the ratio between the target value and the actual value of energy is used as the measure index of the total factor energy efficiency (Wei et al. 2007; Mukherjee 2008). However, it should not be ignored that the production activities will not only produce desired output such as GDP or industrial added value but also bring undesired output (pollutant emissions) due to energy consumption. Therefore, when calculating total factor energy efficiency, undesired outputs need to be added further, otherwise the measurement of total factor energy efficiency will be distorted. With reference to Chung et al. (1997), the Malmquist-Luenberger index model based on directional distance function is used to measure total factor energy efficiency considering undesired output in this paper. The basic idea of calculating the Malmquist-Luenberger productivity index is as follows: Firstly, the production possibility boundary of a certain region is constructed by DEA technology. Secondly, the distance between each region and the production possibility boundary is calculated by using the directional distance function. Finally, the Malmquist-Luenberger productivity index is calculated based on the directional distance function of the two periods. Under the t period technology, the Malmquist-Luenberger productivity index from the period t to period t + 1 based on the directional distance function can be expressed as follows:

$$TFEE_{t}^{t + 1} = [\frac{{1 + D_{0}^{t} (x^{t} ,y^{t} ,b^{t} ;g^{t} )}}{{1 + D_{0}^{t} (x^{t + 1} ,y^{t + 1} ,b^{t + 1} ;g^{t + 1} )}} \times \frac{{1 + D_{0}^{t + 1} (x^{t} ,y^{t} ,b^{t} ;g^{t} )}}{{1 + D_{0}^{t + 1} (x^{t + 1} ,y^{t + 1} ,b^{t + 1} ;g^{t + 1} )}}]^{\frac{1}{2}}$$
(1)

where TFEE is the total factor energy efficiency, TFEE > 1 means that the total factor energy efficiency is improved, TFEE < 1 means that the total factor energy efficiency is reduced. With reference to Li and Cheng (2020), Yang et al. (2020), and Wang et al. (2020a), this paper selects the following input indicators, desired and undesired output indicators for the measurement of total factor energy efficiency.

  1. (1)

    Input indicators: There are three input indicators. ① Labor input: Labor input can be reflected by the amount of labor input, labor quality, and labor time. However, due to the difficulty of obtaining detailed data on the labor quality and labor time, therefore, referencing to Ma et al. (2017), this paper selects the year-end number of employees to denote the labor input. ② Capital input: Referencing to Färe et al. (2004), Li and Hu (2012), Wang and Yuan (2018), and Yang et al. (2020), this paper adopts the “perpetual inventory method” to calculate the capital stock to measure capital input and takes 2003 as the base period. Among them, the capital stock, depreciation rate, and fixed asset investment price index in the base period are mainly calculated by referencing to Yang et al. (2020) and Li and Ma (2021). ③ Energy input: In addition to the input of production factors such as labor and capital, the production process of enterprises is also inseparable from energy input. Referencing to Borozan (2018), Yang and Wei (2019), Wu et al. (2020), Chen et al. (2021), and Tang and He (2021), this paper selects the total energy consumption in the unit of 10,000 TCE to denote the energy input.

  2. (2)

    Output indicators: There are one desirable output indicator and three undesirable output indicators. ① Desired output: Referencing to Hu and Wang (2006), Özkara and Atak (2015), Li and Lin (2017), Wu et al. (2020), and Li and Cheng (2020), this paper selects the GDP of each region as the desirable output indicator and converts it into the constant price with taking 2003 as the base period according to the GDP index. ② Undesired outputs: Considering that industrial pollution is the most important pollution source of ecological environment in China, therefore, referencing to Wang et al. (2020a) and Li and Ma (2021), this paper selects the emissions of the three industrial wastes, which are industrial wastewater, industrial waste gas and industrial solid waste emissions, as the undesirable output indicators.

In summary, the measurement index system of total factor energy efficiency with input indicators, desired and undesired output indicators are given in Table 1.

Table 1 The measurement index system of TFEE

As shown in Fig. 2, during 2004–2019, the TFEE of eastern, central, and western regions all exhibit a trend of rising first and then falling. Moreover, there exists an obvious regional difference in TFEE, which is the eastern region at the top position, followed by the central region and the western region at the bottom position.

Fig. 2
figure 2

The TFEE trends of eastern, central, and western regions from 2004–2019

The measurement of industrial co-agglomeration

The measurement methods of single industrial agglomeration include location quotient, M-S index, industrial concentration, Herfindahl–Hirschman index (HHI), and so on. Since Ellison and Glaeser (1997) constructed the industrial co-agglomeration index based on the “target model,” many scholars have constructed the index system to quantitatively measure the industrial co-agglomeration degree, such as the E–G index improved by Ellison et al. (2010), D-O index constructed by Duranton and Overman (2005), and the colocalization index constructed by Billings and Johnson (2016). These indicator methods have their advantages and disadvantages, but considering the principles of data availability and regional comparability, referencing to Yang et al. (2021), this paper uses the following model to calculate the manufacturing and producer services industrial co-agglomeration degree:

$$Coagg_{it} = 1 - \frac{{\left| {Maagg_{it} - Seragg_{it} } \right|}}{{Maagg_{it} + Seragg_{it} }}$$
(2)

where Maagg and Seragg denote the manufacturing industrial agglomeration degree and producer services industrial agglomeration degree respectively. Coagg denotes manufacturing and producer services industrial co-agglomeration degree. When calculating the producer services agglomeration degree, in view of the consistency of the statistical caliber of the indicators and the research purpose of this paper, referencing to Yang et al. (2020), this paper selects “communications and transportation, warehousing and postal services industry,” “information transmission, computer service and software industry,” “financial intermediation industry,” “real estate industry,” “leasing and business services industry,” and “scientific research, technical service and geological prospecting industry” as the producer services industry. The manufacturing industry mainly refers to the 29 categories of sub-industries in the China Labor Statistical Yearbook released in 2017. The agglomeration degree of manufacturing and producer services is calculated as follows:

$${Magg}_{ij}=\frac{{q}_{ij}/{q}_{j}}{{q}_{i}/q}\left({Seragg}_{ij}=\frac{{q}_{i}/{q}_{j}}{{q}_{i}/q}\right)$$
(3)

where qij denotes the number of employees of industry i (manufacturing or producer services industry) in the province j, qj denotes the number of employees of producer services and manufacturing industry in the province j, qi denotes the national number of employees of industry i, and q denotes the national number of employees of producer services and manufacturing industry.

The measurement of green technological innovation

Different from traditional technological innovation, green technological innovation has the dual attributes of technological innovation and green development. Referencing to Eiadat et al. (2008), the number of green patents is used as the proxy variable of green technological innovation in this paper. As for the acquisition of green patent data, the “International Patent Classification Green List” launched by the World Intellectual Property Organization (WIPO) in 2010 is used to screen out environment-friendly patent information, by searching the patent data of 30 provinces in China from 2004 to 2019 in the State Intellectual Property Office, this paper classifies the regions where the applicants are located and calculates the number of green patents authorized in each province each year.

Spatial autocorrelation test

Before building a spatial econometric model, it is necessary to conduct a spatial autocorrelation test on the dependent variable (total factor energy efficiency). This paper uses the Moran’s I to test whether it is suitable to establish a spatial measurement model.

$$Moran^{\prime}s\;I = \frac{{\sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{n} {W_{ij} (TFEE_{i} - \overline{TFEE} )(TFEE_{j} - \overline{TFEE} )} } }}{{S^{2} \sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{n} {W_{ij} } } }}$$
(4)

where \(\overline{TFEE}=\frac{\mathrm l}n\sum \limits_{i=\mathrm l}^n{TFEE}_i\) \(S^2=\frac{\mathrm l}n\sum \limits_{i=\mathrm l}^n\left({TFEE}_i-\overline{TFEE}\right)^2\), TFEEi, and TFEEj denote the TFEE in the region i and j, respectively. Wij denotes the geographical distance spatial weight matrix, which is the inverse of the square of distance.

$$W_{ij} = \left\{ \begin{gathered} \frac{1}{{d_{ij}^{2} }}\;\;\;\;i \ne j \hfill \\ \;0\;\;\;\;\;i \equiv j \hfill \\ \end{gathered} \right.$$
(5)

Which could be seen from Table 2, the Moran’s I of the total factor energy efficiency during the period of 2004 to 2019 are all significantly positive, indicating that the TFEE between adjacent regions display positive spatial agglomeration effect, which shows obvious spatial autocorrelation. Therefore, it is suitable to use the spatial econometric model.

Table 2 Moran’s I of the total factor energy efficiency (TFEE) from 2004–2009 in China

Model construction

According to the theory of industrial agglomeration, industrial co-agglomeration not only has a significant positive effect on total factor energy efficiency but also has a certain negative effect, which indicates that there may be a non-linear relationship between industrial co-agglomeration and total factor energy efficiency. Therefore, in order to test whether there is a non-linear relationship between the industrial co-agglomeration and total factor energy efficiency, the benchmark econometric analysis model can be given as follows:

$$\ln TFEE_{it} = \alpha_{i} + \beta_{1} \ln Coagg_{it} + \beta_{2} (\ln Coagg_{it} )^{2} + \sum \theta \ln X_{{{\text{it}}}} { + }\mu_{i} + \nu_{t} + \varepsilon_{it}$$
(6)

Which cannot be ignored is that the ordinary panel model assumes that regions are independent from each other, but under the background of the large-scale cross-regional flow of elements and resources, the change of industrial co-agglomeration degree in this region may have an impact on the total factor energy efficiency in adjacent regions, and there may also be endogenous interaction effects on the total factor energy efficiency in various regions. Therefore, in order to accurately capture this effect, this paper further uses the spatial panel model to analyze the impact of industrial co-agglomeration on total factor energy efficiency. The spatial panel models include the spatial auto-regressive model (SAR), spatial error model (SEM), and spatial Durbin model (SDM), and the models are respectively set as follows:

$$SAR: ln{TFEE}_{it}={\alpha }_{1}+\rho \sum_{j=l}^{n}{W}_{ij}ln{TFEE}_{it}+{\beta }_{1}ln{Coagg}_{it}{\beta }_{2}{\left(ln{Coagg}_{it}\right)}^{2}+\sum \theta ln{X}_{it}+{\varepsilon }_{it}$$
(7)
$$\mathrm{SEM}: \left\{\begin{array}{c}ln{TFEE}_{it}={\alpha }_{2}+{\beta }_{1}ln{Coagg}_{it}+{\beta }_{2}{\left(\mathrm{ln}{Coagg}_{it}\right)}^{2}+\sum \theta \mathrm{ln}{X}_{it}+{\varepsilon }_{it}\\ {\varepsilon }_{it}=\delta \sum_{j=\mathrm{l}}^{n}{W}_{ij}{\varepsilon }_{it}+{v}_{it}\end{array}\right.$$
(8)
$$\mathrm{SDM}: \genfrac{}{}{0pt}{}{ln{TFEE}_{it}={\alpha }_{2}+\rho \sum_{j=l}^{n}{W}_{ij}ln{TFEE}_{it}+{\beta }_{1}ln{Coagg}_{it}+{\beta }_{2}{\left(ln{Coagg}_{it}\right)}^{2}+{\gamma }_{1}\sum_{j=l}^{n}{W}_{ij}ln{Coagg}_{it}}{{\gamma }_{2}\sum_{j=l}^{n}{W}_{ij}{\left(ln{Coagg}_{it}\right)}^{2}+{\phi }_{it}\sum \theta ln{X}_{it}+\eta \sum_{j=l}^{n}{W}_{ij}\theta ln{X}_{it}+{\varepsilon }_{it}}$$
(9)

where TFEE is the explained variable, which denotes the total factor energy efficiency; Coagg is the explanatory variable, which denotes the industrial co-agglomeration degree; ρ and δ are the spatial lag coefficient and spatial error coefficient respectively; X is the control variable, which denotes the other important factors affecting total factor energy efficiency, including economic development level (Pgdp), energy structure (Es), foreign investment level (FDI), industrial structure (Is), and environmental regulation (Er); β and θ are the coefficients corresponding to the relevant variables. Wij denotes the spatial weight matrix.

Control variables and data description

Control variables

The control variables used in this paper include economic development level (Pgdp), energy structure (Es), foreign investment level (FDI), industrial structure (Is), and environmental regulation (Er).

  1. (1)

    Economic development level (Pgdp). The “Environmental Kuznets” hypothesis holds that there is a “U-shaped” relationship between the economic development level and energy efficiency (Işık et al. 2019; Sarkodie and Ozturk 2020; Tenaw and Beyene 2021). At first, economic development will lead to an increase in energy consumption, thereby aggravate the environmental pollution. However, after the economic development reaches a certain level, the opportunity cost of health and environment will rapidly increase, which forces us to change the extensive development mode of high investment, high pollution, and low efficiency in the past, so as to gradually change the energy utilization efficiency from low to high, and the pollutant emission will be greatly reduced. In this paper, per capita gross domestic product (Pgdp) is used to denote the economic development level.

  2. (2)

    Energy structure (Es). Energy structure reflects the proportion of various types of energy consumption in the total energy consumption. The existing studies show that energy structure is an important factor affecting total factor energy efficiency (Murtishaw and Schipper 2001; Li and Ma 2021). China is one of the few countries that rely on coal and oil consumption, which leads to low energy efficiency and serious environmental pollution. Therefore, in this paper, the proportion of fossil fuel consumption such as coal and oil in total energy consumption is used to denote the energy structure.

  3. (3)

    Foreign investment level (FDI). The “pollution haven” hypothesis holds that foreign investment will lead to enterprises of pollution-intensive industries tend to be established in countries or regions with relatively low environmental standards, which is not conducive to improving energy efficiency and environmental quality (Akbostanci et al. 2007). On the contrary, due to the knowledge and technology spillover effect, foreign investment can also bring advanced process equipment and energy-saving and emission-reduction technologies to the host country through demonstration and imitation effect, personnel training effect, competition effect, and linkage effect, which is conducive to improving energy utilization efficiency and reducing environmental pollution (Hatzipanayotou et al. 2002). This paper uses the ratio of FDI to GDP to denote the foreign investment level.

  4. (4)

    Industrial structure (Is). Different industries have different energy intensities. Generally speaking, compared with the primary industry and the tertiary industry, the secondary industry is an industry with high energy consumption, high pollution, high emission, and low efficiency. Therefore, the increase of the proportion of the secondary industry will significantly increase the energy intensity, which will lead to more pollutant emissions, resulting in a downward trend in the total factor energy efficiency (Newell et al. 1999; Mulder and De Groot 2007; Freire-González et al. 2017; Li and Ma 2021). This paper uses the proportion of the output value of the secondary industry to GDP to denote the industrial structure.

  5. (5)

    Environmental regulation (Er). Environmental regulation is the regulation of various behaviors that pollute the environment for the purpose of reducing the pollutant emission. The “Porter hypothesis” holds that appropriate environmental regulation can effectively stimulate the regulated enterprises to further optimize the resource allocation efficiency and improve the technical level under the condition of change constraints, and stimulate the “innovation compensation” effect, which can not only make up for the “compliance cost” but also effectively improve the production efficiency of enterprises (Porter and Van der Linde 1995; Pan et al. 2019; Yang et al. 2020), so as to improve the total factor energy efficiency of enterprises. The proportion of pollution control investment in total industrial output value is used to denote the intensity of environmental regulation in this paper.

Data description

Based on the availability and consistency of data, provinces in China with massive data missing (such as Tibet, Hong Kong, Macau, and Taiwan) are not included in the study samples, resulting in data on 30 provincial regions in China from 2004 to 2019. The original data are mainly from China Statistical Yearbooks (2005–2020), China Energy Statistical Yearbooks (2005–2020), China Industry Economy Statistical Yearbooks (2005–2020), China Statistical Yearbook on Science and Technology (2005–2020), and Provincial Statistical Yearbook (2005–2020). In order to eliminate the possible heteroscedasticity and large coefficient gap in the estimation results caused by the variable unit inconsistency, the natural logarithm is processed for each variable.

Empirical results and discussion

Spatial econometric analysis at the national level

Firstly, based on Eq. (6), the estimated result obtained by the Hausman test is 19.14 by using the panel data of 30 provincial regions in China from 2004 to 2019, Prob > chi2 = 0.0141 < 0.05; therefore, this paper chooses the fixed effect model between the fixed effect model and the random effect model. Secondly, based on the LM test results, the LM-Lag = 735.9251, robust LM-Lag = 54.3622, P-value = 0.0000, LM-Error = 715.7829, robust LM-Error = 34.2201, P-value = 0.0000, which fully demonstrate that there is significant spatial autocorrelation. Thus, the spatial econometric regression model should be adopted. Traditional spatial econometric regression models include spatial auto-regressive model (SAR), spatial error model (SEM), and spatial Durbin model (SDM). Among them, spatial auto-regressive model (SAR) investigates the influence of adjacent regions on the dependent variables of the local region through the dependent variables; spatial error model (SEM) investigates the influence of adjacent regions on the dependent variables of the local region through the error term; spatial Durbin model (SDM) is a combined extended form of spatial auto-regressive model (SAR) and spatial error model (SEM), which can reflect the spatial correlation of different sources (Elhorst 2003). Therefore, the spatial auto-regressive model (SAR), spatial error model (SEM), and spatial Durbin model (SDM) are conducted. The regression results are listed in Table 3.

Table 3 Spatial econometric regression results at the national level

As shown in Table 3, based on the LR test results (the test statistics are significant at the level of 5%), which indicates if the spatial auto-regressive model (SAR) or spatial error model (SEM) is used to analyze the spatial spillover effect, there will be some errors. Moreover, based on the Wald test results (the test statistics are significant at the level of 1%), which indicates the spatial Durbin model (SDM) cannot degenerate into spatial auto-regressive model and spatial error model (SEM). Furthermore, with reference to Elhorst (2010), the spatial Durbin model (SDM) should be selected. Therefore, the spatial Durbin model (SDM) is taken as the final analysis model in this paper.

It could be seen from the results, the first-order coefficient of industrial co-agglomeration is 0.0917 > 0, and passing the 1% significance test. Meanwhile, the second-order coefficient of industrial co-agglomeration is 0.0863 and significantly positive at the 1% significance level, which indicates that there is a “U-shaped” curve relationship between industrial co-agglomeration and total factor energy efficiency, namely that with the increase of industrial co-agglomeration degree, it first shows a certain inhibitory effect on TFEE, and then plays a significant role in promoting. It verifies the research hypothesis H1. The result obtained by Zheng and Lin (2018) also supports this conclusion; however, the result obtained by Zhao and Lin (2019) opposes to ours. The reason why our study concludes that there is a U-shaped curve relationship between industrial co-agglomeration and total factor energy efficiency may be that: In the initial stage of industrial co-agglomeration, due to the mismatch of resources and the expansion of manufacturing production scale, there are serious waste of resources and the worsening of environmental pollution, which resulting in a “resistance” to the total factor energy efficiency. With the deepening of manufacturing and producer services industrial co-agglomeration, industrial co-agglomeration will help to accelerate the technological progress and improve technical efficiency through the scale economy effect, specialization division of labor, and knowledge spillover effect, so as to effectively reduce the input of capital, personnel, energy, and other factors per unit output, thereby saving production costs, reducing energy consumption, and ultimately improving energy efficiency. Therefore, there is a threshold effect on the impact of industrial co-agglomeration on the TFEE, and only when the industrial co-agglomeration degree reaches a certain value, can it have a positive effect on the improvement of TFEE.

For other control variables: (1) The quadratic coefficient of per capita GDP (Pgdp) is significantly positive, which indicates that there will be a “U-shaped” relationship between the economic development level and energy efficiency, namely that the “Environmental Kuznets” hypothesis exists significantly in China. The results obtained by Işık et al. (2019), Sarkodie and Ozturk (2020), Yang et al. (2020), and Tenaw and Beyene (2021), who also confirm the existence of EKC. (2) The coefficient of energy structure (Es) is significantly negative, indicating that China’s current energy consumption structure dominated by coal is unreasonable, which is not conducive to improving total factor energy efficiency. Therefore, it is necessary to accelerate the adjustment of energy structure, reduce coal consumption, stabilize the supply of oil and gas, and substantially increase the proportion of clean energy, so as to promote the optimization and upgrading of energy structure. The results obtained by Murtishaw and Schipper (2001) and Li and Ma (2021) also support this conclusion. (3) The coefficient of FDI is also significantly negative, which indicates that the “pollution haven” hypothesis gets supported. The results obtained by Akbostanci et al. (2007), Ren et al. (2014), Shen et al. (2019), and Yang et al. (2020) also support this conclusion. However, the results obtained by Wang et al. (2020b), and Li and Ma (2021) oppose to ours and hold that: FDI helps to promote China’s energy efficiency. The reason why we conclude that FDI has a negative influence on total factor energy efficiency is that due to the cadre assessment mechanism of “Only GDP is Hero” in China, some local governments run to the bottom line of the environmental standard on the policy-making, even at the expense of expensive resources and environment, which leads to the blind introduction of foreign investment projects with high energy consumption and high pollution, then hinders the improvement of total factor energy efficiency. (4) The coefficient of industrial structure (Is) is significantly negative, indicating that the increase of the proportion of the secondary industry will significantly aggravate energy consumption, resulting in more pollutant emissions, which is not conducive to the improvement of total factor energy efficiency. The result is similar to Newell et al. (1999), Mulder and De Groot (2007), Freire-González et al. (2017), and Li and Ma (2021). (5) The coefficient of environmental regulation (Er) is significantly positive, which indicates that the “Porter hypothesis” exists significantly. The results obtained by Pan et al. (2019) and Yang et al. (2020) also support this conclusion.

Spatial econometric analysis at the east, central, and west regions levels

As shown in Table 4, the impact of industrial co-agglomeration on the total factor energy efficiency in the eastern, central, and western regions is different. In other words, there is obvious regional heterogeneity in the impact of industrial co-agglomeration on the total factor energy efficiency. (1) In the eastern region, the quadratic coefficient of the impact of industrial co-agglomeration on the total factor energy efficiency is 0.0895 > 0 and passes the 1% significance test, which indicates that there is a robust U-shaped curve relationship between industrial co-agglomeration and total factor energy efficiency in the eastern region, which further verifies the research hypothesis H1 proposed in this paper. Moreover, the interaction term coefficient of the eastern region and industrial co-agglomeration is 0.0069 and passes the 10% significance test, indicating that industrial co-agglomeration in the eastern region can improve the total factor energy efficiency. (2) In the central and western regions, the quadratic coefficients of the impact of industrial co-agglomeration on the total factor energy efficiency are 0.0874 and 0.0891 respectively, and both of which also pass the 10% significance test, indicating that there is also a robust U-shaped curve relationship between industrial co-agglomeration and total factor energy efficiency in the central and western regions, but their coefficients are different. Moreover, the interaction term coefficient of the central and western regions and industrial co-agglomeration are − 0.0051 and − 0.0096, and both pass the 10% significance test, indicating that industrial co-agglomeration in the central and western regions is not conductive to improving the total factor energy efficiency.

Table 4 Spatial econometric regression results at the east, central, and west regions levels

What cannot be ignored is that in the eastern region, the spatial lag coefficient of industrial co-agglomeration is 0.4419 > 0 and passes the 1% significance test, which indicates that the industrial co-agglomeration in the eastern region has a positive spatial spillover effect on the surrounding and adjacent regions, namely that it is conducive to promoting the improvement of total factor energy efficiency in the surrounding and adjacent regions. While in the central and western regions, the spatial lag coefficients of industrial co-agglomeration are 0.4411 and 0.4350, respectively, and are significantly positive, and both are less than 0.4419 in the eastern region, which indicates that compared with the eastern region, the spatial spillovers effect of industrial co-agglomeration on total factor energy efficiency in the central and western regions on the surrounding and adjacent regions are relatively lower. This further indicates that the spatial spillover effect of industrial co-agglomeration also has obvious regional heterogeneity on total factor energy efficiency.

In summary, there are obvious regional heterogeneities in the impact of industrial co-agglomeration on the total factor energy efficiency (TFEE) and its spatial spillover effect.

Mediating effect test of green technological innovation

In order to explore whether industrial co-agglomeration will have a mediating effect through green technological innovation, which indirectly affects total factor energy efficiency, and then conduct an empirical test on the research hypothesis H2 proposed in this paper. Following the general basic test steps of mediating effect, this paper constructs the following mediating effect test model:

$$\ln{TFEE}_{it}=\alpha_i+\rho\sum_{j=\mathrm l}^nW_{ij}\ln{TFEE}_{it}+\beta_1\ln{Coagg}_{it}+\beta_2\left(\ln{Coagg}_{it}\right)^2+\gamma_1\sum_{j=\mathrm l}^nW_{ij}\ln{Coagg}_{it}+\gamma_2\sum_{j=\mathrm l}^nW_{ij}{(\ln{Coagg}_{it})}^2+\phi_{it}\sum\theta\ln X_{it}+\eta\sum_{j=\mathrm l}^nW_{ij}\theta\ln X_{it}+\varepsilon_{it}$$
(10)
$$\ln{GTI}_{it}=\alpha_i+\rho\sum_{j=\mathrm l}^nW_{ij}\ln{GTI}_{it}+\beta_1\ln{Coagg}_{it}+\beta_2\left(\ln{Coagg}_{it}\right)^2+\gamma_1\sum_{j=\mathrm l}^nW_{ij}\ln{Coagg}_{it}+\gamma_2\sum_{j=\mathrm l}^nW_{ij}{(\ln{Coagg}_{it})}^2+\phi_{it}\sum\theta\ln X_{it}+\eta\sum_{j=\mathrm l}^nW_{ij}\theta\ln X_{it}+\varepsilon_{it}$$
(11)
$$\ln{TFEE}_{it}=\alpha_i+\rho\sum_{j=\mathrm l}^nW_{ij}\ln{TFEE}_{it}+\beta_1\ln{Coagg}_{it}+\beta_2\left(\ln{Coagg}_{it}\right)^2+\lambda\ln{GTI}_{it}+\gamma_1\sum_{j=\mathrm l}^nW_{ij}\ln{Coagg}_{it}+\gamma_2\sum_{j=\mathrm l}^nW_{ij}{(\ln{Coagg}_{it})}^2+k\sum_{j=\mathrm l}^nW_{ij}\ln{GTI}_{it}+\phi_{it}\sum\theta\ln X_{it}+\eta\sum_{j=\mathrm l}^nW_{ij}\theta\ln X_{it}+\varepsilon_{it}$$
(12)

where TFEE denotes the total energy efficiency; Coagg denotes industrial co-agglomeration degree; GTI is the mediator variable, which denotes the green technological innovation level; X is the control variable, which is the same as Eq. (9).

In this paper, the Eqs. (10), (11), and (12) are analyzed by the spatial Dubin panel model, and the estimated results are shown in Table 5.

Table 5 Regression results of mediating effect test

As shown in Table 5, the coefficients of the first-order term and quadratic term of industrial co-agglomeration in Eq. (10) are 0.0917 and 0.0863, respectively, which are both significantly positive, indicating that there is a robust U-shaped curve relationship between industrial co-agglomeration and total factor energy efficiency. The estimation result of Eq. (11) shows that the first-order coefficient of industrial co-agglomeration is 3.6982 > 0 and passes the 1% significance test, and the quadratic coefficient of industrial co-agglomeration is 1.2186, which is also significantly positive, indicating that there is also a U-shaped curve relationship between industrial co-agglomeration and green technological innovation, namely that the impact of industrial co-agglomeration on green technological innovation is first inhibition and then promotion. The main reason may be that in the initial stage of industrial co-agglomeration, there tends to be a single spatial concentration of manufacturing industry or producer services industry (Ellison et al. 2010), the resource allocation has not been optimized, which will result in the spatial mismatch between manufacturing and producer services, and enterprises will spend time and money searching for services related to production, management, and marketing, resulting in inhibiting the technological innovation of enterprises. At the same time, it will also lead to a serious waste of resources and the superposition of trans-regional pollutants, then hinders green technological innovation. According to the innovation agglomeration theory, technological innovation has the characteristics of large investment, long return cycle, and large uncertainty, and it needs to be embedded with productive services such as perfect intellectual property rights and complete legal system, then to effectively stimulate the innovation enthusiasm of enterprises (Shearmur and Doloreux 2013). With the deepening of industrial co-agglomeration, it can accelerate the technological innovation of enterprises through channels such as scale economy, knowledge, or technology spillover effect and enhancing the input–output linkages (Shearmur and Doloreux 2015; Howard et al. 2016), and make it possible to deal with the pollutants produced by enterprises on a large scale, so as to promote the continuous improvement of green technological innovation ability of enterprises. The estimation result of Eq. (12) shows that the coefficient of green technological innovation is 0.0607 > 0 and has passed the 1% significance test, which indicates that although green technological innovation has an “energy rebound effect” on the energy efficiency (Cheng et al. 2018; Liu et al. 2018; AI et al. 2020), green technological innovation plays a greater role in promoting total factor energy efficiency, so that industrial co-agglomeration indirectly promotes the improvement of total factor energy efficiency through the mediator variable of green technological innovation, this is to say, green technological innovation has an obvious mediating effect on the industrial co-agglomeration affecting total factor energy efficiency. In other words, industrial co-agglomeration has a significant indirect effect on the total factor energy efficiency through green technological innovation, which validates the research hypothesis H2.

Further discuss based on the threshold model

The above study shows that there is a threshold effect on the impact of industrial co-agglomeration on the TFEE, and only when the industrial co-agglomeration degree reaches a certain value, can it have a positive effect on the improvement of TFEE. Therefore, in order to explore which threshold value of industrial co-agglomeration degree reaches, it will promote the total factor energy efficiency. With reference to the threshold panel regression model proposed by Hansen (1999), taking industrial co-agglomeration as the threshold variable, the panel threshold effect is further used to investigate the nonlinear impact of industrial co-agglomeration on the total factor energy efficiency. This paper sets the following single threshold model and double threshold model respectively, which can be seen from Eqs. (13) and (14), the multiple threshold model follows this way and so on. Nextly, this paper will test them one by one.

$$\ln TFEE_{it} = \mu_{i} + \theta_{1} \ln CoaggI(\ln Coagg \le \gamma_{1} ) + \theta_{2} \ln CoaggI(\ln Coagg > \gamma_{1} ) + \sum {\beta \ln X_{it} } + \varepsilon_{it}$$
(13)
$$\begin{gathered} \ln TFEE_{it} = \mu_{i} + \theta_{1} \ln CoaggI(\ln Coagg \le \gamma_{1} ) + \theta_{2} \ln CoaggI(\gamma_{1} < \ln Coagg \le \gamma_{2} ) \hfill \\ \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\theta_{3} \ln CoaggI(\ln Coagg > \gamma_{2} ) + \sum {\beta \ln X_{it} } + \varepsilon_{it} \hfill \\ \end{gathered}$$
(14)

where TFEE stands for the total factor energy efficiency; Coagg stands for the industrial co-agglomeration degree; γ1 and γ2 are the threshold value; θi and βi denote the parameter to be estimated; X is the control variables.

Threshold number and threshold value analysis

For the analysis of the threshold effect, it is necessary to determine the number of thresholds. This paper tests the original hypothesis that there is no threshold value, there is one threshold value, and there are two thresholds value. This paper uses the “self-sampling method” for 300 times to obtain F statistics, P-value, and critical value. The results of the threshold test are reported in Table 6.

Table 6 Results of the threshold test

As shown in Table 6, the value of F statistics of the single threshold model is significantly positive at 1% significance level, but the double threshold effect does not pass the significance test. Therefore, this paper selects the single threshold model effect to carry on the follow-up empirical analysis.

In order to more clearly observe the estimation of thresholds value and the construction of confidence interval, this paper uses the least-squares likelihood ratio statistic (LR) to identify the threshold value (the estimation result of the threshold value is the value of γ when LR is zero), Fig. 3 gives the likelihood ratio function diagram of single threshold estimate.

Fig. 3
figure 3

The threshold value and confidence interval

Furthermore, the estimation results of threshold value and 95% confidence interval are given in this paper, which is shown in Table 7.

Table 7 The estimation results of threshold value and confidence interval

Combining Fig. 3 with Table 7, it can be seen that the estimation result of the threshold value γ1 is − 0.4575 and its 95% confidence interval is [− 0.5012, − 0.4520]. Therefore, the LR value is less than 7.35, which is the critical value at the 5% significance level (dotted line in Fig. 3). This shows that there is a single threshold effect on the impact of industrial co-agglomeration on the TFEE, and according to this threshold value, the industrial co-agglomeration degree in China’s provincial regions can be divided into two intervals: (lnCoagg ≤  − 0.4575) and (lnCoagg >  − 0.4575). In other words, the industrial co-agglomeration degree can be divided into (Coagg ≤ 0.6329) and (Coagg > 0.6329).

Threshold model regression analysis

Taking industrial co-agglomeration as the threshold variable, the regression results of the single threshold model of the impact of industrial co-agglomeration on total factor energy efficiency are shown in Table 8. It can be seen that based on the results of regression analysis of threshold panel model, (1) when the industrial co-agglomeration degree is less than or equal to 0.6329, the regression coefficient is − 0.0542 and passes the test of 10% significance level, indicating that when the manufacturing and producer services industrial co-agglomeration degree is lower, the effect of industrial co-agglomeration on the improvement of total factor energy efficiency is negative; (2) when the industrial co-agglomeration degree is in the second range, the regression coefficient is 0.0535 and passing the 1% significance level test, indicating that when the manufacturing and producer services industrial co-agglomeration degree crosses the threshold value of 0.6329, industrial co-agglomeration will promote the improvement of total factor energy efficiency. This also means that there is a significant single threshold effect on the impact of industrial co-agglomeration on the total factor energy efficiency, and only when industrial co-agglomeration degree reaches a certain value, can it have a positive effect on the improvement of TFEE. In other words, industrial co-agglomeration first shows a certain inhibitory effect on the total factor energy efficiency, and then shows an obvious promoting effect, which further validates the research hypothesis H1 proposed in this paper.

Table 8 Regression analysis results of the threshold panel model

Conclusions and policy implications

Based on the perspective of manufacturing and producer services industrial co-agglomeration, firstly, this paper theoretically investigates the mechanism of industrial co-agglomeration, green technological innovation, and total factor energy efficiency. Secondly, by using the panel data of China’s 30 provincial-level regions from 2004 to 2019, this paper measures the total factor energy efficiency (TFEE) by Malmquist-Luenberger index model considering undesirable output and the industrial co-agglomeration degree by location entropy, and then establishes spatial panel model to analyze the impact of industrial co-agglomeration on the TFEE. On this basis, the spatial Dubin model (SDM) is used to analyze the impact of industrial co-agglomeration on the total factor energy efficiency and its regional heterogeneity. Moreover, the mediating model is employed to examine the mediating effect of green technological innovation on the industrial co-agglomeration affects TFEE. Last but not least, the threshold panel regression model is conducted to verify the nonlinear relationship between industrial co-agglomeration and TFEE, in order to further explore when the threshold value of industrial co-aggregation degree is reached, can it have a positive effect on the improvement of TFEE. The main conclusions are summarized as follows:

  1. (1)

    The influence mechanism of industrial co-agglomeration on total factor energy efficiency can be divided into direct impact and indirect impact. In other words, industrial co-agglomeration not only has a significant direct impact on total factor energy efficiency but also has a significant indirect effect on total factor energy efficiency by promoting green technological innovation.

  2. (2)

    During 2004–2019, the TFEE of eastern, central, and western regions all exhibit a trend of rising first and then falling. Moreover, there exists an obvious regional difference in TFEE, which is the eastern region at the top position, followed by the central region, and the western region at the bottom position. The TFEE between adjacent regions displays a positive spatial agglomeration effect, which shows obvious spatial autocorrelation.

  3. (3)

    There is a U-shaped curve relationship between industrial co-agglomeration and the TFEE, namely that industrial co-agglomeration first shows a certain inhibitory effect on TFEE, and then plays a significant role in promoting. Moreover, there is obvious regional heterogeneity in the impact of industrial co-agglomeration on the TFEE, and the spatial spillover effect of industrial co-agglomeration on the TFEE also has obvious regional heterogeneity. Last but not least, green technological innovation has an obvious mediating effect on the impact of industrial co-agglomeration on the TFEE, namely that industrial co-agglomeration can have a significant indirect impact on TFEE through green technological innovation.

  4. (4)

    There is a single threshold effect on the impact of industrial co-agglomeration on the TFEE, only when the industrial co-agglomeration degree crosses the threshold value of 0.6329, can it positively promote the improvement of TFEE. According to the single threshold model, when the manufacturing and producer services industrial co-agglomeration degree is less than or equal to 0.6329, the effect of industrial co-agglomeration on the improvement of total factor energy efficiency is negative; while, when the manufacturing and producer services industrial co-agglomeration degree crosses the threshold value of 0.6329, industrial co-agglomeration will promote the improvement of TFEE.

These findings provide the following policy implications for promoting the transformation of China’s economic development mode from factor expansion to efficiency improvement, achieving economic sustainability and green transformation development: On the one hand, the eastern region of China and the central and western regions with certain economic endowment should speed up the process of industrial co-agglomeration, cross the critical inflection point of agglomeration threshold, and promote the industrial diversification development and industrial integration development. Moreover, the eastern region should further promote the deep integration of advanced manufacturing industry and modern service industry by vigorously developing producer services, so as to achieve the “double-wheel collaborative driven” of manufacturing industry and producer services, change the traditional economic growth mode driven by a single industry, integrate and extend regional resources and industries, and then promote the improvement of total factor energy efficiency. On the other hand, the central and western regions, where economic development is relatively backward, should not blindly follow the wave of industrial integration. They should base themselves on the real economy and promote the gradual high-end manufacturing industry, accelerate the adjustment and optimization of industrial structure and energy consumption structure, reasonably allocate the resources, and avoid the occurrence of “zero-sum game” caused by industrial isomorphism among regions. Moreover, the central and western regions should further formulate preferential and incentive policies to promote green technological innovation and green industry development, build a green technological innovation promotion platform, and accelerate the green transformation and upgrading of the economy, so as to realize the “double unlock” of energy and resource constraints and ecological environment constraints, ultimately effectively improve total factor energy efficiency.