<template>
  <card class="cps-demo-title_np" title="理赔案例">
    <div class="cps-demo">
      <div class="cps-demo-header">
        <h4>1对1专员协助理赔</h4>
        <small>因为专业 所以放心</small>
      </div>
      <div class="cps-demo-body">
        <div class="cps-demo-person">
          <span>吴先生</span>
          <span>46岁 北京 有社保</span>
        </div>
        <div class="cps-demo-list">
          <div class="cps-demo-list-item">
            <div class="cps-demo-list-item-title">投保</div>
            <div class="cps-demo-list-item-content">
              2018年6月29日，吴先生为自己投保了一份万家保·重疾轻症险，保额20万，并续保。
            </div>
          </div>
          <div class="cps-demo-list-item">
            <div class="cps-demo-list-item-title">投保</div>
            <div class="cps-demo-list-item-content">
              2019年9月16日，吴先生意外烫伤双下肢皮肤，达到浅Ⅲ°烧伤，烧伤面积达20%。
            </div>
          </div>
          <div class="cps-demo-list-item">
            <div class="cps-demo-list-item-title">轻症理赔</div>
            <div class="cps-demo-list-item-content">
              2019年9月17日，吴先生后向我司报案，经核实符合该保险中轻症“特定面积Ⅲ度烧伤”的诊断赔付标准，给予4万保险金赔付。
            </div>
          </div>
          <div class="cps-demo-list-item">
            <div class="cps-demo-list-item-title">重疾理赔</div>
            <div class="cps-demo-list-item-content">
              2020年1月3日，吴先生突发胸痛咯血，后诊断为右肺非小细胞性肺癌，经我司核实后确认为保险责任，一次性给予20万元的重大疾病保险金。
            </div>
          </div>
        </div>
      </div>
    </div>
  </card>
</template>

<script>
import card from "@/components/Card";
export default {
  name: "CpsDemo",
  components: {
    card
  },
  props: {
    demoData: {
      type: Object,
      default() {}
    }
  }
};
</script>

<style lang="less">
@import "../../../style/var.less";
.cps-demo {
  &-title_np {
    .card-header {
      padding-bottom: 0;
    }
  }
  &-header {
    background: url(../../../assets/goods/detail/assistant-card.png) top no-repeat;
    background-size: contain;
    padding: 24px 24px 21.5px;
    h4 {
      margin-top: 20px;
      font-size: @font-size-20;
      color: @black;
      line-height: @line-height-lg;
      font-weight: @font-weight-bold;
    }
    small {
      margin-top: 9.5px;
      padding-left: 8.8px;
      display: block;
      color: @white;
      font-size: @font-size-12 - 1;
    }
  }
  &-body {
    background-color: @gray-1;
    padding: @padding-sm + 1 @padding-md;
    border-radius: 0 0 @border-radius-md @border-radius-md;
  }
  &-person {
    background-color: @white;
    border-radius: @border-radius-md;
    font-size: @font-size-14 + 1;
    font-weight: @font-weight-bold;
    padding: @padding-xs @padding-sm;
    line-height: @line-height-lg;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 29px;
  }
  &-list {
    &-item {
      position: relative;
      display: flex;
      padding-bottom: 20px;
      &-title {
        font-size: @font-size-16;
        font-weight: @font-weight-bold;
        color: @black;
        width: 32px;
        line-height: @line-height-md;
      }
      &-content {
        flex: 1;
        font-size: @font-size-11;
        color: @gray-5;
        line-height: @line-height-sm + 1;
        padding-left: 50px;
        position: relative;
        &::after,
        &::before {
          content: " ";
          display: block;
          position: absolute;
          top: 4px;
          left: 0;
        }
        &::before {
          height: 12px;
          width: 12px;
          background-color: #d8d8d8;
          border-radius: @border-radius-max;
          left: 20px;
        }
        &::after {
          width: 0;
          height: calc(100% + 20px);
          border-left: 1px solid #d8d8d8;
          left: 26px;
        }
      }
      &:last-child {
        .cps-demo-list-item-content::after {
          display: none;
        }
      }
    }
  }
}
</style>
