A unified Eulerian variational framework for multiphase fluid-structure interaction