<template>
  <div
    style="
      background: url(https://file.rongcyl.cn/festatic/bkm/bg_i.png) no-repeat center center;
      background-size: contain;
    "
  >
    <img src="https://file.rongcyl.cn/festatic/bkm/banner.png" class="w-full" />
    <div
      style="
        background: rgba(0, 0, 0, 0.85);
        background-image: url(https://file.rongcyl.cn/festatic/bkm/box.png);
        background-size: cover;
      "
    >
      <div class="flex justify-between">
        <img src="https://file.rongcyl.cn/festatic/bkm/activity.png" class="area" />
        <img src="https://file.rongcyl.cn/festatic/bkm/task.png" class="area" />
        <img src="https://file.rongcyl.cn/festatic/bkm/invite.png" class="area" />
      </div>

      <div class="flex justify-between m-2 co">
        <img src="https://file.rongcyl.cn/festatic/bkm/center.png" class="center" />
        <div class="clicks flex-1 overflow-hidden">
          <div>
            <div class="ml-2 mt-2 inline-block relative" v-for="c in click">
              <img src="https://file.rongcyl.cn/festatic/bkm/click.png" />
              <div class="absolute top-4 left-0 text-center right-0">
                <div class="bold fs12">闯关9-2</div>
                <div class="fs11 text-zinc-600">闯关9-2</div>
              </div>
            </div>
          </div>
        </div>
        <img src="https://file.rongcyl.cn/festatic/bkm/more.png" class="more" />
      </div>

      <div class="flex justify-between m-2">
        <img src="https://file.rongcyl.cn/festatic/bkm/c1.png" class="c" />
        <img src="https://file.rongcyl.cn/festatic/bkm/c2.png" class="c" />
        <img src="https://file.rongcyl.cn/festatic/bkm/c3.png" class="c" />
        <img src="https://file.rongcyl.cn/festatic/bkm/c4.png" class="c" />
      </div>

      <div class="tabs">
        <div class="tab active">全部</div>
        <div class="tab">FIRST赏</div>
        <div class="tab">LAST赏</div>
        <div class="tab">全套赏</div>
        <div class="tab">无限赏</div>
      </div>

      <div class="cards">
        <div class="card relative" v-for="i in arr">
          <img
            src="https://file.rongcyl.cn/festatic/bkm/tag.png"
            class="absolute top-0 left-0"
            style="width: 62px; height: 24px"
          />
          <img src="https://file.rongcyl.cn/festatic/bkm/card.png" style="width: 40vw; height: 40vw" />
          <div class="mt-1">冲四层闯关be be be</div>
          <div class="flex justify-between" style="font-size: 13px; margin-top: 6px">
            <div
              style="
                border-radius: 3px;
                height: 24px;
                line-height: 24px;
                text-align: center;
                background: #fc5b20;
                color: #fff;
                padding: 0 5px;
              "
            >
              创意热销
            </div>
            <div>
              <span style="font-size: 14px; margin-right: 4px; color: #fc5b20" class="fontPFSCS">999</span>
              <span style="color: #666666">销量</span>
            </div>
          </div>
          <div style="color: #fc5b20; margin-top: 10px; font-size: 20px" class="fontPFSCS">￥990</div>
        </div>
      </div>
      <div class="p">
        <img src="https://file.rongcyl.cn/festatic/bkm/p.png" />
        <div class="absolute text-white bottom-2 fs11 text-center left-0 right-0">3333</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: 4,
      click: 3,
    }
  },

  methods: {},
}
</script>

<style scoped lang="scss">
.area {
  width: 168px;
  height: 88px;
}
.c {
  width: 82px;
  height: 47px;
}
.center {
  width: 38px;
  height: 98px;
}
.clicks {
  height: 98px;
  background-image: linear-gradient(to bottom, #ffaea6, #ff654c);
  img {
    height: 82px;
    width: 82px;
  }
}
.more {
  width: 28px;
  height: 98px;
}
.p {
  position: fixed;
  bottom: 120px;
  right: 20px;
  img {
    width: 50px;
    height: 50px;
  }
}

.tabs {
  display: flex;
  justify-content: space-around;
  .tab {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    padding: 10px 0;
    &.active {
      font-weight: 600;
      border-bottom: 2px solid #fc5b20;
      color: #fc5b20;
    }
  }
}
.cards {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  flex-wrap: wrap;
  .card {
    box-sizing: border-box;
    width: 48%;
    height: 270px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
    img {
      width: 160px;
      height: 160px;
      border-radius: 8px;
    }
  }
}
</style>
