Design and synthesis of micro–meso–macroporous polymers with versatile active sites and excellent activities in the production of biofuels and fine chemicals