@import '~antd/es/style/themes/default.less';

.commonMenu {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: url(assets/images/commonMenu/page-background.png);
  font-family: Microsoft YaHei;
  padding-top: 57px;
  background-color: #F5F6FC;
  overflow: hidden;

  :global {
    p {
      margin: 0;
    }
    .ant-spin-nested-loading {
      height: 100%;
      width: 100%;
    }
  }

  .filterIconBox {
    .iconBox {
      filter: invert(33%) sepia(100%) saturate(1499%) hue-rotate(199deg) brightness(102%) contrast(104%);
      img {
        filter: brightness(0%);
      }
    }
  }
  
  .searchWrapper {
    width: 100%;
    height: 48px;
    padding: 0 20%;
    display: flex;
    align-items: center;
    margin-bottom: 50px;

    .searchBox {
      flex: 1;
      height: 48px;
      background: #FFFFFF;
      box-shadow: 0px 5px 10px 0px #F3F3F3;
      border-radius: 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 11px;
      position: relative;

      .searchTitle {
        &>i {
          margin-right: 15px;
          color: #3B7FDF;
        }
      }
      .searchInfoBox {
        width: 100%;
        height: 400px;
        position: absolute;
        overflow: hidden;
        left: 0;
        top: 100%;
        z-index: 100;
        transition: height 0.5s ease-out;
        &.searchInfoBox_hide {
          height: 0;
        }
        :global {
          .ant-tree-treenode {
            width: 100%;
          }
          .ant-tree-node-content-wrapper,
          .ant-tree-node-content-wrapper-normal
          .ant-tree-node-content-wrapper-close {
            flex: 1;
            overflow: hidden;
          }
          .ant-tree-switcher {
            line-height: 36px;
          }
        }
        .customTitle {
          width: 100%;
          height: 36px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          // padding-right: 20px;
          .titleInfo {
            img {
              width: 18px;
              height: 18px;
              margin-right: 8px;
            }
          }
          .treeSearchInfo {
            color: #ff5500;
          }
          &:hover {
            background-color: #f1faf9;
            .titleControl {
              .chooseLabel {
                display: none;
              }
              .chooseBtn {
                display: block;
              }
            }
          }
          .titleControl {
            .chooseLabel {
              padding-right: 20px;
              display: block;
              color: #999999;
              font-size: 15px;
            }
            .chooseBtn {
              float: right;
              cursor: pointer;
              height: 36px;
              width: 101px;
              background: #01c1a4;
              color: white;
              text-align: center;
              display: none;
              line-height: 36px;
            }
          }
        }
      }
    }
    .searchBtn {
      flex: none;
      width: 135px;
      height: 48px;
      background: linear-gradient(0deg, #1685FF 0%, #49A0FF 100%);
      box-shadow: 0px 5px 10px 0px #F5F6FC;
      border-radius: 2px;
      margin-left: 36px;
      font-weight: bold;
      color: #FFFFFF;
    }

  }

  .menuCardWrapper {
    display: grid;
    grid-template-columns: repeat(4, 25%);
    height: calc(100% - 185px);
    padding: 0 5%;
    overflow: auto;
  }

  .menuCard {
    margin: 20px 10px;
    width: 377px;
    height: 240px;
    background-image: url(assets/images/commonMenu/矩形.png);
    background-size: 100%;
    background-position: center bottom;
    position: relative;
    padding: 0 30px;
    transition: transform 0.5s ease-out;
    cursor: pointer;
    &:hover {
      transform: scale(1.1);
    }
    .cardThumbnail {
      width: 100%;
    }
    .cardLabel {
      // width: 347px;
      height: 75px;
      position: absolute;
      bottom: 0;
      left: 10px;
      right: 10px;
      // left: 50%;
      // transform: translateX(-50%);
      background: url("assets/images/commonMenu/card-label.png") center/100% no-repeat;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30px 10px 0;

      .cardTitle {
        color: #323232;
        padding-left: 10px;
        img {
          width: 20px;
          height: 20px;
          vertical-align: text-top;
          margin-right: 0.5em;
        }
      }
      .cardGroup {
        font-size: 14px;
        color: #999999;
        ::before {
          content: "·";
          margin-right: 0.5em;
        }
      }
    }
  }

  .pageLogo {
    width: 197px;
    position: absolute;
    bottom: 31px;
    left: 50%;
    transform: translateX(-50%);
    img {
      width: 100%;
    }
  }
}

