mRNA vaccines have shown great potential in responding to emerging infectious diseases, with their efficacy and stability largely dependent on the delivery vehicles-lipid nanoparticles (LNPs). This study aims to explore the mechanisms by which LNPs encapsulate mRNA, as well as the effects of different N/P ratios and acid types in nucleic acid solutions on the structure and properties of LNPs, using the ethanol solvent injection method as the encapsulation technique. Six systems were designed, based on the composition and proportions of the existing mRNA vaccine mRNA-1273, and molecular dynamics (MD) simulations were employed to investigate the self-assembly process of LNPs. Ethanol was used as a solvent instead of pure water to better mimic experimental conditions. The results indicate that lipid components self-assemble into nanoparticles under neutral conditions, with the ionizable lipid SM-102 predominantly concentrating in the core of the particles. Upon mixing with nucleic acids in acidic conditions, LNPs undergo disassembly, during which protonated SM-102 encapsulates mRNA through electrostatic interactions, forming stable hydrogen bonds. Cluster structure analysis revealed that the four lipid components of LNPs are distributed sequentially from the outside inwards as DMG-PEG 2000, DSPC, cholesterol, and protonated SM-102. Moreover, LNPs constructed under low pH or low N/P ratios using citric acid exhibited larger volumes and more uniform distribution. These findings provide a scientific basis for further designing and optimizing LNP components to enhance the efficacy of mRNA vaccine encapsulation.