">
                        <i class="fas fa-copy mr-1"></i> 复制代码
                    </button>
                    <button @click="showPreviewModal = false"
                            class="px-4 py-2 bg-primary text-white rounded-md hover:bg-blue-600">
                        关闭
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- 展开代码模态框 -->
    <div v-if="showExpandedCodeModal"
         @click="closeExpandedCodeModal"
     