/**
 * 列表页面样式
 * 已迁移到主题变量系统
 */

.list {
  height: 100%;

  .menu {
    padding-top: 40px;

    li {
      padding-left: 40px;
      position: relative;
      height: 50px;
      line-height: 40px;
      display: flex;
      font-size: 14px;
      align-items: center;
      cursor: pointer;
      color: var(--text-color-primary);

      &:hover {
        color: var(--primary-color);
      }

      i {
        margin-right: 10px;
      }

      &.is-active {
        background-image: var(--gradient-primary);
        background-repeat: round;

        &:hover {
          color: var(--text-color-primary);
        }
      }
    }
  }

  .el-menu {
    border-right: none;
  }

  .el-menu.el-menu--horizontal {
    border-color: var(--bg-color-tertiary);
    border-width: 2px;
  }

  .el-menu i {
    margin-right: 5px;
  }

  .content {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;

    &__header {
      padding: 30px 15px 20px 15px;
      box-sizing: border-box;
      width: 100%;
      height: auto !important;
      border-bottom: 1px solid var(--border-color-dark);
      background-color: var(--bg-color-secondary);
    }

    &__box {
      width: 100%;
    }

    &__nav {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    &__add {
      margin-right: 12px;
      padding-left: 20px;
      width: 250px;
      height: 70px;
      box-sizing: border-box;
      vertical-align: middle;
      border: 1px solid var(--border-color-base);
      border-radius: 2px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      position: relative;
      cursor: pointer;
      background-color: var(--bg-color-quaternary);

      &:hover {
        border-color: var(--primary-color);

        img {
          transform: scale(1.1);
        }
      }

      img {
        margin-right: 10px;
      }

      p {
        color: var(--text-color-primary);
        font-size: 16px;
        font-weight: bold;
      }

      span {
        font-size: 12px;
        color: var(--text-color-disabled);
      }

    }

    &__page {
      padding-right: 10px;
      display: flex;
      align-items: flex-end;
    }

    &__empty {
      svg {
        width: 200px;
        height: 200px;
      }
    }
    &__code {
      height: 100%;
      background-color: var(--bg-color-secondary);
    }
    &__item {
      display: inline-block;
      position: relative;
      margin-right: 20px;
      margin-bottom: 20px;
      width: 270px;
      box-sizing: border-box;
      overflow: hidden;
      border-radius: 5px;
      border: 1px solid var(--border-color);

      &:hover {
        box-shadow: var(--shadow-dark);
        border: 1px solid var(--info-color);
      }
    }

    &__main {
      font-size: 14px;
      width: 100%;
      padding: 8px 10px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg-color-secondary);
      box-sizing: border-box;
      color: var(--text-color);
      font-weight: bold;
      border-top: 0;

      a {
        color: var(--text-color-secondary);
      }

      i {
        margin-right: 1px;
      }
    }

    &__view {
      margin-right: 2px;
    }

    &__menulist {
      display: flex;

      i {
        margin-right: 10px;
      }
    }

    &__start {
      display: flex;

      .content__btn {
        padding: 0;
        margin: 0 5px;
        width: 40px;
        height: 30px;
        line-height: 30px;
        border-radius: 5px;
        opacity: 0.8;

        i {
          font-weight: bold;
        }
      }
    }

    &__status {
      display: flex;
      align-items: center;

      .icon {
        margin-right: 5px;
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 100%;
        background-color: var(--text-color);
      }

      &.is-active {
        .icon {
          background-color: var(--primary-color);
        }
      }
    }

    &__name {
      width: 100px;
      padding: 0 5px;
      line-height: 28px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      color: var(--text-color-primary);
      border: 1px solid transparent;
    }

    &__logo {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-color-primary);
      text-align: center;

      p {
        font-weight: bold;
        font-size: 18px;
        background-image: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: bold;

      }

      img {
        width: 100px !important;
        height: auto !important;
      }

      span {
        display: block;
        box-sizing: border-box;
        padding: 0 30px;
        line-height: 30px;
        color: var(--text-color-primary);
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
      }

    }

    &__info {
      background-color: var(--bg-color-secondary);
      position: relative;
      height: 150px;
    }

    &__menu {
      position: absolute;
      top: 0;
      left: 0;
      background-color: var(--bg-color-overlay);
      backdrop-filter: blur(3px);
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    &__list {
      margin-top: 15px;

      i {
        cursor: pointer;
        margin: 0 5px;
        color: var(--text-color-primary);
        font-size: 20px;
      }
    }

    &__right {
      position: absolute;
      top: 5px;
      right: 10px;

      i {
        cursor: pointer;
        margin: 5px 5px;
        color: var(--text-color-primary);
        font-size: 16px;
      }
    }

    &__btn {
      margin: 5px 0;
      display: inline-block;
      vertical-align: middle;
      height: 34px;
      line-height: 34px;
      padding: 0 40px;
      box-sizing: border-box;
      outline: 0;
      text-align: center;
      font-size: 14px;
      font-weight: bold;
      background-image: linear-gradient(-225deg, var(--primary-color) 0, var(--info-color) 100%);
      background-color: var(--primary-color);
      border-color: var(--info-color);
      color: var(--text-color-primary);
      border: none;
      transition: .3s ease;
      cursor: pointer
    }

    &__info {
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

      &--active {
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--info-color);
  }
  }
}

.create {
  &-screen {
    display: flex;

    .item {
      padding: 10px 15px;
      margin: 10px 20px 10px 0;
      background: var(--bg-color-tertiary);
      border-radius: 5px;
      text-align: center;
      min-width: 100px;
      border: 1px solid var(--border-color-dark);
      cursor: pointer;

      &.is-active {
        border-color: var(--primary-color);
      }

      &-icon {
        width: 30px;
        height: 30px;
      }

      &-icon,
      &-title {
        color: var(--text-color-primary);
        font-weight: bold;
      }

      &-size {
        color: var(--text-color-disabled);
        font-size: 12px;
      }
    }
  }
}