Christian McCaffrey gave the 49ers a healthy lead after catching a dazzling TD pass from rookie QB Brock Purdy.