/* 瀑布流容器：調整為 3 欄，讓照片尺寸放大 2= */
  .masonry-container {
    column-count: 3; /* 電腦版改為 3 欄，照片會更大 */
    column-gap: 25px; /* 稍微增加間距，增加呼吸感與高級感 */
    width: 100%;
    margin: 0 auto;
  }

  .masonry-photo-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px; /* 垂直間距同步增加 */
    border-radius: 12px;
    overflow: hidden;
    background: #fdfdfd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .masonry-photo-item:hover {
    transform: translateY(-5px); /* 改為向上微浮，更高貴 */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  }

  .masonry-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* 導覽按鈕樣式設計 */
  .case-nav-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin-bottom: 50px;
  }

  .case-btn {
    padding: 12px 32px;
    background: #fff;
    border: 1px solid #d4af37;
    color: #333;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }

  .case-btn.active {
    background: #c90909;
    color: #fff;
    border-color: #c90909;
    box-shadow: 0 4px 15px rgba(201, 9, 9, 0.3);
  }

  .case-panel {
    display: none;
    width: 100%;
  }

  .case-panel.active {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* 響應式調整 */
  @media (max-width: 992px) {
    .masonry-container { column-count: 2; } /* 平板改為 2 欄 */
  }
  @media (max-width: 768px) {
    .masonry-container { column-count: 1; } /* 手機改為 1 欄，大圖呈現 */
    .case-btn { padding: 8px 20px; font-size: 0.9rem; }
  }