Explaining the Complex Task Reasoning of Large Language Models with Template-Content Structure