@media screen and (max-width: 960px) {
  .caseBox {
    width: 90%;
    height: 44px;
    background: #FFFFFF70;
    border-radius: 48px;
    padding: 5px 7px;
  }
  .caseBei {
    width: 100%;
    height: 240px;
    background-image: url("../img/caseBei.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .caseBeiText {
    font-size: 28px;
    color: #fff;
  }
  .caseLabel {
    min-width: 95px;
    width: 95px;
    height: 34px;
    border-radius: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    box-sizing: border-box;
  }
  .caseLabel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
  .caseLabelAct {
    min-width: 95px;
    width: 95px;
    height: 34px;
    border-radius: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    box-sizing: border-box;
    background: #1B1C31;
  }
  .caseLabelAct img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
  .case-tabs-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .case-tabs-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.5s;
    will-change: transform;
  }
  .photo {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
  }
  .photo:hover {
    transform: translate3d(0, -10px, 20px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
  .search {
    width: 300px;
    height: 48px;
    background: #FFFFFF;
    box-shadow: 0px 12px 24px 0px rgba(211, 211, 211, 0.5);
    padding: 7px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .search .btn {
    width: 80px;
    height: 34px;
    background: #1B1C31;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
  }
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 500px;
    width: 100%;
    height: 400px;
    position: relative;
    background-color: #FCFCFC;
    overflow: hidden;
  }
  .grid-container {
    position: relative;
    width: 100vw;
    height: 80vh;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
  }
  .grid-line {
    position: absolute;
    background-color: #4501f5;
    opacity: 0;
    animation: moveForward 3s linear infinite;
  }
  .horizontal-line {
    width: 100%;
    height: 1px;
  }
  .vertical-line {
    height: 100%;
    width: 1px;
  }
  @keyframes moveForward {
    0% {
      transform: translateZ(100px);
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    80% {
      opacity: 1;
    }
    100% {
      transform: translateZ(-100px);
      opacity: 0;
    }
  }
}

@media screen and (min-width: 960px) {
  .caseBox {
    width: 70%;
    height: 88px;
    background: #FFFFFF70;
    border-radius: 48px;
    padding: 10px 14px;
  }
  .caseBei {
    width: 100%;
    height: 480px;
    background-image: url("../img/caseBei.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .caseBeiText {
    font-size: 60px;
    color: #fff;
  }
  .caseLabel {
    min-width: 190px;
    width: 190px;
    height: 68px;
    border-radius: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .caseLabel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
  .caseLabelAct {
    min-width: 190px;
    width: 190px;
    height: 68px;
    background: #1B1C31;
    border-radius: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .caseLabelAct img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }
  .case-tabs-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  .case-tabs-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.5s;
    will-change: transform;
  }
  .photo {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: translateZ(0);
  }
  .photo:hover {
    transform: translate3d(0, -10px, 20px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  }
  .search {
    width: 660px;
    height: 100px;
    background: #FFFFFF;
    box-shadow: 0px 12px 24px 0px rgba(211, 211, 211, 0.5);
    padding: 18px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .search .btn {
    width: 211px;
    height: 65px;
    background: #1B1C31;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
  }
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 500px;
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #FCFCFC;
    overflow: hidden;
  }
  .grid-container {
    position: relative;
    width: 100vw;
    height: 80vh;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
  }
  .grid-line {
    position: absolute;
    background-color: #4501f5;
    opacity: 0;
    animation: moveForward 3s linear infinite;
  }
  .horizontal-line {
    width: 100%;
    height: 1px;
  }
  .vertical-line {
    height: 100%;
    width: 1px;
  }
  @keyframes moveForward {
    0% {
      transform: translateZ(100px);
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    80% {
      opacity: 1;
    }
    100% {
      transform: translateZ(-100px);
      opacity: 0;
    }
  }
}
