.icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-1);
  width: 60px;
  height: 60px;
  cursor: pointer;

  .iconInner {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }

  &:hover {
    .iconInner {
      background-color: var(--color-fill-1);
    }
  }

  &::after {
    content: '';
    display: block;
    position: absolute;
    width: 1px;
    height: 24px;
    background-color: var(--color-border);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.mobile {
  width: 48px;
  height: 48px;

  &::after {
    display: none;
  }
}

.wrapper {
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 68px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s;
  cursor: pointer;

  &:hover {
    background-color: var(--color-fill-1);

    :global(.arco-icon-arrow-right),
    :global(.arco-react-icon-arrow-right) {
      color: rgb(var(--primary-6));
    }
  }

  :global(.arco-icon-arrow-right),
  :global(.arco-react-icon-arrow-right) {
    color: var(--color-text-1);
    font-size: 18px;
  }
}

.panel {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 16px;
  width: 400px;
}

.m {
  .panel {
    display: flex;
    flex-direction: column;
  }

  .home {
    padding: 0 12px;
  }
}

.item {
  opacity: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-decoration: none;

  &:hover {
    &::after {
      opacity: 1;
      transform: scale(1);
    }

    .text {
      .title {
        transform: translateY(-8px);
        color: var(--color-text-1);
      }

      .desc {
        transform: translateY(-4px);
        opacity: 1;
      }
    }

    .n {
      opacity: 0;
    }

    .h {
      opacity: 1;
    }
  }

  &::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-fill-1);
    border-radius: 4px;
    left: 0;
    opacity: 0;
    transform: scale(0.94);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .logo {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 16px;
  }

  .title {
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--color-text-1);
    margin: 0;
    transition: all 0.2s ease-out;
  }

  .desc {
    font-family: PingFang SC;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: var(--color-text-2);
    position: absolute;
    word-break: keep-all;
    transform: translateY(0);
    opacity: 0;
    transition: all 0.2s ease-out;
  }

  .n,
  .h {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.25s ease-out;
  }

  .n {
    opacity: 1;
  }

  .h {
    opacity: 0;
  }
}

:global(.down-enter),
:global(.down-appear) {
  opacity: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform-origin: 0% 0%;
  transform: scale(0.55) translateY(-6px);
}

:global(.down-enter-active),
:global(.down-appear-active) {
  opacity: 1;
  transform: scale(1) translateY(0);
  transform-origin: 0% 0%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

:global(.down-exit) {
  opacity: 1;
  transform: scale(1) translateY(0);
  transform-origin: 0% 0%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

:global(.down-exit-active) {
  opacity: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform-origin: 0% 0%;
  transform: scale(0.55) translateY(-6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
