@use '../variables' as *;

// 投递进度卡片组件（新版4步骤）
.agent-apply-progress {
  font-size: 0.14rem;
  background: $bg-white;
  border: 1px solid #F0F0F0;
  border-radius: 0.08rem;
  padding: 0.16rem 0.2rem;

  // 已完成状态
  &--completed {
    opacity: 0.9;
  }

  // 顶部区域：岗位信息 + 步骤条
  &__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  // 岗位信息
  &__job-info {
    display: flex;
    align-items: center;
    gap: 0.28rem;
  }

  &__job-title {
    font-size: 0.18rem;
    font-weight: 620;
    color: $text-dark;
    line-height: 0.27rem;
  }

  &__company {
    display: flex;
    align-items: center;
    gap: 0.08rem;
  }

  &__company-logo {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 0.04rem;
    object-fit: cover;

    &--placeholder {
      background: $bg-main;
      display: flex;
      align-items: center;
      justify-content: center;
      color: $text-middle;

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

  &__company-name {
    font-size: 0.18rem;
    font-weight: 330;
    color: $text-dark;
    line-height: 0.27rem;
  }

  // 步骤条
  &__steps {
    display: flex;
    align-items: center;
    gap: 0.12rem;
  }

  // 步骤项
  &__step-item {
    display: flex;
    align-items: center;
    gap: 0.08rem;
  }

  // 步骤图标
  &__step-icon {
    width: 0.40rem;
    height: 0.40rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

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

    // 已完成
    &--done {
      background: $accent;
      color: #fff;
    }

    // 进行中
    &--active {
      background: #EDF9FA;
      color: $accent;
    }

    // 待处理
    &--pending {
      background: $bg-main;
      color: $text-middle;
    }
  }

  // 步骤文字区域
  &__step-text {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
  }

  // 步骤名称
  &__step-name {
    font-size: 0.14rem;
    font-weight: 620;
    line-height: 0.19rem;

    &--done {
      color: $text-dark;
    }

    &--active {
      color: $text-dark;
    }

    &--pending {
      color: $text-middle;
    }
  }

  // 步骤状态文字
  &__step-status {
    font-size: 0.12rem;
    font-weight: 330;
    line-height: 0.16rem;

    &--done {
      color: #9FD051;
    }

    &--active {
      color: #F59E0B;
    }

    &--pending {
      color: $text-middle;
    }
  }

  // 步骤连接线
  &__step-line {
    width: 0.40rem;
    height: 0.02rem;
    background: #E5E7EB;
    flex-shrink: 0;
  }

  // 底部区域：提示 + 按钮
  &__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.16rem;
  }

  // 提示文字
  &__hint {
    font-size: 0.14rem;
    font-weight: 450;
    color: $text-middle;
    line-height: 0.19rem;

    // 警告色（橙色）
    &--warning {
      color: #F59E0B;
    }

    // 匹配度偏低（红橙色）
    &--low-match {
      color: #FE6D52;
    }

    // 强调色（品牌色）
    &--accent {
      color: $accent;
    }
  }

  // 操作按钮区
  &__actions {
    display: flex;
    align-items: center;
    gap: 0.16rem;
  }

  // 按钮基础样式
  &__btn {
    height: 0.27rem;
    padding: 0.04rem 0.12rem;
    border-radius: 0.08rem;
    font-size: 0.14rem;
    font-weight: 380;
    line-height: 0.19rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.85;
    }

    // 边框按钮
    &--outline {
      background: transparent;
      border: 1px solid $accent;
      color: $accent;
    }

    // 实心按钮
    &--primary {
      background: $accent;
      color: #FFFFFF;
    }
  }
}
