Solar photovoltaic (PV) power generation is a major carbon reduction technology that is rapidly developing worldwide. However, the impact of PV plant construction on subsurface microecosystems is currently understudied. We conducted a systematic investigation into the effects of small-scale light stress caused by shading of PV panels and sampling depth on the composition, diversity, survival strategy, and key driving factors of soil bacterial communities (SBCs) under two vegetation restoration modes, i.e., Euryops pectinatus (EP) and Loropetalum chinense var. rubrum (LC). The study revealed that light stress had a greater impact on rare species with relative abundances below 0.01% than on high-abundance species, regardless of the vegetation restoration pattern. Additionally, PV shadowing increased SBCs’ biomass by 20–30% but had varying negative effects on the numbers of Operational Taxonomic Unit (OTU), Shannon diversity, abundance-based coverage estimator (ACE), and Chao1 richness index. Co-occurrence and correlation network analysis revealed that symbiotic relationships dominated the key SBCs in the LC sample plots, with Chloroflexi and Actinobacteriota being the most ecologically important. In contrast, competitive relationships were significantly increased in the EP sample plots, with Actinobacteriota having the most ecological importance. In the EP sample plot, SBCs were found to be more tightly linked and had more stable ecological networks. This suggests that EP is more conducive to the stability and health of underground ecosystems in vulnerable areas when compared with LC. These findings offer new insights into the effects of small-scale light stress on subsurface microorganisms under different vegetation restoration patterns. Moreover, they may provide a reference for optimizing ecological restoration patterns in fragile areas.