/* 推广返利页 /activity/rebate —— PC 帧 39427:124427,H5 帧 39309:135543 */

.activity-rebate {
  /* 本页局部色板(base.css 无对应 token) */
  --ar-accent: #FF2D55;
  --ar-banner-border: #FCE3AD;
  --ar-title-bar: #FCD417;
  --ar-card-gradient: linear-gradient(180deg, #FFFFFF 0%, #FDF6DE 100%);
  font-family: "PingFang SC", sans-serif;
}

.activity-rebate__shell {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- 面包屑 ---------- */

.activity-rebate-breadcrumb {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
}

.activity-rebate-breadcrumb a {
  color: var(--text-primary);
}

.activity-rebate-breadcrumb a:hover {
  color: var(--color-primary-500);
}

.activity-rebate-breadcrumb a.activity-rebate-breadcrumb__current,
.activity-rebate-breadcrumb__current {
  color: var(--text-secondary);
}

.activity-rebate-breadcrumb--mobile {
  display: none;
}

/* ---------- 返利说明横幅 ---------- */

.activity-rebate-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--ar-banner-border);
  border-radius: 12px;
  background: var(--ar-card-gradient);
}

.activity-rebate-feature__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-rebate-feature__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-rebate-feature__title em {
  font-style: normal;
  color: var(--ar-accent);
}

.activity-rebate-feature__desc {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-rebate-feature__art {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  flex-shrink: 0;
}

.activity-rebate-feature__art-img {
  position: absolute;
  left: -8%;
  top: -6%;
  width: 116%;
  height: 116%;
}

/* ---------- 累计返利卡 ---------- */

.activity-rebate-total {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-black-alpha-10);
  border-radius: 12px;
  background: #fff;
}

.activity-rebate-total__label {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}

.activity-rebate-total__value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
}

.activity-rebate-detail__empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: var(--text-secondary);
}

.activity-rebate-total__approx {
  font-weight: 400;
}

.activity-rebate-total__value em {
  font-style: normal;
  color: var(--ar-accent);
}

.activity-rebate-total__meta {
  margin: 0;
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}

/* ---------- 各级邀请人数 ---------- */

.activity-rebate-levels {
  display: flex;
  gap: 12px;
}

.activity-rebate-levels__item {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border: 1px solid var(--color-primary-500);
  border-radius: 12px;
  background: var(--ar-card-gradient);
  font-family: inherit;
  cursor: pointer;
}

.activity-rebate-levels__item:hover {
  filter: brightness(0.98);
}

.activity-rebate-levels__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-secondary);
}

.activity-rebate-levels__value {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
}

/* ---------- 主 CTA(黄底近黑字) ---------- */

.activity-rebate-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 58px;
  border-radius: 12px;
  background: var(--color-primary-500);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-rebate-cta:hover {
  filter: brightness(0.96);
}

.activity-rebate-cta__icon {
  width: 18px;
  height: 18px;
}

.activity-rebate-cta--mobile {
  display: none;
}

/* ---------- 返利明细 ---------- */

.activity-rebate-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-rebate-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-rebate-detail__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-rebate-detail__bar {
  width: 6px;
  height: 28px;
  border-radius: 4px;
  background: var(--ar-title-bar);
}

.activity-rebate-detail__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-primary);
  white-space: nowrap;
}

.activity-rebate-detail__more:hover {
  color: var(--color-primary-500);
}

.activity-rebate-detail__more-icon {
  width: 18px;
  height: 18px;
}

.activity-rebate-detail__card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--color-black-alpha-10);
  border-radius: 12px;
  background: #fff;
}

.activity-rebate-detail__card-head {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.activity-rebate-detail__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-rebate-detail__all {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-rebate-detail__all:hover {
  color: var(--color-primary-500);
}

.activity-rebate-detail__all-icon {
  width: 18px;
  height: 18px;
}

.activity-rebate-detail__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-black-alpha-10);
}

.activity-rebate-detail__row:last-child {
  border-bottom: none;
}

.activity-rebate-detail__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-rebate-detail__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-rebate-detail__date {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-rebate-detail__amount {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--ar-accent);
}

/* ---------- H5(≤768px,与 H5 稿一致) ---------- */

@media (max-width: 768px) {
  .activity-rebate__shell {
    gap: 18px;
  }

  .activity-rebate-breadcrumb--desktop {
    display: none;
  }

  .activity-rebate-breadcrumb--mobile {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .activity-rebate-feature {
    padding: 12px;
  }

  .activity-rebate-feature__text {
    gap: 2px;
  }

  .activity-rebate-feature__title {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-rebate-feature__desc {
    font-size: 12px;
    line-height: 18px;
    color: var(--color-neutral-600);
  }

  .activity-rebate-feature__art {
    width: 54px;
    height: 44px;
  }

  .activity-rebate-feature__art-img {
    left: -4px;
    top: -9px;
    width: 62px;
    height: 62px;
  }

  .activity-rebate-levels__item {
    padding: 11px 24px;
  }

  .activity-rebate-cta {
    height: 44px;
  }

  .activity-rebate-cta--desktop {
    display: none;
  }

  .activity-rebate-cta--mobile {
    display: flex;
  white-space: nowrap;
}

  .activity-rebate-detail {
    gap: 0;
  }

  .activity-rebate-detail__head {
    display: none;
  }

  .activity-rebate-detail__card {
    padding: 12px;
  }

  .activity-rebate-detail__card-head {
    display: flex;
  }

  .activity-rebate-detail__row--pc-only {
    display: none;
  }

  /* 隐藏第 4 行后,第 3 行成为视觉最后一行,去掉分割线 */
  .activity-rebate-detail__row:nth-last-child(2) {
    border-bottom: none;
  }

  .activity-rebate-detail__name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
  }

  .activity-rebate-detail__date {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-rebate-detail__amount {
    font-size: 14px;
    line-height: 20px;
  }
}
