This study presents what we believe to be a novel gold-silica-gold stacked metamaterial structure based on the principle of coherent perfect absorption (CPA) to realize high-contrast all-optical logic gates operating at dual communication wavelengths centered around 1310 nm and 1550 nm. By optimizing the asymmetric split ring (ASR) structure, strong Fano-type plasmonic modes are achieved, leading to CPA in the target wavelengths. By manipulating the phase difference and intensity of the incident light beams, the designed logic gates can perform XOR, AND, OR, and NOT operations. The proposed design exhibits independence from the incident angle, stability against intensity fluctuations, and extremely high contrast. This design offers a multi-band, stable, and integrated solution for fiber optic communication networks and holds promise for broad applications in all-optical data processing and photonic communication devices.