* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 13.33333vw;
}

body {
  background: #f5f5f5;
  font-family: PingFangSC-Regular, 'Microsoft YaHei', Helvetica, sans-serif;
  font-size: 14px;
  color: #333;
}

.lottery-vertical-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 0.05rem;
}

.lottery-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.lottery-item {
  background: #fff;
  border-radius: 0.04rem;
  padding: 0.08rem;
  border-bottom: 1px solid #f0f0f0;
}

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

.lottery-name-box {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.lottery-name {
  font-size: 0.32rem;
  font-weight: bold;
  color: #333;
}

.lottery-period {
  font-size: 0.24rem;
  color: #666;
}

.lottery-time-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lottery-date {
  font-size: 0.22rem;
  color: #999;
}

.countdown-time {
  font-size: 0.28rem;
  color: #e71607;
  font-weight: bold;
}

.balls-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.08rem 0;
  gap: 0.03rem;
}

.number-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.number-ball {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.08rem; /* 方块圆角 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.32rem;
  margin-bottom: 0.03rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  background-size: cover;
}

/* 颜色色块样式 */
.ball-red {
  background-color: #e71607;
  color: #fff;
}

.ball-blue {
  background-color: #007aff;
  color: #fff;
}

.ball-green {
  background-color: #07c160;
  color: #fff;
}

.ball-gray {
  background-color: #999;
  color: #fff;
}

.sxwx-text {
  font-size: 0.22rem;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

.plus-sign {
  font-size: 0.4rem;
  font-weight: bold;
  color: #ccc;
  display: flex;
  align-items: center;
  height: 0.8rem;
  margin: 0 0.02rem;
}

.lottery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.08rem;
  padding-top: 0.08rem;
  border-top: 1px dashed #eee;
}

.next-draw-info {
  font-size: 0.24rem;
  color: #e71607;
}

.next-draw-info .highlight {
  font-weight: bold;
}

.history-link {
  font-size: 0.24rem;
  color: #007aff;
  text-decoration: none;
}

/* 加载和错误状态 */
.loading {
  text-align: center;
  width: 100%;
  padding: 0.2rem;
  color: #999;
  font-size: 0.24rem;
}

.error-message {
  color: #e74c3c;
  text-align: center;
  width: 100%;
  padding: 0.2rem;
  font-size: 0.24rem;
}

/* 响应式适配 */
@media (max-width: 400px) {
  .number-ball {
    width: 0.75rem;
    height: 0.75rem;
    font-size: 0.32rem;
  }
}

@media (max-width: 350px) {
  .number-ball {
    width: 0.65rem;
    height: 0.65rem;
    font-size: 0.28rem;
  }
  .lottery-name {
    font-size: 0.28rem;
  }
}
