Your interpretation of the Carno circle is wrong. At the end, it says that there is a state function entropy. It does not say, that the entropy is a function of temperature only.
Q=f (T) is the mathematical expression of "Carnot efficiency is only related to the temperature of the heat source". DQ=df (T) The second law of thermodynamics in mathematics (S) is derived from this and the definition of dQ cannot be changed arbitrarily.
In fact, the second law of thermodynamics changes the mathematical representation of dQ.