/* referral.wxss */
.stats-card {
  background: linear-gradient(135deg, #34a853 0%, #4caf50 100%);
  color: #ffffff;
  padding: 40rpx 32rpx;
}

.stats-card .text-hint {
  color: rgba(255,255,255,0.8);
}

.stats-number {
  font-size: 80rpx;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 8rpx 0;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
}

.poster-section {
  text-align: center;
}

.poster-preview {
  margin: 24rpx auto 0;
  width: 300rpx;
  height: 480rpx;
  border-radius: 12rpx;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.poster-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: -1;
}

.poster-frame {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-bg {
  width: 100%;
  height: 100%;
  border-radius: 12rpx;
}

.poster-code-overlay {
  position: absolute;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 2rpx 4rpx rgba(255,255,255,0.8);
  letter-spacing: 2rpx;
}

.poster-placeholder {
  text-align: center;
}

.poster-save-hint {
  position: absolute;
  bottom: 16rpx;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 22rpx;
  color: var(--text-hint);
  background: rgba(255,255,255,0.8);
  padding: 4rpx 12rpx;
  border-radius: 20rpx;
  width: auto;
  display: inline-block;
  margin: 0 auto;
}

.placeholder-icon {
  font-size: 64rpx;
}

.downline-item {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.downline-item:last-child {
  border-bottom: none;
}

.downline-avatar {
  width: 72rpx;
  height: 72rpx;
  border-radius: 50%;
  background: #e8eaed;
}

/* loading 动画 */
.loading-spinner-sm {
  width: 48rpx;
  height: 48rpx;
  border: 4rpx solid #e0e0e0;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
