Longitudinal Proximity Effect, Lateral Inverse Proximity Effect, and Nonequilibrium Superconductivity in Transition-edge Sensors