.page-fund-claim {
  background: var(--app-bg);
  min-height: 100vh;
}

.fund-claim-main {
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

/* —— 主金额 Hero —— */
.fc-hero {
  position: relative;
  margin: 0 -16px 14px;
  padding: 22px 20px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(165deg, #0a4ab5 0%, #0052d9 52%, #003a9e 100%);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 24px rgba(0, 58, 158, 0.22);
  overflow: hidden;
}

.fc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.fc-hero__badge {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
}

.fc-hero__label {
  position: relative;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.3px;
}

.fc-hero__amount {
  position: relative;
  display: block;
  margin: 8px 0 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* —— 双栏统计 —— */
.fc-stats {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.fc-stat {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
}

.fc-stat__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.fc-stat__value {
  display: inline;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease, transform 0.35s ease;
}

.fc-stat.is-asset-updated .fc-stat__value {
  color: var(--gov-green);
  transform: scale(1.04);
}

.fc-hero__amount.is-claiming-out {
  transition: opacity 0.45s ease, transform 0.45s ease;
  opacity: 0.35;
  transform: scale(0.96);
}

.fc-stat__value--accent {
  color: var(--gov-orange);
}

.fc-stat__unit {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #a0a8b8;
}

.fc-stat-divider {
  width: 1px;
  margin: 12px 0;
  background: var(--line);
}

/* —— 邀请加成卡 —— */
.fc-boost-card {
  margin-bottom: 12px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 82, 217, 0.08);
}

.fc-boost-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fc-boost-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.fc-boost-card__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.fc-boost-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gov-blue);
  background: #eef3ff;
  border-radius: 20px;
  white-space: nowrap;
}

.fc-boost-badge--streak {
  color: #9a6b18;
  background: #fff8e8;
}

.fc-streak-milestones {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.fc-streak-ms {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fc-streak-ms.is-done {
  color: var(--gov-green);
  background: #eaf7f0;
  border-color: rgba(45, 157, 107, 0.25);
}

.fc-streak-ms.is-active {
  color: var(--gov-blue);
  background: #eef3ff;
  border-color: rgba(0, 82, 217, 0.25);
}

.fc-streak-track {
  height: 4px;
  margin-bottom: 10px;
  background: #eef3ff;
  border-radius: 2px;
  overflow: hidden;
}

.fc-streak-fill {
  height: 100%;
  background: linear-gradient(90deg, #f0b429, var(--gov-orange));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.fc-streak-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--gov-orange);
  line-height: 1.45;
}

.fc-streak-hint[hidden] {
  display: none;
}

.fc-boost-formula {
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.fc-boost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
}

.fc-boost-row + .fc-boost-row {
  border-top: 1px dashed #e8ecf2;
}

.fc-boost-row em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fc-boost-row--bonus em.fc-boost-row__plus {
  color: var(--gov-green);
}

.fc-boost-row--streak em.fc-boost-row__plus--streak {
  color: #c9a227;
}

.fc-boost-row--total {
  padding-top: 10px;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
}

.fc-boost-row--total em {
  font-size: 17px;
  color: var(--gov-orange);
}

.fc-boost-row small {
  font-size: 11px;
  font-weight: 400;
  color: #a0a8b8;
}

.fc-boost-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #4a5f85;
  line-height: 1.55;
  text-align: left;
  background: #f0f5ff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 82, 217, 0.1);
}

.fc-boost-rule--click {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fc-boost-rule--click:active {
  background: #e6eeff;
  border-color: rgba(0, 82, 217, 0.22);
}

.fc-boost-rule__chev {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--gov-blue);
  opacity: 0.65;
}

.fc-boost-rule svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--gov-blue);
}

.fc-boost-rule--streak {
  background: #fffaf0;
  border-color: rgba(201, 162, 39, 0.18);
}

.fc-boost-rule--streak svg {
  color: #c9a227;
}

.fc-boost-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.fc-boost-cta-row .fc-boost-next {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
  background: none;
  border: 0;
  font-family: inherit;
}

.fc-boost-next--click {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(107, 117, 136, 0.35);
  text-underline-offset: 2px;
}

.fc-boost-next--click:active {
  color: var(--gov-blue);
}

.fc-boost-cta-row .fc-boost-next[hidden] {
  display: none;
}

.fc-boost-cta-row .fc-boost-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gov-blue);
  text-decoration: none;
  white-space: nowrap;
}

.fc-boost-cta-row .fc-boost-link:active {
  opacity: 0.75;
}

/* —— 来源说明（精简列表） —— */
.fc-sources {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.fc-sources h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.fc-sources__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-sources__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.fc-sources__item + .fc-sources__item {
  border-top: 1px solid var(--line);
}

.fc-sources__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f4fa;
  color: var(--gov-blue);
}

.fc-sources__icon svg {
  width: 18px;
  height: 18px;
}

.fc-sources__icon--rank {
  background: #f5f3fa;
  color: #6b5b95;
}

.fc-sources__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-sources__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.fc-sources__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.fc-sources__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #c5cad4;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fc-sources__arrow svg {
  width: 16px;
  height: 16px;
}

.fc-sources__arrow:active {
  color: var(--gov-blue);
}

/* —— 领取按钮 —— */
.fc-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #ff9a3d 0%, var(--gov-orange) 45%, #d45a10 100%);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(230, 122, 46, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.fc-submit:active:not(:disabled) {
  transform: scale(0.99);
  opacity: 0.95;
}

.fc-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.fc-submit__label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fc-submit__sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.88;
}

.fc-tip {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

/* —— 领取成功反馈 —— */
.fc-success {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.fc-success[hidden] {
  display: none !important;
}

.fc-success.is-visible {
  pointer-events: auto;
}

.fc-success__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 55, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.fc-success.is-visible .fc-success__backdrop {
  opacity: 1;
}

.fc-success__panel {
  position: relative;
  width: min(280px, 88vw);
  padding: 28px 24px 22px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(8, 21, 55, 0.18);
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-success.is-visible .fc-success__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.fc-success.is-leaving .fc-success__backdrop {
  opacity: 0;
}

.fc-success.is-leaving .fc-success__panel {
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  transition-duration: 0.22s;
}

.fc-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: #fff;
  background: linear-gradient(135deg, #3dba7a, var(--gov-green));
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(45, 157, 107, 0.35);
  animation: fc-success-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.fc-success__icon svg {
  width: 28px;
  height: 28px;
}

.fc-success__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.fc-success__amount {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--gov-orange);
  font-variant-numeric: tabular-nums;
  animation: fc-success-amount 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.fc-success__sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@keyframes fc-success-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fc-success-amount {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-success__icon,
  .fc-success__amount {
    animation: none;
  }

  .fc-success__panel,
  .fc-success__backdrop {
    transition-duration: 0.01ms;
  }
}

/* —— 邀请规则弹窗 —— */
.fc-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.fc-invite-modal[hidden] {
  display: none !important;
}

.fc-invite-modal.is-visible {
  pointer-events: auto;
}

.fc-invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 55, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fc-invite-modal.is-visible .fc-invite-modal__backdrop {
  opacity: 1;
}

.fc-invite-modal__panel {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(8, 21, 55, 0.12);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-invite-modal.is-visible .fc-invite-modal__panel {
  transform: translateY(0);
}

.fc-invite-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.fc-invite-modal__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.fc-invite-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: #f2f4f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.fc-invite-modal__body {
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}

.fc-invite-modal__lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.fc-invite-modal__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.fc-invite-modal__rules {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fc-invite-modal__rules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  font-size: 13px;
  background: #fafbfc;
}

.fc-invite-modal__rules li + li {
  border-top: 1px solid var(--line);
}

.fc-invite-modal__rules li span {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gov-blue);
}

.fc-invite-modal__rules li em {
  font-style: normal;
  color: var(--ink);
  text-align: right;
  line-height: 1.45;
}

.fc-invite-modal__note {
  margin: 0 0 14px;
  font-size: 11px;
  color: #8c94a3;
  line-height: 1.55;
}

.fc-invite-modal__milestones h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.fc-invite-modal__ms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fc-invite-modal__ms-item {
  padding: 10px 8px;
  text-align: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fc-invite-modal__ms-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}

.fc-invite-modal__ms-item strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gov-orange);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
