/* 首页预测列表样式 - 精简版 */

/* 彩种标签 */
.lottery-tabs {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.lottery-tabs-wrapper {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px;
}

.lottery-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.lottery-tab {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.lottery-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: bold;
}

/* 预测列表容器 - 限制高度 */
.prediction-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-height: 400px;
  /* 限制最大高度，约3个用户的高度 */
}

#content_children {
  overflow-y: auto;
  max-height: 380px;
}

/* 预测卡片 - 紧凑版 */
.prediction-card {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.prediction-card:hover {
  background: #f9f9f9;
}

.prediction-card:last-child {
  border-bottom: none;
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-stats {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 预测信息 */
.prediction-info {
  text-align: right;
  flex-shrink: 0;
  margin-left: 10px;
}

.prediction-period {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.prediction-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
}

.prediction-badge.free {
  background: #52c41a;
}

/* 加载状态 */
.bload {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 14px;
}

.bload.none {
  display: none;
}

/* 查看更多按钮 */
.view-more {
  text-align: center;
  padding: 5px;
  background: #f5f5f5;
  color: #667eea;
  font-size: 14px;
  cursor: pointer;
  border-top: 1px solid #eee;
}

.view-more:hover {
  background: #ebebeb;
}

/* 响应式 */
@media (max-width: 375px) {
  .user-avatar {
    width: 35px;
    height: 35px;
  }

  .user-name {
    font-size: 14px;
  }

  .user-stats {
    font-size: 11px;
  }
}