/**
 * 邀请码系统样式
 */

/* 邀请人信息区 */
.inviter-info-section {
  margin-bottom: 20px;
}

.inviter-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
  max-width: 400px;
}

.inviter-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9em;
  font-weight: 600;
}

.inviter-header i {
  margin-right: 8px;
  font-size: 1.1em;
}

.inviter-title {
  color: rgba(255, 255, 255, 0.9);
}

.inviter-details {
  font-size: 0.85em;
}

.inviter-details > div {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.95);
}

.inviter-details > div:last-child {
  margin-bottom: 0;
}

.inviter-details i {
  margin-right: 8px;
  width: 14px;
  text-align: center;
  opacity: 0.8;
}

.inviter-name span {
  font-weight: 600;
}

.inviter-code span,
.inviter-date span {
  font-weight: 500;
}

/* 推广中心容器 */
/* 子级规则列表缩进与样式 */
.sub-rules {
  margin-top: 6px;
  margin-bottom: 6px;
  margin-left: 1.25em;
}
.sub-rules li {
  list-style-type: disc;
}

.wechat-id {
  font-weight: 700;
}
.invite-center-content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* 邀请码展示区 */
.invite-code-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.invite-code-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.4em;
  font-weight: 600;
}

.invite-code-display {
  text-align: center;
}

.code-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-box .code {
  font-size: 2em;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.invite-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.invite-actions .btn {
  min-width: 120px;
}

/* 推广统计区 */
.invite-stats-section {
  margin-bottom: 25px;
}

.invite-stats-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3em;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5em;
}

.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.stat-label {
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
}

/* 操作按钮区 */
.invite-actions-section {
  text-align: center;
  margin-bottom: 25px;
}

.invite-actions-section .btn {
  margin: 0 10px 10px 0;
  min-width: 150px;
}

/* 规则说明区 */
.invite-rules-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #007bff;
}

.invite-rules-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.rules-content ul {
  margin: 0;
  padding-left: 20px;
}

.rules-content li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
}

.rules-content strong {
  color: #333;
}

/* 错误容器 */
.error-container {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.error-container i {
  font-size: 3em;
  color: #dc3545;
  margin-bottom: 20px;
}

.error-container p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* 邀请码验证样式 */
.validation-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9em;
  display: none;
}

.validation-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.validation-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.validation-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.validation-message i {
  margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .invite-center-content {
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .invite-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .invite-actions .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .invite-actions-section .btn {
    width: 100%;
    max-width: 250px;
    margin: 5px 0;
  }
  
  .code-box .code {
    font-size: 1.5em;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .code-box .code {
    font-size: 1.3em;
    letter-spacing: 1px;
  }
}
