.HomeM {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(207, 202, 189, 1));
  position: relative;
  :global {

    .modelTxtBox {
      z-index: 10;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .activeTxtBox {
      opacity: 1;
      pointer-events: auto;
    }

    .title {
      width: 100%;
      height: 50px;
      background-color: #741A1A;
      display: flex;
      justify-content: center;
      align-items: center;

      &>img {
        width: 150px;
      }
    }

    .search {
      background-color: #F8F8F8;
      width: 96%;
      margin: 8px auto;
      height: 60px;
      border-radius: 3px;
      border-top: 5px solid #D9D9D9;
      box-shadow: 0px 1px 3px 1px #ccc;
      display: flex;
      align-items: center;
      justify-content: space-around;
      position: relative;

      .ant-select-selector {
        padding: 0;
        border: none;
        background-color: transparent;
        border-color: none !important;
        box-shadow: none !important;
      }

      .inputBox {
        z-index: 10;
        box-shadow: 0px 1px 2px 1px rgb(53, 50, 50);
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        height: 40px;

        .ant-input {
          width: 100%;
          height: 100%;
          padding: 0 50px 0 10px;
        }

        .ant-input:focus,
        .ant-input-focused {
          border-color: transparent;
          box-shadow: none;
        }


        .inputInco {
          position: absolute;
          z-index: 2;
          right: 0;
          top: 0;
          width: 40px;
          height: 40px;
          font-size: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
      }

      &>div {
        border-radius: 2px;
        box-shadow: 0px 1px 2px 1px #ccc;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
      }

      .sort {
        padding: 0 10px;
        width: 35%;
      }

      .age {
        padding: 0 10px;
        width: 35%;
      }

      .inco {
        font-size: 20px;
      }

      @media screen and (max-width: 350px) {
        .sort {
          padding: 0 5px;
        }

        .age {
          padding: 0 5px;
        }
      }

      .inco {
        width: 10%;
        justify-content: center;
      }
    }

    .main {
      border-radius: 3px;
      width: 96%;
      margin: 0 auto 40px;
      height: calc(100% - 130px);
      overflow-y: auto;

      background-color: #F8F8F8;
      box-shadow: 0px 1px 3px 1px #ccc;
      padding: 15px 10px;

      .mainBox {
        width: 100%;
        display: flex;
        align-content: flex-start;
        flex-wrap: wrap;
      }

      .mainRow {
        width: 48%;
        height: 180px;
        margin-right: 4%;
        margin-bottom: 4%;
        background-color: #CFCABD;
        border-radius: 3px;
        box-shadow: 0px 1px 2px 1px #ccc;
        overflow: hidden;
        position: relative;

        .sortName {
          color: #741A1A;
          font-size: 14px;
          position: absolute;
          top: 0;
          right: 0;
          padding: 0 8px;
          height: 30px;
          line-height: 30px;
          border-radius: 0 0px 0 8px;
          opacity: .8;
          background-image: linear-gradient(to bottom, #FFFFFF, #CFCABD);

        }

        &>img {
          width: 100%;
          height: 150px;
          object-fit: cover;
        }

        &>p {
          padding: 0 3px;
          height: 30px;
          line-height: 30px;
          font-size: 14px;
          color: #fff;
          background-color: #741A1A;
          text-align: center;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        &:nth-of-type(2n) {
          margin-right: 0;
        }
      }

      .noneList {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;

        .incoBox {
          font-size: 24px;
          display: flex;
          justify-content: center;
          align-items: center;
          width: 40px;
          height: 40px;
          margin-bottom: 15px;
          background-color: #BE262B;
          border-radius: 50%;
          color: #fff;
          font-weight: 700;
        }

        &>p {
          font-weight: 700;
          font-size: 20px;
        }
      }
    }
  }
}