Text this: Synergistic effect of porous structure and gradient structure in carbon foam to boost terahertz absorption