<template>
  <div class="ctitle">
    <span>
        {{title}}
      </span>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data () {
    return {

    }
  }
}
</script>

<style scoped>
.ctitle {
  text-align: center;
  height: 40px;
  line-height: 40px;
  position: relative;
}

.ctitle::before {
  content: '';
  width: 28px;
  height: 28px;
  display: inline-block;
  background: url('https://4dscene.4dage.com/cgaii/PC/images/icon/research-icon.png') no-repeat top left;
  background-size: 100%;
  position: relative;
  top: -10px;
}

span {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  position: relative;
  top:10px;
  letter-spacing: 5px;
}

@media screen and (max-width: 1200px) {
  span {
    letter-spacing: 2px;
    font-size: 24px;
  }
}

@media screen and (max-width: 380px) {
  span {
    font-size: 20px;
  }
  .ctitle::before {
    width: 18px;
    height: 18px;
    left: 12px;
  }
}
</style>
