/* ==========================================================================
   推广邀请页样式（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; }

/* Level Card */
.level-card { background: linear-gradient(135deg, #1e1b4b, #312e81); border: 1px solid #4338ca; border-radius: 16px; padding: 24px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.level-card[hidden] { display: none; }
.level-left { display: flex; align-items: center; gap: 16px; }
.level-badge-large { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: white; }
.level-badge-large.lv0, .level-badge-small.lv0 { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.level-badge-large.lv1, .level-badge-small.lv1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.level-badge-large.lv2, .level-badge-small.lv2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.level-badge-large.lv3, .level-badge-small.lv3 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.level-badge-large.lv4, .level-badge-small.lv4 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.level-info { display: flex; flex-direction: column; gap: 4px; }
.level-name { font-size: 18px; font-weight: 600; color: #e8e8ed; }
.level-rate { font-size: 14px; color: #a5b4fc; }
.level-rate strong { color: #fbbf24; font-size: 18px; }
.level-right { text-align: right; }
.upgrade-label { font-size: 13px; color: #a5b4fc; margin-bottom: 4px; }
.upgrade-amount { font-size: 24px; font-weight: 700; color: #fbbf24; margin-bottom: 8px; }
.upgrade-complete { font-size: 32px; }
.upgrade-progress { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.progress-bar { height: 6px; background: #374151; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); border-radius: 3px; transition: width 0.3s; }
.progress-text { font-size: 11px; color: #9ca3af; }

/* 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; }

/* Level Table */
.level-table { border: 1px solid #23233a; border-radius: 8px; overflow: hidden; }
.level-row { display: grid; grid-template-columns: 80px 100px 1fr; padding: 12px 16px; align-items: center; border-bottom: 1px solid #1c1c28; }
.level-row:last-child { border-bottom: none; }
.level-row.level-current { background: rgba(99, 102, 241, 0.1); border-left: 3px solid #6366f1; }
.level-header { background: #0a0a0f; font-size: 12px; font-weight: 600; color: #5c5c72; text-transform: uppercase; letter-spacing: 0.5px; }
.level-cell { display: flex; align-items: center; }
.level-badge-small { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 24px; border-radius: 4px; font-size: 11px; font-weight: 700; color: white; }
.rate-cell { font-size: 15px; font-weight: 600; color: #fbbf24; text-align: center; }
.threshold-cell { font-size: 13px; color: #8b8b9e; text-align: right; }

/* 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) {
  .level-card { flex-direction: column; text-align: center; }
  .level-left { flex-direction: column; }
  .level-right { text-align: center; }
  .today-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-main { grid-template-columns: 1fr; }
  .promo-header h1 { font-size: 28px; }
}
