.page-category {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750rpx;
  margin: auto;
  .search-box {
    background: #fff;
    padding: 20rpx;
    position: relative;
    z-index: 1;
    box-shadow: 0 2rpx 6rpx rgba(0,0,0,.03);
    .search {
      height: 60rpx;
      background: #f2f3f7;
      border-radius: 60rpx;
      display: flex;
      align-items: center;
      .icon {
        width: 24rpx;
        height: 24rpx;
        font-size: 0;
        margin-left: 20rpx;
      }
      .text {
        color: #999;
        margin-left: 10rpx;
      }
    }
  }
  .main {
    display: flex;
    height: calc(100% - 100rpx - var(--mall4j-safe-area-inset-bottom));
    height: calc(100% - 100rpx - 50px - env(safe-area-inset-bottom));
    background: #fff;
    /* #ifdef MP-WEIXIN */
    height: calc(100% - 30rpx - env(safe-area-inset-bottom));
    /* #endif */
    .first-menu {
      width: 180rpx;
      background: #f2f3f7;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      position: relative;
      padding-bottom: calc(50rpx + 50rpx + var(--mall4j-safe-area-inset-bottom));
      /* #ifdef MP-WEIXIN */
      padding-bottom: 50rpx;
      /* #endif */
      &::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;
        &.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 + var(--mall4j-safe-area-inset-bottom));
      box-sizing: border-box;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      position: relative;
      /* #ifdef MP-WEIXIN */
      padding-bottom: 50rpx;
      /* #endif */
      &::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;
        image {
          border-radius: 10rpx;
        }
        .error-image {
          width: 200rpx;
        }
      }
      .sub-con {
        margin-bottom: 40rpx;
        &:last-child {
          margin-bottom: 30rpx;
        }
        .second-menu {
          word-break: break-all;
          line-break: anywhere;
          font-weight: 600;
        }
        .third-menu {
          display: flex;
          flex-wrap: wrap;
          .item {
            width: 33.33%;
            margin-top: 20rpx;
            .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;
            }
          }
        }
      }
    }
  }
}
/* 搜索框 */
/* 内容区 */
.page-category .main .subclass .sub-con .third-menu .item:nth-child(3n+1) .img,
.page-category .main .subclass .sub-con .third-menu .item:nth-child(3n+1) .text {
  margin-left: 0;
}
.page-category .main .subclass .sub-con .third-menu .item:nth-child(3n) .img,
.page-category .main .subclass .sub-con .third-menu .item:nth-child(3n) .text {
  margin-right: 0;
}
/* 兼容小程序样式 */
/* #ifdef MP-WEIXIN */
/* #endif */
