Thermodynamically consistent phase-field modeling and numerical simulation for reactive two-phase fluid–solid dynamics