You can not apply working visa in China. But you can apply it from Chinese Embassy in Hongkong after you have the offer from the company and all relevant documents.
My friend did the same way. If you can find a job, your employer will help you to apply for working visa. And when you get it, you might need to go out of China once to activate the visa.