DETROIT – Tom Brady was perfect on the field, and his exit was first class.

Brady threw a season-high four touchdown passes, all in the second half, and the New England Patriots routed the Detroit Lions 45-24 Thursday after trailing by 11 late in the second quarter.

“We showed some resiliency, coming out in the second half and playing the way we did when the crowd was into it,” Brady said.

Following his brief news conference, Brady, who played at Michigan, jogged out of Ford Field — limping slightly up a steep ramp — hugged Patriots owner Robert Kraft and got into an idling limousine with Kraft behind a police escort.

New England (9-2) remained in a tie with the New York Jets, who beat Cincinnati 26-10 on Thursday night, for the NFL’s best record, setting up a showdown at home Dec. 6.

“I don’t think we’re at where we need to be at,” Brady said. “But this is a tough group.”

No one in a Patriots uniform is tougher than Brady, a three-time Super Bowl winner and two-time league MVP.

After taking plenty of shots early in the game, he bounced back to complete 21 of 27 passes for 341 yards with no interceptions, giving him a perfect quarterback rating of 158.3 for the second time in his career.

“He’s like a surgeon,” Detroit center Dominic Raiola said.

Brady threw a go-ahead touchdown pass to Deion Branch early in the fourth quarter after connecting with him on a 79-yarder to tie it at 24. Wes Welker’s second TD reception sealed the victory with 6:42 left, putting the Patriots ahead by two touchdowns and making their double-digit deficit a distant memory.

“When you outscore a team 35-7 in the second half, a lot of things have to go right,” New England Coach Bill Belichick said.

The Lions (2-9) are used to things going wrong, especially on Thanksgiving.

Detroit has lost a franchise-record seven straight games — by an average of nearly 23 points — in its annual showcase game.

“This one is really tough because we gave everybody so much hope,” Raiola said. “We were up 14-3, Ford Field was going crazy and then boom, boom, boom.”

Brady became the first to have a perfect passer rating this season with a minimum of five attempts, according to STATS LLC. His first perfect game was Oct. 21, 2007, when he threw a career-high six TD passes in a victory over Miami.

“If we give him time, there’s nothing he can’t do,” guard Logan Mankins said. “He’s going to find the guy that’s open and he’s going to get them the ball. The rest is up to us.”

Brady had plenty of help with Welker and Branch through the air and BenJarvus Green-Ellis on the ground.

Green-Ellis ran for two TDs, matching a career high. His second capped the scoring with 3:14 left and led to several pushing and shoving matches with the frustrated Lions.

Shaun Hill was 27 of 46 for 285 yards and a TD pass to Calvin Johnson at the end of the first quarter that put the Lions up, 7-3.

Hill also threw two interceptions, both by rookie cornerback Devin McCourty.

Maurice Morris ran for two TDs, matching his total in two seasons in Detroit. Morris’ first score put Detroit ahead 14-3 with 5:58 left in the first half.

Green-Ellis’ 15-yard TD pulled the Patriots within four with 45 seconds left in the second quarter, then they allowed Detroit to drive for a lead-padding field goal to end the first half.

The Lions looked as if they finally might put together a good showing on Thanksgiving, forcing New England to punt on its first drive of the second half.

But Detroit began to fall apart when Hill underthrew Johnson on the ensuing possession and McCourty picked off the pass and returned it 23 yards to set up Brady’s tying pass to Welker.

“That was a big play by Devin that really swung the game,” Belichick said.

Detroit recovered, going ahead midway through the third quarter, but the lead didn’t last long.

Brady found Branch, who was wide open, and he ran circles around Alphonso Smith on the 79-yard scoring play 22 seconds later.

Branch beat Smith on his second TD with 13:45 left in the game, sending the cornerback to the bench in a move that was made much too late to help the Lions.

“I just want to apologize to my teammates because they played so hard,” Smith said. “I feel as if I was the catalyst for this loss. I also want to apologize to this organization and the fans.”


NOTES: Patriots RB Danny Woodhead reportedly has signed a contract extension, but he refused to confirm it. “I’m very happy to be here,” Woodhead said three times when asked about the deal. … Lions DT Ndamukong Suh had his eighth sack, breaking the team rookie record set by Tracy Scroggins in 1992. … Belichick has 172 victories, moving past Joe Gibbs for 11th place on the NFL career list. Belichick also joined Tom Landry as the only coaches with at least 10 straight winning seasons with the same team since the 1970 merger. … The Lions were the last team in the league to give up a TD pass to Brady, who made his NFL debut against them in 2000 and won a start against them in 2006.