index.scss 1.63 KB
@import '@/styles/_support';

.page {}

.bgc {
  background-color: #f7f7f7;
}

// 轮播banner
.banner {
  background-color: #f2f2f2;
  @extend .bb;
  width: $screenWidth;

  .swiper {
    width: $screenWidth;
    height: 400px;

    .img {
      width: $screenWidth;
      height: 400px;
    }
  }
}

// 类别选择
.sel {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;

  &-item {
    @extend .fcc;
    @extend .bb;
    padding: 0 14px;
    text-align: center;
    margin: 0 22px;
    color: #ffffff;
    width: 92px;
    height: 92px;
    border-radius: 92px;
    background-color: #ffcc33;
  }

  &-item-1 {}

  &-item-2 {
    background-color: #ffcccc;
  }

  &-item-3 {
    background-color: #cc9999;
  }

  &-item-4 {
    background-color: #cccc99;
  }

  &-item-my {
    background-color: #ffcc99;
  }
}

// 产品推荐
.product {
  margin: 72px auto 0;
  width: $contentWidth;

  &-title {
    text-align: center;
    font-size: 32px;
    color: #c78f8f;
  }

  &-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    $itemWid: 330px;

    .item {
      background-color: #ffffff;
      width: $itemWid;
      border-radius: 8px;
      margin-bottom: 32px;

      .image-wrap {
        width: $itemWid;
        height: $itemWid;
      }

      .image {
        width: $itemWid;
        height: $itemWid;
        @include border-top-radius(8px);
      }

      .desc {
        border-top: solid 1px #f7f7f7;
        @extend .bb;
        width: 325px;
        padding: 12px 20px;
        font-size: 24px;
        color: #333333;
        @include ellipsis(1);
      }
    }
  }
}