DeepGate4: Efficient and Effective Representation Learning for Circuit Design at Scale