1. Depending on their social class, they did different kinds of work.

2. According to their social class, they did different kinds of work.

3. Based on their social class, they did different kinds of work.
---------------------------------------
What is the meaning of 'Depending on' in #1? Does #1 mean #2 or #3?

All mean approximately the same thing, yes.

https://www.google.com/search?q=depending+on&rlz=1C5CHFA_enUS705US707&oq=depending+on+&aqs=chrome..69i57j69i61j0l4.11391j0j7&sourceid=chrome&ie=UTF-8