Chiral symmetry restoration in heavy-ion collisions at intermediate energies