@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 {
  position: relative;
  width: 4.2rem;
  max-height: 85vh;
  background: $bg-white;
  border-radius: 0.12rem;
  padding: 0.32rem 0.28rem;
  box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.15);
  overflow-y: auto;

  // 关闭按钮
  &__close {
    position: absolute;
    top: 0.14rem;
    right: 0.18rem;
    font-size: 0.18rem;
    color: $text-light;
    cursor: pointer;
    transition: color 0.2s;

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

  // 标题
  &__title {
    font-size: 0.18rem;
    font-weight: 700;
    color: $text-dark;
    text-align: center;
    margin: 0 0 0.2rem 0;
  }

  // 邀请链接区域
  &__link-box {
    background: $bg-main;
    border-radius: 0.08rem;
    padding: 0.14rem 0.16rem;
    margin-bottom: 0.14rem;
  }

  &__link-text {
    font-size: 0.12rem;
    color: $text-dark;
    line-height: 1.7;
    margin: 0;
    word-break: break-all;
  }

  // 复制链接按钮
  &__copy-btn {
    width: 100%;
    height: 0.4rem;
    border: none;
    border-radius: 0.2rem;
    background: $text-dark;
    color: $bg-white;
    font-size: 0.14rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.18rem;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.85;
    }
  }

  // 步骤提示
  &__steps-tip {
    font-size: 0.12rem;
    color: $text-middle;
    text-align: center;
    margin: 0 0 0.14rem 0;
  }

  // 步骤卡片
  &__step {
    border: 1px solid $border-color;
    border-radius: 0.08rem;
    padding: 0.12rem 0.16rem;
    margin-bottom: 0.1rem;
    background: #F2F4F7;
  }

  &__step-title {
    font-size: 0.13rem;
    font-weight: 700;
    color: $text-dark;
    margin-bottom: 0.04rem;
  }

  &__step-desc {
    font-size: 0.11rem;
    color: $text-middle;
    margin: 0;
    line-height: 1.5;
  }

  // 统计数据
  &__stats {
    display: flex;
    gap: 0.12rem;
    margin-top: 0.16rem;
    margin-bottom: 0.16rem;
  }

  &__stat-item {
    flex: 1;
    border: 1px solid $border-color;
    border-radius: 0.08rem;
    padding: 0.12rem;
  }

  &__stat-label {
    font-size: 0.11rem;
    color: $text-middle;
    margin-bottom: 0.06rem;
  }

  &__stat-value {
    font-size: 0.16rem;
    font-weight: 700;
    color: $text-dark;
  }

  // 活动规则
  &__rules {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid $border-color;
    border-radius: 0.08rem;
    padding: 0.12rem 0.16rem;
    cursor: pointer;
    transition: background 0.2s;

    &:hover {
      background: $bg-main;
    }
  }

  &__rules-label {
    font-size: 0.13rem;
    font-weight: 600;
    color: $text-dark;
  }

  &__rules-arrow {
    width: 0.14rem;
    height: 0.14rem;
    color: $text-middle;
    transition: transform 0.2s;

    &--open {
      transform: rotate(180deg);
    }
  }

  &__rules-content {
    margin-top: 0.1rem;
    padding: 0.12rem 0.16rem;
    background: $bg-main;
    border-radius: 0.06rem;

    p {
      font-size: 0.11rem;
      color: $text-middle;
      line-height: 1.8;
      margin: 0 0 0.04rem 0;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}
