A Structure-Agnostic Co-Tuning Framework for LLMs and SLMs in Cloud-Edge Systems