From Static to Dynamic: A Continual Learning Framework for Large Language Models