body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(160deg, #111, #222);
  margin: 0;
  padding: 0;
  text-align: center;
  color: #fff;
}

h1 {
  font-size: 28px;
  margin: 20px 0 10px;
  color: #f39c12;
  text-shadow: 1px 1px 2px #000;
}
h2 {
  font-size: 22px;
  margin: 15px 0;
  color: #1abc9c;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

/* 彩球容器 */
.ball-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  width: 100%;
}

/* 彩球 */
.ball {
  width: 10vw;
  height: 10vw;
  max-width: 60px;
  max-height: 60px;
  min-width: 35px;
  min-height: 35px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: clamp(16px, 3vw, 22px); /* 自适应大小 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 保证内容垂直居中 */
  position: relative;
  gap: 1px; /* 缩小数字和生肖之间的间距 */
}

/* 彩球颜色 */
.ball.red {
  background: #e74c3c;
}
.ball.blue {
  background: #3498db;
}
.ball.green {
  background: #2ecc71;
}
.ball.grey {
  background: #555;
} /* 未开奖灰球 */

/* 第七颗闪光 */
.ball.special {
  box-shadow: 0 0 15px 4px gold, 0 0 10px 2px rgba(255, 215, 0, 0.7); /* 闪光效果 */
}

/* + 号 */
.plus-sign {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: bold;
  color: #f1c40f;
  align-self: center;
  margin: 0 4px;
}

/* 生肖 */
.zodiac {
  font-size: clamp(14px, 3vw, 18px); /* 自适应生肖大小 */
  margin-top: 1px;  /* 缩小顶部的间距 */
  display: block;
}

/* 倒计时和当前时间 */
.countdown,
.current-time {
  font-size: 18px;
  margin-bottom: 8px;
  color: #f39c12;
  font-weight: bold;
}

/* 视频 */
.video-wrapper {
  max-width: 100%;
  margin: 0 auto 30px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  height: 480px;
}
video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

/* 响应式 */
@media (max-width: 600px) {
  .ball {
    font-size: clamp(14px, 4vw, 20px); /* 自适应大小 */
  }
  .plus-sign {
    font-size: clamp(16px, 5vw, 24px);
  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  }
}