When Data Geometry Meets Deep Function: Generalizing Offline Reinforcement Learning