@use '../variables' as *;

// ==================== Agent会话岗位列表组件样式 ====================
.agent-chat-job-list {
  background: $bg-middle;
  border-radius: 0.12rem;
  padding: 0.2rem;
  margin-top: 0.16rem;

  // 推荐说明文字
  &__summary {
    font-size: 0.13rem;
    color: $text-dark;
    font-weight: 500;
    margin-bottom: 0.14rem;
    line-height: 1.6;
  }

  // 单个岗位项
  &__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: $bg-white;
    border-radius: 0.1rem;
    padding: 0.14rem 0.16rem;
    margin-bottom: 0.08rem;

    &:last-of-type {
      margin-bottom: 0;
    }
  }

  // 左侧信息区域
  &__info {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex: 1;
    min-width: 0;
  }

  // 公司 Logo
  &__logo {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 0.06rem;
    background: $bg-main;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: $text-middle;
    overflow: hidden;

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

    svg {
      width: 0.2rem;
      height: 0.2rem;
    }
  }

  // 岗位详情
  &__detail {
    min-width: 0;
  }

  // 公司名称
  &__company {
    font-size: 0.14rem;
    font-weight: 600;
    color: $text-dark;
    line-height: 1.4;
  }

  // 岗位名称
  &__title {
    font-size: 0.12rem;
    color: $text-middle;
    line-height: 1.4;
    margin-bottom: 0.04rem;
  }

  // 标签行
  &__tags {
    display: flex;
    gap: 0.06rem;
    flex-wrap: wrap;
  }

  // 单个标签
  &__tag {
    font-size: 0.11rem;
    color: $text-middle;
    background: $bg-main;
    padding: 0.02rem 0.08rem;
    border-radius: 0.03rem;
  }

  // 匹配度环形容器
  &__score {
    position: relative;
    width: 0.44rem;
    height: 0.44rem;
    flex-shrink: 0;
    margin-left: 0.12rem;
  }

  // 环形 SVG
  &__ring {
    width: 100%;
    height: 100%;
  }

  // 匹配度数字
  &__score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.11rem;
    font-weight: 600;
    color: $text-dark;
  }

  // 底部按钮区域
  &__footer {
    display: flex;
    justify-content: center;
    margin-top: 0.14rem;
  }

  // 查看全部岗位按钮
  &__view-all-btn {
    height: 0.38rem;
    padding: 0 0.32rem;
    background: $btn-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.19rem;
    font-size: 0.13rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 0.38rem;

    &:hover {
      background: $btn-dark-hover;
    }

    &:active {
      transform: scale(0.98);
    }
  }
}
