main {
    font-size: 16px;
  }
  
  main .box {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行3列，等宽 */
    gap: 8rem; /* 列之间的间距 */
    width: 100%;
    max-width: 90%; /* 限制最大宽度，避免太大 */
    margin: 0 auto; /* 居中整个容器 */
    padding: 2rem 0; /* 上下留白 */
  }
  
  main .container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    aspect-ratio: 2/3; /* 保持纵横比，而不是固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  main .box1 {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #435bbe;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
  }
  
  main .helvetica-text {
    font-family: "Helvetica", sans-serif;
    color: aliceblue;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0; /* 🔥 初始隐藏 */
    transition: opacity 1s ease-in-out; /* 平滑过渡 */
  }
  
  /* 当容器 hover 时，文字淡入 */
  main .container:hover .helvetica-text {
    opacity: 1;
    transition-delay: 0.5s; /* 🔥 延时，让 box2、box3 等先消失，再出现文字 */
  }

  main .box2 {
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(
      to bottom right,
      #64d8da, /* 浅蓝绿色 */
      #5bcfd1,
      #4ec2c4,
      #48bcbe,
      #3cb0b2,
      #2ca0a2  /* 深蓝绿色 */
    );
    transform: rotateZ(10deg);
    display: flex; /* 让里面的文字居中 */
    align-items: center;
    justify-content: center;
  }

  main .box-text {
    color: white; /* 白色文字在深色背景上更显眼 */
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* 增加阴影让文字更突出 */
    text-align: center;
  }
  

  main .box3 {
    position: absolute;
    height: 3rem;
    width: 70%;
    background-color:#92d3fb;
    top: 1.5rem;
    left: -15%;
  }
  
  main .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 55%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem; /* 可选：四角圆润 */
  }
  
  main .text img {
    height: 100%;
    width: 100%;
    object-fit: cover;   /* 保持比例，填满容器 */
    object-position: center; /* 居中裁切 */
  }
  
  main .unrotated{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 68%;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem; /* 可选：四角圆润 */
  }

  main .unrotated img{
    height: 100%;
    width: 100%;
    object-fit: cover;   /* 保持比例，填满容器 */
    object-position: center; /* 居中裁切 */
  }
  
  main .box4 {
    position: absolute;
    height: 10%;
    width: 70%;
    background-color: #92d3fb    ;
    bottom: 1.5rem;
    right: -15%;
  }
  
  main .rotated-90 {
    transform: rotate(90deg);
    transform-origin: center center;
    display: inline-block;
  }
  
  main .container:hover .box2 {
    transition: bottom 0.5s ease-in-out;
    transition-delay: 0.2s;
    opacity: 0;
}
  main .container:hover .box3 {
    transition: top 0.5s ease-in-out;
    opacity: 0;;
}
  main .container:hover .text {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
main .container:hover .unrotated {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
  main .container:hover .box4 {
    transition: bottom 0.5s ease-in-out;
    opacity: 0;
  }