@use '../variables' as *;

// ==================== 简历详情页 ====================
.resume-detail {
  &__content {
    margin-left: 2rem;
    flex: 1;
    padding: 0.12rem 0.36rem;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    background: $bg-main;
    display: flex;
    flex-direction: column;
    font-size: 0.14rem;
  }

  &__page-title {
    font-size: 0.24rem;
    font-weight: 700;
    color: $text-dark;
    margin: 0 0 0.16rem 0;
  }

  // ---- 顶部操作栏 ----
  &__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.16rem;
  }

  &__toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.12rem;
  }

  &__back-btn {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    border: 1px solid $border-color;
    background: $bg-white;
    color: $text-dark;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;

    &:hover {
      background: $theme-color;
      border-color: $accent;
      color: $accent;
    }
  }

  &__back-icon {
    width: 0.14rem;
    height: 0.14rem;
  }

  &__tab-name {
    font-size: 0.14rem;
    font-weight: 500;
    color: $text-dark;
    background: $bg-white;
    border: 1px solid $border-color;
    border-radius: 0.16rem;
    padding: 0.05rem 0.16rem;
  }

  &__toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  &__tool-btn {
    display: flex;
    align-items: center;
    gap: 0.04rem;
    background: none;
    border: none;
    color: $text-light;
    font-size: 0.12rem;
    cursor: pointer;
    padding: 0.05rem 0.1rem;
    border-radius: 0.06rem;
    transition: all 0.2s;
    white-space: nowrap;

    &:hover {
      color: $text-dark;
      background: $bg-white;
    }

    &--danger:hover {
      color: $danger;
    }
  }

  &__tool-icon {
    width: 0.13rem;
    height: 0.13rem;
    flex-shrink: 0;
  }

  // ---- 评分区域 ----
  &__score-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: $bg-white;
    border-radius: 0.12rem;
    padding: 0.18rem 0.24rem;
    margin-bottom: 0.16rem;
  }

  &__score-left {
    display: flex;
    align-items: center;
    gap: 0.12rem;
  }

  &__score-avatar {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: $text-dark;
    font-size: 0.18rem;
    font-weight: 700;
    flex-shrink: 0;
    background: $bg-main;
  }

  &__score-badge {
    font-size: 0.11rem;
    font-weight: 600;
    color: $bg-white;
    background: $accent;
    border-radius: 0.1rem;
    padding: 0.03rem 0.1rem;
  }

  &__score-link {
    font-size: 0.12rem;
    color: $text-light;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;

    &:hover {
      color: $accent;
    }
  }

  &__score-right {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  &__score-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.02rem;
  }

  &__score-num {
    font-size: 0.22rem;
    font-weight: 700;
    color: $text-dark;
    line-height: 1.2;
  }

  &__score-label {
    font-size: 0.1rem;
    color: $text-light;
    white-space: nowrap;
  }

  &__diagnose-btn {
    background: $btn-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.06rem;
    padding: 0.08rem 0.18rem;
    font-size: 0.13rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;

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

    // 开始诊断按钮 — 稍大一些，更醒目
    &--start {
      padding: 0.1rem 0.28rem;
      font-size: 0.14rem;
      border-radius: 0.08rem;
      background: $gradient-bg;

      &:hover {
        background: $accent-hover;
      }
    }
  }

  // ---- 简历主体 ----
  &__body {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    padding-bottom: 0.4rem;
  }

  &__card {
    background: $bg-white;
    border-radius: 0.12rem;
    padding: 0.24rem;
  }

  // ---- 个人信息卡片 ----
  &__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.16rem;
  }

  &__user-name {
    font-size: 0.2rem;
    font-weight: 700;
    color: $text-dark;
    margin: 0 0 0.04rem 0;
  }

  &__user-title {
    font-size: 0.13rem;
    color: $text-light;
    margin: 0;
  }

  &__card-actions {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    flex-shrink: 0;
  }

  &__card-btn {
    font-size: 0.12rem;
    border-radius: 0.16rem;
    padding: 0.06rem 0.16rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;

    &--outline {
      background: $bg-main;
      color: $text-dark;
      border: 1px solid $border-color;

      &:hover {
        border-color: $accent;
        color: $accent;
        background: $theme-color;
      }
    }

    &--dark {
      background: $btn-dark;
      color: $bg-white;

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

  // ---- 联系方式 ----
  &__contact {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    flex-wrap: wrap;
  }

  &__contact-item {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    font-size: 0.12rem;
    color: $text-dark;
  }

  &__contact-icon {
    width: 0.14rem;
    height: 0.14rem;
    color: $text-light;
    flex-shrink: 0;
  }

  // ---- 区块标题 ----
  &__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.16rem;
  }

  &__section-title {
    font-size: 0.17rem;
    font-weight: 700;
    color: $text-dark;
    margin: 0 0 0.16rem 0;
  }

  &__section-header &__section-title {
    margin-bottom: 0;
  }

  // ---- 编辑按钮（与 ProfilePageContent 一致） ----
  &__edit-btn {
    background: none;
    border: none;
    color: $text-light;
    cursor: pointer;
    padding: 0.04rem;
    border-radius: 0.04rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    flex-shrink: 0;

    &:hover {
      color: $accent;
      background: $theme-color;
    }
  }

  &__edit-icon {
    width: 0.15rem;
    height: 0.15rem;
  }

  // ---- 教育背景 ----
  &__edu-item {
    margin-top: 0.16rem;
    padding-left: 0.1rem;
    border-left: 2px solid $border-color;
    &:not(:last-child) {

    }
  }

  &__edu-degree {
    font-size: 0.14rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.04rem;
  }

  &__edu-meta {
    font-size: 0.12rem;
    color: $text-light;
    line-height: 1.6;
  }

  // ---- 工作经历 ----
  &__exp-item {
    margin-top: 0.16rem;
    margin-left: 0.1rem;
    padding-left: 0.1rem;
    border-left: 2px solid $border-color;

    &:not(:last-child) {
      //border-bottom: 1px solid $border-color;
    }
  }

  &__exp-title {
    font-size: 0.14rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.04rem;
  }

  &__exp-meta {
    font-size: 0.12rem;
    color: $text-light;
    margin-bottom: 0.06rem;
  }

  &__exp-desc {
    font-size: 0.12rem;
    color: $text-dark;
    line-height: 1.6;
    margin: 0;
  }

  // ---- 技能标签 ----
  &__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
  }

  &__skill-tag {
    font-size: 0.12rem;
    color: $text-dark;
    background: $bg-main;
    border: 1px solid $border-color;
    border-radius: 0.04rem;
    padding: 0.05rem 0.14rem;
    transition: all 0.2s;

    &:hover {
      border-color: $accent;
      color: $accent;
      background: $theme-color;
    }
  }

  // ---- 卡片底部问题操作区 ----
  &__card-issue {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    margin-top: 0.10rem;
    padding-bottom: 0.14rem;

  }

  // 问题类型按钮组（三选一）
  &__issue-type-group {
    display: flex;
    align-items: center;
    gap: 0.06rem;
  }

  // 问题类型按钮
  &__issue-type-btn {
    font-size: 0.12rem;
    border-radius: 0.16rem;
    padding: 0.05rem 0.14rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid $border-color;
    background: $bg-main;
    color: $text-light;

    &:hover {
      border-color: $accent;
      color: $accent;
      background: $theme-color;
    }

    // 选中态
    &--active {
      background: $theme-color;
      color: $accent;
      border-color: $accent;
    }
  }
}
