/*======= banner 區塊 =======*/
#intro .carousel-item .carousel-content h2{
  font-size: 17px; width: 70%; font-weight: normal; line-height: 24px;  margin: 0 auto 30px auto;  color: #fff;
}

.sf-banner-info-card {
    position: relative; /* 為了定位上下漸層線 */
    /* 1. 背景左右淡化 */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 15%, 
        rgba(255, 255, 255, 0.1) 85%, 
        rgba(255, 255, 255, 0) 100%) !important;

    border: none !important; /* 關閉傳統邊框 */
    padding: 30px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 1100px;
    margin: 20px auto;
    text-align: center;
}

/* 2. 上邊框線：左右淡化效果 */
.sf-banner-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; /* 線條厚度 */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 20%, 
        rgba(255, 255, 255, 0.5) 80%, 
        rgba(255, 255, 255, 0) 100%);
}

/* 3. 下邊框線：左右淡化效果 */
.sf-banner-info-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px; /* 線條厚度 */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 20%, 
        rgba(255, 255, 255, 0.5) 80%, 
        rgba(255, 255, 255, 0) 100%);
}

/* 4. 產品清單連結：確保換行排列 */
.sf-banner-info-card h2 a {
  display: block
    margin: 8px auto !important;
    color: #ffa133 !important; /* 品牌橘色 */
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* 內部的 H2 產品清單 */
.sf-banner-info-card h2 {
    font-size: 17px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
    color: #fff !important; /* 在白底下改用深色字增加易讀性 */
    margin-bottom: 20px !important;
    text-shadow:none !important;
    letter-spacing: 1px !important;
}

/* 產品清單連結：使用品牌橘色 */
.sf-banner-info-card h2 a {
    color: #fff !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.sf-banner-info-card h2 a:hover {
    color: #fff !important;
    
}

/* 內部的 P 公司簡介 */
.sf-banner-info-card p {
    font-size: 15.5px !important;
    color: #fff !important;
    text-align: center !important;
    margin: auto !important;
    border-top: 1px dashed rgba(0, 0, 0, 0.3); /* 輕微分隔線 */
    padding-top: 15px;
}

/* 針對手機行動裝置 (768px 以下) 的專屬優化 */
@media (max-width: 768px) {
  /* 1. 調整 Banner 高度，確保手機版不會過長 */
  #intro, #intro .carousel-item {
    height: 85vh !important;
  }

  /* 2. 標題字級縮小：避免換行過於凌亂 */
  #intro .carousel-content h1 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }
  #intro .carousel-content h3 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  /* 3. 資訊卡片優化：增加透明度，減少空間佔用 */
  .sf-banner-info-card {
    padding: 15px 20px !important; /* 縮小內距 */
    max-width: 95% !important;   /* 讓卡片左右留空 */
    margin: 10px auto !important;
    background: rgba(0, 0, 0, 0.4) !important; /* 手機版改用深色半透明，文字更清晰 */
    backdrop-filter: blur(5px) !important;
  }

  /* 4. 產品清單與描述文字調整 */
  .sf-banner-info-card h2 {
    font-size: 14px !important; /* 縮小字級 */
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }
  
  .sf-banner-info-card p {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    padding-top: 10px !important;
  }

  /* 5. 修正手機版「產品清單」過長的問題 */
  .sf-banner-info-card h2 a {
    display: inline-block !important; /* 改回並排，避免手機垂直拉太長 */
    margin: 2px !important;
  }

  /* 6. 按鈕調整：更適合手指點擊 */
  #intro .btn-get-started {
    font-size: 14px !important;
    padding: 10px 30px !important;
    margin-top: 15px !important;
  }

  /* 7. 隱藏不必要的邊框裝飾，保持手機版簡潔 */
  .sf-banner-info-card::before, 
  .sf-banner-info-card::after {
    width: 80% !important; /* 線條縮短，更具精緻感 */
    left: 10% !important;
  }
}

/* 針對極小螢幕 (iPhone SE 等) 的極限微調 */
@media (max-width: 375px) {
  #intro .carousel-content h1 { font-size: 20px !important; }
  .sf-banner-info-card h2 { font-size: 13px !important; }
  .sf-banner-info-card p { display: none !important; } /* 極小螢幕隱藏簡介，專注顯示產品清單 */
}
/*======= END banner 區塊 =======*/


/* ====== 服務項目 區塊 ======= */

/* 高度縮減內距以符合單屏顯示 */
#services {
    padding: 60px 0 !important; 
}

/* 強制 Row 內的 Col 欄位等高 */
#services .row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 標題與內容全包覆垂直空間 */
#services .box {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    padding: 0 15px !important; /* 減少左右間距 */
    background: transparent !important;
}

/* description 框框等高並磨砂感 */
#services .description {
    flex: 1 !important; /* 強制向下填充達成等高 */
    margin: 10px 0 0 0 !important; /* 縮減與標題的間距 */
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* 文字壓縮調整 */
    font-size: 14px !important; /* 稍微縮小字體以換取空間 */
    line-height: 1.6 !important;
    color: #fff !important;
}

/* 標題與圖示扁平化 */
#services .box .icon {
    margin-bottom: 10px !important;
}
#services .box .icon i {
    font-size: 28px !important; /* 縮小圖示 */
    color: #fff;
}
#services .title {
    margin-bottom: 5px !important;
}
#services .title a {
    font-size: 18px !important;
    font-weight: 700;
}

/* 底部標籤區：改為緊湊排版 */
#services .btn-light {
    padding: 4px 12px !important;
    font-size: 13px !important;
    margin: 2px !important;
    border-radius: 4px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* 懸停效果 */
#services .box:hover .description {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* 標籤容器壓縮間距 */
#services .col-12.text-center {
    padding-top: 20px !important;
    max-width: 1000px;
    margin: 0 auto;
}

/* 將原本的按鈕重塑為輕量化標籤 */
#services .btn-light {
    
    padding: 5px 15px !important; /* 壓縮高度 */
    margin: 4px 3px !important; /* 緊湊間距 */
    border-radius: 50px !important; /* 膠囊形狀 */
    transition: all 0.3s ease !important;
    box-shadow: none !important; /* 移除陰影減少厚度 */
}

/* 連結文字縮小並改為白色以增加高級感 */
#services .btn-light a {
    color: #000 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

/* 懸停效果：變為純白底深色字 */
#services .btn-light:hover {
    background: rgba(255, 255, 255, 0.2) !important; /* 半透明白底 */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* 細邊框 */
    background: #ffffff !important;
    transform: translateY(-2px);
}

#services .btn-light:hover a {
    color: #ffa133 !important; /* 懸停時字體變品牌橘 */
    font-weight: 600 !important;
}


/* 圖示外圈容器調整 */
#services .box .icon {
    margin-bottom: 15px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

/* 打造圓形磨砂底座 */
#services .box .icon i {
    width: 64px;
    height: 64px;
    line-height: 60px; /* 扣除邊框的高度 */
    text-align: center;
    font-size: 28px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15); /* 半透明底 */
    border: 2px solid rgba(255, 255, 255, 0.4); /* 亮色細邊框 */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* 懸停效果：圖示背景變亮、圖示旋轉 */
#services .box:hover .icon i {
    background: #fff !important;
    color: #ffa133 !important; /* 圖示變為品牌橘 */
    transform: rotate(360deg) scale(1.1); /* 旋轉並微微放大 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
/* ====== END 服務項目 區塊 ======= */


/* ======= 最新消息 區塊 ======= */
  body #products {
    background-color: #888 !important; /* 極深色底 */
    background-image: 
        /* 1. 核心橘色光暈：營造深邃感 */
        radial-gradient(circle at 50% 50%, rgba(255, 161, 51, 0.05) 0%, transparent 75%),
        /* 2. 數位點陣紋理：使用 CSS 繪製比圖片更清晰 */
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        /* 3. 您原本的背景圖，改為 soft-light 融合模式 */
        url('../img/product.jpg') !important;
    
    background-size: auto, 40px 40px, cover !important; /* 控制點陣疏密度與底圖滿版 */
    background-position: center !important;
    background-repeat: no-repeat, repeat, no-repeat !important;
    background-blend-mode: normal, normal, soft-light !important;
    
    padding: 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* 案例卡片：極致磨砂玻璃效果 */
  body #products .news-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    height: 100% !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
  }

  /* 懸停時卡片升起與發光 */
  body #products .news-card:hover {
    transform: translateY(-15px) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 161, 51, 0.4) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
  }

  /* 圖片縮放區 */
  body #products .news-img-wrap {
    height: 240px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  body #products .news-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 1s ease !important;
  }

  /* VIEW CASE 懸停遮罩：這是之前可能漏掉的重點 */
  body #products .news-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 161, 51, 0.85) !important; /* 品牌橘色遮罩 */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: 0.4s !important;
    text-decoration: none !important;
  }

  body #products .news-card:hover .news-overlay {
    opacity: 1 !important;
  }

  .btn-view {
    color: #fff !important;
    border: 2px solid #fff !important;
    padding: 8px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
  }

  /* 內容區文字修正 */
  body #products .news-content {
    padding: 25px !important;
  }

  body #products .news-date {
    color: #999 !important;
    font-size: 13px !important;
    display: block !important;
    margin-bottom: 8px !important;
  }

  body #products .news-title {
    color: #ffffff !important; /* 強制標題白色 */
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    transition: 0.3s !important;
  }

  body #products .news-card:hover .news-title {
    color: #ffa133 !important; /* 懸停變橘色 */
  }

/* END ======= 最新消息 區塊 ======= */  


/* ======== 捲門安裝與維修影片區塊 ======== */
  #video-gallery-luxury {
    background: #0f0f0f !important;
    background-image: 
        radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0f0f0f 100%) !important;
    padding: 100px 0 !important;
    color: #fff;
    position: relative;
  }

  /* 標題高級化：品牌色細線點綴 */
  #video-gallery-luxury .section-header h3 {
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }
  
  #video-gallery-luxury .section-header h3 b {
    color: #ffa133 !important; /* 品牌橘色 */
    display: block;
    font-size: 0.6em;
    margin-top: 5px;
    letter-spacing: 5px;
  }

  /* 影片卡片：完全去除白色底框，改用深色磨砂質感 */
  #video-gallery-luxury .video-item-box {
    background: rgba(255, 255, 255, 0.02) !important; /* 極低透明度 */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* 極細微邊框 */
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    height: calc(100% - 30px);
    backdrop-filter: blur(5px);
  }

  /* 懸停效果：專業懸浮感與品牌橘光 */
  #video-gallery-luxury .video-item-box:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 161, 51, 0.4) !important; /* 懸停變橘邊 */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  }

  /* 影片標題樣式：去除白色，改用極簡亮白與品牌色點綴 */
  #video-gallery-luxury h3.v-title {
    font-size: 16px !important;
    color: #efefef !important; /* 柔和白 */
    font-weight: 500 !important;
    line-height: 1.6 !important;
    height: 3.2em;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 3px solid rgba(255, 161, 51, 0.6); /* 加入垂直品牌橘色短線 */
    padding-left: 15px;
  }

  /* 影片容器：影院級陰影 */
  #video-gallery-luxury .embed-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background: #000;
  }

  #video-gallery-luxury .embed-responsive iframe {
    border: none !important;
  }
/* END ======== 捲門安裝與維修影片區塊 ======== */
  