* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  background-image: linear-gradient(120deg,#e0c3fc 0%,#8ec5fc 100%) ;
  height: 100vh;
  flex-direction: column;  
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

h1 {
    color: #8ec5fc;
}

.container {
  position: relative;
  width: 200vw;
  height: 200vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  place-items: center;
}

.photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, opacity 0.4s ease;
  /* 初始状态：集中在中心 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  /* 每张图不同的延迟出场 */
  animation: flyOut 0.8s forwards ease-out;
}


.button-group {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
    
}

.btn {
    
    width: 400px; /* 固定宽度，看起来更整齐 */
    height: 200px;
    background-image: linear-gradient(120deg,#e0c3fc 0%,#8ec5fc 100%) ;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 32px; 

    

}


/* 悬停效果 */
.photo:hover {
  transform: scale(1.1) translateY(-10px);
  opacity: 1;
  z-index: 10;
}

/* 分散飞出动画 */
@keyframes flyOut {
  to {
    opacity: 1;
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

a {
      text-decoration: none;
}


