49ers beat Panthers; will go against Seahawks next Sunday