Tri-functional Fe-Zr bi-metal-organic frameworks enable high-performance phosphate ion ratiometric fluorescent detection.