/* ============================================================
   邀请页
   ============================================================ */

.invite-page { background: var(--color-bg); }

.inv-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff;
  padding-bottom: 24px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.inv-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  padding: 12px 20px 4px;
  position: relative;
}

.hero-sub {
  font-size: 12px;
  opacity: 0.85;
  padding: 0 20px 18px;
  position: relative;
}

.stats-row {
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  position: relative;
  backdrop-filter: blur(8px);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat .v {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand);
}

.stat .k {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.stats-row .divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

/* 邀请码 */
.invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-brand-bg);
  border: 2px dashed var(--color-brand);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.invite-code .code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-primary);
  font-family: monospace;
}

.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-box {
  flex: 1;
  background: var(--color-primary-bg);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

.link-box .lbl {
  font-size: 10px;
  color: var(--color-text-muted);
}

.link-box .url {
  font-size: 12px;
  color: var(--color-text);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text);
}

.share-btn .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

/* 奖励规则 */
.rule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.rule-row:last-child { border-bottom: none; }

.rule-row .lvl {
  width: 36px;
  height: 36px;
  background: var(--color-brand-bg);
  color: #8B6B00;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.rule-row .desc {
  flex: 1;
  font-size: 13px;
  color: var(--color-text);
}

.rule-row .desc b {
  color: var(--color-primary);
  font-weight: 700;
}

/* 排行榜 */
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.rank-row:last-child { border-bottom: none; }

.rank-row .rk-no {
  width: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-sub);
  text-align: center;
}

.rank-row.rank-1 .rk-no { color: #F0B90B; }
.rank-row.rank-2 .rk-no { color: #B7BDC6; }
.rank-row.rank-3 .rk-no { color: #CD7F32; }

.rank-row.rank-1 .avatar {
  border: 2px solid #F0B90B;
  background: linear-gradient(135deg, #FCD535, #F0B90B) !important;
  color: #1A1A1A;
}

.rank-row.rank-2 .avatar {
  border: 2px solid #B7BDC6;
}

.rank-row.rank-3 .avatar {
  border: 2px solid #CD7F32;
}

.rank-row .meta {
  flex: 1;
  min-width: 0;
}

.rank-row .meta .t {
  font-size: 13px;
  font-weight: 600;
}

.rank-row .meta .s {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.rank-row .rk-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}