.lottery-games {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.lottery-games h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #d50000;
}

.lottery-category {
  margin-bottom: 25px;
}

.lottery-category h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 2px solid #d50000;
  display: inline-block;
  padding-bottom: 5px;
}

.lottery-category ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.lottery-category ul li {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  transition: all 0.3s;
  flex: 1 1 150px; /* 响应式最小宽度 */
  box-sizing: border-box;
}

.lottery-category ul li:hover {
  background: #ffeaea;
  border-color: #d50000;
}

.lottery-category ul li h4 {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.lottery-category ul li a {
  text-decoration: none;
  color: #d50000;
  display: block;
}

.lottery-category ul li a:hover {
  text-decoration: underline;
}

/* 响应式适配手机 */
@media (max-width: 768px) {
  .lottery-category ul {
    gap: 10px;
  }

  .lottery-category ul li {
    flex: 1 1 45%; /* 手机上两列布局 */
    padding: 10px;
  }

  .lottery-games h2 {
    font-size: 24px;
  }

  .lottery-category h3 {
    font-size: 20px;
  }

  .lottery-category ul li h4 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .lottery-category ul li {
    flex: 1 1 100%; /* 手机小屏单列布局 */
  }

  .lottery-games h2 {
    font-size: 20px;
  }

  .lottery-category h3 {
    font-size: 18px;
  }

  .lottery-category ul li h4 {
    font-size: 14px;
  }
}