* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 6rem;
  font-weight: 1000;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 2; /* 确保在背景之上 */
  text-shadow: 0 0 15px rgba(106, 200, 255, 0.3); /* 添加文字辉光 */
}

.body {
  width: 100%;
  min-height: 100vh;
  background-color: #070931;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.body::before {
  content: '';
  position: absolute;
  width: 400vmax; /* 使用视口相对单位 */
  height: 400vmax;
  background: linear-gradient(
    45deg,
    rgba(106, 200, 255, 0.1) 25%,
    rgba(0, 119, 255, 0.15) 50%,
    rgba(106, 200, 255, 0.1) 75%
  );
  animation: gradientFlow 20s linear infinite;
  z-index: 0;
  filter: blur(80px);
  left: -50vmax;
  top: -50vmax;
}

@keyframes gradientFlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  width: 50%;
  z-index: 1; /* 确保卡片在背景之上 */
}

.card {
  width: 200px;
  height: 200px;
  background: none;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.15s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(960px circle at center, rgba(255, 77, 0, 0.2), transparent 40%);
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.card-content {
  background-color: #272c37;
  border-radius: inherit;
  transition: all 0.25s;
  height: calc(100% - 2px);
  width: calc(100% - 2px);
}
.card:hover {
  transform: scale(0.95);
}
.card:hover::before {
  opacity: 1;
}
