@use '../variables' as *;

// ==================== 邀请注册送会员弹窗 ====================
.settings-invite-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: $overlay-bg;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.14rem;
}

.settings-invite-dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.24rem 0.32rem;
  gap: 0.24rem;
  width: 4.80rem;
  background: linear-gradient(180deg, #EDF9FA 0%, #FFFFFF 20.63%);
  border: 1px solid #F0F0F0;
  box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.05);
  border-radius: 0.12rem;

  // 顶部：标题行 + 关闭按钮
  &__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
  }

  &__header-text {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
  }

  &__title {
    font-size: 0.18rem;
    font-weight: 620;
    line-height: 0.24rem;
    color: $text-dark;
    margin: 0;
  }

  &__subtitle {
    font-size: 0.12rem;
    font-weight: 330;
    line-height: 0.16rem;
    color: $text-middle;
    margin: 0;
  }

  // 关闭按钮
  &__close {
    width: 0.24rem;
    height: 0.24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.14rem;
    color: $text-middle;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;

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

  // 邀请链接区域
  &__link-box {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.12rem 0.16rem;
    width: 100%;
    background: #F4FBFB;
    border: 1px solid #AEE6EA;
    border-radius: 0.08rem;
  }

  &__link-text {
    font-size: 0.14rem;
    font-weight: 330;
    line-height: 0.19rem;
    color: $text-dark;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__copy-btn {
    font-size: 0.14rem;
    font-weight: 450;
    line-height: 0.19rem;
    color: $accent;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.08rem;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.7;
    }
  }

  // 邀请步骤区域
  &__steps {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    width: 100%;
  }

  &__steps-title {
    font-size: 0.14rem;
    font-weight: 450;
    line-height: 0.19rem;
    color: $accent;
  }

  &__steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    width: 100%;
  }

  // 步骤卡片
  &__step-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0.12rem 0.16rem;
    gap: 0.10rem;
    width: 100%;
    background: $bg-white;
    border: 1px solid #F0F0F0;
    border-radius: 0.08rem;
  }

  // 步骤数字圆圈
  &__step-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0.20rem;
    min-width: 0.20rem;
    height: 0.20rem;
    background: $bg-main;
    border-radius: 0.10rem;
    font-size: 0.14rem;
    font-weight: 330;
    line-height: 0.20rem;
    text-align: center;
    color: $text-middle;
    flex-shrink: 0;
  }

  // 步骤文字
  &__step-text {
    font-size: 0.14rem;
    font-weight: 330;
    line-height: 0.19rem;
    color: $text-dark;
  }

  // 底部：统计 + 按钮
  &__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  // 统计信息
  &__stat {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
  }

  &__stat-line {
    font-size: 0.14rem;
    font-weight: 330;
    line-height: 0.19rem;
    color: $text-middle;

    em {
      font-style: normal;
      color: $accent;
      font-weight: 450;
    }
  }

  // 成为正式会员按钮
  &__member-btn {
    display: flex;
    align-items: center;
    padding: 0.08rem 0.12rem;
    gap: 0.04rem;
    background: $accent;
    border-radius: 0.08rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;

    span {
      font-size: 0.14rem;
      font-weight: 620;
      line-height: 0.19rem;
      text-align: center;
      color: #FFFFFF;
    }

    &:hover {
      opacity: 0.85;
    }
  }

  &__member-btn-arrow {
    font-size: 0.16rem;
  }
}
