.layout-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  > .ant-spin-nested-loading {
    height: 100vh;
    > .ant-spin-container {
      height: 100vh;
      display: flex;
      flex-direction: column;
    }
  }

  .layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    line-height: 50px;
    background-color: #fff;
    padding: 0 25px;

    .ant-menu-overflow {
      margin-left: 100px;
      font-size: 16px !important;

      .ant-menu-overflow-item.ant-menu-submenu.ant-menu-submenu-horizontal {
        width: 110px; //hyy
        display: flex;
        justify-content: center;
      }
    }

    .header-logo {
      img {
        height: 32px;
        vertical-align: middle;
      }
      span {
        vertical-align: middle;
        height: 50px;
        width: 0;
        display: inline-block;
      }
    }

    .header-menu {
      flex: 1;
      padding: 0 10px;
      height: 50px;
      line-height: 50px;

      .ant-menu-light.ant-menu-horizontal > .ant-menu-submenu::after {
        content: '';
        display: none;
      }
      .ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover,
      .ant-menu-light.ant-menu-horizontal > .ant-menu-submenu:hover {
        color: #ab1941 !important;
        background-color: #ede2e8 !important;
        transition: none !important;
        .ant-menu-title-content {
          color: #ab1941 !important;
          transition: none !important;
        }
      }
      .ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover::after {
        border: none !important;
        transition: none !important;
      }
      .ant-menu-light.ant-menu-horizontal > .ant-menu-item {
        border: none !important;
        transition: none !important;

        &::after {
          content: '';
          display: none;
        }
      }
      .ant-menu-light.ant-menu-horizontal > .ant-menu-item-selected {
        // color: #AB1941 !important;
        background: #ede2e8 !important;
        .ant-menu-title-content {
          color: #ab1941 !important;
        }
        &::after {
          border: none;
        }
      }
      .ant-menu-light.ant-menu-horizontal > .ant-menu-submenu-selected {
        background: #ede2e8 !important;
        &::before{
          content: '';
          display: block;
          width: 0;
          height: 0;
          clear: both;
          z-index: 2;
          border-left: 10px solid transparent;
          border-right: 10px solid transparent;
          border-top: 8px solid #ede2e8;
          bottom: -8px;
          position: absolute;
        }
        ml10 &::after {
          border: none !important;
        }
        .ant-menu-submenu-title {
          color: #ab1941 !important;
          font-weight: bold;
        }
      }
    }

    .header-user {
      text-align: right;
      .logout {
        color: #666;
        background: #f6f6f6;
        .header-user-bell:hover {
          background: #f6f6f6 !important;
          border-color: #f6f6f6 !important;
          color: #f6f6f6 !important;
        }
        .header-user-bell:focus {
          background: #f6f6f6 !important;
          border-color: #f6f6f6 !important;
          color: #f6f6f6 !important;
          outline: none;
        }
      }
    }
  }

  .layout-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    .ant-menu-horizontal {
      border-bottom: none;
    }
    .crumb {
      padding: 10px 0px; //hyy
      padding-top: 10px;
      background: #f7f8fc;
      .crumb-bread-list {
        // height: 36px;
        background-color: #fff;
        // box-shadow: 0px 0px 20px 1px rgba(123, 123, 123, 0.2);
        box-sizing: border-box;
        border-radius: 5px;
        padding: 3px 10px;
        .crumb-bread-menu {
          line-height: 30px;
          color: #666;
          font-size: 12px;

          .backTo {
            margin-top: 7px;
          }

          .breadmenu-container-box {
            width: 100%;
            display: flex;
            justify-content: flex-end;

            .ant-menu {
              width: 100% !important;
              justify-content: flex-end;
              flex: 1 !important;

              .ant-menu-overflow-item {
                width: 110px; //hyy
                display: flex;
                justify-content: center;
              }
            }
          }
          .breadcrumb-box {
            line-height: 30px;
            .breadcrumb-item,
            .breadcrumb-item span {
              font-size: 12px;
            }
          }
          .ant-menu-light.ant-menu-horizontal > .ant-menu-item:hover::after {
            border-color: #ab1941;
          }
          .ant-menu-light.ant-menu-horizontal > .ant-menu-item {
            transition: none;
          }
          .ant-menu-light.ant-menu-horizontal > .ant-menu-item-selected {
            color: #ab1941 !important ;
            font-weight: bold;
            background-color: #fbfbfb;
            transition: none;
            &::after {
              // border-bottom-color: #ab1941 !important ;
              // width: 40px;
              content: '';
              display: block;
              position: absolute;
              bottom: -1px; /* 将下边框定位到菜单项底部 */
              left: 50%; /* 将左侧边距设为菜单项宽度的一半 */
              transform: translateX(-50%); /* 将菜单项水平居中 */
              border-bottom: 2px solid #ab1941;
              width: 60px;
            }
          }
          .header-menu {
            width: 110px;
            flex: 1;
            display: flex;
            justify-content: flex-end;
            .ant-menu {
              flex: 1;
              width: 110px;
              display: flex;
              justify-content: flex-end;
            }
          }
        }
      }
    }
    .content-sandbox {
      flex: 1;
      display: flex;
      overflow: hidden;
      .content-pro {
        flex: 1;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0px 0px 20px 1px rgba(123, 123, 123, 0.2);
        height: calc(100vh - 120px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px;
      }
    }
  }
}
.ant-menu .ant-menu-item {
  text-align: center;
}
:global {
  .ant-menu-vertical {
    min-width: 96px !important;
  }
}
