<template>
  <div class="box-card">
    <div>
      <span class="title">{{ title }}</span>
    </div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: { type: String }
  }
}
</script>

<style lang="scss" scoped>
.box-card{
  padding: 0 22px 30px;
  position: relative;
  margin-bottom: 30px;
  &::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    border-bottom: 1px dashed #C0C0C0;
  }
  .title{
    font-size: 18px;
    font-weight: bold;
    color: #666666;
    line-height: 100%;
    position: relative;
    &::after{
      content: '';
      position: absolute;
      bottom: 4px;
      left: 0;
      width: 100%;
      height: 5px;
      background: rgba(104, 184, 164, .8)
    }
  }
}
</style>
