Achieving high-resolution and large-depth microscopic imaging in vivo under conditions characterized by high-scattering and dense-labeling, as commonly encountered in the liver, poses a formidable challenge. Here, through the optimization of multi-photon fluorescence excitation window, tailored to the unique optical properties of the liver, intravital microscopic imaging of hepatocytes and hepatic blood vessels with high spatial resolution was attained. It's worth noting that resolution degradation caused by tissue scattering of excitation light was mitigated by accounting for moderate tissue self-absorption. Leveraging high-quality multi-photon fluorescence microscopy, we discerned structural and functional alterations in hepatocytes during drug-induced acute liver failure. Furthermore, a reduction in indocyanine green metabolism rates associated with acute liver failure was observed using NIR-II fluorescence macroscopic imaging.