Alex Gordon rounds the bases after hitting a home run.  (photo/MLB)

Alex Gordon rounds the bases after hitting a home run. (photo/MLB)

Alex Gordon and Salvador Perez homered, Danny Duffy pitched into the seventh inning and the Royals beat the San Francisco Giants 7-4 Sunday for their seventh consecutive victory.

The Royals, who won 10 in a row in June, have put together two winning streaks of seven or more games this season for the first time since 1985, the last time they were in the playoffs.  They moved within one-half game of first-place Detroit in the AL Central. The Tigers lost 6-5 to the Toronto Blue Jays in 19 innings on Sunday.

The Royals also opened up a 1.5 game lead over Seattle and Toronto for the second Wild Card in the American League.

On Saturday, James Shields tossed a complete game four-hitter, and Gordon homered in a 5-0 over San Francisco.

Shields (11-6) gave up three singles in the first four innings. He allowed only two Giants to reach second base. He walked Joe Panik in the fifth and he moved to second on a wild pitch with two outs, but was stranded. Panik doubled in the eighth.

The Royals started the series with a 4-2 win on Friday night.

Butler homered and drove in three runs and was hitting .423 in his last seven games. In the past 13 games, Butler has four home runs and 11 RBIs.