Insight into the stability of protein in confined environment through analyzing the structure of water by temperature-dependent near-infrared spectroscopy.