Follow Everything: A Leader-Following and Obstacle Avoidance Framework with Goal-Aware Adaptation