.activity-page .activity-content {
  padding-top: 12px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-invite-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.08);
}

.activity-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.activity-qr {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 8px rgba(44, 62, 80, 0.1);
}

.activity-code-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}

.activity-code-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8a94a6;
}

.activity-code-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.activity-code-value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2c3e50;
  line-height: 1.2;
}

.activity-text-btn {
  border: none;
  background: transparent;
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 4px;
}

.activity-copy-code-btn {
  flex-shrink: 0;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.2;
}

.activity-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dce1e8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5c6678;
  background: #fff;
}

.activity-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #dce1e8;
  background: #fff;
  color: #5c6678;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-share-label {
  text-align: center;
  font-size: 13px;
  color: #8a94a6;
  margin: 0 0 10px;
}

.activity-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.activity-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #2c3e50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
}

.activity-copy-main-btn {
  background: #2c3e50 !important;
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: 12px !important;
}

.activity-stats-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.08);
  overflow: hidden;
}

.activity-stats-bar {
  display: flex;
  align-items: stretch;
}

.activity-stat {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
  background: transparent;
}

.activity-stat + .activity-stat {
  border-left: 1px solid #eef1f4;
}

.activity-stat-val {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.activity-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8a94a6;
  line-height: 1.3;
}

.activity-tier-section {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 8px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.08);
  overflow: visible;
}

.activity-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: #2c3e50;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef1f4;
}

.activity-deposit-section .activity-section-title {
  margin-bottom: 12px;
}

.activity-rebate-hero {
  margin-bottom: 16px;
  padding: 18px 16px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f4f8 100%);
  border: 1px solid #e8ecf1;
}

.activity-rebate-hero.is-off {
  padding: 14px 16px;
  background: #f3f5f8;
  border-style: dashed;
  border-color: #dce1e8;
}

.activity-rebate-hero__pct-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.activity-rebate-hero__pct {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2c3e50;
  font-variant-numeric: tabular-nums;
}

.activity-rebate-hero__unit {
  font-size: 22px;
  font-weight: 700;
  color: #5a6578;
}

.activity-rebate-hero__hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8a94a6;
}

.activity-rebate-hero__off {
  margin: 0;
  font-size: 13px;
  color: #9aa3b2;
}

.activity-rebate-records-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8a94a6;
  letter-spacing: 0.02em;
}

.activity-rebate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-rebate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(44, 62, 80, 0.05), 0 0 0 1px rgba(44, 62, 80, 0.07);
}

.activity-rebate-item__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.activity-rebate-item__amount {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  font-variant-numeric: tabular-nums;
}

.activity-rebate-item__currency {
  font-size: 11px;
  font-weight: 600;
  color: #8a94a6;
}

.activity-rebate-item__date {
  font-size: 11px;
  color: #a0a8b6;
}

.activity-rebate-item__gain {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  font-variant-numeric: tabular-nums;
}

.activity-rebate-empty {
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  color: #8a94a6;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}

.activity-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
}

.activity-tier-row:last-child {
  border-bottom: none;
}

/* 邀请奖励阶梯（对齐设计稿） */
#activity-invite-tiers .activity-invite-tier-card {
  list-style: none;
  padding: 16px 0 18px;
  border-bottom: 1px solid #1a2744;
}

#activity-invite-tiers .activity-invite-tier-card:first-child {
  padding-top: 4px;
}

#activity-invite-tiers .activity-invite-tier-card:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.activity-invite-tier-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.activity-invite-tier-head {
  flex: 1;
  min-width: 0;
}

.activity-invite-tier-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a2744;
}

.activity-invite-tier-finger {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1;
}

.activity-invite-tier-reward-col {
  flex-shrink: 0;
  text-align: right;
  min-width: 108px;
}

.activity-invite-tier-reward {
  font-size: 14px;
  font-weight: 700;
  color: #1a2744;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.activity-invite-tier-claim-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #1a2744;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-height: 22px;
  box-sizing: border-box;
}

.activity-invite-tier-progress-block {
  padding-top: 2px;
  overflow: visible;
}

.activity-invite-tier-progress-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a2744;
  margin-bottom: 6px;
}

.activity-invite-tier-track-wrap {
  position: relative;
  padding: 11px 0 2px;
  overflow: visible;
}

.activity-invite-tier-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #d8dee8;
  margin: 0;
}

.activity-invite-tier-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #1a2744;
  max-width: 100%;
}

/* 高度约为 claim-badge 的一半 */
.activity-invite-tier-pin {
  position: absolute;
  top: 50%;
  min-width: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: #1a2744;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 1;
  max-width: calc(100% + 8px);
}

.activity-tier-row__main {
  min-width: 0;
  flex: 1;
}

.activity-tier-row__req {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.35;
}

.activity-tier-row__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8a94a6;
}

.activity-tier-row__end {
  flex-shrink: 0;
  text-align: right;
}

.activity-tier-row__amt {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  font-variant-numeric: tabular-nums;
}

.activity-tier-row__tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #8a94a6;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f6f8;
}

.activity-tier-row.is-done .activity-tier-row__tag {
  color: #2c7a4b;
  background: #edf7f1;
}

.activity-tier-list-empty {
  margin: 0;
  padding: 12px 0 8px;
  font-size: 12px;
  color: #8a94a6;
  text-align: center;
}

html.apmint-theme-dark .activity-invite-card,
html.apmint-theme-dark .activity-stats-card,
html.apmint-theme-dark .activity-tier-section {
  background: #21234c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.apmint-theme-dark .activity-code-value,
html.apmint-theme-dark .activity-section-title,
html.apmint-theme-dark .activity-stat-val,
html.apmint-theme-dark .activity-tier-row__req,
html.apmint-theme-dark .activity-tier-row__amt {
  color: #f1f5f9;
}

html.apmint-theme-dark .activity-code-label,
html.apmint-theme-dark .activity-share-label,
html.apmint-theme-dark .activity-stat-label,
html.apmint-theme-dark .activity-tier-row__meta,
html.apmint-theme-dark .activity-tier-list-empty {
  color: #b8bac5;
}

html.apmint-theme-dark .activity-text-btn {
  color: #e2e8f0;
}

html.apmint-theme-dark .activity-link-input {
  background: #2f3158;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.apmint-theme-dark .activity-icon-btn {
  background: #2f3158;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.apmint-theme-dark .activity-share-btn {
  color: #e2e8f0;
}

html.apmint-theme-dark .activity-stat + .activity-stat,
html.apmint-theme-dark .activity-section-title,
html.apmint-theme-dark .activity-tier-row {
  border-color: rgba(255, 255, 255, 0.1);
}

html.apmint-theme-dark .activity-tier-row__tag {
  background: #2f3158;
  color: #b8bac5;
}

html.apmint-theme-dark .activity-tier-row.is-done .activity-tier-row__tag {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

html.apmint-theme-dark #activity-invite-tiers .activity-invite-tier-card {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

html.apmint-theme-dark .activity-invite-tier-title,
html.apmint-theme-dark .activity-invite-tier-reward,
html.apmint-theme-dark .activity-invite-tier-progress-label {
  color: #f1f5f9;
}

html.apmint-theme-dark .activity-invite-tier-track {
  background: rgba(255, 255, 255, 0.2);
}

html.apmint-theme-dark .activity-invite-tier-fill,
html.apmint-theme-dark .activity-invite-tier-pin,
html.apmint-theme-dark .activity-invite-tier-claim-badge {
  background: #664bfb;
}

html.apmint-theme-dark .activity-rebate-hero.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

html.apmint-theme-dark .activity-rebate-hero.is-off,
html.apmint-theme-dark .activity-rebate-empty {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

html.apmint-theme-dark .activity-rebate-hero__pct {
  color: #f1f5f9;
}

html.apmint-theme-dark .activity-rebate-hero__unit,
html.apmint-theme-dark .activity-rebate-hero__hint,
html.apmint-theme-dark .activity-rebate-records-label,
html.apmint-theme-dark .activity-rebate-hero__off,
html.apmint-theme-dark .activity-rebate-empty {
  color: #b8bac5;
}

html.apmint-theme-dark .activity-rebate-item {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html.apmint-theme-dark .activity-rebate-item__amount,
html.apmint-theme-dark .activity-rebate-item__gain {
  color: #f1f5f9;
}

html.apmint-theme-dark .activity-rebate-item__currency,
html.apmint-theme-dark .activity-rebate-item__date {
  color: #9ca3af;
}

html.apmint-theme-dark .activity-copy-main-btn {
  background: #664bfb !important;
}

html.apmint-theme-dark .activity-qr {
  background: #fff;
}
