/* 抽奖页面样式 - 按首页风格 */

.lottery-logo h1 {
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.lottery-logo h1 i {
  color: var(--secondary);
}

.lottery-main {
  min-height: calc(100vh - 60px);
  padding: 40px 20px;
  background: var(--bg-secondary);
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.user-nav i {
  color: var(--primary);
}

/* 抽奖卡片 */
.lottery-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.lottery-header {
  text-align: center;
  margin-bottom: 30px;
}

.lottery-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.lottery-icon i {
  font-size: 36px;
  color: white;
}

.lottery-header h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lottery-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 数据统计 */
.lottery-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-box {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-box .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-box .stat-icon i {
  font-size: 20px;
  color: white;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 抽奖按钮 */
.lottery-action {
  text-align: center;
  margin-bottom: 30px;
}

.btn-draw {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-draw:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-draw:active:not(:disabled) {
  transform: translateY(0);
}

.btn-draw:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 规则区域 */
.lottery-rules {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.lottery-rules h3 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lottery-rules h3 i {
  color: var(--primary);
}

.lottery-rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lottery-rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.lottery-rules li i {
  color: var(--success);
  font-size: 12px;
}

/* 结果卡片 */
.result-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 20px auto 0;
}

.result-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.result-icon.winner {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.result-icon.loser {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 10px 30px rgba(100, 116, 139, 0.2);
}

.result-icon i {
  font-size: 48px;
  color: white;
}

.result-card h3 {
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.result-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
  .lottery-card {
    padding: 30px 20px;
  }

  .lottery-icon {
    width: 70px;
    height: 70px;
  }

  .lottery-icon i {
    font-size: 30px;
  }

  .lottery-header h2 {
    font-size: 24px;
  }

  .lottery-stats {
    gap: 12px;
  }

  .stat-box {
    padding: 15px;
  }

  .stat-box .stat-icon {
    width: 42px;
    height: 42px;
  }

  .stat-value {
    font-size: 20px;
  }

  .btn-draw {
    padding: 15px 40px;
    font-size: 16px;
  }

  .result-card {
    padding: 40px 20px;
  }

  .result-icon {
    width: 80px;
    height: 80px;
  }

  .result-icon i {
    font-size: 40px;
  }

  .result-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .lottery-stats {
    grid-template-columns: 1fr;
  }
}
