Pathformer: Recursive Path Query Encoding for Complex Logical Query Answering