Dodgers' late surge sinks Giants