Bridging Traffic State and Trajectory for Dynamic Road Network and Trajectory Representation Learning