/* ==========================================================================
   推广邀请页样式（PromoInviteView.vue scoped 样式静态化）
   ========================================================================== */

.promo-page { padding-top: 80px; min-height: 100vh; background: #0a0a0f; }
.promo-container { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

/* Header */
.promo-header { text-align: center; padding: 48px 0 32px; }
.promo-header-icon { font-size: 48px; margin-bottom: 16px; }
.promo-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.promo-header p { font-size: 16px; color: #8b8b9e; }

/* Earn Rules（r609 取消代理等级后的统一收益规则） */
.earn-rules { background: linear-gradient(135deg, #1e1b4b, #312e81); border: 1px solid #4338ca; border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.earn-rules h3 { font-size: 16px; font-weight: 600; color: #e8e8ed; margin-bottom: 14px; }
.earn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.earn-item { background: rgba(10, 10, 15, 0.35); border: 1px solid rgba(99, 102, 241, 0.35); border-radius: 10px; padding: 14px 16px; }
.earn-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.earn-title { font-size: 15px; font-weight: 600; color: #e8e8ed; }
.earn-rate { font-size: 22px; font-weight: 800; color: #fbbf24; }
.earn-item p { font-size: 13px; color: #a5b4fc; line-height: 1.5; margin: 0; }

/* Today Stats */
.today-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.today-item { background: #0d0d14; border: 1px solid #23233a; border-radius: 10px; padding: 16px; text-align: center; transition: all 0.2s; }
.today-item:hover { border-color: #4f46e5; transform: translateY(-2px); }
.today-icon { font-size: 24px; margin-bottom: 8px; }
.today-value { font-size: 20px; font-weight: 700; color: #e8e8ed; margin-bottom: 4px; }
.today-label { font-size: 12px; color: #6b7280; }

/* Main Layout */
.promo-main { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }

/* Section Cards */
.section-card { background: #16161f; border: 1px solid #23233a; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.section-card[hidden] { display: none; }
.section-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #e8e8ed; }

/* Link Section */
.link-box { background: #0d0d14; border: 1px solid #23233a; border-radius: 8px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.link-url { flex: 1; font-size: 14px; color: #6366f1; font-family: 'JetBrains Mono', monospace; word-break: break-all; line-height: 1.5; }
.btn-copy { flex-shrink: 0; padding: 8px 16px; background: #6366f1; color: white; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-copy:hover { background: #818cf8; }
.btn-copy.copied { background: #22c55e; }
.link-hint { font-size: 13px; color: #5c5c72; line-height: 1.5; }

/* QR Section */
.qr-card { text-align: center; }
.qr-wrapper { display: inline-block; padding: 12px; background: white; border-radius: 12px; margin-bottom: 12px; }
.qr-image { width: 200px; height: 200px; display: block; }
.qr-image[hidden] { display: none; }
.qr-placeholder { width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; color: #8b8b9e; font-size: 14px; }
.qr-placeholder[hidden] { display: none; }
.qr-hint { font-size: 13px; color: #5c5c72; }

/* Total Stats */
.total-stats { display: flex; flex-direction: column; gap: 12px; }
.total-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #1c1c28; }
.total-item:last-child { border-bottom: none; }
.total-label { font-size: 14px; color: #8b8b9e; }
.total-value { font-size: 16px; font-weight: 600; color: #e8e8ed; }

/* Rules */
.rules-list { display: flex; flex-direction: column; gap: 16px; }
.rule-item { display: flex; gap: 14px; align-items: flex-start; }
.rule-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rule-content strong { font-size: 14px; color: #e8e8ed; display: block; margin-bottom: 2px; }
.rule-content p { font-size: 13px; color: #8b8b9e; line-height: 1.5; margin: 0; }

/* CTA Card */
.cta-card { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15)); border-color: rgba(99, 102, 241, 0.3); }
.cta-content { text-align: center; }
.cta-content h3 { font-size: 20px; margin-bottom: 8px; }
.cta-content p { font-size: 14px; color: #8b8b9e; margin-bottom: 20px; }
.btn-primary-action { display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary-action:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3); }

/* Responsive */
@media (max-width: 768px) {
  .earn-grid { grid-template-columns: 1fr; }
  .today-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-main { grid-template-columns: 1fr; }
  .promo-header h1 { font-size: 28px; }
}
