Two neutral energetic compounds, 3-nitro-7-amino-6-(1H-tetrazol-5-yl)pyrazolo[1,5-a]pyrimidine (3) and 2-nitramino-7-amino-6-(1H-tetrazol-5-yl)-[1,2,4]triazolo[1,5-a]pyrimidine (4), were synthesized via nitration of tetrazole combined fused-ring pyrazolo-pyrimidine and tetrazole combined fused-ring triazolo-pyrimidine. By exploiting the basicity of nitrogen atoms in the pyrimidine ring, nitrate (5, 7) and perchlorate (6, 8) salts were subsequently obtained through proton transfer reactions. The structures of the compounds were characterized by nuclear magnetic resonance spectroscopy (1H and 13C NMR), Fourier transform infrared spectroscopy (FT-IR), and elemental analysis (EA). Single crystals of compounds 5 and 7 were obtained by solvent evaporation, and their crystal structures characterized confirmed by X-ray single-crystal diffraction. Furthermore, their physicochemical properties and mechanical sensitivity were assessed through gas pycnometer, differential scanning calorimetry (DSC), impact sensitivity/friction sensitivity tests, alongside theoretical calculations of their heat of formation and detonation performance. The results indicate that compounds 4-8 exhibit detonation velocities ranging from 7870 to 8471 m?s-1, and detonation pressures from 23.1 to 30.7 GPa, which are superior to that of TNT (Dv: 6881 m?s-1, p: 19.5 GPa). The detonation performance of the nitrate (5, 7) and perchlorate (6, 8) salts surpasses that of their corresponding neutral compounds 3 and 4. Notably, the perchlorate salt (compound 8: Dv: 8471 m?s-1, p: 30.7 GPa) exhibits the most outstanding detonation performance. This study demonstrates that constructing tetrazole-fused structures containing basic nitrogen sites, followed by introducing oxygen-rich energetic anions through proton transfer, is an effective strategy for tuning the detonation properties of energetic materials.