@use '../variables' as *;

.profile-page-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding-bottom: 0.4rem;

  // 卡片通用
  &__card {
    background: $bg-white;
    border-radius: 0.12rem;
    padding: 0.2rem 0.24rem;
    font-size: 14px;
    line-height: 1.5;
  }

  &__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.14rem;
  }

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

  &__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;

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

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

  // 个人信息
  &__info-name {
    font-size: 0.18rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.12rem;
  }

  &__info-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.16rem;
    margin-bottom: 0.06rem;
  }

  &__contact-item {
    font-size: 0.12rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.04rem;
  }

  // 通用 section item
  &__section-item {
    padding: 0.12rem 0;

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

  &__item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  &__item-left {
    flex: 1;
    min-width: 0;
  }

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

  &__item-sub {
    font-size: 0.12rem;
    color: #666;
    margin-bottom: 0.02rem;
  }

  &__item-date {
    font-size: 0.11rem;
    color: $accent;
    margin-bottom: 0.04rem;
  }

  &__item-period {
    font-size: 0.11rem;
    color: $text-light;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.12rem;
  }

  &__item-desc {
    font-size: 0.12rem;
    color: #666;
    line-height: 1.6;
    margin: 0.06rem 0 0 0;
  }

  &__item-list {
    margin: 0.08rem 0 0 0;
    padding-left: 0.16rem;
    list-style: disc;

    li {
      font-size: 0.12rem;
      color: #555;
      line-height: 1.8;
    }
  }

  // 作品集链接
  &__portfolio-link {
    font-size: 0.13rem;
    line-height: 1.6;
    color: $accent;
    word-break: break-all;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;

    &:hover {
      color: $accent-hover;
      text-decoration: underline;
    }
  }

  // 作品集空状态提示
  &__portfolio-empty {
    font-size: 0.12rem;
    line-height: 1.5;
    color: $text-light;
  }

  // 标签（技能 / 证书）
  &__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
  }

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

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