In the Gospel of John, "the world" often describes the corrupt, rebellious human system in opposition to God.
God does not love every individual with an identical, saving affection, as that would mean God fails to save people whom He supposedly loves savingly.
In John 3:16 "the world" refers...