<template>
  <div class="ai-pane-wrapper">
    <div class="header">
      <div class="icon">
        <img src="./ai-icon.svg" alt="">
      </div>
      <div class="title text-title-3-show">{{ '智能总结' }}</div>
    </div>
    <div class="content text-regular">{{ aiContent }}</div>
  </div>
</template>

<script setup>

const props = defineProps({
  aiContent: {
    type: String,
    default: ''
  }
})

</script>

<style lang="scss">
.ai-pane-wrapper {
  width: 100%;
  height: 156px;
  background: var(--color-primary-2);
  box-sizing: border-box;
  padding: 12px 16px;

  .header {
    width: 126px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    background: var(--color-primary-10);

    .icon {
      width: 20px;
      height: 16px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .title {
      color: var(--color-primary-100);
    }
  }

  .content {
    margin-top: 8px;
    width: 100%;
    height: 90px;
    box-sizing: border-box;
    padding: 0 12px;
    color: var(--color-primary-100);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 控制显示的行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    /* 防止长单词溢出 */
  }
}
</style>