<template>
  <div class="page">
    <div class="page-top flex flex-col justify-center items-center">
      <img class="logo" src="https://picsum.photos/200/200" />
      <span class="name mt-2">上海品辉医疗科技有限公司</span>
    </div>
    <div class="page-content p-4 md:my-4">
      <textarea
        class="control p-2"
        placeholder="请在此处输入您的宝贵意见（限200字）"
      ></textarea>
      <div class="submit mt-6">提交</div>
    </div>
  </div>
</template>

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

<style scoped lang="scss">
// pc 端
@media screen and (min-width: 768px) {
  .page-top {
    height: 360px;
    background: url(https://static.caimei365.com/www/authentic/pc/bg-doc.png);
    background-size: auto 360px;
    .logo {
      display: block;
      width: 120px;
      height: 120px;
      border-radius: 50%;
    }
    .name {
      font-size: 30px;
      color: #fff;
    }
  }
  .page-content {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background-color: #fff;
    .control {
      display: block;
      width: 100%;
      height: 280px;
      border: 1px solid #d8d8d8;
      outline: none;
      box-sizing: border-box;
      font-size: 16px;
      color: #101010;
    }

    .submit {
      text-align: center;
      line-height: 46px;
      width: 326px;
      height: 46px;
      margin-left: auto;
      margin-right: auto;
      border-radius: 4px;
      font-size: 16px;
      background-color: #bc1724;
      color: #fff;
      transition: all 0.2s;
      cursor: pointer;

      &:hover {
        background-color: #a50613;
      }

      &.disabled {
        background-color: #d8d8d8 !important;
      }
    }
  }
}

// 移动 端
@media screen and (max-width: 768px) {
  .page-top {
    height: 46vw;
    background: url(https://static.caimei365.com/www/authentic/h5/bg-feedback.png);
    background-size: auto 46vw;
    .logo {
      display: block;
      width: 14.8vw;
      height: 14.8vw;
      border-radius: 50%;
    }
    .name {
      font-size: 4vw;
      color: #fff;
    }
  }
  .page-content {
    .control {
      display: block;
      width: 100%;
      height: 56vw;
      border: 0.1vw solid #d8d8d8;
      outline: none;
      box-sizing: border-box;
      font-size: 3.2vw;
      color: #101010;
    }

    .submit {
      text-align: center;
      line-height: 11.6vw;
      width: 100%;
      height: 11.6vw;
      border-radius: 0.2vw;
      font-size: 4vw;
      background-color: #bc1724;
      color: #fff;

      &.disabled {
        background-color: #d8d8d8;
      }
    }
  }
}
</style>
