Temperature-dependent evolution of topological surface states