The comparison of optical variability of broad-line Seyfert 1 and narrow-line Seyfert 1 galaxies from the view of Pan-STARRS