/* 邀请落地页 — 炫酷主视觉 + 清晰三步导流 */

.invite-page {
  --invite-coral: #ff6b35;
  --invite-coral-light: #ff914d;
  --invite-ink: #0c0a12;
  --invite-violet: #6b4dff;
  --invite-cyan: #38e7ff;
  --invite-glass: rgba(255, 255, 255, 0.07);
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

.invite-page.invite-wechat-tip-visible {
  overflow: hidden;
  touch-action: none;
}

.invite-page .nav-logo-text {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 217, 61, 0.35);
}

.invite-nav-logo-glow.invite-nav-brand-icon.nav-logo-icon {
  padding: 5px !important;
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 248, 230, 0.95) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 28px rgba(255, 140, 66, 0.55), 0 4px 18px rgba(107, 77, 255, 0.25);
}

.invite-nav-brand-img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 10px;
}

@media (min-width: 769px) {
  .invite-nav-brand-img {
    width: 32px;
    height: 32px;
  }
}

.invite-phone-mascot {
  width: clamp(96px, 22vw, 128px);
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-top: 12px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.invite-hero-visual-desktop .phone-logo-text {
  margin-top: 10px;
}

.invite-qr-mini-inner--brand {
  padding: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.invite-qr-mini-brand {
  width: auto;
  height: auto;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

.invite-nav {
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 10, 18, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.invite-nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.invite-nav-cta {
  position: relative;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #1a0f00;
  background: linear-gradient(135deg, var(--deer-gold) 0%, var(--deer-orange) 55%, var(--orange-deep) 100%);
  box-shadow:
    0 0 24px rgba(255, 217, 61, 0.45),
    0 6px 18px rgba(255, 107, 26, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.invite-nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 28px rgba(56, 231, 255, 0.35),
    0 8px 22px rgba(255, 107, 26, 0.48);
}

.invite-nav-cta:active {
  transform: scale(0.98);
}

.invite-nav-cta-label {
  position: relative;
  z-index: 1;
}

.invite-nav-cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0;
  animation: inviteNavShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes inviteNavShine {
  0%,
  60% {
    opacity: 0;
    transform: translateX(-80%);
  }
  75% {
    opacity: 0.55;
    transform: translateX(80%);
  }
  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

.invite-hero-mesh {
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding-top: 96px;
  padding-bottom: 72px;
  background: radial-gradient(ellipse 120% 90% at 50% -15%, rgba(107, 77, 255, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(255, 107, 53, 0.22) 0%, transparent 45%),
    linear-gradient(165deg, #12101c 0%, #1a1628 42%, #251a32 100%) !important;
  color: rgba(255, 255, 255, 0.92);
}

.invite-hero-mesh::before,
.invite-hero-mesh::after {
  opacity: 0.5;
}

.invite-hero-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 22%, transparent 75%);
}

.invite-hero-orbs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.invite-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: inviteOrbFloat 14s ease-in-out infinite;
}

.invite-orb-a {
  width: 280px;
  height: 280px;
  top: -6%;
  right: -4%;
  background: rgba(255, 107, 53, 0.28);
}

.invite-orb-b {
  width: 220px;
  height: 220px;
  bottom: 18%;
  left: -8%;
  background: rgba(107, 77, 255, 0.25);
  animation-delay: -4s;
}

.invite-orb-c {
  width: 160px;
  height: 160px;
  top: 42%;
  right: 24%;
  background: rgba(56, 231, 255, 0.14);
  animation-delay: -7s;
}

@keyframes inviteOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -16px) scale(1.04);
  }
  66% {
    transform: translate(-14px, 10px) scale(0.98);
  }
}

.invite-hero-row,
.invite-hero-row .hero-content {
  position: relative;
  z-index: 1;
}

.invite-hero-mesh .hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

.invite-hero-mesh .hero-desc {
  color: rgba(255, 255, 255, 0.72);
}

.invite-hero-mesh .hero-badge {
  background: rgba(255, 217, 61, 0.12);
  border-color: rgba(255, 217, 61, 0.35);
  color: var(--deer-gold);
}

/* 三步导流条 */
.invite-flow-strip {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--invite-glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.invite-flow-strip-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(56, 231, 255, 0.85);
  margin-bottom: 10px;
}

/* 使用 ul：步骤序号已在 .invite-flow-badge 内展示，避免出现 ol 自动生成 1.2.3.4.5 与排版错位（尤其部分 WebKit） */
.invite-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: space-between;
}

.invite-flow-steps > li {
  list-style: none;
  margin: 0;
}

.invite-flow-steps > li::marker {
  content: none;
}

.invite-flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
}

.invite-flow-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #1a0f00;
  background: linear-gradient(145deg, var(--deer-gold), var(--deer-orange));
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.45);
}

.invite-flow-text {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.invite-flow-text strong {
  color: #fff;
  font-weight: 800;
}

.invite-flow-join {
  align-self: center;
  width: 18px;
  height: 2px;
  margin: 0 4px;
  margin-top: 16px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 61, 0.55), transparent);
  border-radius: 2px;
}

@media (min-width: 480px) {
  .invite-flow-text {
    font-size: 13px;
  }

  .invite-flow-join {
    width: 28px;
  }
}

@media (max-width: 359px) {
  .invite-flow-strip-title {
    letter-spacing: 0.14em;
  }

  .invite-flow-text {
    font-size: 11px;
  }
}

.invite-hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(56, 231, 255, 0.9);
  text-transform: uppercase;
}

.invite-splash-accent {
  background: linear-gradient(135deg, #fff 0%, var(--deer-gold) 45%, var(--deer-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invite-hero-cta-row {
  margin-top: 18px;
}

.invite-mega-download {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(56, 231, 255, 0.55), rgba(255, 217, 61, 0.45), rgba(255, 107, 53, 0.55));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 107, 53, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  animation: inviteMegaPulse 2.4s ease-in-out infinite;
}

.invite-mega-download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(56, 231, 255, 0.22);
}

.invite-mega-download:active {
  transform: translateY(0) scale(0.99);
}

.invite-mega-download-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 17px;
  background: linear-gradient(160deg, #2a2438 0%, #15121f 100%);
}

.invite-mega-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--deer-gold), var(--deer-orange));
  color: #1a0f00;
  font-weight: 900;
}

.invite-mega-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  min-width: 0;
}

.invite-mega-line1 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.invite-mega-line2 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.invite-cta-footnote {
  margin: 12px 4px 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.invite-cta-footnote strong {
  color: rgba(255, 217, 61, 0.92);
}

@keyframes inviteMegaPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 16px 48px rgba(0, 0, 0, 0.45),
      0 0 40px rgba(255, 107, 53, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16) inset,
      0 18px 52px rgba(0, 0, 0, 0.5),
      0 0 52px rgba(56, 231, 255, 0.2);
  }
}

.invite-hero-visual-desktop .float-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.invite-hero-visual-desktop .fc-label {
  color: rgba(255, 255, 255, 0.75);
}

.invite-hero-visual-desktop .fc-value {
  color: #fff;
}

.invite-phone-glow.phone-mockup {
  filter: drop-shadow(0 0 32px rgba(255, 140, 66, 0.35));
}

.invite-page .hero {
  min-height: auto;
  padding-top: 100px;
  padding-bottom: 72px;
}

.invite-hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.invite-hero-row .hero-content {
  flex: 1;
  max-width: 560px;
}

.invite-hero-row .hero-visual {
  flex: 1;
}

.invite-code-card {
  position: relative;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 140, 66, 0.22);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.invite-code-card--neon {
  background: rgba(18, 16, 30, 0.72);
  border: 1px solid rgba(255, 217, 61, 0.28);
  box-shadow:
    0 0 0 1px rgba(56, 231, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(255, 107, 53, 0.12);
  animation: inviteCodeGlow 3.5s ease-in-out infinite;
}

@keyframes inviteCodeGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(56, 231, 255, 0.08),
      0 20px 50px rgba(0, 0, 0, 0.45),
      0 0 48px rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 217, 61, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(56, 231, 255, 0.18),
      0 22px 56px rgba(0, 0, 0, 0.48),
      0 0 72px rgba(56, 231, 255, 0.16);
    border-color: rgba(56, 231, 255, 0.35);
  }
}

.invite-code-label-icon {
  color: var(--invite-cyan);
  font-size: 12px;
  margin-right: 2px;
}

/* 供 execCommand('copy')：须在 DOM 内可 focus/select；避免 pointer-events:none 与过小尺寸（微信/WebView 易失败） */
.invite-code-copy-source {
  position: fixed;
  left: 8px;
  bottom: 8px;
  width: 72px;
  height: 28px;
  margin: 0;
  padding: 4px 6px;
  opacity: 0.04;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  outline: none;
  z-index: 0;
  box-sizing: border-box;
  -webkit-user-select: text;
  user-select: text;
}

.invite-code-label {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-code-card--neon .invite-code-label {
  color: rgba(255, 255, 255, 0.72);
}

.invite-code-card--neon .invite-code-label strong {
  color: var(--deer-gold);
}

.invite-code-label strong {
  color: var(--deer-orange);
  font-weight: 600;
}

.invite-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.invite-code-value {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--dark-brown);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 140, 66, 0.12));
  border: 1px dashed rgba(255, 140, 66, 0.45);
  flex: 1;
  min-width: 160px;
  word-break: break-all;
}

.invite-code-card--neon .invite-code-value:not(.is-placeholder) {
  color: #fff7d6;
  text-shadow: 0 0 20px rgba(255, 217, 61, 0.35);
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.18), rgba(107, 77, 255, 0.12));
  border: 1px solid rgba(255, 217, 61, 0.42);
}

.invite-code-card--neon .invite-code-value.is-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.invite-code-value.is-placeholder {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-mid);
}

.btn-copy {
  padding: 12px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--deer-orange), var(--orange-deep));
  box-shadow: 0 4px 14px rgba(255, 140, 66, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 140, 66, 0.45);
}

.btn-copy:active {
  transform: translateY(0);
}

.btn-copy.copied {
  background: linear-gradient(135deg, var(--deer-green), #06a050);
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}

.invite-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.invite-code-card--neon .invite-hint {
  color: rgba(255, 255, 255, 0.58);
}

.invite-code-card--neon .invite-hint strong {
  color: rgba(255, 217, 61, 0.95);
}

.invite-hint--mobile {
  display: none !important;
}

.invite-qr-mini {
  display: none;
}

/* 头图：玻璃态 + 霓虹描边 */
.invite-hero-splash {
  text-align: center;
  padding: 22px 18px 20px;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 60px rgba(107, 77, 255, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.invite-splash-title {
  font-size: clamp(28px, 7.5vw, 36px);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.invite-splash-sub {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
  font-weight: 600;
}

.invite-splash-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 140, 66, 0.18);
  border: 1px solid rgba(255, 140, 66, 0.35);
  color: rgba(255, 245, 220, 0.95);
  backdrop-filter: blur(4px);
}

.hero-subtitle--compact {
  margin-bottom: 12px !important;
  line-height: 1.45;
}

/* 四宫格优势（参考页） */
.invite-ref-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 560px;
}

.invite-ref-feature-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.invite-hero-mesh .invite-ref-feature-title {
  color: #fff;
}

.invite-hero-mesh .invite-ref-feature-desc {
  color: rgba(255, 255, 255, 0.55);
}

.invite-ref-feature-icon {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1;
}

.invite-ref-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 4px;
}

.invite-ref-feature-desc {
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.35;
}

@media (min-width: 769px) {
  .invite-ref-feature-title {
    font-size: 14px;
  }

  .invite-ref-feature-desc {
    font-size: 12px;
  }
}

/* 邀请双重大奖（参考页金额，附合规说明） */
.invite-bonus-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.12);
}

.invite-bonus-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--invite-coral);
  text-align: center;
  margin: 0 0 12px;
}

.invite-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}

.invite-bonus-row:last-of-type {
  border-bottom: none;
}

.invite-bonus-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.invite-bonus-step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff3e0;
  color: var(--invite-coral);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-bonus-text {
  font-size: 14px;
  color: #333;
  line-height: 1.35;
}

.invite-bonus-money {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--invite-coral);
}

.invite-bonus-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.45;
}

/* 品类标签区 */
.invite-category-block {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.invite-category-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-brown);
  margin: 0 0 8px;
  line-height: 1.3;
}

.invite-category-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 0 10px;
}

.invite-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invite-cat-tag {
  background: #fff3e0;
  color: var(--invite-coral);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.invite-footer-sub {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.85;
}

.invite-rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.invite-reward-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 140, 66, 0.12);
  text-align: center;
  transition: var(--transition);
}

.invite-reward-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.invite-reward-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

.invite-reward-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 10px;
}

.invite-reward-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

.invite-footer-mini {
  padding: 32px 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-cream);
  border-top: 1px solid rgba(255, 140, 66, 0.1);
}

.invite-footer-mini > p {
  margin: 0;
}

.invite-footer-mini > p + p {
  margin-top: 6px;
}

.invite-footer-mini a {
  color: var(--deer-orange);
  text-decoration: none;
}

.invite-footer-mini a:hover {
  text-decoration: underline;
}

/* 下载区：去掉多按钮后的留白 */
.invite-download-section .download-btns {
  display: none;
}

.invite-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--deer-orange), var(--orange-deep));
  box-shadow: 0 8px 28px rgba(255, 140, 66, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: inviteDownloadPulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.invite-download-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: inviteDownloadShine 3s ease-in-out infinite;
}

.invite-download-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255, 140, 66, 0.55);
}

.invite-download-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes inviteDownloadPulse {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(255, 140, 66, 0.5);
  }
  50% {
    box-shadow: 0 10px 36px rgba(255, 107, 26, 0.65), 0 0 0 4px rgba(255, 217, 61, 0.35);
  }
}

@keyframes inviteDownloadShine {
  0% {
    transform: translateX(-100%);
  }
  40%,
  100% {
    transform: translateX(100%);
  }
}

.invite-download-btn--inline {
  margin-top: 8px;
  animation-delay: 0.3s;
}

.invite-download-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 16, 30, 0) 0%, rgba(14, 12, 22, 0.92) 35%, rgba(10, 8, 16, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.invite-download-bar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.invite-download-bar-hint {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  min-width: 0;
}

.invite-download-bar-step {
  color: var(--deer-gold);
  font-weight: 800;
  margin-right: 2px;
}

.invite-download-bar .invite-download-bar-btn.invite-download-btn {
  pointer-events: auto;
  flex-shrink: 0;
  width: auto;
  min-width: 112px;
  max-width: none;
  padding: 12px 18px;
  font-size: 15px;
  margin: 0;
}

.invite-download-bar .invite-download-btn {
  pointer-events: auto;
  animation: inviteDownloadPulse 2.2s ease-in-out infinite;
}

/* 微信内「在浏览器打开」：与 merchant-onboarding-benefits 一致 — 深遮罩 + 白底卡片距顶 70px + 点遮罩外区关闭 + 右上横向指引与箭头（无插图、无浮动关闭按钮） */
.invite-wechat-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  font-family: inherit;
  pointer-events: auto;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.invite-wechat-overlay[hidden] {
  display: none !important;
}

.invite-wechat-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 4, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.invite-wechat-corner-hint {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  width: max-content;
  max-width: min(calc(100vw - 20px), 360px);
  line-height: 0;
  color: #ffcc02;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 69, 0, 0.9);
  pointer-events: none;
  animation: invite-wechat-corner-pulse 1.5s ease-in-out infinite;
  text-align: right;
}

.invite-wechat-corner-cap {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  opacity: 0.95;
  text-align: right;
  display: inline-block;
  vertical-align: bottom;
  padding-bottom: 2px;
  color: inherit;
}

.invite-wechat-corner-dots {
  flex: none;
  letter-spacing: 2px;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  vertical-align: bottom;
  opacity: 0.95;
  color: inherit;
}

.invite-wechat-corner-arrow {
  flex: none;
  display: flex;
  align-items: flex-end;
  line-height: 0;
  margin-left: 2px;
}

.invite-wechat-corner-arrow svg {
  width: 30px;
  height: 30px;
  display: block;
  color: currentColor;
  filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.85));
}

@keyframes invite-wechat-corner-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.invite-wechat-stage {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  margin: 70px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  max-height: calc(100vh - 70px - 14px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 70px - 14px - env(safe-area-inset-bottom, 0px));
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: 0;
  color: #1a1428;
  text-align: center;
}

.invite-wechat-scroll {
  overflow: auto;
  padding: 14px 16px 12px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  box-sizing: border-box;
  color: rgba(42, 35, 28, 0.95);
}

.invite-wechat-hero-title {
  font-size: 1.12rem;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.35;
  text-shadow: none;
  color: #c43d00;
  background: linear-gradient(135deg, #d94a08, #bf6b00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invite-wechat-hero-sub {
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 10px;
  opacity: 1;
  padding: 0 2px;
  color: rgba(42, 35, 28, 0.92);
}

.invite-wechat-hero-sub strong {
  color: #bf5a00;
  font-weight: 800;
  -webkit-text-fill-color: #bf5a00;
}

.invite-wechat-steps {
  text-align: left;
  margin: 0 auto;
  max-width: 340px;
  padding: 0 0 0 1.05rem;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 1;
  color: rgba(42, 35, 28, 0.9);
}

.invite-wechat-steps li {
  margin-bottom: 5px;
}

.invite-wechat-steps strong {
  color: #bf5a00;
  font-weight: 800;
}

.invite-wechat-note {
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 10px 0 0;
  opacity: 1;
  color: rgba(90, 80, 72, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .invite-wechat-corner-hint {
    animation: none;
  }

  .invite-orb,
  .invite-mega-download,
  .invite-code-card--neon,
  .invite-nav-cta-glow {
    animation: none !important;
  }

  .invite-download-btn,
  .invite-download-bar-btn {
    animation: none !important;
  }
}

@media (max-width: 1024px) {
  .invite-hero-row {
    flex-direction: column;
    text-align: center;
  }

  .invite-hero-row .hero-content {
    max-width: 100%;
  }

  .invite-code-row {
    justify-content: center;
  }

  .invite-code-card {
    text-align: left;
  }

  .invite-rewards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  /*
   * H5 邀请首页：一屏内呈现「标题 + 三步 + 邀请码 + 中区下载」；
   * 主列在 hero 内垂直居中，避免内容与底栏之间大块空膛。
   */
  html.invite-html {
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
  }

  /* 移动端统一水平留白：单层 gutter（避免与 deer 的 .hero 左右 padding 叠成「双轨」留白） */
  body.invite-page {
    --invite-m-gutter-x: clamp(11px, 3.8vw, 18px);

    min-height: 0;
    margin: 0;
    padding: 0;
    background: #13111a;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .invite-hero-row .hero-content {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: clamp(6px, 1.85vw, 10px);
    min-height: 0;
    max-width: none;
    width: 100%;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .invite-page .hero > .invite-hero-grid-bg,
  .invite-page .hero > .invite-hero-orbs {
    /* 避免因 flex-gap 或未撑满导致的叠层偏移，与普通流一致即可 */
    flex-shrink: 0;
  }

  .invite-page-shell {
    box-sizing: border-box;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    padding-bottom: 0 !important;
    background: #13111a;
  }

  .invite-page-shell > section.hero.invite-hero-mesh {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .invite-hero-row .hero-content::after {
    content: none;
    display: none;
  }

  .invite-desktop-only {
    display: none !important;
  }

  .invite-hero-visual-desktop {
    display: none !important;
  }

  .invite-qr-mini {
    display: none !important;
  }

  .invite-qr-mini-frame {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    padding: 3px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--deer-orange), var(--deer-gold));
    box-shadow: 0 4px 14px rgba(255, 140, 66, 0.3);
  }

  .invite-qr-mini-inner {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
  }

  .invite-qr-mini-cap {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.2;
  }

  .invite-nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .invite-flow-strip {
    margin: 0;
  }

  /* 卡片内边距与「列」留白一致观感 */
  .invite-page .invite-flow-strip {
    --invite-m-gutter-inner: max(10px, calc(var(--invite-m-gutter-x) - 2px));
    padding: 8px var(--invite-m-gutter-inner, 12px);
  }

  .invite-flow-strip-title {
    display: none;
  }

  .invite-flow-join {
    margin-top: 10px;
    width: 12px;
  }

  .invite-flow-badge {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 8px;
  }

  .invite-flow-text {
    font-size: 10px;
  }

  .invite-mega-download {
    margin-top: 0;
  }

  .invite-mega-download-inner {
    padding: 12px max(11px, calc(var(--invite-m-gutter-x, 14px) - 1px));
    gap: 10px;
  }

  .invite-mega-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .invite-mega-line1 {
    font-size: 14px;
  }

  .invite-mega-line2 {
    font-size: 11px;
  }

  .invite-cta-footnote {
    font-size: 10px;
    margin-top: 0;
    line-height: 1.42;
    text-align: center;
  }

  /* 盖住 deer.css @media (max-width:1024px) 里 .hero 的左右 padding，留白只留给 .invite-hero-row */
  .invite-page .hero.invite-hero-mesh,
  .invite-page .hero {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-inline: 0 !important;
    /* 顶栏已在 nav 内吃 safe-area；此处留白 = 栏高 + 与内容间距（避免被 fixed nav 遮挡） */
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    box-sizing: border-box;
  }

  /* 主列：占满可视主区垂直空间，整块内容居中，避免「上头下脚中间空膛」 */
  .invite-hero-row {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  /* H5：四宫格/长说明仍在桌面专属区；移动端保留标题副标 + 三步条 + 码 + 中区下载 */
  .invite-page .hero .invite-splash-tag,
  .invite-page .hero .hero-badge,
  .invite-page .hero .hero-desc {
    display: none !important;
  }

  .invite-page .hero .invite-splash-sub {
    display: block !important;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.74);
    letter-spacing: 0.04em;
  }

  .invite-page .hero .invite-hero-kicker {
    font-size: 9px;
    margin-bottom: 2px;
    letter-spacing: 0.14em;
  }

  .invite-page .hero .invite-hero-splash,
  .invite-page .invite-code-card {
    --invite-m-gutter-inner: max(10px, calc(var(--invite-m-gutter-x) - 1px));
  }

  .invite-page .hero .invite-hero-splash {
    padding: 8px var(--invite-m-gutter-inner, 12px) 10px;
    margin-bottom: 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 40px rgba(107, 77, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.3);
  }

  .invite-page .hero .invite-splash-title {
    font-size: clamp(17px, 5.2vw, 22px);
    margin-bottom: 0;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .invite-page .hero .invite-splash-accent {
    display: inline-block;
    margin-left: 4px;
  }

  .invite-page .invite-hint--desktop {
    display: none !important;
  }

  .invite-page .invite-hint--mobile {
    display: block !important;
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.35;
  }

  .invite-page .hero .hero-subtitle {
    display: none !important;
  }

  .invite-page .hero .invite-ref-features {
    display: none !important;
  }

  .invite-page .hero .invite-bonus-card {
    padding: 14px 12px 12px;
    margin-bottom: 10px;
  }

  .invite-page .hero .invite-bonus-text {
    font-size: 13px;
  }

  .invite-page .hero .invite-category-block {
    padding: 12px 12px;
    margin-bottom: 8px;
  }

  .invite-code-card {
    padding: 10px var(--invite-m-gutter-inner, 12px);
    margin: 0;
    border-radius: 15px;
    box-shadow:
      0 0 0 1px rgba(255, 217, 61, 0.18) inset,
      0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .invite-code-label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .invite-code-row {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }

  .invite-code-value {
    font-size: clamp(13px, 3.6vw, 16px);
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .invite-code-value.is-placeholder {
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    display: flex;
    align-items: center;
  }

  .btn-copy {
    flex-shrink: 0;
    width: auto;
    min-width: 84px;
    padding: 8px 11px;
    font-size: 11px;
    white-space: nowrap;
  }

  .invite-page .invite-code-card .invite-hint {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.38;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .invite-download-bar {
    display: flex;
    left: 0;
    right: 0;
    padding: 10px max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
  }

  /* 抵消全局 max-width:440px，底栏铺满屏宽（仅留安全区） */
  .invite-download-bar-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none !important;
  }

  /*
   * 去掉脉冲与扫光动画（部分机型上会像「一闪一闪」），保留静态渐变与投影。
   */
  .invite-page .invite-download-btn,
  .invite-page .invite-download-bar .invite-download-btn {
    animation: none !important;
    box-shadow: 0 6px 22px rgba(255, 107, 26, 0.38), 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }

  .invite-page .invite-download-btn::after {
    display: none !important;
    content: none !important;
    animation: none !important;
  }

  .invite-page .invite-mega-download {
    animation: none !important;
    border-radius: 18px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14) inset,
      0 14px 40px rgba(0, 0, 0, 0.4);
  }

  .invite-page .invite-code-card--neon {
    animation: none !important;
  }

  .invite-page .invite-nav-cta-glow {
    animation: none !important;
    opacity: 0;
  }

  .invite-page .invite-nav.nav {
    padding-left: max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }

  /* 避免 1024 断层的 text-align:center 让正文整列像「悬在中间小条」 */
  .invite-page .invite-hero-row {
    text-align: left;
  }

  .invite-page .invite-code-card,
  .invite-page .invite-flow-strip,
  .invite-page .invite-mega-download,
  .invite-page .invite-hero-cta-row {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .invite-page .invite-hero-cta-row {
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* 次要说明与底栏对齐同一水平内边距 */
  .invite-page .invite-cta-footnote {
    margin-left: 0;
    margin-right: 0;
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
  }

  .invite-download-bar-hint {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    line-height: 1.34;
    text-align: left;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.76);
  }

  .invite-download-bar .invite-download-bar-btn.invite-download-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .invite-download-btn--inline {
    display: none !important;
  }

  .invite-download-section {
    padding-bottom: 32px;
  }
}

@media (min-width: 769px) {
  html:not(.invite-h5-invite) .invite-qr-mini {
    display: none !important;
  }

  html:not(.invite-h5-invite) .invite-download-bar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  /* 默认（含桌面邀请子页在非 .invite-page）保持竖排 */
  .invite-code-value {
    width: 100%;
    text-align: center;
  }

  .btn-copy {
    width: 100%;
  }

  /* H5 邀请首页：邀请码与「复制邀请码」同一行，首屏能看见操作区 */
  .invite-page .invite-code-row {
    flex-wrap: nowrap;
  }

  .invite-page .invite-code-value {
    width: auto !important;
    flex: 1;
    min-width: 0;
  }

  .invite-page .invite-code-value:not(.is-placeholder) {
    text-align: center;
  }

  .invite-page .btn-copy {
    width: auto !important;
    min-width: 90px;
  }
}

/*
 * /invite/index HTML 带 class="invite-h5-invite"：不承担 PC，任意视宽均使用 H5 版式；
 * （与上方 @media(max-width:768px) 中 .invite-page 规则对齐；任务分享等非此页不受影响。）
 */
html.invite-h5-invite.invite-html {
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

html.invite-h5-invite body.invite-page {
  --invite-m-gutter-x: clamp(11px, 3.8vw, 18px);
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #13111a;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

html.invite-h5-invite .invite-hero-row .hero-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* 勿用 space-between：父级 flex 拉高时会在「邀请码块」与「四宫格」之间扯出空膛 */
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(8px, 2.2vw, 12px);
  min-height: 0;
  max-width: none;
  width: 100%;
  padding-bottom: 0;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-h5-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(8px, 2.2vw, 12px);
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
}

html.invite-h5-invite .invite-page .hero > .invite-hero-grid-bg,
html.invite-h5-invite .invite-page .hero > .invite-hero-orbs {
  flex-shrink: 0;
}

html.invite-h5-invite .invite-page-shell {
  box-sizing: border-box;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: 0 !important;
  background: #13111a;
}

html.invite-h5-invite .invite-page-shell > section.hero.invite-hero-mesh {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

html.invite-h5-invite .invite-hero-row .hero-content::after {
  content: none;
  display: none;
}

html.invite-h5-invite .invite-nav-cta {
  padding: 8px 14px;
  font-size: 12px;
}

html.invite-h5-invite .invite-flow-strip {
  margin: 0;
}

html.invite-h5-invite .invite-page .invite-flow-strip {
  --invite-m-gutter-inner: max(10px, calc(var(--invite-m-gutter-x) - 2px));
  padding: 10px var(--invite-m-gutter-inner, 12px);
}

html.invite-h5-invite .invite-flow-strip-title {
  display: none;
}

html.invite-h5-invite .invite-flow-join {
  margin-top: 10px;
  width: 12px;
}

html.invite-h5-invite .invite-flow-badge {
  width: 26px;
  height: 26px;
  font-size: 12px;
  border-radius: 8px;
}

html.invite-h5-invite .invite-flow-text {
  font-size: 10px;
}

html.invite-h5-invite .invite-mega-download {
  margin-top: 0;
}

html.invite-h5-invite .invite-mega-download-inner {
  padding: clamp(13px, 3.6vw, 16px) max(11px, calc(var(--invite-m-gutter-x, 14px) - 1px));
  gap: 10px;
}

html.invite-h5-invite .invite-mega-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

html.invite-h5-invite .invite-mega-line1 {
  font-size: 14px;
}

html.invite-h5-invite .invite-mega-line2 {
  font-size: 11px;
}

html.invite-h5-invite .invite-page .invite-cta-footnote {
  font-size: 10px;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 4px;
  padding-right: 4px;
  line-height: 1.42;
  text-align: center;
}

html.invite-h5-invite .invite-page .hero.invite-hero-mesh,
html.invite-h5-invite .invite-page .hero {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-inline: 0 !important;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .invite-hero-row {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  text-align: left;
}

html.invite-h5-invite .invite-page .hero .invite-splash-tag {
  display: none !important;
}

html.invite-h5-invite .invite-page .hero .invite-splash-sub {
  display: block !important;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.04em;
}

html.invite-h5-invite .invite-page .hero .invite-hero-kicker {
  font-size: 9px;
  margin-bottom: 2px;
  letter-spacing: 0.14em;
}

html.invite-h5-invite .invite-page .hero .invite-hero-splash,
html.invite-h5-invite .invite-page .invite-code-card {
  --invite-m-gutter-inner: max(10px, calc(var(--invite-m-gutter-x) - 1px));
}

html.invite-h5-invite .invite-page .hero .invite-hero-splash {
  padding: 11px var(--invite-m-gutter-inner, 12px) 12px;
  margin-bottom: 0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 40px rgba(107, 77, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.3);
}

html.invite-h5-invite .invite-page .hero .invite-splash-title {
  font-size: clamp(17px, 5.2vw, 22px);
  margin-bottom: 0;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

html.invite-h5-invite .invite-page .hero .invite-splash-accent {
  display: inline-block;
  margin-left: 4px;
}

html.invite-h5-invite .invite-page .invite-code-card {
  padding: 12px var(--invite-m-gutter-inner, 12px);
  margin: 0;
  border-radius: 15px;
  box-shadow:
    0 0 0 1px rgba(255, 217, 61, 0.18) inset,
    0 12px 32px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .invite-code-card .invite-hint {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.38;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: rgba(255, 255, 255, 0.58);
}

html.invite-h5-invite .invite-page .invite-code-card .invite-hint strong {
  color: rgba(255, 217, 61, 0.95);
}

html.invite-h5-invite .invite-page .invite-code-label {
  margin-bottom: 3px;
  font-size: 10px;
}

html.invite-h5-invite .invite-page .invite-code-row {
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

html.invite-h5-invite .invite-page .invite-code-value {
  font-size: clamp(13px, 3.6vw, 16px);
  padding: 8px 10px;
  flex: 1;
  min-width: 0;
  width: auto !important;
  text-align: center;
}

html.invite-h5-invite .invite-page .invite-code-value.is-placeholder {
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  display: flex;
  align-items: center;
}

html.invite-h5-invite .invite-page .invite-code-value:not(.is-placeholder) {
  text-align: center;
}

html.invite-h5-invite .invite-page .btn-copy {
  flex-shrink: 0;
  width: auto !important;
  min-width: 84px;
  padding: 8px 11px;
  font-size: 11px;
  white-space: nowrap;
}

html.invite-h5-invite .invite-download-bar {
  display: flex !important;
  left: 0;
  right: 0;
  padding: 10px max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px))
    calc(10px + env(safe-area-inset-bottom, 0px))
    max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
}

html.invite-h5-invite .invite-download-bar-inner {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none !important;
}

html.invite-h5-invite .invite-page .invite-download-btn,
html.invite-h5-invite .invite-page .invite-download-bar .invite-download-btn {
  animation: none !important;
  box-shadow: 0 6px 22px rgba(255, 107, 26, 0.38), 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

html.invite-h5-invite .invite-page .invite-download-btn::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

html.invite-h5-invite .invite-page .invite-mega-download {
  animation: none !important;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 14px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .invite-code-card--neon {
  animation: none !important;
}

html.invite-h5-invite .invite-page .invite-nav-cta-glow {
  animation: none !important;
  opacity: 0;
}

html.invite-h5-invite .invite-page .invite-nav.nav {
  padding-left: max(var(--invite-m-gutter-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--invite-m-gutter-x), env(safe-area-inset-right, 0px));
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
}

html.invite-h5-invite .invite-page .hero .invite-ref-features {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.8vw, 13px);
  margin: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .hero .invite-ref-feature-item {
  min-height: clamp(78px, 20.5vw, 102px);
  padding: clamp(11px, 3vw, 15px) 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .invite-ref-feature-icon {
  font-size: clamp(22px, 5.8vw, 28px);
  margin-bottom: 7px;
}

html.invite-h5-invite .invite-page .invite-ref-feature-title {
  font-size: clamp(11.5px, 3.1vw, 13px);
  margin-bottom: 3px;
}

html.invite-h5-invite .invite-page .invite-ref-feature-desc {
  font-size: clamp(9.5px, 2.65vw, 11px);
  line-height: 1.32;
}

html.invite-h5-invite .invite-page .invite-flow-strip,
html.invite-h5-invite .invite-page .invite-ref-features,
html.invite-h5-invite .invite-page .invite-hero-cta-row {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

html.invite-h5-invite .invite-page .invite-hero-cta-row {
  gap: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

html.invite-h5-invite .invite-download-bar-hint {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.34;
  text-align: left;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}

html.invite-h5-invite .invite-download-bar .invite-download-bar-btn.invite-download-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 100px;
  padding: 10px 14px;
  font-size: 14px;
}
