Black Hole Thermodynamic Ensembles, Euclidean Action and Legendre Transformation - Liang Ma (2026)