Smoothness-Adaptive Dynamic Pricing with Nonparametric Demand Learning