Yes, your itinerary is definitely eligible for 240 hour visa free transit. You can take a ferry from Hong Kong to Shenzhen or a high speed train from Hong Kong West Kowloon station. It is essential that your Guangzhou to Taipei segment does not have any landing in Hong Kong. Have a nice visit to China.