<template>
  <div class="page">
    <div class="page-top">
      <div class="title" v-text="articleInfo.articleTitle"></div>
      <div class="date">{{ articleInfo.createTime | dateFormat }}</div>
    </div>
    <div class="page-content" v-html="html"></div>
  </div>
</template>

<script>
import articleDetailMixin from '@/mixins/articleDetail'
export default {
  layout: 'app-hyt',
  mixins: [articleDetailMixin],
}
</script>

<style scoped lang="scss">
// pc 端
@media screen and (min-width: 768px) {
  .page {
    width: 1200px;
    margin: 24px auto;
    box-sizing: border-box;
    background: #fff;
    padding: 24px;
  }
  .page-top {
    padding-bottom: 24px;
    border-bottom: 1px solid #d8d8d8;
    .title {
      font-size: 28px;
      color: #101010;
      line-height: 1.6;
      text-align: justify;
    }
    .date {
      font-size: 18px;
      color: #b2b2b2;
      margin-top: 24px;
    }
  }
  .page-content {
    padding-top: 24px;
    color: #404040;
  }
}

// 移动 端
@media screen and (max-width: 768px) {
  .page {
    box-sizing: border-box;
    background: #fff;
    padding: 4vw;
  }
  .page-top {
    .title {
      font-size: 4.2vw;
      color: #101010;
      line-height: 1.6;
      text-align: justify;
    }
    .date {
      font-size: 3.2vw;
      color: #b2b2b2;
      margin-top: 4vw;
    }
  }
  .page-content {
    padding-top: 24px;
    color: #404040;
  }
}
</style>
