Nonreciprocal quantum transport at junctions of structured leads