First, there is no longer ferry service between SZX and Hong Kong. Just take direct coaches. And even when there were ferries, you still need a visa to go through Chinese immigration before taking the shuttle bus to the pier and then go through immigration aging in to exit China. No "airside" transfer and no visa-free transit.