Optimizing the thickness and doping densities of the HTM, ETM, and absorber layers is critical for achieving high-efficiency solar cells. The optimized HTM doping density (1×10²⁰ cm⁻³), absorber doping density (1×10¹⁶ cm⁻³), and other parameters result in a PCE improvement of 1.04%, bringing the total efficiency to 29.45%. These findings highlight the importance of doping density engineering and layer optimization in advancing perovskite solar cell performance.