/* ============================================================
 * social-proof.css — 社交证明（动态数字 + 浮动通知）
 * ============================================================ */

/* ===== 统计卡片 ===== */
.sp-block {
  max-width: 720px;
  margin: 20px auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.sp-card {
  background: linear-gradient(135deg, #fff5f7 0%, #fce8f1 100%);
  border-radius: 16px;
  padding: 18px 22px;
  border: 1px solid #f3d4df;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 2px 12px rgba(184, 92, 140, 0.06);
}
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 110px;
}
.sp-stat-emoji {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}
.sp-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #B85C8C;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.sp-stat-num .sp-stat-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4a9b6e;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: sp-pulse 1.5s infinite;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.sp-stat-label {
  font-size: 12.5px;
  color: #6a6478;
  margin-top: 3px;
}

/* ===== 浮动通知 ===== */
.sp-toast-host {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  pointer-events: none;
}
.sp-toast {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 8px 28px rgba(56, 75, 124, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  border: 1px solid rgba(184, 92, 140, 0.18);
  font-size: 13.5px;
  color: #2c2c4e;
  line-height: 1.45;
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.4s ease;
}
.sp-toast.sp-show {
  transform: translateY(0);
  opacity: 1;
}
.sp-toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.sp-toast-body {
  flex: 1;
  min-width: 0;
}
.sp-toast-loc {
  font-weight: 600;
  color: #B85C8C;
  margin-right: 4px;
}
.sp-toast-time {
  color: #8a8090;
  font-size: 12px;
  margin-right: 4px;
}
.sp-toast-name {
  color: #6a6478;
}
.sp-toast-close {
  background: transparent;
  border: none;
  color: #b9b3c4;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
  flex-shrink: 0;
}
.sp-toast-close:hover { color: #6a6478; }

/* 通知位置变化（从下往上累积） */
.sp-toast:nth-child(n+2) {
  margin-bottom: 8px;
}

@media (max-width: 540px) {
  .sp-card {
    padding: 14px 12px;
    gap: 8px 14px;
  }
  .sp-stat-num { font-size: 18px; }
  .sp-stat-label { font-size: 11.5px; }
  .sp-toast { min-width: 220px; max-width: calc(100vw - 36px); font-size: 12.5px; }
  .sp-toast-host { left: 10px; right: 10px; bottom: 10px; }
  .sp-toast { width: 100%; }
}
