Abstract:Accelerating the integrated development of domestic and foreign trade is a crucial move to address long-standing issues such as China’s overemphasis on external trade at the expense of internal trade and the segmentation between domestic and international markets, thereby facilitating the smooth operation of the dual circulation system. This process requires simultaneous structural and scale improvements in trade. Accordingly, refining the measurement of integration and embedding it into firm-level optimization under digitalization is essential. Such a framework allows for theoretical and empirical identification of digital empowerment mechanisms.Empirical results reveal a significant N-shaped relationship between the digital economy and firm-level trade integration. The integration level rises, falls, and rises again as digitalization deepens. Currently, Chinese industrial firms as a whole have already moved past the second inflection point, indicating that the empowerment effect is entering a phase of accelerated development. This N-shaped pattern is particularly evident in the Yangtze River Delta, the Pearl River Delta, non-coastal provinces, and the Eastern Data Western Computing regions, underscoring the divergent regional trajectories shaped by digitalization. Mechanism analysis shows that productivity exerts a positive moderating effect and constitutes the primary driver. Short-term leverage inhibits integration through heightened debt pressure. Liquidity exerts a polarizing effect, with moderate levels facilitating the transition. Innovation moderates unevenly across phases: it promotes integration during the initial and deepening stages but produces short-run negative effects when confronting digital trade barriers. These findings inform policies for firm-level trade integration, high-level openness, and China’s transition toward a trading powerhouse.