From Input to Output: A Multi-layer Knowledge Distillation Framework for Compressing Recommendation Models