What cold? 49ers get tough in wild-card win over Packers