<script lang="ts" setup>
import dvAi from '@/assets/svg/dv-ai.svg'
import { ref } from 'vue'
const visible = ref(true)
</script>
<template>
  <el-popover
    :visible="visible"
    placement="bottom"
    popper-class="ai-popper-tips"
    :width="288"
    show-arrow
  >
    <div class="ai-popper-tips-content">
      <p class="constant">
        你好，我是 DataEase 智能客服<br />点击一下，开启高效解答模式~<br />&nbsp;
      </p>
    </div>
    <template #reference>
      <div class="ai-popper-tips-icon">
        <el-icon style="margin: 2px" class="ai-icon">
          <Icon name="dv-ai"><dvAi class="svg-icon" /></Icon>
        </el-icon>
      </div>
    </template>
  </el-popover>
</template>

<style lang="less">
.ai-popper-tips {
  z-index: 10001 !important;
  padding: 24px !important;
  box-shadow: none !important;
  border: 0px !important;
  background: var(--ed-color-primary) !important;
  .ed-popper__arrow::before {
    border: 1px solid var(--ed-color-primary) !important;
    background: var(--ed-color-primary) !important;
  }
}
.ai-popper-tips-content {
  color: rgba(255, 255, 255, 1);
  .title {
    font-family: var(--de-custom_font, 'PingFang');
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
  }
  .content {
    font-family: var(--de-custom_font, 'PingFang');
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-align: left;
  }
  .bottom {
    line-height: 22px;
    text-align: right;
    button {
      border: 0px !important;
      border-color: #ffffff !important;
      font-weight: 500;
      color: rgba(51, 112, 255, 1) !important;
    }
  }
}

.ai-popper-tips-icon {
  margin: 0 8px;
  z-index: 10003;
  border-radius: 50%;
  background: #ffffff;
  width: 28px;
  height: 28px;
}
</style>
