.page-shop-category {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750rpx;
  margin: auto;

  .main {
    display: flex;
    height: calc(100% - 100rpx - env(safe-area-inset-bottom));
    background: #fff;

    .first-menu {
      width: 180rpx;
      background: #f2f3f7;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      position: relative;
      padding-bottom: calc(50rpx + 50rpx + env(safe-area-inset-bottom));

      &::after {
        min-height: calc(100% + 2rpx);
      }

      .item {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 20rpx 10rpx;
        line-height: 50rpx;
        text-align: center;
        color: #666;
        position: relative;
        word-break: break-word;
      }

      .item.active {
        color: #333;
        font-size: 28rpx;
        font-weight: 600;
        background: #fff;

        &::before {
          position: absolute;
          left: 0;
          top: 50%;
          display: block;
          width: 6rpx;
          height: 28rpx;
          content: " ";
          font-size: 0;
          background: #fc1b35;
          border-radius: 0 6rpx 6rpx 0;
          transform: translateY(-50%);
        }
      }
    }

    .subclass {
      flex: 1;
      padding: 30rpx;
      padding-bottom: calc(50rpx + 50rpx + env(safe-area-inset-bottom));
      box-sizing: border-box;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      position: relative;

      &::after {
        min-height: calc(100% + 2rpx);
      }

      .adv-img {
        width: 100%;
        height: 200rpx;
        font-size: 0;
        margin-bottom: 40rpx;
        border-radius: 10rpx;
        display: flex;
        justify-content: center;
      }

      .sub-con {
        margin-bottom: 40rpx;

        &:last-child {
          margin-bottom: 30rpx;
        }

        .third-menu {
          display: flex;
          flex-wrap: wrap;

          .item {
            width: 33.33%;
            margin-top: 20rpx;

            &:nth-child(3n+1) {
              .img {
                margin-left: 0;
              }

              .text {
                margin-left: 0;
              }
            }

            &:nth-child(3n) {
              .img {
                margin-right: 0;
              }

              .text {
                margin-right: 0;
              }
            }

            .img {
              width: 150rpx;
              height: 150rpx;
              font-size: 0;
              border-radius: 10rpx;
              overflow: hidden;
              margin: auto;
              background: #f8f8f8;
            }

            .text {
              width: 150rpx;
              text-align: center;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              margin: 0 auto;
              margin-top: 10rpx;
            }
          }
        }
      }
    }
  }
}

// 空占位
:deep(empty-all-tips),
:deep(.component-empty-all-tips) {
  width: 100%;
}
:deep(.empty-icon) image,
:deep(.empty-icon) uni-image {
  width: 200rpx;
  height: 200rpx;
}

/* 兼容小程序样式 */
/* #ifdef MP-WEIXIN */
.page-shop-category {
  .main {
    height: calc(100% - 30rpx - env(safe-area-inset-bottom));

    .subclass {
      padding-bottom: 50rpx;
    }

    .first-menu {
      padding-bottom: 50rpx;
    }
  }
}

/* #endif */


