/**
 * 预测功能样式
 */

/* 彩种标签横向滚动 */
.lottery-tabs {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  margin-top: 60px;
  z-index: 99;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

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

.lottery-tabs-wrapper {
  display: flex;
  padding: 0 10px;
  white-space: nowrap;
}

.lottery-tab-item {
  display: inline-block;
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}

.lottery-tab-item.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: bold;
}

.lottery-tab-item:active {
  opacity: 0.7;
}

/* 预测容器 */
.prediction-container {
  padding: 10px;
  background: #f5f5f5;
  min-height: calc(100vh - 200px);
}

/* 用户排行榜卡片 */
.user-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s;
}

.user-rank-item:active {
  background: #f5f5f5;
  transform: scale(0.98);
}

.rank-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #999;
  margin-right: 10px;
}

.rank-number.rank-gold {
  font-size: 24px;
}

.rank-number.rank-silver {
  font-size: 22px;
}

.rank-number.rank-bronze {
  font-size: 20px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.rank-right {
  text-align: right;
}

.stats-main {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-total {
  color: #333;
}

.stat-separator {
  color: #999;
  margin: 0 5px;
}

.stat-win {
  color: #ff4757;
}

.stats-sub {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

/* 用户排行榜项 */
.user-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-item .rank {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #666;
  margin-right: 15px;
}

.user-item .rank.top1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  border-radius: 50%;
}

.user-item .rank.top2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
  color: #fff;
  border-radius: 50%;
}

.user-item .rank.top3 {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
  color: #fff;
  border-radius: 50%;
}

.user-item .user-info {
  flex: 1;
}

.user-item .user-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.user-item .user-stats {
  font-size: 12px;
  color: #999;
}

.user-item .user-stats span {
  margin-right: 10px;
}

.user-item .view-btn {
  padding: 6px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.user-item .view-btn:active {
  opacity: 0.8;
}

/* 空状态 */
.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

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

.bload a {
  color: #667eea;
  text-decoration: none;
}

.bload a:active {
  opacity: 0.7;
}

/* 标签页激活状态 */
.ntab .swiper-slide.active a {
  color: #667eea;
  border-bottom: 2px solid #667eea;
}

/* 预测列表项 */
.prediction-item {
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediction-item .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.prediction-item .lottery-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.prediction-item .status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.prediction-item .status.pending {
  background: #fff7e6;
  color: #faad14;
}

.prediction-item .status.win {
  background: #f6ffed;
  color: #52c41a;
}

.prediction-item .status.lose {
  background: #fff1f0;
  color: #f5222d;
}

.prediction-item .content {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.prediction-item .numbers {
  font-size: 18px;
  font-weight: bold;
  color: #667eea;
  margin: 10px 0;
}

.prediction-item .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #999;
}

.prediction-item .fee {
  color: #f5222d;
  font-weight: bold;
}

.prediction-item .free {
  color: #52c41a;
}

/* 发布预测按钮 */
.publish-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  z-index: 999;
}

.publish-btn:active {
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 480px) {
  .user-item {
    padding: 12px;
  }

  .user-item .rank {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 16px;
    margin-right: 10px;
  }

  .user-item .user-name {
    font-size: 15px;
  }

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

  .user-item .view-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
}