<template>
  <div class="page">
    <div class="page-top">
      <div class="title">
        以色列无针水光JDV/优斐斯/瑞漾小白盒/希腊YELLOW
        ROSE专业线贵妇级除皱产品--希腊 YELLOW ROSE黄玫瑰弹力除皱精华产品
      </div>
      <div class="date">2022-02-16 17:42</div>
    </div>
    <div class="page-content">一些内容</div>
  </div>
</template>

<script>
export default {
  layout: 'app',
}
</script>

<style scoped lang="scss">
/* scss中可以用mixin来扩展 */
@mixin ellipsis($line: 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}
// 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 {
      @include ellipsis(2);
      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) {
}
</style>
