<template>
  <div class="page">
    <div class="page-top">
      <div class="swiper"></div>
      <div class="club-info">
        <img class="logo" src="https://picsum.photos/200/200" />
        <div class="name">丽颜科美复兴广场店</div>
        <div class="remark">认证设备：LDM®-noblesse</div>
      </div>
    </div>
    <div class="page-content">
      <div class="club-info">
        <div class="address">
          深圳市宝钢区一时路街188号好吃不上火美丽广场1105店
        </div>
        <div class="mobile">0755-25777189</div>
      </div>
      <!-- 列表标题 -->
      <div class="title">明星操作师</div>
      <!-- 列表 -->
      <div class="list">
        <div class="section flex items-center">
          <img class="cover" src="https://picsum.photos/200/200" />
          <div class="info">
            <div class="name">宋医师</div>
            <div class="tag">皮肤美容科 | 主任医师│从业24年</div>
            <div class="more" @click="toDetail">点击查看</div>
          </div>
        </div>
        <div class="section flex items-center">
          <img class="cover" src="https://picsum.photos/200/200" />
          <div class="info">
            <div class="name">宋医师</div>
            <div class="tag">皮肤美容科 | 主任医师│从业24年</div>
            <div class="more">点击查看</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  layout: 'app-ldm',
  methods: {
    toDetail() {
      this.$router.push('/ldm/approve/personnel/operate/detail')
    },
  },
}
</script>

<style scoped lang="scss">
@media screen and (min-width: 768px) {
  .page {
    display: flex;
    justify-content: space-between;
    width: 1035px;
    margin: 0 auto;
    position: relative;
    padding-top: 500px;
    padding-bottom: 60px;
  }
  .page-top {
    .swiper {
      width: 452px;
      height: 452px;
      background: pink;
    }

    .club-info {
      width: 100%;
      position: absolute;
      top: 80px;
      text-align: center;
      .logo {
        display: block;
        width: 158px;
        height: 158px;
        margin: 0 auto;
        border-radius: 50%;
        box-shadow: 0 4px 9px rgba(0, 0, 0, 0.34);
      }
      .name {
        font-size: 50px;
        font-weight: bold;
        color: #000000;
        margin: 39px 0 26px;
      }
      .remark {
        font-size: 25px;
        font-weight: bold;
        color: #000000;
      }
    }
  }

  .page-content {
    width: 507px;
    // height: 452px;
    // overflow-y: auto;

    .club-info {
      font-size: 19px;
      color: #000000;
      .address,
      .mobile {
        position: relative;
        padding: 36px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.169);
        padding-left: 26px;

        &::after {
          content: '';
          display: block;
          width: 20px;
          height: 20px;
          position: absolute;
          left: 0;
          top: 40px;
          background-size: auto 20px;
          background-repeat: no-repeat;
        }
      }

      .mobile {
        border-bottom: 1px solid rgba(0, 0, 0, 0.169);
        &::after {
          background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact.png);
        }
      }

      .address {
        &::after {
          background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-address.png);
        }
      }
    }
  }

  .title {
    font-size: 21px;
    color: #000;
    font-weight: bold;
    padding: 40px 0;

    &::before {
      content: '';
      display: inline-block;
      width: 24px;
      height: 28px;
      background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-badge-black.png)
        no-repeat center;
      background-size: 24px;
      vertical-align: -7px;
      margin-right: 8px;
    }
  }

  .list {
    display: flex;
    flex-direction: column;
    align-items: center;
    .section {
      width: 100%;
      margin-bottom: 32px;
      .cover {
        display: block;
        width: 140px;
        height: 140px;
        border-radius: 1.7vw;
      }
      .info {
        position: relative;
        flex: 1;
        margin-left: 18px;
        .name {
          font-size: 26px;
          color: #000;
          font-weight: bold;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        .tag {
          width: 206px;
          font-size: 14px;
          color: #000;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          margin-top: 15px;
        }
        .more {
          position: absolute;
          bottom: 0;
          right: 0;
          font-size: 19px;
          color: #0080ed;
          cursor: pointer;
          &::after {
            content: '>';
            margin-left: 8px;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .page-top {
    position: relative;
    height: 137vw;

    .swiper {
      width: 100vw;
      height: 100vw;
      background: pink;
    }

    .club-info {
      width: 100%;
      position: absolute;
      bottom: 0;
      text-align: center;
      .logo {
        display: block;
        width: 29.5vw;
        height: 29.5vw;
        margin: 0 auto;
        border-radius: 50%;
        box-shadow: 0 0.4vw 0.9vw rgba(0, 0, 0, 0.34);
      }
      .name {
        font-size: 5vw;
        font-weight: bold;
        color: #000000;
        margin: 6vw 0;
      }
      .remark {
        font-size: 2.5vw;
        font-weight: bold;
        color: #000000;
      }
    }
  }

  .page-content {
    .club-info {
      font-size: 3vw;
      color: #000000;
      padding: 6vw 3vw;
      .address,
      .mobile {
        position: relative;
        padding: 4vw 0;
        border-top: 0.1vw solid rgba(0, 0, 0, 0.169);
        padding-left: 8.6vw;

        &::after {
          content: '';
          display: block;
          width: 4vw;
          height: 4vw;
          position: absolute;
          left: 4.3vw;
          top: 4vw;
          background-size: auto 3.6vw;
          background-repeat: no-repeat;
        }
      }

      .mobile {
        border-bottom: 0.1vw solid rgba(0, 0, 0, 0.169);
        &::after {
          background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact.png);
        }
      }

      .address {
        &::after {
          background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-address.png);
        }
      }
    }
  }

  .title {
    font-size: 3.4vw;
    color: #000;
    font-weight: bold;
    text-align: center;

    &::before {
      content: '';
      display: inline-block;
      width: 3.7vw;
      height: 4.4vw;
      background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-badge-black.png)
        no-repeat center;
      background-size: 3.7vw;
      vertical-align: -0.8vw;
      margin-right: 1vw;
    }
  }

  .list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6vw;
    .section {
      width: 95vw;
      padding: 5vw;
      background: #f1f1f1;
      border-radius: 2.4vw;
      box-sizing: border-box;
      margin-bottom: 2.4vw;
      .cover {
        display: block;
        width: 21.8vw;
        height: 21.8vw;
        border-radius: 1.7vw;
      }
      .info {
        position: relative;
        flex: 1;
        margin-left: 2.7vw;
        .name {
          font-size: 4.2vw;
          color: #000;
          font-weight: bold;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        .tag {
          width: 30vw;
          font-size: 2.2vw;
          color: #000;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          margin-top: 2.5vw;
        }
        .more {
          position: absolute;
          bottom: 0;
          right: 0;
          font-size: 3vw;
          color: #0080ed;
          &::after {
            content: '>';
            margin-left: 1vw;
          }
        }
      }
    }
  }
}
</style>
