/* 邀请落地页 · 提现滚动版 — 暖色活动风格 */

:root {
  --brand-gold: #FF8C42;
  --brand-mid: #FFA24E;
  --brand-light: #FFC462;
  --brand-deep: #FF6B35;
  --price-red-orange: #FF4500;
  --brand-gradient: linear-gradient(135deg, #FF8C42, #FFA24E, #FFC462);
  --head-from: #E85A24;
  --head-mid: #FF8C42;
  --head-to: #FFD080;
  --bg-content: #F3F2EF;
  --text-primary: #1A1A1A;
  --muted: #64748B;
  --surface: #fff;
  --radius-lg: 18px;
  --radius-full: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html.invite-cash-html {
  -webkit-text-size-adjust: 100%;
}

body.invite-cash-page {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg-content);
  color: var(--text-primary);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

.invite-cash-code-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.invite-cash-shell {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ===== 顶栏 ===== */
.invite-cash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
}

.invite-cash-nav.scrolled {
  box-shadow: 0 4px 20px rgba(232, 90, 36, 0.12);
}

.invite-cash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.invite-cash-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
}

.invite-cash-brand-text {
  font-size: 16px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.invite-cash-nav-btn {
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-gold));
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.invite-cash-nav-btn:active {
  transform: scale(0.97);
}

/* ===== 头图区 ===== */
.invite-cash-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 16px 28px;
  background: linear-gradient(165deg, var(--head-from) 0%, var(--head-mid) 42%, var(--head-to) 100%);
}

.invite-cash-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15% 0%, rgba(255, 255, 255, 0.42) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 92% 8%, rgba(255, 220, 120, 0.35) 0%, transparent 48%),
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 69, 0, 0.18) 0%, transparent 55%);
}

.invite-cash-hero-sparks .spark {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: cashSpark 3.5s ease-in-out infinite;
  pointer-events: none;
}

.spark--1 { width: 5px; height: 5px; top: 14%; left: 10%; }
.spark--2 { width: 3px; height: 3px; top: 28%; right: 14%; animation-delay: 0.6s; opacity: 0.85; }
.spark--3 { width: 4px; height: 4px; top: 48%; left: 6%; animation-delay: 1.2s; }

@keyframes cashSpark {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50% { transform: translateY(-10px) scale(1.25); opacity: 1; }
}

.invite-cash-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.invite-cash-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  margin-bottom: 12px;
}

.invite-cash-title {
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(180, 60, 0, 0.25);
}

.invite-cash-title span {
  display: inline-block;
  background: linear-gradient(105deg, #FFD700 0%, #fff 35%, #FFC462 55%, #FFD700 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cashShine 3s linear infinite;
}

@keyframes cashShine {
  to { background-position: 200% center; }
}

.invite-cash-sub {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.92;
  font-weight: 500;
}

/* ===== 提现滚动 ===== */
.invite-cash-ticker-wrap {
  position: relative;
  z-index: 2;
  margin: 22px auto 0;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(180, 60, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.invite-cash-ticker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255, 140, 66, 0.12), rgba(255, 196, 98, 0.08));
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.invite-cash-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: cashPulse 1.8s ease-in-out infinite;
}

@keyframes cashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

.invite-cash-ticker-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
}

.invite-cash-ticker-viewport {
  height: 168px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.invite-cash-ticker-track {
  list-style: none;
  padding: 8px 0;
  will-change: transform;
}

.invite-cash-ticker-track.is-animating {
  animation: cashTickerScroll var(--ticker-duration, 18s) linear infinite;
}

@keyframes cashTickerScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.invite-cash-ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.invite-cash-ticker-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-primary);
}

.invite-cash-ticker-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.invite-cash-ticker-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-cash-ticker-action {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.invite-cash-ticker-amount {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--price-red-orange);
}

/* ===== 数据条 ===== */
.invite-cash-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  color: #fff;
}

.invite-cash-stat {
  text-align: center;
  font-size: 11px;
  opacity: 0.9;
}

.invite-cash-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2px;
}

.invite-cash-stat strong span {
  font-size: 14px;
  font-weight: 700;
}

/* ===== 吉祥物 ===== */
.invite-cash-mascot {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 8px;
}

.invite-cash-mascot img {
  width: clamp(88px, 24vw, 120px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(180, 60, 0, 0.25));
  pointer-events: none;
}

.invite-cash-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--bg-content));
  pointer-events: none;
}

/* ===== 特性区 ===== */
.invite-cash-features {
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-cash-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.invite-cash-feature-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.invite-cash-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.invite-cash-feature p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== 下载 CTA ===== */
.invite-cash-cta {
  padding: 12px 16px 24px;
}

.invite-cash-download {
  width: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-gold) 55%, var(--brand-light) 100%);
  box-shadow:
    0 8px 28px rgba(255, 107, 53, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  color: #fff;
  transition: transform 0.15s ease;
}

.invite-cash-download:active {
  transform: scale(0.98);
}

.invite-cash-download-icon {
  font-size: 22px;
  line-height: 1;
}

.invite-cash-download-text {
  text-align: left;
}

.invite-cash-download-line1 {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.invite-cash-download-line2 {
  display: block;
  font-size: 12px;
  opacity: 0.88;
  margin-top: 2px;
}

.invite-cash-footnote {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.invite-cash-footnote strong {
  color: var(--brand-deep);
  font-weight: 600;
}

/* ===== 底栏 ===== */
.invite-cash-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.invite-cash-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}

.invite-cash-bar-hint {
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}

.invite-cash-bar-hint strong {
  color: var(--brand-deep);
  font-weight: 700;
}

.invite-cash-bar-btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-gold));
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

/* ===== 入场动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }
.fade-up-delay-5 { transition-delay: 0.4s; }

/* ===== 微信引导蒙层（复用 invite 落地页结构） ===== */
.invite-wechat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

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

.invite-wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.invite-wechat-corner-hint {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.invite-wechat-corner-cap {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 140, 66, 0.9);
}

.invite-wechat-corner-dots {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.invite-wechat-corner-arrow {
  color: var(--brand-light);
  animation: cashArrowBounce 1.2s ease-in-out infinite;
}

@keyframes cashArrowBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}

.invite-wechat-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.invite-wechat-scroll {
  max-width: 340px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: var(--text-primary);
}

.invite-wechat-hero-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.invite-wechat-hero-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}

.invite-wechat-steps {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.invite-wechat-steps strong {
  color: var(--brand-deep);
}

.invite-wechat-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .invite-cash-ticker-track.is-animating {
    animation: none;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .invite-cash-title span {
    animation: none;
  }
}
