This paper presents a hybrid renewable energy-based AC microgrid system integrating a diesel generator, solar photovoltaic (PV), wind turbine, and battery energy storage to enhance power quality, frequency stability, and power management efficiency. To address the collaborative optimization challenge in multi-microgrid systems with significant renewable energy integration, this study presents a dual-layer optimization model incorporating power-hydrogen coupling. This study presents a novel optimization method. This study investigates the capacity configuration optimization of park-level wind-solar-storage microgrids, considering carbon emissions throughout the lifecycle. It provides stable power supply in remote or off-grid areas, optimizing energy efficiency and enhancing system reliability and self-sufficiency.