
.custom-four-square-section {
  width: 100%;
  padding: 0 20px 10px 20px;     /* 頂部 0px，左右 20px，底部留一點空間 */
  margin: 10 auto;                 /* 頂部 margin 強制為 10 */
  box-sizing: border-box;
}

.grid-container {
  max-width: 1920px;
  margin: 0 auto;
  padding-top: 0;                 /* 內層也強制移除頂部 padding */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 450px;
  overflow: hidden;
  margin: 0 auto;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 按鈕樣式 */
.square-btn {
  width: 300px;
  max-width: 100%;
  height: 55px;
  line-height: 55px;
  text-align: center;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border: 2px solid #000;
  border-radius: 0;
  transition: all 0.3s ease;
}

.square-btn:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  text-decoration: none;
}

/* 響應式調整 */
@media screen and (max-width: 900px) {
  .custom-four-square-section {
    padding: 0 15px 70px 15px;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }
  
  .grid-item {
    gap: 30px;
  }
  
  .square-btn {
    width: 66.66%;
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  .custom-four-square-section {
    padding: 0 10px 60px 10px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .square-btn {
    width: 78%;
    max-width: 280px;
    font-size: 15.5px;
  }
}
