<template>
  <div class="headline_container">
    <h2 class="title_h2">
      {{ flip ? title : '' }}
      <span class="theme">{{ themeTitle }}</span>
      {{ !flip ? title : '' }}
    </h2>
    <div class="scale">
      <p class="line1" v-if="line1">{{ line1 }}</p>
      <p class="line2" v-if="line2">{{ line2 }}</p>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  themeTitle: {
    type: String,
    default: '',
  },
  flip: {
    type: Boolean,
    default: false,
  },
  title: {
    type: String,
  },
  line1: {
    type: String,
  },
  line2: {
    type: String,
  },
})
</script>

<style lang="scss" scoped>
.headline_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0;
  box-sizing: border-box;
  .title_h2 {
    font-size: 11px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    color: #191919;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  .theme {
    color: #f94622;
  }
  .scale {
    font-size: 14px;
    transform: scale(0.5);
    width: 200%;
    .line1 {
      font-family: Source Han Sans CN;
      font-weight: 300;
      color: #595959;
      line-height: 16px;
      text-align: center;
    }
    .line2 {
      font-family: Alibaba PuHuiTi;
      font-weight: 300;
      color: #595959;
      text-align: center;
      line-height: 9px;
      margin-top: 4px;
    }
  }
}
</style>
