.page-index {
  max-width: none;
  background: #f2f3f7;
}
/* 搜索框 */
.index {
  .search-box {
    background: #fc1b35;
    padding: 20rpx 30rpx;
    .search {
      height: 60rpx;
      background: #fff;
      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;
      }
    }
  }
  .banner {
    position: relative;
    height: 280rpx;
    background: #fff;
    .bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 190rpx;
    }
    .img {
      width: 100%;
      height: 280rpx;
      .item {
        padding: 0 30rpx;
        box-sizing: border-box;
        font-size: 0;
        image {
          border-radius: 10rpx;
        }
      }
    }
  }
  .nav-box {
    padding: 34rpx 30rpx 4rpx;
    background: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #fff 60%, #f2f3f7);
    .item {
      width: 25%;
      text-align: center;
      margin-bottom: 26rpx;
      .icon {
        margin: auto;
        width: 60rpx;
        height: 60rpx;
        font-size: 0;
      }
      .text {
        word-break: break-word;
        width: 75%;
        margin: auto;
        margin-top: 14rpx;
      }
    }
  }
  .long-adv {
    padding: 0 30rpx;
    height: 170rpx;
    background: linear-gradient(to bottom, #fff, #f2f3f7);
    .adv-box {
      border-radius: 10rpx;
      width: 100%;
      height: 170rpx;
      overflow: hidden;
    }
  }
  .flash-sale {
    margin: 24rpx 30rpx 0;
    border-radius: 10rpx;
    overflow: hidden;
    .tit {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #fff;
      padding: 20rpx;
      .text {
        font-size: 28rpx;
        font-weight: 600;
      }
      .time {
        flex: 1;
        display: flex;
        align-items: center;
        margin-left: 16rpx;
        .num {
          padding: 0 8rpx;
          height: 32rpx;
          line-height: 32rpx;
          font-size: 20rpx;
          font-weight: 600;
          font-family: PingFangSC-Medium, tahoma;
          text-align: center;
          background: #fc1b35;
          color: #fff;
          border-radius: 8rpx;
        }
        .seckilling {
          height: 32rpx;
          line-height: 32rpx;
          font-size: 20rpx;
          font-weight: 600;
          font-family: PingFangSC-Medium, tahoma;
          text-align: center;
          background: #fff;
          color: #fc1b35;
          border-radius: 8rpx;
          padding: 0 8rpx;
        }
        .colon {
          height: 36rpx;
          line-height: 36rpx;
          color: #999;
          margin: 0 6rpx;
        }
      }
      .more {
        color: #999;
        &.text-arrow {
          &::after {
            border-top: 2rpx solid #999;
            border-right: 2rpx solid #999;
          }
        }
      }
    }
    .goods {
      display: flex;
      justify-content: flex-start;
      padding: 0 20rpx 20rpx;
      background: #fff;
      .item {
        margin-right: 10rpx;
        .img {
          width: 210rpx;
          height: 210rpx;
          font-size: 0;
          margin: auto;
          border-radius: 10rpx;
          overflow: hidden;
        }
        .price {
          margin-top: 10rpx;
          height: 32rpx;
          justify-content: center;
          color: #333;
          .big {
            font-size: 24rpx;
          }
        }
      }
    }
  }
  .multi {
    padding: 0 30rpx;
    display: flex;
    flex-wrap: wrap;
    .item {
      flex: 1;
      margin-top: 12rpx;
      margin-left: 12rpx;
      padding: 20rpx;
      background: #fff;
      box-sizing: border-box;
      border-radius: 10rpx;
      &:first-child {
        margin-left: 0;
      }
      .tit {
        padding-bottom: 20rpx;
        .text {
          font-size: 28rpx;
          font-weight: 600;
        }
        .des {
          margin-top: 10rpx;
          color: #999;
          line-height: 1;
        }
      }
      .pic {
        width: 180rpx;
        height: 180rpx;
        font-size: 0;
        margin: auto;
        border-radius: 10rpx;
        overflow: hidden;
      }
    }
  }
  .card-goods {
    margin: 12rpx 30rpx 12rpx;
    padding: 20rpx;
    background: #fff;
    border-radius: 10rpx;
    display: flex;
    .text-box {
      .text {
        font-size: 32rpx;
        font-weight: 600;
        color: #fc1b35;
        max-width: 162rpx;
        overflow: hidden;
        word-break: keep-all;
        text-overflow: ellipsis;
      }
      .big {
        font-size: 28rpx;
        font-weight: 600;
        margin-top: 20rpx;
      }
      .more {
        &.text-arrow {
          color: #999;
          margin-top: 6rpx;
          padding-right: 20rpx;
          &::after {
            width: 6rpx;
            height: 6rpx;
            top: 46%;
            border-top: 2rpx solid #999;
            border-right: 2rpx solid #999;
          }
        }
        &::before {
          position: absolute;
          top: 50%;
          right: -6rpx;
          display: block;
          width: 18rpx;
          height: 18rpx;
          border-radius: 50%;
          content: " ";
          font-size: 0;
          border: 2rpx solid #aaa;
          transform: translateY(-50%);
        }
      }
    }
    .goods {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .item {
        margin-left: 20rpx;
        width: 140rpx;
        height: 140rpx;
        font-size: 0;
        border-radius: 10rpx;
        overflow: hidden;
      }
    }
  }
  .recommend {
    margin-top: 40rpx;
    padding: 0 30rpx;
    .category {
      white-space: nowrap;
      .category-item {
        display: inline-block;
        font-size: 26rpx;
        font-weight: 600;
        height: 56rpx;
        line-height: 56rpx;
        text-align: center;
        padding: 0 20rpx;
        &.active {
          color: #fff;
          background: #fc1b35;
          border-radius: 60rpx;
        }
      }
    }
  }
  .prods {
    padding: 12rpx 30rpx 30rpx;
  }
  .empty {
    height: 512rpx;
    padding: 80rpx 0 100rpx;
    box-sizing: border-box;
  }
  .nomore {
    padding: 10rpx 0 40rpx;
  }
}
.prods {
  .item {
    .img {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
