Uncovering RAG's Four-Layer Acceptance Mechanism: Core Logic Restructuring for Generative Engine Optimization