/* Card组件样式 */
.pisell-pro-card {
  position: relative;
  display: flex;
  border-radius: 8px;
  transition: all 0.2s;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);

  /* 变体样式 */
  &-outlined {
    border: 1px solid #d0d5dd;
  }

  &-borderless {
    border: 1px solid transparent;
    box-shadow: none;
    outline: none;
  }

  .pisell-pro-card_content {
    overflow: hidden;
  }

  /* 布局样式 */
  &-vertical {
    border-radius: 12px;
    flex-direction: column;

    .pisell-pro-card_content {
      flex: 1;
    }

    .pisell-pro-card_actions {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0;
      height: 64px;
    }

    .pisell-pro-card_actions-item {
      margin: 0;
      height: 100%;
    }
  }

  &-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 10px;

    &.pisell-pro-card-actions-left {
      .pisell-pro-card_actions {
        order: 0;
      }

      .pisell-pro-card_content {
        order: 1;
      }
    }

    .pisell-pro-card_content {
      flex: 1;
      font-size: 16px;
    }

    .pisell-pro-card_actions {
      display: flex;
      align-items: center;
      margin: 0;
      padding: 0;
      height: 100%;
      order: 1;
    }

    .pisell-pro-card_actions-item {
      margin: 0;
      height: 100%;
    }
  }

  /* 可悬停效果 */
  &-hoverable:not(&-disabled):hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }

  /* 可点击样式 */
  &-clickable:not(&-disabled) {
    cursor: pointer;
  }

  /* 禁用状态 */
  &-disabled {
    cursor: not-allowed;
    color: #98a2b3;
    background-color: #f9fafb;

    &:hover {
      box-shadow: none;
      transform: none;
    }
  }

  /* 选中状态 - outlined类型 */
  &-selected&-selected-outlined {
    &.pisell-pro-card-outlined {
      border-color: var(--color-primary, #5d3f9f);
      background-color: var(--color-primary-bg, #f9f5ff);
    }

    &.pisell-pro-card-borderless {
      border-color: var(--color-primary, #5d3f9f);
    }
    .pisell-pro-card_content {
      color: var(--color-primary, #5d3f9f);
    }
  }

  /* 选中状态 - outlined-bold类型（加粗边框，使用 outline 实现不影响布局） */
  &-selected&-selected-outlined-bold {
    &.pisell-pro-card-outlined {
      border-color: var(--color-primary, #5d3f9f);
      background-color: var(--color-primary-bg, #f9f5ff);
      outline: 2px solid var(--color-primary, #5d3f9f);
      outline-offset: -2px;
    }

    &.pisell-pro-card-borderless {
      border-color: var(--color-primary, #5d3f9f);
      outline: 2px solid var(--color-primary, #5d3f9f);
      outline-offset: -2px;
    }
    .pisell-pro-card_content {
      color: var(--color-primary, #5d3f9f);
    }
  }

  /* 选中状态 - filled类型 */
  &-selected&-selected-filled {
    &.pisell-pro-card-outlined,
    &.pisell-pro-card-borderless {
      background-color: var(--color-primary, #5d3f9f);
      color: #ffffff;
      border-color: var(--color-primary, #5d3f9f);

      .pisell-pro-card_content {
        color: #ffffff;
      }
    }
  }
}

/* 操作区域 */
.pisell-pro-card_actions {
  flex-shrink: 0;

  &-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
}

/* 角标区域 */
.pisell-pro-card_corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 禁用状态下的角标 */
.pisell-pro-card-disabled .pisell-pro-card_corner {
  opacity: 0.5;
}
