.main {
  position: fixed;
  top: var(--nav-height);
  height: calc(100% - var(--nav-height));
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
}

// 奇奇怪怪的bug
:global(.ant-select .ant-select-selection-item) {
  flex: initial;
}

.custom-select {
  display: flex;
  align-items: center;
  .prefix {
    height: 40px;
    line-height: 40px;
    border: 1px solid #424242;
    padding: 0 1rem;
    border-radius: 6px;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: rgba(255, 255, 255, 0.04);
  }
  .select :global(.ant-select-selector) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: none;
  }
  :global(.ant-select-open .ant-select-selector) {
    background: rgba(0, 0, 0, 0.3);
  }
}

.mode-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr); /* 自动调整行高 */
  width: 800px;
  height: 500px;
  gap: 16px;
  .mode {
    height: 100%;
    background: hsla(0, 0%, 100%, 0.05);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 12px;
    transition: 0.2s;
    cursor: pointer;
    &:hover {
      box-shadow: 0 0 0 4px rgb(56, 27, 143);
      background: hsla(0, 0%, 100%, 0.07);
      filter: brightness(1.1);
    }
    .icon {
      &::before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        background: linear-gradient(#514f5780, #2a283277);
      }
      overflow: hidden;
      position: relative;
      --length: 48px;
      width: var(--length);
      height: var(--length);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: white;
      transition: 0.2s;
    }
    &:hover .icon {
      filter: brightness(1.3);
    }
    .title {
      margin-top: 24px;
      margin-bottom: 12px;
      font-size: 16px;
    }
    .desc {
      font-size: 14px;
      line-height: 24px;
      color: hsla(0, 0%, 100%, 0.6);
    }
  }
}
