@Shaokang if someone is not insulted it’s not a joke.
Laughter is fundamentally a hostile reaction. Look for videos on YT of chimps laughing at a leopard, for example.
Human laughter expresses hostility towards particular behavior, or people, and also solidarity with your own group.
There’s no way to make humor inoffensive – it will be bland and pointless.