body {
  margin: 0;
  padding: 2%; /* 添加空白 */
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  box-sizing: border-box; /* 这将使得padding包含在height内 */
  height: 100vh; /* 设置body的高度为视口的高度 */
  overflow: hidden; /* 防止出现滚动条 */
}

#container {
  display: flex;
  flex-wrap: wrap;
  height: 100%; /* 设置container的高度为其父元素（即body）的高度 */
}

.card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: 50%;
  height: 50%;
  cursor: pointer;
  border: 1px solid #333;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.card:hover {
  background-color: #333;
  transform: scale(1.05);
}

.card:active {
  transform: scale(0.95);
}

.card h2 {
  margin: 0;
  font-size: 50px; /* 增大字体大小 */
  transition: all 0.3s ease;
}

.card:hover h2 {
  transform: scale(1.2);
  color: #ff0;
}

.card:active h2 {
  transform: scale(0.8);
  color: #fff; /* 点击后的颜色修改为白色 */
}
