The continent-ocean transition at the northern margin of the South China Sea