<template>
  <div class="welcome-section">
    <div class="welcome-header">
      <img class="avatar" src="" alt="Ant Design X" />
      <div class="welcome-info">
        <h2>Hello</h2>
        <p>Base on Ant Design, AGI product interface solution, create a better intelligent vision~</p>
      </div>
      <div class="action-buttons">
        <button class="icon-btn"></button>
        <button class="icon-btn"></button>
      </div>
    </div>

    <div class="suggestion-section">
      <h3>Do you want?</h3>
      <div class="cards-container">
        <!-- Hot Topics 卡片 -->
        <div class="suggestion-card">
          <div class="card-header">
            <img src="../../assets/svg/hot-for-ux.svg" alt="hot topics" class="tab-icon" />
            <h4>Hot Topics</h4>
          </div>
          <p class="card-subtitle">What are you interested in?</p>
          <div class="suggestion-items">
            <div 
              v-for="(qa, index) in currentQaPairs" 
              :key="index" 
              class="suggestion-item"
              @click="handleQaClick(qa)"
            >
              {{ qa.question }}
            </div>
          </div>
        </div>

        <!-- Design Guide 卡片 -->
        <div class="suggestion-card">
          <div class="card-header">
            <img src="../../assets/svg/read.svg" alt="design guide" class="tab-icon" />
            <h4>Design Guide</h4>
          </div>
          <p class="card-subtitle">How to design a good product?</p>
          <div class="suggestion-items">
            <div 
              v-for="(guide, index) in currentDesignGuides" 
              :key="index" 
              class="suggestion-item"
              @click="handleQaClick(guide)"
            >
              {{ guide.question }}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const currentQaPairs = ref([]);
const currentDesignGuides = ref([]);

const handleQaClick = (qa) => {
  emit('qa-click', qa);
};

defineEmits(['qa-click']);
defineProps({
  currentQaPairs: {
    type: Array,
    default: () => []
  },
  currentDesignGuides: {
    type: Array,
    default: () => []
  }
});
</script>

<style lang="less" scoped>
// 将原来 report.vue 中的相关样式复制过来
</style> 