Jared Goff threw for two touchdowns and Jahmyr Gibbs added a pair of scores on the ground as the Detroit Lions defeated the Tampa Bay Buccaneers 31-21.