<template>
  <div class="summary-wrapper">
    <div class="summary-header">
      <div class="icon1">
        <img src="./icon1.svg" alt="">
      </div>
      <div class="text text-tip-1">{{ '智库报告总结摘要' }}</div>
      <div class="icon2">
        <img src="./icon2.svg" alt="">
      </div>
    </div>
    <div class="summary-main">
      <slot name="summary-content"></slot>
    </div>
  </div>
</template>

<style lang="scss">
.summary-wrapper {
  width: 100%;
  height: 100%;
  // background: linear-gradient(90deg, var(--color-primary-10) 0%, var(--bg-white-100) 100%) ;
  background: url('./bg.svg') no-repeat;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #E7F3FF;

  .summary-header {
    margin-top: 16px;
    margin-left: 24px;
    width: 199px;
    height: 32px;

    border: 1px solid var(--color-primary-100);
    border-radius: 16px;
    background: var(--color-primary-10);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    .icon1 {
      width: 15px;
      height: 12px;

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

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

    .icon2 {
      width: 6px;
      height: 12px;

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

  .summary-main {
    margin: 0 auto;
    margin-top: 24px;
    width: calc(100% - 52px);
    height: calc(100% - 92px);
  }
}
</style>