.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.pageNameBasics {
  position: absolute;
  left: calc(50% - 100px);
  top: 2rem;
  width: 200px;
  height: 50px;
  font-size: 22px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  border-radius: 12px;
}
.pageNameBright {
  background: linear-gradient(90deg, #ddf6ff, #f5efff);
  // color: rgba(51, 51, 51, 0.6);
  color: #666;
}
.pageNameDark {
  background: #31323e;
  color: #999ba6;
}

.sidebar {
  min-width: 320px;
  width: 16.67vw;
  background-image: var(--sidebar-bg);
  background-size: 100% 100%;
  padding: 35px 20px 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  .logo {
    width: 100%;
  }
  .addBtn {
    margin-top: 44px;
    margin-bottom: 24px;
    width: 59.29%;
    line-height: 40px;
    text-align: center;
    background: var(--addBtn-bg);
    box-shadow: var(--addBtn-box-shadow);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
  }
  .searchIcon {
    background: var(--search-icon) center no-repeat;
    background-size: 24px auto;
    width: 24px;
    height: 24px;
  }
  .listBox {
    flex: 1;
    overflow-y: auto;
    margin-top: 22px;
    width: 100%;
  }
  .siderItem {
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px 8px 10px 47px;
    line-height: 24px;
    background: var(--annotation) left 17px center no-repeat;
    background-size: 24px auto;
    gap: 8px;
    border-radius: 8px;
    cursor: pointer;
    .con {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--siderItem-color);
    }
    &.active {
      background-color: var(--siderItem-bg);
      box-shadow: var(--siderItem-box-shadow);
      .editIcon,
      .delIcon {
        display: inherit;
      }
    }
  }
  .siderItem:hover {
    background-color: var(--siderItem-bg);
    box-shadow: var(--siderItem-box-shadow);
    .editIcon,
    .delIcon {
      display: inherit;
    }
  }
  .editIcon {
    background-image: var(--editIcon);
    display: none;
  }
  .delIcon {
    background-image: var(--delIcon);
    display: none;
  }
  .editIcon,
  .delIcon {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background-size: 20px auto;
  }
  :global {
    .ant-input-group .ant-input:hover,
    .ant-input-group .ant-input:focus {
      border-inline-end-width: 0;
    }
    .ant-input {
      line-height: 30px;
      padding: 10px 10px 10px 0;
    }
  }
}

.rightContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-image: var(--bg);
  background-size: 100% 100%;
  padding: 85px 80px 20px;
  .content {
    flex: 1;
    overflow-y: scroll;
  }
  .footer {
    padding-top: 20px;
    position: relative;
  }
  .send {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    width: 96px;
    height: 42px;
    justify-content: center;
    align-items: center;
    background: var(--send-bg);
    z-index: 10;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    gap: 10px;
    cursor: pointer;
    img {
      width: 17px;
    }
  }
  :global {
    .ant-input {
      padding: 0;
      line-height: 22px;
      font-size: 16px;
    }
  }
}

.dialogItem {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 20px;
  color: var(--color);
  .dialogText {
    display: flex;
  }
  .dialogReturn {
    margin-top: 30px;
    display: flex;
  }
  .text {
    padding: 4px 0;
    font-size: 20px;
    line-height: 28px;
    flex: 1;
  }
  .return {
    padding: 20px;
    flex: 1;
    flex-direction: column;
    border-radius: 12px;
    display: flex;
    background-color: var(--dialogItem-bg);
  }
  .returnBtn {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    img {
      width: 16px;
      cursor: pointer;
      &:hover {
        transform: scale(1.2);
      }
    }
  }
  .returnText {
    flex: 1;
    min-height: 100px;
    // max-height: 260px;
    // overflow-y: auto;
    .firstTitle {
      padding-top: 2rem;
      font-size: 2.2rem;
      line-height: 1.2;
    }
  }
  .textIcon,
  .returnIcon {
    width: 36px;
    height: 36px;
    background-color: #dddddd;
    border-radius: 50%;
    margin-right: 10px;
    img {
      width: 36px;
      height: 36px;
    }
  }
}

.footerMenu {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  align-items: flex-end;
  .menuBox {
    display: flex;
    gap: 10px;
    .menu {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }
    .active {
      .icon {
        background: var(--menu-active-bg);
        box-shadow: var(--menu-active-shadow);
      }
      .name {
        color: var(--menu-active-color);
      }
    }
    .icon {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: var(--menu-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: 24px;
        height: 24px;
      }
    }
    .name {
      margin-bottom: 10px;
      font-size: 16px;
      color: var(--menu-color);
    }
  }
  .type {
    font-size: 16px;
    color: var(--color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 0;
    cursor: pointer;
    img {
      width: 11px;
    }
  }
}

.switchStyle {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

:global {
  .ant-dropdown .ant-dropdown-menu {
    padding: 0;
  }
  .ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item-active {
    color: var(--dropdown-menu-item-active-color);
  }
}
