<script setup lang="ts">
// 打开AI使用教程（跳转到外部链接）
function openTutorial() {
  window.open('https://ccnetcore.com/article/3a1bc4d1-6a7d-751d-91cc-2817eb2ddcde', '_blank');
}
</script>

<template>
  <div class="ai-tutorial-btn-container" data-tour="ai-tutorial-link">
    <div
      class="ai-tutorial-btn"
      title="点击跳转YiXinAI玩法指南专栏"
      @click="openTutorial"
    >
      <!-- PC端显示文字 -->
      <span class="pc-text">文档</span>
    </div>
  </div>
</template>

<style scoped lang="scss">
.ai-tutorial-btn-container {
  display: flex;
  align-items: center;

  .ai-tutorial-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #E6A23C;
    transition: all 0.2s;

    &:hover {
      color: #F1B44C;
      transform: translateY(-1px);
    }

    // PC端显示文字，隐藏图标
    .pc-text {
      display: inline;
      margin: 0 12px;
    }

    .mobile-icon {
      display: none;
    }
  }
}
</style>
