<template>
  <div class="page md:flex md:justify-between">
    <div class="page-title">医师认证</div>
    <div class="page-top"><div class="swiper bg-pink-100"></div></div>
    <div class="page-content">
      <div class="doctor-info px-4 pt-4 md:pt-0">
        <div class="name pb-4">宋医师</div>
        <div class="tag pb-1">主任医师|从业24年|皮肤美容专家</div>
        <div class="code pb-1">从业资格证编号：ZHIP1710086</div>
        <div class="club-name">所在机构：武汉市武昌区可素美医疗美容门诊部</div>
      </div>
      <div class="section param-list pb-4">
        <div class="param px-4 pt-4">
          <div class="name py-2">个人简介:</div>
          <div class="content">
            宋医师，医学博士，擅长痤疮（痘痘）是令很多青年男女烦恼的
            问题，由于不够重视延误治疗或者处理不当，没有使用先进的物
            理局部治疗，大部分人或多或少遗留了令人遗憾的瘢痕。这可怎
            么办呢？超脉冲CO2点阵激光——痤疮瘢痕治疗金标准。清洁。
          </div>
        </div>
        <div class="param px-4 pt-4">
          <div class="name py-2">擅长:</div>
          <div class="content">擅长痤疮（痘痘）、皮肤病。</div>
        </div>
      </div>
      <div class="divider"></div>
      <div class="device-list p-4">
        <div class="title">具备操作资格设备</div>
        <div class="list">
          <div class="device flex items-center py-4">
            <img class="cover" src="https://picsum.photos/400/400" />
            <div class="info">
              <div class="name">日本水素水细胞仪</div>
              <div class="brand mt-2">品牌：SKINREX</div>
            </div>
          </div>
          <div class="device flex items-center py-4">
            <img class="cover" src="https://picsum.photos/400/400" />
            <div class="info">
              <div class="name">日本水素水细胞仪</div>
              <div class="brand mt-2">品牌：SKINREX</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

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

<style scoped lang="scss">
// pc 端
@media screen and (min-width: 768px) {
  .page {
    position: relative;
    width: 1200px;
    height: 612px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
    background-color: #fff;
    box-sizing: border-box;
    padding: 16px;
    padding-right: 0;
  }

  .page-title {
    position: absolute;
    font-size: 24px;
    color: #333;
    top: -50px;
    left: 0;
  }

  .page-top {
    .swiper {
      width: 580px;
      height: 580px;
    }
  }
  .page-content {
    width: 580px;
    padding: 0 24px;
    overflow-y: auto;
    .doctor-info {
      line-height: 1.6;
      .name {
        font-size: 24px;
        color: #101010;
        font-weight: bold;

        &::after {
          content: '';
          display: inline-block;
          width: 76px;
          height: 28px;
          background: url(https://static.caimei365.com/www/authentic/pc/icon-doctor-level.png);
          background-size: 76px 28px;
          vertical-align: -5px;
          margin-left: 8px;
        }
      }
      .tag {
        font-size: 14px;
        color: #909399;
      }
      .code,
      .club-name {
        font-size: 14px;
        color: #404040;
      }
    }

    .param-list {
      .param {
        .name {
          font-size: 18px;
          color: #101010;
          font-weight: bold;
        }
        .content {
          font-size: 14px;
          color: #404040;
          line-height: 1.6;
          text-align: justify;
        }
      }
    }

    .device-list {
      .title {
        padding: 16px;
        font-size: 20px;
        font-weight: bold;
        color: #404040;
        background-color: #f3f5f6;
      }
      .list {
        display: flex;
        align-items: center;
        flex-direction: column;
        .device {
          width: 100%;
          box-sizing: border-box;
          border-bottom: 1px solid #d8d8d8;
          .cover {
            width: 84px;
            height: 84px;
            display: block;
          }
          .info {
            margin-left: 16px;
            width: 300px;
            .name {
              font-size: 18px;
              color: #101010;
              text-overflow: ellipsis;
              overflow: hidden;
              white-space: nowrap;
            }
            .brand {
              font-size: 14px;
              color: #666666;
              text-overflow: ellipsis;
              overflow: hidden;
              white-space: nowrap;
            }
          }
        }
      }
    }
  }
}

// 移动 端
@media screen and (max-width: 768px) {
  .page-title {
    display: none;
  }
  .page-top {
    .swiper {
      width: 100vw;
      height: 100vw;
    }
  }
  .page-content {
    .divider {
      height: 3.2vw;
      background-color: #f7f7f7;
    }
    .doctor-info {
      line-height: 1.6;
      .name {
        font-size: 5vw;
        color: #101010;
        font-weight: bold;

        &::after {
          content: '';
          display: inline-block;
          width: 13.6vw;
          height: 5vw;
          background: url(https://static.caimei365.com/www/authentic/h5/icon-doctor-level.png);
          background-size: 13.6vw 5vw;
          vertical-align: -0.8vw;
          margin-left: 1.2vw;
        }
      }
      .tag {
        font-size: 3vw;
        color: #909399;
      }
      .code,
      .club-name {
        font-size: 3.2vw;
        color: #404040;
      }
    }

    .param-list {
      .param {
        .name {
          font-size: 3.8vw;
          color: #101010;
          font-weight: bold;
        }
        .content {
          font-size: 3.2vw;
          color: #404040;
          line-height: 1.6;
          text-align: justify;
        }
      }
    }

    .device-list {
      .title {
        font-size: 4vw;
        color: #101010;
        font-weight: bold;
      }
      .list {
        display: flex;
        align-items: center;
        flex-direction: column;
        .device {
          width: 100%;
          box-sizing: border-box;
          border-bottom: 0.1vw solid #d8d8d8;
          .cover {
            width: 19.6vw;
            height: 19.6vw;
            display: block;
          }
          .info {
            margin-left: 3.2vw;
            width: 66vw;
            .name {
              font-size: 3.6vw;
              color: #101010;
              text-overflow: ellipsis;
              overflow: hidden;
              white-space: nowrap;
            }
            .brand {
              font-size: 3vw;
              color: #666666;
              text-overflow: ellipsis;
              overflow: hidden;
              white-space: nowrap;
            }
          }
        }
      }
    }
  }
}
</style>
