A closer look at Stellar effective temperature
Effective temperature is the temperature a blackbody would need to emit the same total flux per unit surface area as a star.
It summarizes the overall output even when a real stellar spectrum has many lines.
A cool red giant can outshine a hot dwarf because its enormous emitting area can outweigh its lower surface flux. For the surrounding ideas, see Blackbody radiation.
Want to learn more about Stellar effective temperature? Effective temperature on Wikipedia.

