/* Banner樣式 */
  #intro .mask::before {
    background-color: rgba(0, 0, 0, 0.3);
  }
  #intro .premium-mask::before {
    background-color: rgba(0, 0, 0, 0.4) !important; /* 稍微加深遮罩，提升文字可讀性 */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  }
  /* 標題層次優化 */
  #intro .carousel-content h1,#intro .carousel-content h3 {
    font-size: 3rem !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
  }
  #intro .carousel-content .total-badge {
    display: inline-block;
    background: #b52026;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(181, 32, 38, 0.3);
  }
  @media (max-width: 768px) {
    #intro .carousel-content h1, #intro .carousel-content h3  { font-size: 2rem !important; }
  }
/* END Banner樣式 */

/* 案例分享 區塊 */ 
  .portfolio-wrap-refined {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
  }

  .portfolio-wrap-refined:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  }

  /* 強制圖片比例*/
  .img-container-fixed {
    width: 100%;
    aspect-ratio: 16 / 10; /* 黃金比例 */
    overflow: hidden;
    position: relative;
  }

  .img-container-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：自動裁切 */
    transition: transform 0.6s ease;
  }

  .portfolio-wrap-refined:hover .img-container-fixed img {
    transform: scale(1.1);
  }

  /* 資訊描述區塊 */
  .portfolio-info-premium {
    padding: 20px;
    text-align: center;
  }

  .portfolio-info-premium h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    height: 50px; /* 固定高度讓排版對齊 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多兩行 */
    -webkit-box-orient: vertical;
  }

  .portfolio-info-premium h4 a {
    color: #333;
    transition: 0.3s;
    text-decoration: none;
  }

  .portfolio-wrap-refined:hover .portfolio-info-premium h4 a {
    color: #b52026;
  }

  .portfolio-date-label {
    color: #999;
    font-size: 0.9rem;
    display: block;
    letter-spacing: 1px;
  }

  /* 底部按鈕 */
  .cta-btn-all {
    display: inline-block;
    background: #b52026;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(181,32,38,0.2);
    text-decoration: none !important;
  }

  .cta-btn-all:hover {
    background: #333;
    transform: scale(1.05);
  }
  /* 分頁按鈕 */
  .page_link a, .page_link strong {
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: 0.3s;
    text-decoration: none;
  }
  .page_link strong { background: #b52026; color: #fff; border-color: #b52026; 
  }
/* 案例分享 區塊 */

