body { font-family: "Noto Sans SC", sans-serif; background: linear-gradient(135deg, #fff5f5 0%, #fffbf2 50%, #f5f7ff 100%); color: #4b5563; }
.font-mono { font-family: "JetBrains Mono", monospace; }
.glass-panel { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 20px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04); }
@keyframes blue-breathe { 0%,100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 4px rgba(34, 211, 238, 0.4); } 50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px rgba(34, 211, 238, 0.8); } }
.breathe-dot { background-color: #22d3ee; animation: blue-breathe 2s infinite ease-in-out; }
.spark-premium-card { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); box-shadow: 0 20px 40px rgba(234, 88, 12, 0.15); }
/* 已加盟：压缩橙色主卡高度约一半，并隐藏品牌/佣金大字区（由 JS 切换 .is-partner-active） */
.spark-premium-card.is-partner-active {
  height: auto !important;
  min-height: 0;
  padding: 1.25rem 1.75rem !important;
}
.spark-premium-card.is-partner-active .spark-hero-main-copy {
  margin-top: 0;
}
.app-grid { display: grid; grid-template-columns: 168px 1fr 340px; height: 100vh; padding: 16px; gap: 16px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.t-data { font-size: 24px; font-weight: 900; color: #1e293b; }
.sale-item { transition: all 0.2s ease; }
.sale-item:hover { background: white; transform: translateX(4px); }
.is-disabled { opacity: 0.6; cursor: not-allowed !important; }
.spark-pay-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.36); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.spark-pay-card { width: min(420px, 100%); background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 28px; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16); padding: 32px 28px 28px; position: relative; text-align: center; }
.spark-pay-close { position: absolute; top: 16px; right: 18px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: #fff7ed; color: #ea580c; font-size: 20px; font-weight: 900; cursor: pointer; }
.spark-pay-title { font-size: 24px; line-height: 1.2; font-weight: 900; color: #0f172a; }
.spark-pay-subtitle { margin-top: 10px; font-size: 13px; color: #64748b; font-weight: 700; }
.spark-pay-qrcode-wrap { margin: 24px auto 18px; width: 224px; height: 224px; border-radius: 24px; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); display: flex; align-items: center; justify-content: center; padding: 16px; box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.12); }
.spark-pay-qrcode { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; background: #ffffff; }
.spark-pay-qrcode-empty { font-size: 13px; line-height: 1.6; color: #94a3b8; font-weight: 700; }
.spark-pay-status { font-size: 15px; color: #ea580c; font-weight: 900; }
.spark-pay-countdown,
.spark-pay-order,
.spark-pay-link { margin-top: 10px; font-size: 12px; color: #64748b; line-height: 1.7; word-break: break-all; }
.spark-pay-link span { color: #0f172a; font-family: "JetBrains Mono", monospace; }
.spark-success-mask { position: fixed; inset: 0; z-index: 10001; pointer-events: none; overflow: hidden; background: radial-gradient(circle at center, rgba(255,255,255,0.18), rgba(15,23,42,0.12)); opacity: 0; transition: opacity 0.22s ease; }
.spark-success-mask.is-active { opacity: 1; }
.spark-success-fireworks { position: absolute; inset: 0; }
.spark-success-glow { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin-left: -130px; margin-top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,0.38) 0%, rgba(251,146,60,0.14) 38%, rgba(255,255,255,0) 72%); filter: blur(12px); animation: spark-success-glow 1.8s ease-in-out infinite; }
.spark-firework-piece { position: absolute; left: 50%; top: 52%; width: 12px; height: 12px; border-radius: 999px; opacity: 0; transform: translate(-50%, -50%) rotate(var(--spark-rotate)); box-shadow: 0 0 16px rgba(255,255,255,0.52); animation: spark-firework-burst 1.6s ease-out var(--spark-delay) infinite; }
.spark-welcome-mask { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.36); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.24s ease; }
.spark-welcome-mask.is-open { opacity: 1; }
.spark-welcome-card { width: min(556px, 100%); position: relative; border-radius: 30px; padding: 34px 32px 26px; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,247,237,0.98) 100%); border: 1px solid rgba(255,255,255,0.88); box-shadow: 0 26px 80px rgba(15,23,42,0.22); text-align: center; }
.spark-welcome-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #fff1f2; color: #f97316; font-size: 22px; font-weight: 900; cursor: pointer; }
.spark-welcome-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 32px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #fdba74 0%, #f97316 100%); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; }
.spark-welcome-title { margin-top: 18px; font-size: 30px; line-height: 1.25; color: #111827; font-weight: 900; white-space: nowrap; letter-spacing: -0.02em; }
.spark-welcome-desc { margin-top: 12px; font-size: 14px; line-height: 1.9; color: #64748b; font-weight: 700; text-align: left; text-indent: 2em; }
.spark-welcome-link { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.82); border: 1px solid rgba(251,146,60,0.16); color: #334155; font-size: 12px; line-height: 1.7; word-break: break-all; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); text-align: left; }
.spark-welcome-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.spark-welcome-btn { min-width: 132px; height: 44px; border-radius: 999px; border: 0; padding: 0 18px; font-size: 14px; font-weight: 900; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.spark-welcome-btn:hover { transform: translateY(-1px); }
.spark-welcome-btn--ghost { background: rgba(255,255,255,0.92); color: #64748b; box-shadow: inset 0 0 0 1px rgba(148,163,184,0.28); }
.spark-welcome-btn--primary { background: linear-gradient(135deg, #fb923c 0%, #f97316 100%); color: #fff; box-shadow: 0 16px 30px rgba(249,115,22,0.28); }
@keyframes spark-firework-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.18) rotate(var(--spark-rotate)); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + (var(--spark-x) * 180px)), calc(-50% + (var(--spark-y) * 180px))) scale(1.02) rotate(var(--spark-rotate)); }
}
@keyframes spark-success-glow {
  0%, 100% { transform: scale(0.92); opacity: 0.68; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* 推广分发：与「复制」同高的二维码入口（走 common 全局手机版弹窗） */
.spark-invite-action-btn {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.92));
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.spark-invite-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(251, 146, 60, 0.16);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 237, 213, 0.96));
}

.spark-invite-action-btn:active {
  transform: scale(0.98);
}

.spark-promo-qr-btn {
  min-height: 38px;
  color: #ea580c;
  cursor: pointer;
}

/* 分佣情况卡片内「兑现」（浅色玻璃底，与主卡区分） */
.spark-commission-withdraw-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.spark-commission-withdraw-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.spark-commission-withdraw-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.spark-commission-withdraw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#sparkWithdrawHint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.spark-commission-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.spark-commission-summary-sep {
  margin: 0 2px;
  color: #fda4af;
  font-weight: 700;
}

.spark-inline-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(255, 247, 237, 0.96);
  color: #ea580c;
  font-size: 10px;
  font-weight: 900;
  cursor: help;
  vertical-align: middle;
}

.spark-inline-tip-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.spark-inline-tip-bubble::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 100%;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

.spark-inline-tip:hover .spark-inline-tip-bubble {
  opacity: 1;
  transform: translateY(0);
}

.spark-hero-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.spark-service-btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.spark-service-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.spark-service-btn:active {
  transform: scale(0.98);
}

.spark-wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.spark-wechat-mask.is-open {
  opacity: 1;
}

.spark-wechat-card {
  width: min(420px, 100%);
  position: relative;
  border-radius: 28px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,247,237,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 26px 80px rgba(15,23,42,0.22);
  text-align: center;
}

.spark-wechat-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff1f2;
  color: #f97316;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.spark-wechat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.spark-wechat-title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.25;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.spark-wechat-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
  font-weight: 700;
}

.spark-wechat-qr-wrap {
  margin: 20px auto 0;
  width: 236px;
  height: 236px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.12);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-wechat-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.spark-wechat-empty {
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
  font-weight: 700;
}

.spark-agreement-card {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.spark-agreement-card .spark-wechat-badge,
.spark-agreement-card .spark-wechat-title,
.spark-agreement-card .spark-wechat-desc {
  align-self: center;
  text-align: center;
}

.spark-agreement-content {
  margin-top: 18px;
  max-height: 54vh;
  overflow-y: auto;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.16);
  color: #334155;
  font-size: 13px;
  line-height: 1.9;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.spark-agreement-content h1,
.spark-agreement-content h2,
.spark-agreement-content h3 {
  margin: 14px 0 8px;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.spark-agreement-content p {
  margin: 8px 0;
}

.spark-agreement-content ul,
.spark-agreement-content ol {
  padding-left: 1.4em;
  margin: 8px 0;
}

.spark-history-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 237, 213, 0.95);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.05);
}

.spark-history-tab {
  min-width: 118px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.spark-history-tab.is-active {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
}

.spark-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.spark-member-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.spark-member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #f97316;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.1);
}

.spark-member-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.spark-member-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
  font-weight: 700;
}

.spark-member-side {
  flex-shrink: 0;
  text-align: right;
}

.spark-member-side-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f97316;
}

.spark-member-side-value {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
}
