/* 背景的样式 */
body {
  background-color: #7fd6e6;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 6px, transparent 6px 12px);
            text-align: center;
    padding-top: 8vh;
}

/* 这是h1的样式 */
h1{
    font-size: clamp(20px, 8vw, 35px);
    text-align: center;
    font-weight: 700;
    color: deeppink;
     text-shadow:
        2px 0 white,
       -2px 0 white,
        0 2px white,
        0 -2px white;
 }
h2{
    font-size: clamp(10px, 4vw, 25px);
    font-weight: 700;
    color: yellowgreen;
     text-shadow:
        1px 0 white,
       -1px 0 white,
        0 1px white,
        0 -1px white;
}
p{
     font-size: clamp(10px,4vw,20px);
    font-weight: 700;
    color: #ff6f91;
     text-shadow:
        1px 0 white,
       -1px 0 white,
        0 1px white,
        0 -1px white;
}
hr {
    height: clamp(2px,1vw,2px);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
     max-width: clamp(400px,100vw,800px);
}
 .card-container {
   display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}
  .gamecard-container {
   display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background: rgba(255, 192, 203, 0.5);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
  padding: 10px 10px 30px 10px;
  text-align: center;
  font-size: 18px;
  transition: 0.3s;
  backdrop-filter: blur(1px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: 1 1 280px;
  max-width: 400px;
}
.gamecard{
  background: rgba(255, 192, 203, 0.5);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
  padding: 30px;
  text-align: center;
  font-size: 18px;
  transition: 0.3s;
  backdrop-filter: blur(1px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: 1 1 280px;
  width: clamp(280px,100vw,800px);
    max-width: 800px;
        }

.full-width {
    display: block;      /* 去掉行内间距 */
    width: 100%;         /* 占满容器宽度 */
    height: auto;        /* 高度按比例自适应 */
}
.button-container {
    display: flex;
    justify-content: center; /* 从左开始*/
    gap: clamp(10px,4vw,20px);              /* 按钮间距 */
    flex-wrap: wrap;        /* 按钮多了自动换行 */
    align-items: stretch; /* 让所有按钮在同一行高度一致 */
}
  button{
          color: #fff;
          background: linear-gradient(135deg, #ffb7c3, #ff89aa);
          font-weight: bold;
          font-size: clamp(12px, 6vw, 28px);
          margin: 4px auto;
          padding: 10px 20px;
          border-radius: 12px;
          border: none;
          cursor: pointer;
          box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
          text-shadow: 0 1px 2px rgba(0,0,0,0.2);
          transition: 0.3s ease;
        }
   button:hover {
    transform: scale(1.05);
    background: #ffafc4;
   }
.MainBotton{
     width: clamp(80px,50vw,150px);           /* 固定宽度 */
    height: clamp(50px,50vw,80px);           /* 固定高度 */
    white-space: normal;    /* 允许文字换行 */
    word-break: break-word; /* 超长文字换行 */
    text-align: center;     /* 文字居中 */
    font-size: clamp(10px,6vw,20px);        /* 调整字体大小 */
    padding: 5px;           /* 内边距 */
    border-radius: 8px;
background: #ff9eb6;
box-shadow:  8px 8px 8px #d68599,
             -8px -8px 8px #ffb7d3;
}
.MainBotton:hover {
     transform: scale(1.05);
     background: linear-gradient(135deg, #ff8aa2, #ff6790);
     box-shadow: 0 6px 15px rgba(255, 105, 180, 0.6);
}
.ButtonText{
      font-size: clamp(10px,6vw,20px);
    text-align: center;
    font-weight: 800;
    color: yellowgreen;
     text-shadow:
        0.5px 0 white,
       -0.5px 0 white,
        0 0.5px white,
        0 -0.5px white;
}
.spinner {
  width: clamp(10px,4vw,20px);
  height: clamp(10px,4vw,20px);
  border: 6px solid #f3f3f3;   /* 浅色背景圈 */
  border-top: 6px solid deeppink; /* 高亮旋转条 */
  border-radius: 50%;           /* 圆形 */
  display: inline-block;
    vertical-align: middle;
  animation: spin 1s linear infinite; /* 无限旋转 */
  margin: 0px;           /* 跟着 */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.home-button {
    z-index: 100;
    display: flex;
    position: fixed;
    left: clamp(10px,5vw,30px);
    top: clamp(10px,5vw,30px);
    padding: 8px 8px;
    background: rgba(255, 100, 100, 0.35);
    color: white;
    font-weight: bold;
    border: 1px rgba(0, 0, 0, 0.25) solid;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}
.home-button:hover {
   transform:  scale(1.05);
    background: #ffafc4
}
.cardLine{
    background-color:rgba(255, 255, 255, 0.5);
    border:none;
    box-shadow: none;
    max-width: 400px
}
@media (max-width: 350px) {
    .card {
        flex: 1 1 100%;  /* 小屏幕卡片占满宽度 */
        padding: 5px;
    }
    .card-container {
        padding: 1px;
    }
}