Beyond Fixed Depth: Adaptive Graph Neural Networks for Node Classification Under Varying Homophily