﻿/* ==========================================================================
   START OF: style.css
   ========================================================================== */

/* 套用 Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* 自訂樣式 */
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
    background-color: #fff;
    color: #222;
    background: url(../img/background-img.svg) no-repeat left center;
}
    /*h1, h2, h3, h4, h5, h6 {
    color: #25AC38 !important;
}*/

    /* =================================================================== */
    /* ===         自訂 Bootstrap 按鈕顏色 (權重增強版)            === */
    /* =================================================================== */

    /* --- 覆蓋 .btn-success 樣式 --- */
    /* 我們在前面加上了 `body` 來確保權重足夠高 */
    body .btn-success {
        background-color: #25AC38 !important;
        border-color: #25AC38 !important;
        color: #fff !important;
        background-image: none !important;
    }

        body .btn-success:hover,
        body .btn-success:focus,
        body .btn-success.active,
        body .btn-success:active {
            background-color: #1e872d !important;
            border-color: #1a7527 !important;
            color: #fff !important;
            /* (可選) 避免 Bootstrap 的 box-shadow 效果 */
            box-shadow: none;
            background-image: none !important;
        }


    /* --- 覆蓋 .btn-outline-secondary 樣式 --- */
    body .btn-outline-secondary {
        color: #212529;
        border-color: #212529;
    }

        body .btn-outline-secondary:hover,
        body .btn-outline-secondary:focus,
        body .btn-outline-secondary.active,
        body .btn-outline-secondary:active {
            background-color: #212529;
            border-color: #212529;
            color: #fff;
            box-shadow: none;
        }
    body .btn-secondary {
        color: #6C757D;
        background-image: none !important;
    }
    body .form-control{
        border-radius:0 !important;
        border-color:#25AC38!important;
    }
    /* 導覽列 */
    header .navbar {
        padding: 1.3rem 3.75rem !important;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: padding 0.3s ease-in-out;
        border-radius: 0 0 16px 16px !important;
    }

:root {
    /* 
    --bs-heading-color 是 Bootstrap 定義的標題顏色變數。
    我們在這裡重新定義它。
  */
    --bs-heading-color: #25AC38 !important;
    --bs-link-color-rgb: 37, 172, 56 !important;
    --bs-link-color: #25AC38 !important;
    --bs-link-hover-color: #027842 !important;
    --bs-link-hover-color-rgb: 2, 120, 66 !important;
}

header .navbar-brand img {
    height: 40px;
    max-width: 80%;
}

header .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 1.875rem;
    transition: all 0.2s ease-in-out;
}

    header .navbar-nav .nav-link:hover,
    header .navbar-nav .nav-item:hover > .nav-link {
        color: #25AC38;
        font-weight: 700;
    }

header .dropdown-toggle::after {
    transition: transform 0.2s ease-in-out;
}

/* --- 下拉選單樣式 --- */
.navbar-nav .dropdown-menu {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 1px !important;
    border: 1px solid #25AC38 !important;
    background-color: #fff !important;
    padding: 0 !important;
}

.navbar-nav .dropdown-item {
    padding: 0.8rem 1.5rem !important;
    font-weight: 500;
    color: #212529 !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid #e9ecef !important;
}

    .navbar-nav .dropdown-item:last-child {
        border-bottom: none !important;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #e6f5e8 !important;
    }
.k-button-md.k-icon-button {
    margin-right: 0 !important;
}
.k-input-solid {
    border: 1px solid #25AC38 !important;
    color: #212529;
    background-color: #fff;
    border-radius: 0 !important;
}
.k-button-solid-base {
    color: #fff !important;
    background-color: #25AC38 !important;
}
/* ======================================================== */
/* ===         RWD 響應式樣式 (< 992px)                 === */
/* ======================================================== */
@media (max-width: 991.98px) {
    header .navbar {
        padding: 0.8rem 1.5rem !important;
        border-radius: 0 0 20px 20px !important
    }

    /* 手機版的字體大小和 padding 維持原樣 */
    header .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0 !important;
    }

    header .navbar-collapse {
        margin-top: 1rem;
        overflow: visible !important;
    }

    header .navbar-nav .nav-item {
        text-align: center;
    }

    /* 手機版的下拉選單樣式 */
    header .navbar-nav .dropdown-menu {
        border: none !important;
        text-align: center;
        background-color: rgba(248, 249, 250, 0.8) !important;
        z-index: 1050;
    }

    header .navbar-nav .dropdown-item {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    /*.nav-link:hover+.dropdown-menu{
        display:block;
    }*/
    header .navbar-brand {
        /* 例如，Logo 最多佔螢幕寬度的 70% */
        max-width: 36%;
        height: auto; /* 讓高度自動調整 */
        padding-right: 0.5rem; /* 縮小與漢堡選單的距離 */
    }

        /* 
      由於父層寬度被限制，.img-fluid (max-width: 100%) 會自動生效，
      讓圖片縮小以適應父層寬度。
      我們也需要讓 height 自動調整，以保持比例。
    */
        header .navbar-brand img {
            height: auto !important; /* 覆蓋內聯樣式 */
        }

}

header .container-fluid {
    flex-direction: row !important;
    align-items: center !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    header .container-fluid {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .news-section-custom {
        margin: 2.5rem 3rem !important;
    }
}

/*@media (min-width: 1024.02px){
    header .container-fluid {
        flex-direction: row !important;
        align-items: center !important;
    }
}*/


    @media (max-width: 767.98px) {
        header .navbar-brand {
            max-width: 70%;
            height: auto; /* 讓高度自動調整 */
padding-right: 0.5rem; /* 縮小與漢堡選單的距離 */
        }

            header .navbar-brand img {
                height: auto !important; /* 覆蓋內聯樣式 */
            }
    }


    /* 導覽列白色90度漸層 */
    .navbar-gradient {
        background: linear-gradient(180deg, #fff 0%, #fff 100%);
    }

    /* 首頁大圖 */
    .hero-carousel-section {
        position: relative;
        height: 700px;
        color: #fff;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
    }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .carousel-item {
        transition: opacity 1.5s ease-in-out;
    }

        .carousel-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
        }

    /* 
========================================================
===            固定文字層 (本次更新重點)             ===
========================================================
*/
    .hero-static-caption {
        position: absolute;
        /* (O) 定位：與控制按鈕的 left 值相同 */
        left: 10%;
        /* (O) 定位：在控制按鈕的上方 */
        bottom: calc(8% + 50px + 10rem);
        /* 計算方式: 按鈕bottom + 按鈕高度 + 間距 */
        z-index: 10;
        pointer-events: none;
        /* 讓滑鼠可以穿透文字點擊後方的內容 */
    }

    .caption-title {
        font-size: 3.5rem;
        font-weight: 700;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
        margin-bottom: 0.5rem;
        color: white;
    }

    .caption-subtitle {
        font-size: 1.5rem;
        font-weight: 400;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
        color: white;
    }


    /* --- 自訂控制按鈕 --- */
    .carousel-custom-controls {
        position: absolute;
        bottom: 15%;
        left: 10%;
        z-index: 10;
        display: flex;
        gap: 0.75rem;
    }

        /* --- 核心修正開始 --- */
        /* 使用後代選擇器來增加權重，並精確指定目標 */
        .carousel-custom-controls .carousel-control-prev,
        .carousel-custom-controls .carousel-control-next {
            /* 1. 重設 Bootstrap 樣式 */
            position: static; /* 覆蓋 absolute 定位 */
            opacity: 1; /* 覆蓋半透明效果 */
            background-image: none; /* 移除 Bootstrap 的預設箭頭背景圖 */
            /* 2. 應用您的自訂樣式 */
            width: 50px;
            height: 50px;
            background-color: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.2s;
        }

            /* 同樣增加權重 */
            .carousel-custom-controls .carousel-control-prev:hover,
            .carousel-custom-controls .carousel-control-next:hover {
                background-color: #25AC38;
                opacity: 1; /* hover 時也確保不透明 */
            }
    /* --- 核心修正結束 --- */


    /* 這兩段通常不是必須的，因為 Bootstrap 的圖示預設就是隱藏的，
   但保留也無妨，可以確保萬無一失 */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none !important;
    }


    .carousel-custom-controls .carousel-control-prev i,
    .carousel-custom-controls .carousel-control-next i {
        font-size: 1.5rem;
        color: #fff;
    }


    /* --- RWD 響應式設計 --- */
    @media (max-width: 767px) {
        .hero-carousel-section {
            height: 500px;
            clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
        }

        /* 在手機上，將文字和按鈕一起置中 */
        .hero-static-caption,
        .carousel-custom-controls {
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            /* 給予一個寬度，避免文字換行混亂 */
            text-align: center;
        }

        .carousel-custom-controls {
            justify-content: center;
            /* 讓按鈕在容器內也置中 */
            bottom: 12%;
        }

        .hero-static-caption {
            bottom: calc(12% + 50px + 1rem);
        }

        .caption-title {
            font-size: 2rem;
        }

        .caption-subtitle {
            font-size: 1rem;
        }
    }

    /* 服務產業 */
    .industry-category {
        padding: 5rem 0 5rem 0;
        background-color: #fff;
        text-align: center;
        background-image: url(../images/industry-category01.svg), url(../images/industry-category02.svg);
        background-repeat: no-repeat, no-repeat;
        background-position: left top, right top;
    }

        .industry-category h2 {
            font-size: 2.3rem;
            font-weight: bold;
            letter-spacing: 0.05em;
            margin-bottom: 0.2rem;
            text-align: center;
            color: #231714;
        }

        .industry-category .highlight {
            color: #19b24b;
            font-weight: bold;
        }

        .industry-category .subtitle {
            display: block;
            text-align: center;
            color: #636362;
            font-size: 1.5rem;
            letter-spacing: 0.08em;
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
            font-family: 'Montserrat', 'Noto Sans TC', Arial, sans-serif;
            font-weight: 400;
            position: relative;
        }

        .industry-category h2 {
            position: relative;
            display: inline-block;
            padding-bottom: 0.5rem;
        }

            .industry-category h2::after {
                content: "";
                display: block;
                width: 100%;
                height: 3px;
                margin: 0.5rem auto 0 auto;
                background: linear-gradient(90deg, #19b24b 0 20%, #888 20% 100%);
                border-radius: 2px;
                position: absolute;
                left: 0;
                bottom: -0.1rem;
            }

    .industry-list {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        margin-top: 7rem;
        margin-bottom: 2.5rem;
        min-height: 600px;
        height: 600px;
    }

    .industry-item {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        color: #fff;
        text-align: center;
        padding: 3.5rem 1.5rem 2.5rem 1.5rem;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* 垂直置中 */
        align-items: center;
        /* 水平置中（如需） */
        overflow: hidden;
        height: 100%;
    }

        .industry-item:nth-child(1) {
            background-image: url('../images/cardA.jpg');
        }

        .industry-item:nth-child(2) {
            background-image: url('../images/cardB.jpg');
        }

        .industry-item:nth-child(3) {
            background-image: url('../images/cardC.jpg');
        }

        /* 半透明黑色遮罩 */
        .industry-item::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 1;
        }

        /* industry-item hover 變色效果 */
        .industry-item:hover::before {
            background: rgba(35, 23, 20, 0.7);
            transition: background 0.3s;
        }

        /* 內容層 */
        .industry-item > * {
            position: relative;
            z-index: 2;
        }

        /* 標題與副標題 */
        .industry-item h3 {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #fff;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        }

        .industry-item p {
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
            color: #fff;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        }

    /* 資訊連結 */
    .sidebar-title.vertical-title {
        border-bottom: none;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        /* 关键：设为垂直 flex 布局 */
        align-items: flex-start;
        /* 左对齐 */
        gap: 0.5rem;
        /* 字与字之间的垂直间距 */
        margin-bottom: 2.5rem;
        /* 与下方列表的间距 */
    }

    /* 垂直排列的文字样式 */
    .vertical-title span {
        font-size: 2.5rem;
        /* 字体大小 */
        font-weight: 700;
        /* 粗体 */
        line-height: 1.1;
        /* 调整行高 */
        transition: all 0.2s ease-in-out;
        /* 为 RWD 变化添加过渡效果 */
    }

    .vertical-title .vt-highlight {
        color: #25AC38;
        /* 绿色 */
    }

    .vertical-title .vt-normal {
        color: #212529;
        /* 深灰色 */
    }

    /* 顶部的双色分隔线 */
    .vertical-title::before {
        content: '';
        display: block;
        width: 60px;
        /* 线条长度 */
        height: 4px;
        /* 线条粗细 */
        background: linear-gradient(to right, #25AC38 30%, #aab0b6 30%);
        margin-bottom: 1rem;
        /* 与第一个字的间距 */
    }

    @media (max-width: 991.98px) {
        .sidebar-title.vertical-title {
            flex-direction: row;
            /* 关键：切换回水平 flex 布局 */
            align-items: center;
            /* 垂直居中对齐 */
            justify-content: center;
            /* (可选) 水平居中 */
            gap: 0;
            /* 移除垂直间距 */
            width: 100%;
            /* 占满宽度 */
            margin-bottom: 1.5rem;
        }

        .vertical-title::before {
            display: none;
            /* 手机版隐藏上方的分隔线 */
        }

        .vertical-title span {
            font-size: 2rem;
            /* 手机版字体可以稍小一些 */
            /* 在水平排列时，为非高亮的文字增加一点间距 */
        }

        /* (可选) 为水平排列的文字增加一点字间距 */
        .vertical-title .vt-highlight + .vt-normal,
        .vertical-title .vt-normal + .vt-normal {
            margin-left: 0.25rem;
        }

        .industry-category {
            background-image: none;
            padding-bottom: 3rem;
        }

        .staggered-header h2, h3, p, a {
            text-align: center;
            word-break: break-all;
        }
    }

    .news-section {
        padding: 2.5rem 0;
        background: #fff;
        max-width: 900px;
        margin: 0 auto;
    }

        .news-section h2 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: #198754;
        }

    .news-list {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .news-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1rem;
    }

    .news-date {
        color: #888;
        font-size: 0.95rem;
        min-width: 80px;
    }

    .news-tag {
        background: #DADADA;
        color: #212529;
        padding: 0.2rem 0.7rem;
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }

    .news-item a {
        color: #222;
        text-decoration: none;
        transition: color 0.2s;
    }

        .news-item a:hover {
            color: #198754;
        }

    /* =================================================================== */
    /* ===         解決方案與平台 Section (新版交錯佈局樣式)         === */
    /* =================================================================== */

    h2 > .green-text {
        color: #25AC38;
    }

    .feature-section > :nth-last-child(n + 2) {
        margin-top: -1.25rem;
    }

    .feature-section > :not(:first-child) figure {
        z-index: 1;
    }

        .feature-section > :not(:first-child) figure::after {
            content: '';
            z-index: -1;
            display: block;
            height: calc(1 / 2 * 100%);
            width: calc(1 / 3 * 100%);
            background-color: #000;
            position: absolute;
            bottom: -0.75rem;
        }

    .feature-section [data-direction='row'] > :nth-child(2) {
        align-items: flex-end;
        text-align: right;
    }

    .feature-section [data-direction='row'] figure::after {
        right: -0.75rem;
    }

    .feature-section [data-direction='row-reverse'] {
        flex-direction: row-reverse;
    }

        .feature-section [data-direction='row-reverse'] > :nth-child(2) {
            align-items: flex-start;
        }

        .feature-section [data-direction='row-reverse'] figure::after {
            left: -0.75rem;
        }

    /* 輔助類：object-cover（Bootstrap 本身沒有） */
    .object-cover {
        object-fit: cover;
    }


    /* --- RWD 響應式設計 (手機版) --- */
    @media (max-width: 991.98px) {
        section {
            gap: 3rem;
        }
    }

    /* 合作品牌 */

    /* --- Section 主容器 --- */
    .brand-carousel-section {
        padding: 4rem 0;
        background-color: #fff;
        overflow: hidden;
    }

    /* --- 左栏：标题区 --- */
    .brand-carousel-title h2 {
        font-size: 2rem;
        font-weight: 700;
        position: relative;
        padding-bottom: 0.75rem;
        display: inline-block;
        color: #231714;
    }

        .brand-carousel-title h2 .text-highlight {
            color: #25AC38;
            /* 绿色 */
        }

    .text-highlight-dark {
        color: #231714;
    }
    /* 标题下方的双色底线 */
    .brand-carousel-title h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #25AC38 30%, #ddd 30%);
    }

    .brand-carousel-title .subtitle {
        font-family: 'Montserrat', sans-serif;
        color: #6c757d;
        margin-top: 0.5rem;
    }

    .carousel-navigation {
        margin-top: 1.5rem;
        display: flex;
        gap: 0.75rem;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        border: 1px solid #ddd;
        background-color: #fff;
        border-radius: 50%;
        color: #6c757d;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        transition: all 0.2s ease-in-out;
    }

        .nav-button:hover {
            background-color: #25AC38;
            border-color: #25AC38;
            color: #fff;
        }


    /* --- 右栏：Swiper 轮播区 --- */
    .brand-swiper {
        width: 100%;
        height: 100%;
    }

    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        /* (可选) 为每个 Logo 添加背景框 */
        /* background: #f0f2f5; */
    }

        .swiper-slide img {
            max-width: 100%;
            max-height: 100px;
            /* 控制 Logo 的最大高度 */
            object-fit: contain;
            object-position: center top;
            /* 保持图片比例 */
        }

    .swiper-wrapper {
        align-items: center;
    }
.swiper-slide a {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 90%; 
    height: 120px;
    cursor: pointer; 
}
    /* --- RWD 响应式设计 --- */
    @media (max-width: 991.98px) {
        .brand-carousel-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .carousel-navigation {
            justify-content: center;
        }
    }

    /* 首頁大圖左右下角白色三角遮罩（寬度各佔螢幕一半） */
    .hero-triangle {
        position: absolute;
        bottom: 0;
        width: 50vw;
        height: 120px;
        z-index: 10;
        pointer-events: none;
    }

    .hero-triangle-left {
        left: 0;
        background: none;
        clip-path: polygon(0 100%, 100% 100%, 0 0);
        background-color: #fff;
    }

    .hero-triangle-right {
        right: 0;
        background: none;
        clip-path: polygon(100% 100%, 100% 0, 0 100%);
        background-color: #fff;
    }

    .carousel-cover-img {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        z-index: 3;
        pointer-events: none;
    }

    .hero {
        position: relative;
    }

        .hero .carousel-inner,
        .hero .carousel-item,
        .hero .carousel-item img {
            height: 768px;
        }

            .hero .carousel-item img {
                object-fit: cover;
                width: 100%;
                display: block;
            }

    /* 資訊連結區塊自訂樣式 */
    .news-section-custom {
        display: flex;
        flex-direction: row;
        margin: 2.5rem auto;
        max-width: 1350px;
        min-height: 420px;
        overflow: hidden;
    }

    .news-sidebar {
        min-width: 260px;
        max-width: 320px;
        height: 100%;
        display: flex;
        flex-direction: row;
        position: relative;
        margin-right: 5px;
    }

    .news-title-highlight {
        color: #19b24b;
        font-size: 2.1rem;
        font-weight: bold;
        letter-spacing: 0.08em;
        line-height: 1;
        display: inline-block;
    }

    .news-title-bold {
        font-weight: bold;
        font-size: 2.1rem;
        letter-spacing: 0.08em;
        line-height: 1;
        display: inline-block;
    }

    .news-sidebar h2 {
        margin-bottom: 2rem;
        line-height: 1.1;
        font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
    }

    .news-category-list {
        list-style: none;
        padding: 0;
        width: 100%;
        height: 100%;
        background-color: #F8F9FA;
    }

        .news-category-list li {
            padding: 1rem 1.2rem;
            font-size: 1.1rem;
            color: #222;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            font-weight: 500;
        }

            .news-category-list li.active,
            .news-category-list li:hover {
                background: #19b24b;
                color: #fff;
            }

    .news-logo {
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

        .news-logo img {
            width: 120px;
            height: auto;
            margin-top: 1.5rem;
            margin-left: -0.5rem;
        }

    .news-content {
        flex: 1 1 0;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        min-width: 0;
    }

    .news-item-custom {
        display: flex;
        align-items: flex-start;
        gap: 1.2rem;
        background: none;
        padding: 0.7rem 1rem;
        transition: background 0.15s;
        position: relative;
    }

        .news-item-custom:hover {
            background: #e9f7ef;
        }

    .news-thumb {
        width: 80px;
        height: 56px;
        object-fit: cover;
        flex-shrink: 0;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    }

    .news-meta {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        min-width: 90px;
        margin-top: 0.2rem;
        gap: 0.5rem;
    }

    .news-info {
        display: flex;
        flex-direction: row;
    }

    .news-date {
        color: #888;
        font-size: 0.98rem;
        margin-bottom: 0.2rem;
    }

    .news-tag {
        background: #DADADA;
        color: #212529;
        padding: 0.15rem 0.7rem;
        font-size: 0.92rem;
        font-weight: 500;
        margin-bottom: 0.1rem;
    }

    .news-link {
        color: #222;
        font-size: 1.08rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s;
        margin-top: 0.1rem;
        display: inline-block;
        max-width: 420px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .news-link:hover {
            color: #19b24b;
        }

    .news-arrow {
        font-size: 1.5rem;
        color: #bbb;
        margin-left: auto;
        align-self: center;
        transition: color 0.2s;
    }

    .news-item-custom:hover .news-arrow {
        color: #19b24b;
    }

    .back-to-top {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
        background-color: #25AC38;
        color: #fff;
        text-decoration: none;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.2s;
        /* --- 3. 内部内容布局 --- */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .back-to-top i {
            font-size: 1.5rem;
            line-height: 1;
        }

        .back-to-top span {
            font-size: 0.9rem;
            font-weight: 700;
            margin-top: 2px;
        }

        .back-to-top:hover {
            background-color: #1e872d;
            color: #fff;
        }

        .back-to-top.is-visible {
            opacity: 1;
            visibility: visible;
        }

    /* =================================================================== */
    /* 響應式調整 (合併後) */
    /* =================================================================== */

    @media (max-width: 991.98px) {

        /* General */
        .industry-list {
            flex-direction: column;
            gap: 0em;
            margin-top: 2.5rem
        }

        .industry-item {
            min-height: 220px;
            padding: 2rem 1rem 1.5rem 1rem;
        }

        .platform-section {
            flex-direction: column;
            text-align: center;
        }

        .platform-img img {
            width: 90vw;
            max-width: 340px;
        }

        .brand-list {
            flex-direction: column;
            gap: 1rem;
        }

        .navbar {
            flex-direction: column;
            align-items: flex-start;
            padding: 1rem;
        }

            .navbar nav ul {
                flex-direction: column;
                gap: 0.5rem;
                width: 100%;
            }

            .navbar .logo {
                margin-bottom: 0.5rem;
            }

        .hero-triangle {
            height: 60px;
        }

        /* Hero Carousel */
        .hero .carousel-inner,
        .hero .carousel-item,
        .hero .carousel-item img {
            height: 400px;
        }

        /* News Section Custom */
        .news-section-custom {
            flex-direction: column;
            min-height: unset;
        }

        .news-sidebar {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            border-right: none;
            border-bottom: 1px solid #e5e5e5;
            margin-right: 0;
            max-width: none;
        }

            .news-sidebar h2 {
                margin-bottom: 0;
                margin-right: 2rem;
                font-size: 1.3rem;
            }

        .news-category-list {
            margin-bottom: 0px;
            gap: 0.5rem;
        }

            .news-category-list li {
                margin-bottom: 0;
                font-size: 1rem;
                padding: 0.5rem 1rem;
            }

        .news-logo {
            margin-top: 0;
            margin-left: auto;
            justify-content: flex-end;
        }

            .news-logo img {
                width: 70px;
                margin-top: 0;
            }

        .news-content {
            padding: 1.2rem 1rem;
        }

        .news-thumb {
            width: 60px;
            height: 40px;
        }

        .news-arrow {
            display: none;
        }

        .news-meta {
            display: flex;
            flex-direction: column;
        }
    }

    @media (max-width: 575px) {

        /* General */
        .hero-text h1 {
            font-size: 1.5rem;
        }

        .hero-text p {
            font-size: 1rem;
        }

        .industry-item {
            padding: 1rem 0.5rem;
            min-width: 0;
            max-width: 100%;
        }

        .platform-img img {
            width: 100vw;
            max-width: 98vw;
        }

        .solution-section h2 {
            font-size: 1.1rem;
        }

        .news-section {
            padding: 1.2rem 0;
        }

        .brand-list img {
            height: 36px;
            padding: 0.3rem 0.5rem;
        }

        .navbar {
            padding: 0.5rem 1rem;
        }

        .hero-triangle {
            height: 30px;
        }

        /* Hero Carousel */
        .hero .carousel-inner,
        .hero .carousel-item,
        .hero .carousel-item img {
            height: 220px;
        }

        /* News Section Custom */
        .news-section-custom {
            border-radius: 0.5rem;
            margin: 1rem 0.2rem;
        }

        .news-sidebar {
            padding: 0.7rem 0.5rem 0.5rem 0.7rem;
        }

            .news-sidebar h2 {
                font-size: 1.1rem;
            }

        .news-logo img {
            width: 48px;
        }

        .news-content {
            padding: 0.7rem 0.2rem;
            gap: 0.7rem;
        }

        .news-thumb {
            width: 44px;
            height: 32px;
        }

        .news-link {
            font-size: 0.98rem;
            max-width: 320px;
        }
    }

    @media (min-width: 1440px) {
        .news-section-custom {
            min-width: 90vh;
        }

        .news-category-list {
            min-width: 250px;
        }

        .news-link {
            max-width: 660px;
        }
    }

    /* ==========================================================================
   END OF: style.css
   ========================================================================== */



    /* ==========================================================================
   START OF: search.css
   ========================================================================== */

    /* search.css */

    /* Page Title and Breadcrumb Section */
    .page-title-section {
        background-image: url('../images/carousel-cover.png');
        /* Using an existing image as placeholder */
        background-size: cover;
        background-position: center;
        padding: 2rem 0;
        position: relative;
        color: white;
    }

        .page-title-section .container {
            position: relative;
            z-index: 2;
        }

    .breadcrumb {
        background-color: transparent;
        padding: 0;
        margin: 0;
    }

    .breadcrumb-item a {
        color: #25AC38;
        text-decoration: none;
    }

        .breadcrumb-item a:hover {
            color: white;
        }

    .breadcrumb-item-active {
        color: white;
        font-weight: bold;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: white;
    }

    .bn-r {
        display: flex;
        justify-content: flex-end;
        margin-top: -10rem;
        margin-bottom: 4rem;
        position: relative;
        z-index: 3;
    }

    .social-icon {
        font-size: 1.5rem;
        color: white;
        margin-left: 1rem;
        text-decoration: none;
    }

        .social-icon:hover {
            color: #ddd;
        }

    /* Search Panel */
    .search-panel {
        background: #F8F9FA;
        padding: 2rem 2rem 1.5rem 2rem;
        margin-bottom: 1rem;
        box-shadow: none;
    }

        .search-panel strong {
            white-space: nowrap;
        }

    @media (max-width: 767.98px) {

        /* 對 <strong> 的父層 .key-word 增加下邊距 */
        .search-panel .key-word {
            margin-bottom: 0.5rem;
            /* 例如 0.5rem 的間距 */
            /* 因為手機版會堆疊，可以取消 d-flex 讓它佔滿整行，文字自然靠左 */
            display: block;
        }
    }

    /* 搜尋項目按鈕樣式 */
    .search-panel .btn,
    .search-panel .dropdown-toggle {
        background: #f6fff8;
        border: 1px solid #00a65a;
        color: #00a65a;
        border-radius: 4px;
        font-weight: 500;
        margin-right: 0.5rem;
    }

        .search-panel .btn .badge,
        .search-panel .dropdown-toggle .badge {
            background: #00a65a;
            color: #fff;
            margin-left: 0.25rem;
        }

    /* 已選標籤樣式 */
    .search-panel .badge.bg-light {
        background: #eaf8ee !important;
        color: #00a65a !important;
        border: 1px solid #00a65a;
        font-weight: 500;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

        .search-panel .badge.bg-light .btn-close {
            filter: invert(48%) sepia(77%) saturate(349%) hue-rotate(93deg) brightness(93%) contrast(92%);
            opacity: 0.7;
        }

    /* 顯示資料區塊checkbox樣式 */
    .search-panel .form-check-input:checked {
        background-color: #00a65a;
        border-color: #00a65a;
    }

    .k-input > *, .k-picker > * {
        margin-right: 26px !important;
    }

    .search-panel .form-check-label {
        margin-right: 1.5rem;
    }

    /* 關鍵字輸入框樣式 */
    .search-panel input[type="text"].form-control {
        border-radius: 4px;
        border: 1px solid #d1d5db;
    }

    /* 下拉選單icon顏色 */
    .search-panel .dropdown-toggle::after {
        color: #00a65a;
    }

    /* (待確認)依檢測項目input樣式 */
    .search-panel .input-group {
        min-width: 220px;
        max-width: 320px;
    }

    .search-panel .input-group-text {
        background: #f6fff8;
        border: 1px solid #00a65a;
        color: #00a65a;
        border-radius: 4px 0 0 4px;
        font-weight: 500;
    }

    .search-panel .input-group .form-control {
        border: 1px solid #00a65a;
        border-left: none;
        border-radius: 0 4px 4px 0;
    }

    .search-panel .input-group .btn {
        background: #00a65a;
        color: #fff;
        border: none;
        border-radius: 0 4px 4px 0;
        margin-left: 0;
        padding: 0 0.75rem;
    }

    .result-panel .table {
        table-layout: fixed;
        width: 100%;
        /* 表格總寬度佔滿容器 */
    }

    .result-panel a {
        color: #25AC38;
        text-decoration: none;
    }

        .result-panel a:hover {
            color: #198754;
            text-decoration: underline;
        }

    .result-panel .table th,
    .result-panel .table td {
        /* 允許文字正常換行（這是預設值，但為了清晰再次聲明） */
        white-space: normal;
        /* 處理非常長的、沒有空格的單字（例如網址），讓它可以被強制斷開 */
        word-wrap: break-word;
        word-break: break-all;
    }

    /* Badges for selected items */
    .badge.border .btn-close {
        font-size: 0.65em;
        margin-left: 0.25rem;
    }

    /*列表*/
    .table .bi-check-circle-fill {
        font-size: 1.2rem;
    }
    /*鐵道產品指定檢測資訊*/
    #product-list-table-wrapper .table th:nth-child(1),
    #product-list-table-wrapper.table td:nth-child(1) {
        width: 5ch; /*序號*/
    }

    #product-list-table-wrapper .table th:nth-child(2),
    #product-list-table-wrapper.table td:nth-child(2) {
        width: 15ch; /*類別*/
    }

    #product-list-table-wrapper .table th:nth-child(3),
    #product-list-table-wrapper.table td:nth-child(3) {
        width: 30ch; /*標題*/
    }

    #product-list-table-wrapper .table th:nth-child(4),
    #product-list-table-wrapper.table td:nth-child(4) {
        width: 15ch; /*建立日期*/
    }


    /*鐵道產品檢測服務項目查詢*/
    #search-result-table-wrapper .table th:nth-child(1),
    #search-result-table-wrapper .table td:nth-child(1) {
        width: 15ch; /* TAF認證編號 */
    }

    #search-result-table-wrapper .table th:nth-child(2),
    #search-result-table-wrapper .table td:nth-child(2) {
        width: 35ch; /* 機構名稱 */
    }

    #search-result-table-wrapper .table th:nth-child(3),
    #search-result-table-wrapper .table td:nth-child(3) {
        width: 35ch; /* 機構地址 */
    }

    #search-result-table-wrapper .table th:nth-child(4),
    #search-result-table-wrapper .table td:nth-child(4) {
        width: 35ch; /* 實驗室名稱 */
    }

    #search-result-table-wrapper .table th:nth-child(5),
    #search-result-table-wrapper .table td:nth-child(5) {
        width: 35ch; /* 實驗室地址 */
    }

    #search-result-table-wrapper .table th:nth-child(6),
    #search-result-table-wrapper .table td:nth-child(6) {
        width: 35ch; /* 聯絡人*/
    }

    #search-result-table-wrapper .table th:nth-child(7),
    #search-result-table-wrapper .table td:nth-child(7) {
        width: 35ch; /* 聯絡人電話 */
    }

    #search-result-table-wrapper .table th:nth-child(8),
    #search-result-table-wrapper .table td:nth-child(8) {
        width: 35ch; /* 認證狀態 */
    }


    /*我國鐵道類標準整體架構*/
    #tw-result-table-wrapper .table th:nth-child(1),
    #tw-result-table-wrapper .table td:nth-child(1) {
        width: 15ch; /* 系統類別 */
    }

    #tw-result-table-wrapper .table th:nth-child(2),
    #tw-result-table-wrapper .table td:nth-child(2) {
        width: 15ch; /* 1 階項目 */
    }

    #tw-result-table-wrapper .table th:nth-child(3),
    #tw-result-table-wrapper .table td:nth-child(3) {
        width: 15ch; /* 2 階項目 */
    }

    #tw-result-table-wrapper .table th:nth-child(4),
    #tw-result-table-wrapper .table td:nth-child(4) {
        width: 20ch; /* 標準號碼 */
    }

    #tw-result-table-wrapper .table th:nth-child(5),
    #tw-result-table-wrapper .table td:nth-child(5) {
        width: 50ch; /* 標準標題 */
    }


    /* Dark Footer */
    .footer-dark {
        background-color: #212529;
        color: #adb5bd;
        padding: 3rem 0;
        margin-top: 3rem;
    }

        .footer-dark h5 {
            color: white;
            border-left: 3px solid #00a65a;
            /* Green accent */
            padding-left: 10px;
            margin-bottom: 1.5rem;
        }

        .footer-dark ul {
            list-style: none;
            padding: 0;
        }

            .footer-dark ul li a {
                color: #adb5bd;
                text-decoration: none;
                line-height: 2;
            }

                .footer-dark ul li a:hover {
                    color: white;
                    text-decoration: underline;
                }

    .footer-contact p {
        margin-bottom: 0.5rem;
    }

    .footer-contact .bi {
        margin-right: 0.5rem;
        color: #00a65a;
    }

    .copyright {
        border-top: 1px solid #343a40;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    /* 首頁大圖區塊與三角遮罩 */
    .banner-section {
        position: relative;
        height: 100%;
        /* 依照您提供的圖高度調整 */
        overflow: hidden;
        margin-bottom: 52px;
        background: #222;
    }

.banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

    .banner-triangle {
        position: absolute;
        bottom: 0;
        width: 50vw;
        height: 80px;
        z-index: 2;
        pointer-events: none;
    }

    .banner-triangle-left {
        left: 0;
        border-left: 0 solid transparent;
        border-bottom: 80px solid #fff;
        border-right: 50vw solid transparent;
    }

    .banner-triangle-right {
        right: 0;
        border-right: 0 solid transparent;
        border-bottom: 80px solid #fff;
        border-left: 50vw solid transparent;
    }

    .banner-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        z-index: 3;
        padding-top: 8rem;
        padding-bottom: 13rem;
        color: #fff;
    }

    .breadcrumb {
        background: transparent;
        margin-bottom: 0;
    }

    .breadcrumb-item a {
        color: #fff !important;
        text-decoration: none;
    }

    .breadcrumb-item.active {
        color: #fff !important;
        font-weight: bold;
    }

    .banner-social .social-icon {
        color: #fff !important;
        font-size: 1.3rem;
        margin-left: 1rem;
        text-decoration: none;
    }

        .banner-social .social-icon:hover {
            color: #ccc !important;
        }

    /* Search Input Group */
    .input-group {
        flex: 1 1 300px;
        max-width: 320px;
    }

        .input-group .input-group-text {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            color: #495057;
        }

        .input-group input.form-control {
            border-radius: 4px;
            border: 1px solid #d1d5db;
        }

    .search-item {
        border-bottom: 1px dashed #ADB5BD;
    }

    /* 搜尋項目按鈕、form-check、已選標籤無圓角 */
    .search-panel .btn,
    .search-panel .dropdown-toggle,
    .search-panel .badge,
    .search-panel .badge.bg-light,
    .search-panel .form-check-input,
    .search-panel .form-check-label,
    .search-panel .input-group-text,
    .search-panel .input-group .form-control,
    .search-panel .input-group .btn {
        border-radius: 0 !important;
    }

    /* 分頁區塊樣式 */
    .pagination, .pagination .page-item, .pagination .page-link, .result-panel select, .result-panel input[type="text"], .result-panel input[type="number"] {
        border-radius: 0 !important;
        height: 40px;
    }

    .pagination {
        --bs-pagination-padding-x: 0.75rem;
        --bs-pagination-padding-y: 0.375rem;
        --bs-pagination-color: #333;
        --bs-pagination-bg: #fff;
        !important --bs-pagination-border-width: 1px;
        --bs-pagination-border-color: #d1d5db;
        --bs-pagination-hover-color: #00a65a;
        --bs-pagination-hover-bg: #f6fff8;
        --bs-pagination-hover-border-color: #00a65a;
        --bs-pagination-active-color: #fff;
        --bs-pagination-active-bg: #00a65a;
        --bs-pagination-active-border-color: #00a65a;
        --bs-pagination-disabled-color: #ccc;
        --bs-pagination-disabled-bg: #fff;
        --bs-pagination-disabled-border-color: #d1d5db;
        margin-bottom: 0;
    }

        .pagination .page-item {
            margin: 0 10px;
        }

        .pagination .page-link {
            border: 1px solid #d1d5db;
            color: #333;
            background: #fff;
            min-width: 40px;
            text-align: center;
            font-weight: 500;
            margin-left: -1px;
        }

        .pagination .page-item.active .page-link {
            background: #00a65a;
            color: #fff;
            border-color: #00a65a;
        }

        .pagination .page-link:focus,
        .pagination .page-link:hover {
            background: #f6fff8;
            color: #00a65a;
            border-color: #00a65a;
            box-shadow: none;
        }

        .pagination .page-item.disabled .page-link {
            color: #ccc;
            background: #fff;
            border-color: #d1d5db;
        }

    .result-panel select,
    .result-panel input[type="text"],
    .result-panel input[type="number"] {
        border: 1px solid #d1d5db;
        color: #333;
        background: #fff;
        padding: 0 0.5rem;
        margin: 0 0.25rem;
        width: 60px;
        text-align: center;
        font-size: 1rem;
    }

    /* 分頁資訊區塊樣式 */
    .pagination-info {
        font-size: 0.9rem;
        /* 稍微縮小字體以適應更多裝置 */
        color: #333;
        background-color: #E9ECEF;
        padding: .5rem;
    }

        .pagination-info .form-control {
            width: 60px;
            /* 固定寬度 */
            height: 38px;
            /* 與分頁按鈕高度對齊 */
            text-align: center;
            border-radius: 0;
            border: 1px solid #d1d5db;
            /* 移除 number input 的上下箭頭 (在某些瀏覽器) */
            -moz-appearance: textfield;
        }

            .pagination-info .form-control::-webkit-outer-spin-button,
            .pagination-info .form-control::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }


    /* --- 自訂 Bootstrap Pagination 樣式 --- */
    .pagination {
        --bs-pagination-border-radius: 0;
        /* 無圓角 */
        --bs-pagination-color: #333;
        /* 預設文字顏色 */
        --bs-pagination-bg: #fff;
        /* 預設背景 */
        --bs-pagination-border-color: #d1d5db;
        /* 邊框顏色 */
        /* Hover 狀態 */
        --bs-pagination-hover-color: #007bff;
        --bs-pagination-hover-bg: #e9ecef;
        --bs-pagination-hover-border-color: #d1d5db;
        /* Active (當前頁) 狀態 */
        --bs-pagination-active-color: #fff;
        --bs-pagination-active-bg: #28a745;
        /* 主要綠色 */
        --bs-pagination-active-border-color: #28a745;
        /* Disabled (禁用) 狀態 */
        --bs-pagination-disabled-color: #6c757d;
        --bs-pagination-disabled-bg: #fff;
        --bs-pagination-disabled-border-color: #d1d5db;
    }

        /* 確保每個按鈕有最小寬度，看起來更像方形 */
        .pagination .page-link {
            min-width: 38px;
            text-align: center;
        }

    @media (max-width: 767.98px) {
        .pagination-info {
            width: 100%;
            margin-top: .5rem;
        }
        .banner-img {
            min-height: 20vh;
            object-fit: cover;
            display: block;
        }
        .pagination {
            display: flex;
            flex-wrap: wrap;
            row-gap: 0.5rem;
            margin-bottom:48px !important;
        }
    }

    @media (max-width: 991.98px) {
        .banner-section {
            height: calc(140px + 70px);
        }

        .banner-triangle-left {
            border-bottom: 44px solid #fff;
        }

        .banner-triangle-right {
            border-bottom: 44px solid #fff;
        }
        .banner-img {
            min-height: 20vh;
            object-fit: cover;
            display: block;
        }
    }

    /* ==========================================================================
   END OF: search.css
   ========================================================================== */



    /* ==========================================================================
   START OF: test-info.css
   ========================================================================== */

    /* Article Content Styles */
    .article-content {
        max-width: 90%;
        margin: 0 auto;
    }

    .article-header {
        border-bottom: 4px solid #CED4DA;
        margin-bottom: 2rem;
        position: relative;
    }


    .article-title {
        font-size: 2rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 1rem;
    }

    .article-meta {
        text-align: right;
        color: #6c757d;
    }

        .article-meta span {
            margin-left: 1.5rem;
        }

    .img-caption {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .section-title {
        font-weight: bold;
        color: #00a65a;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .file-download-section {
        padding: 2rem 0;
        margin: 3rem 0;
        background-color: #F8F9FA;
    }

    .file-section-title {
        color: #00a65a;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .file-download-section ul li a {
        color: #333;
        text-decoration: none;
        line-height: 2;
    }

        .file-download-section ul li a:hover {
            color: #00a65a;
        }

    .related-photos-section {
        margin-bottom: 3rem;
    }

    .related-title {
        font-weight: bold;
        color: #333;
    }

    .photo-nav .btn {
        border-radius: 50%;
        width: 30px;
        height: 30px;
        padding: 0;
    }

    .photo-caption {
        font-size: 0.9rem;
        color: #6c757d;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .post-navigation .nav-box {
        display: block;
        padding: 1.5rem;
        border: 1px solid #e5e5e5;
        text-decoration: none;
        height: 100%;
    }

        .post-navigation .nav-box:hover {
            border-color: #00a65a;
        }

    .post-navigation .nav-label {
        color: #6c757d;
        margin-bottom: 0.5rem;
    }

    .post-navigation .nav-title {
        color: #333;
        font-weight: 500;
        margin-bottom: 0;
    }

    .post-navigation .next-post {
        background-color: #f6fff8;
        border-color: #00a65a;
    }

    .back-to-list-btn {
        color: #333;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        border: 1px solid #ccc;
        padding: 0.5rem 1.5rem;
    }

        .back-to-list-btn:hover {
            color: #00a65a;
            border-color: #00a65a;
        }

    .read-more-section {
        background-color: #DEE2E6;
        padding: 2rem;
        margin-top: 3rem;
    }

    .read-more-title {
        text-align: center;
        font-weight: bold;
        margin-bottom: 2rem;
    }

    .read-more-section .card {
        border: none;
        background: transparent;
    }

    .read-more-section .card-text {
        color: #333;
        font-size: 0.95rem;
    }

    .breadcrumb {
        background-color: transparent;
        padding: 0;
        margin: 0;
    }

    .breadcrumb-item a {
        color: #ccc;
        text-decoration: none;
    }

        .breadcrumb-item a:hover {
            color: white;
        }

    .breadcrumb-item.active {
        color: white;
        font-weight: bold;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: white !important;
    }

    .bn-r {
        display: flex;
        justify-content: flex-end;
        margin-top: -10rem;
        margin-bottom: 4rem;
        position: relative;
        z-index: 3;
    }

    .img_frame {
        border-top: 8px solid #E9ECEF;
        border-bottom: 8px solid #E9ECEF;
    }

    .img_left_line {
        position: relative;
        margin-top: -9px;
        margin-bottom: -55px;
        z-index: 3;
        display: flex;
        justify-content: flex-start;
    }

    .img_right_line {
        position: relative;
        margin-top: -55px;
        margin-bottom: -9px;
        z-index: 3;
        display: flex;
        justify-content: flex-end;
    }

    .text-item p {
        color: #343A40;
        line-height: 140%;
    }

    .about-fille {
        background-image: url(./img/link_alt.svg);
        background-repeat: no-repeat;
        background-position: right center;
    }

    .about-link {
        background-image: url(./img/Desk_alt_light.svg);
        background-repeat: no-repeat;
        background-position: right center;
    }

    .about_alt {
        position: relative;
        margin-top: -105px;
        margin-right: -4px;
        display: flex;
        justify-content: flex-end;
    }

    .about_alt_foto {
        position: absolute; /* 改為絕對定位 */
        right: 22px; /* 定位到右邊 */
        bottom: 3.5rem;
    }

    .about_alt_video {
        position: absolute;
        left: 26rem;
        bottom: -93rem;
    }

    .card_alt {
        position: relative;
        margin-top: -60px;
        margin-right: -4px;
        display: flex;
        justify-content: flex-end;
    }

    .date-info {
        coloe: #212529;
    }

    .info-img-caption i {
        color: #25AC38;
    }

    .gallery-thumb {
        position: relative;
    }



    .gallery-image {
        width: 100%; /* 圖片寬度填滿欄位 */
        height: 200px; /* 設定一個你想要的固定高度 */
        object-fit: cover; /* 關鍵！圖片會被裁切以適應容器，但不會變形 */
        object-position: center; /* 裁切時以圖片中心為主，可選 */
    }

.article-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

    .article-body table {
        width: 100% !important;
    }

li::marker {
    color: #25AC38;
}

    /* ==========================================================================
   END OF: test-info.css
   ========================================================================== */
    /* ==========================================================================
   START OF: page-title.css
   ========================================================================== */
    .related-file-group {
        display: inline-block;
    }

    .related-file-title {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: .5rem;
    }

        .related-file-title .icon-box {
            width: 36px;
            height: 36px;
            background: #19b24b;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            font-size: 1.5rem;
        }

    .related-file-underline {
        height: 3px;
        width: 80%;
        margin-top: 2px;
        background: linear-gradient(to right, #19b24b 0 25%, #CED4DA 25% 100%);
    }

    .text-green {
        color: #25AC38;
    }
    /* ==========================================================================
   END OF: page-title.css
   ========================================================================== */
    /* ==========================================================================
   START OF: test-items.css
   ========================================================================== */
    /* Article Content Styles */
    .article-content {
        max-width: 90%;
        margin: 0 auto;
    }

    .article-header {
        border-bottom: 4px solid #CED4DA;
        margin-bottom: 2rem;
        position: relative;
    }


    .article-title {
        font-size: 2rem;
        font-weight: bold;
        color: #333;
        margin-bottom: 1rem;
    }

    .article-meta {
        text-align: right;
        color: #6c757d;
    }

        .article-meta span {
            margin-left: 1.5rem;
        }

    .img-caption {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .section-title {
        font-weight: bold;
        color: #00a65a;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .file-download-section {
        padding: 2rem 0;
        margin: 3rem 0;
        background-color: #F8F9FA;
    }

    .file-section-title {
        color: #00a65a;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .file-download-section ul li a {
        color: #333;
        text-decoration: none;
        line-height: 2;
    }

        .file-download-section ul li a:hover {
            color: #00a65a;
        }

    .related-photos-section {
        margin-bottom: 3rem;
    }

    .related-title {
        font-weight: bold;
        color: #333;
    }

    .photo-nav .btn {
        border-radius: 50%;
        width: 30px;
        height: 30px;
        padding: 0;
    }

.photo-caption {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    overflow-wrap: break-word
}

    .post-navigation .nav-box {
        display: block;
        padding: 1.5rem;
        border: 1px solid #e5e5e5;
        text-decoration: none;
        height: 100%;
    }

        .post-navigation .nav-box:hover {
            border-color: #00a65a;
        }

    .post-navigation .nav-label {
        color: #6c757d;
        margin-bottom: 0.5rem;
    }

    .post-navigation .nav-title {
        color: #333;
        font-weight: 500;
        margin-bottom: 0;
    }

    .post-navigation .next-post {
        background-color: #f6fff8;
        border-color: #00a65a;
    }

    .back-to-list-btn {
        color: #333;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        border: 1px solid #ccc;
        padding: 0.5rem 1.5rem;
    }

        .back-to-list-btn:hover {
            color: #00a65a;
            border-color: #00a65a;
        }

    .read-more-section {
        background-color: #DEE2E6;
        padding: 2rem;
        margin-top: 3rem;
    }

    .read-more-title {
        text-align: center;
        font-weight: bold;
        margin-bottom: 2rem;
    }

    .read-more-section .card {
        border: none;
        background: transparent;
    }

    .read-more-section .card-text {
        color: #333;
        font-size: 0.95rem;
    }

    .breadcrumb {
        background-color: transparent;
        padding: 0;
        margin: 0;
    }

    .breadcrumb-item a {
        color: #ccc;
        text-decoration: none;
    }

        .breadcrumb-item a:hover {
            color: white;
        }

    .breadcrumb-item.active {
        color: white;
        font-weight: bold;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: white !important;
    }

    .breadcrumb-item + .breadcrumb-item.active ::before {
        color: white !important;
    }


    .bn-r {
        display: flex;
        justify-content: flex-end;
        margin-top: -10rem;
        margin-bottom: 4rem;
        position: relative;
        z-index: 3;
    }

    .img_frame {
        border-top: 8px solid #E9ECEF;
        border-bottom: 8px solid #E9ECEF;
    }

    .img_left_line {
        position: relative;
        margin-top: -9px;
        margin-bottom: -55px;
        z-index: 3;
        display: flex;
        justify-content: flex-start;
    }

    .img_right_line {
        position: relative;
        margin-top: -55px;
        margin-bottom: -9px;
        z-index: 3;
        display: flex;
        justify-content: flex-end;
    }

.text-item p {
    color: #495057;
    line-height: 140%;
}

    .about-fille {
        background-image: url(./img/link_alt.svg);
        background-repeat: no-repeat;
        background-position: right center;
    }

    .about-link {
        background-image: url(./img/Desk_alt_light.svg);
        background-repeat: no-repeat;
        background-position: right center;
    }

    .about_alt {
        position: absolute; /* 改為絕對定位 */
        right: 0; /* 定位到右邊 */
        bottom: 2.8rem;
    }

    .card_alt {
        position: relative;
        margin-top: -60px;
        margin-right: -4px;
        display: flex;
        justify-content: flex-end;
    }



    /* Remove all rounded corners as requested */
    .card-custom,
    .header-main,
    .header-sub,
    .spec-body,
    .img-fluid {
        border-radius: 0 !important;
    }


    /* --- Left Column Styles --- */
    .header-main {
        background-color: #28a745;
        color: white;
        padding: 0.75rem 1.25rem;
        font-weight: bold;
        font-size: 1.2rem;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
    }

        .header-main::after {
            content: '';
            position: absolute;
            background-color: #5a5a5a;
            width: 25px;
            height: 25px;
            right: -10px;
            bottom: -10px;
            z-index: -1;
        }


    .image-container {
        padding: 0;
        line-height: 0;
        /* Removes bottom space under the image */
    }

    /* --- Right Column Styles --- */
    .right-column-scroll-container {
        max-height: 370px;
        overflow-y: auto;
        padding-right: 10px;
        /* Space for the scrollbar to avoid content overlap */
    }

    .header-sub {
        position: relative;
        background-color: #e6f5e8;
        color: #333;
        padding: 0.75rem 1.25rem;
        font-weight: bold;
        font-size: 1.1rem;
    }

        .header-sub::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 40px;
            /* L 型線條的水平長度 */
            height: 20px;
            /* L 型線條的垂直高度 */
            border-top: 3px solid #38a14a;
            /* 上方的綠色線 */
            border-right: 3px solid #38a14a;
            /* 右側的綠色線 */
        }

    /* 小輪播圖 */
    .carousel-nav-container {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        font-family: sans-serif;
        max-width: 800px; /* 您可以根據需要調整最大寬度 */
        margin: auto; /* 頁面中置中顯示（可選） */
    }

    /* 左右導覽箭頭的樣式 */
    .carousel-arrow {
        flex-shrink: 0; /* 防止箭頭被壓縮 */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 70px;
        background-color: white;
        border: 1px solid #333;
        text-decoration: none;
        color: #555;
        font-size: 20px;
        cursor: pointer;
    }

        .carousel-arrow:hover {
            background-color: #212529;
            color: #fff;
        }

    /* 縮圖的容器 */
    /* 縮圖的容器 */
    .carousel-thumbnails {
        flex-grow: 1; /* 佔用剩餘的空間 */
        display: flex;
        justify-content: space-between; /* 均勻分佈縮圖 */
        gap: 15px;
        overflow: hidden; /* 如果圖片過多，隱藏超出的部分 */
    }

    /* 單個縮圖項目的樣式 */
    .thumbnail-item {
        position: relative; /* 用於絕對定位播放按鈕 */
        background-color: #d9d9d9; /* 縮圖的灰色背景 */
        width: 23%; /* 讓四張圖均分寬度 */
        aspect-ratio: 4 / 3; /* 保持 4:3 的比例 */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        /* 縮圖中的圖片樣式 */
        .thumbnail-item img {
            width: 100%; /* <--- 修改：讓圖片寬度填滿容器 */
            height: 100%; /* <--- 修改：讓圖片高度填滿容器 */
            display: block;
            object-fit: cover; /* <--- 新增：核心屬性，讓圖片填滿空間且不變形 */
        }

    /* 播放按鈕的覆蓋層 */
    .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 將按鈕置中 */
        width: 35px;
        height: 35px;
        background-color: #34a853; /* 綠色背景 */
        border-radius: 50%; /* 圓形 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* 使用偽元素製作播放的三角圖示 */
        .play-overlay::after {
            content: '';
            width: 0;
            height: 0;
            border-top: 7px solid transparent;
            border-bottom: 7px solid transparent;
            border-left: 12px solid white; /* 白色三角形 */
            margin-left: 3px; /* 微調位置 */
        }

    .spec-body {
        padding: 0.5rem 1.25rem;
    }

    .spec-row {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #e9ecef;
        font-size: 0.95rem;
        gap: 1rem;
    }

        .spec-row:last-child {
            border-bottom: none;
        }

    .spec-label {
        color: #555;
        flex-shrink: 0;
        width: 220px;
    }

    .spec-value {
        color: #212529;
        font-weight: 500;
        text-align: left;
    }


    /* --- TAF Table Styles --- */
    .taf-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
    }

        .taf-table th,
        .taf-table td {
            padding: 0.8rem 0;
            vertical-align: middle;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }

        .taf-table thead th {
            color: #555;
            font-weight: normal;
        }

        /* Set column widths for better alignment */
        .taf-table th:first-child,
        .taf-table td:first-child {
            width: 35%;
        }

        .taf-table tr:last-child td {
            border-bottom: none;
        }

    .taf-list {
        list-style-type: none;
        padding-left: 0;
        margin-bottom: 0;
    }

        /* Custom list bullet style */
        .taf-list li::before {
            content: '■';
            /* Square bullet */
            color: #38a14a;
            /* Main green color */
            font-weight: bold;
            display: inline-block;
            width: 1em;
            /* Space between bullet and text */
            margin-left: 0;
        }

    /* --- Custom Scrollbar (Optional, for better look) --- */
    .right-column-scroll-container::-webkit-scrollbar {
        width: 8px;
    }

    .right-column-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .right-column-scroll-container::-webkit-scrollbar-thumb {
        background: #ccc;
    }

        .right-column-scroll-container::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

    .category-tabs-bg {
        background-color: rgba(255, 255, 255, 0.8);
        position: sticky;
        top: 100px;
        z-index: 999;
        padding: 1.3rem 0;
    }


    /* --- NEW CSS RULE TO FIX SCROLLBAR POSITION --- */
    /* On large screens (lg breakpoint and up), remove the right padding
   from our custom wrapper class to make the scrollbar flush with the edge. */
@media (max-width:991.98px) {
    .right-column-wrapper {
        padding-right: 0;
    }

    .category-tabs-bg {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        top: 65px;
        padding: 1rem 0;
        gap: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: #cccccc transparent;
    }

        .category-tabs-bg::-webkit-scrollbar {
            height: 4px;
        }

        .category-tabs-bg::-webkit-scrollbar-track {
            background: transparent;
        }

        .category-tabs-bg::-webkit-scrollbar-thumb {
            background-color: #cccccc;
            border-radius: 10px;
        }

            .category-tabs-bg::-webkit-scrollbar-thumb:hover {
                background-color: #999999;
            }
}

    /* ==========================================================================
   END OF: test-items.css
   ========================================================================== */



    /* ==========================================================================
   START OF: service-window.css
   ========================================================================== */

    /* --- 整體表單樣式 --- */
    .contact-form {
        padding: 2.5rem;
        margin: auto;
        background-color: #F8F9FA;
    }

    /* --- 表單群組 (Label + Input) --- */
    .form-group {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

        /* --- 標籤 (Label) 樣式 --- */
        .form-group label {
            width: 110px;
            /* 固定寬度，讓右側輸入框對齊 */
            flex-shrink: 0;
            /* 防止標籤被壓縮 */
            margin-right: 1rem;
            font-weight: 500;
            color: #333;
            text-align: right;
        }

            /* 必填欄位的紅色星號 */
            .form-group label.required::before {
                content: ' *';
                color: #dc3545;
                /* Bootstrap's danger color */
            }

            /* 標籤下方的小提示文字 */
            .form-group label small {
                display: block;
                font-weight: 400;
                font-size: 0.8em;
                color: #6c757d;
            }

    /* --- 輸入框、下拉選單、文字區塊 --- */
.form-control,
.form-select {
    border: 1px solid #25AC38 !important;
    border-radius: 0 !important;
    /* 無圓角 */
    flex-grow: 1;
    /* 填滿剩餘空間 */
}

    .form-control:focus,
    .form-select:focus {
        border-color: #25AC38 !important;
        box-shadow: 0 0 0 0.25rem rgba(37, 172, 56, 0.25) !important;
    }

.form-control-sm {
    border: 1px solid #25AC38 !important;
    border-radius: 0 !important;
}


/* --- 地址選擇器 --- */
.add-section .k-svg-icon > svg {
    fill: transparent !important;
}

    .add-section .k-picker-solid {
        border-radius: 0 !important; /* 無圓角，與您的設計保持一致 */
        border: 1px solid #25AC38 !important; /* 綠色邊框 */
        background-color: #fff; /* 確保背景是白色 */
        box-shadow: none !important;
        color: #868e96 !important;
    }


    /* --- 特殊區塊樣式 --- */

    /* 分隔虛線 */
    .form-group-divider {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px dashed #ADB5BD;
    }

    /* 左右分割的輸入框 (地址、電話) */
    .input-group-split {
        display: flex;
        flex-grow: 1;
        gap: 1rem;
    }

    .input-group-split-add {
        display: flex;
        flex-grow: 1;
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .add-dropdown {
        display: flex;
        flex-grow: 1;
        gap: 1rem;
    }

    /* 附件上傳 */
    .file-upload-wrapper,
    .captcha-wrapper {
        display: flex;
        align-items: center;
        flex-grow: 1;
        gap: 1rem;
    }

    .btn-upload {
        background-color: #6c757d;
        color: white;
        border: none;
        border-radius: 0;
        white-space: nowrap;
        /* 防止按鈕文字換行 */
    }

        .btn-upload:hover {
            background-color: #5a6268;
            color: white;
        }

    .file-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .btn-remove-file {
        background: none;
        border: none;
        color: #dc3545;
        font-size: 1.5rem;
        line-height: 1;
        padding: 0 0.5rem;
        cursor: pointer;
    }

    /* 驗證碼輸入框調整 */
    .captcha-wrapper .form-control {
        max-width: 200px;
    }

    /* --- 按鈕區塊 --- */
    .form-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

        .form-actions .btn {
            border-radius: 0;
            padding: 0.5rem 2rem;
        }

        .form-actions .btn-primary {
            background-color: #25AC38;
            border-color: #25AC38;
        }

            .form-actions .btn-primary:hover {
                background-color: #1e872d;
                border-color: #1e872d;
            }

        .form-actions .btn-secondary {
            background-color: white;
            color: #6c757d;
            border-color: #6c757d;
        }

            .form-actions .btn-secondary:hover {
                background-color: #f8f9fa;
            }


    /* --- RWD 響應式設計 --- */
    @media (max-width: 767px) {
        .form-group {
            flex-direction: column;
            align-items: flex-start;
        }

            .form-group label {
                width: auto;
                margin-bottom: 0.5rem;
                text-align: left;
            }

        .file-upload-wrapper,
        .captcha-wrapper,
        .form-control,
        .form-select,
        .input-group-split {
            width: 100%;
        }
    }

    /* ==========================================================================
   END OF: service-window.css
   ========================================================================== */



    /* ==========================================================================
   START OF: product-test-info.css
   ========================================================================== */

    /* ==========================================================================
   分類頁籤 (Category Tabs)
   ========================================================================== */
    .cat-tab-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        position: sticky;
        top: 100px;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 1.3rem 0;
    }

    .cat-tab-item {
        /* 
     * (O) 簡化了 Flex 屬性：
     * flex: 1 1 auto; -> 允許伸展、允許收縮，寬度基於內容。
     * 這可以讓滿行的項目填滿，不滿的行則自然排列。
    */

        min-width: 280px;
        display: flex;
        align-items: stretch;
        border: 1px solid #25AC38;
        text-decoration: none;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        background-color: #fff;
    }

        .cat-tab-item:hover {
            background-color: #DBF4DF;
            border-color: #25AC38;
            /* (O) 修正：Hover 時邊框也應變色，避免綠色邊框 */
        }

    .cat-tab-text {
        display: flex;
        align-items: center;
        padding: 0.75rem 1.5rem;
        color: #333;
        font-weight: 500;
        flex-grow: 1;
        background-color: transparent;
        transition: color 0.3s ease, font-weight 0.3s ease;
    }

    .cat-tab-number {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem;
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

        .cat-tab-number span {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 28px;
            height: 28px;
            background-color: #25AC38;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 700;
            transition: all 0.3s ease;
        }

    /* --- Active (點選後) 狀態 --- */
    .cat-tab-item.active {
        background-color: #e6f5e8;
        border-color: #25AC38;
    }

        .cat-tab-item.active .cat-tab-number span {
            background-color: #fff;
            color: #25AC38;
        }

        .cat-tab-item.active .cat-tab-text {
            color: #212529;
            font-weight: 600;
        }

        /* (O) 修正：Active 狀態下不應觸發 hover 效果 */
        .cat-tab-item.active:hover {
            background-color: #e6f5e8;
            border-color: #25AC38;
        }


    /* ==========================================================================
   日期選擇器 (Date Picker)
   ========================================================================== */
    .form-group {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .form-label {
        font-weight: 600;
        color: #343a40;
        flex-shrink: 0;
    }

    .date-range-picker {
        display: flex;
        align-items: center;
    }

    .date-separator {
        color: #6c757d;
        padding: 0 0.5rem;
    }

    .date-input-wrapper {
        position: relative;
        display: inline-block;
    }

    .date-input {
        width: 200px;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        background-color: #fff;
        color: #495057;
        font-size: 1rem;
        line-height: 1.5;
    }

        .date-input::placeholder {
            color: #6c757d;
        }

    .date-icon {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        pointer-events: none;
    }

    .native-datepicker {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        border: none;
    }

        .native-datepicker::-webkit-calendar-picker-indicator {
            display: none;
        }


    /* ==========================================================================
   新聞卡片 (News Cards)
   ========================================================================== */
    .news-card {
        display: flex;
        flex-direction: column;
        /* 確保內容垂直排列 */
        background-color: #fff;
        text-decoration: none;
        height: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

    .news-card-image {
        position: relative;
        overflow: hidden;
    }

        .news-card-image img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

    .news-card:hover .news-card-image img {
        transform: scale(1.05);
    }

    .news-card-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
        z-index: 1;
    }

    .card-number {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #25AC38;
        color: #fff;
        padding: 0.5rem 1rem;
        font-weight: 700;
        z-index: 2;
    }

    .news-card-image::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 60px;
        height: 60px;
        border-right: 5px solid #25AC38;
        border-bottom: 5px solid #25AC38;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 2;
    }

    .news-card:hover .news-card-image::after {
        opacity: 1;
    }

    .news-card-content {
        padding: 1.5rem;
        background-color: #F8F9FA;
        flex-grow: 1;
        /* (O) 確保在多列佈局中，所有卡片底邊對齊 */
    }

        /* (O) 修正了巢狀語法錯誤 */
        .news-card-content .card-title {
            color: #231714;
        }

    .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .card-tag {
        font-size: 0.8rem;
        font-weight: 500;
        background-color: #DBF4DF;
        color: #636362;
        border: 1px solid #25AC38;
        padding: 0.2rem 0.6rem;
    }

    .card-date {
        font-size: 0.85rem;
        color: #6c757d;
    }

    .card-title {
        font-size: 1rem;
        font-weight: 600;
        color: #212529;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: calc(1rem * 1.5 * 3);
    }


    /* ==========================================================================
RWD 響應式設計
   ========================================================================== */
@media (max-width: 991.98px) {
    .cat-tab-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        top: 65px;
        padding: 1rem 0;
        gap: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: #cccccc transparent;
    }

        .cat-tab-container::-webkit-scrollbar {
            height: 4px;
        }

        .cat-tab-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .cat-tab-container::-webkit-scrollbar-thumb {
            background-color: #cccccc;
            border-radius: 10px;
        }

            .cat-tab-container::-webkit-scrollbar-thumb:hover {
                background-color: #999999;
            }

    .cat-tab-text,
    .cat-tab-number {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .date-range-picker {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .date-input-wrapper {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .date-input {
        width: 100%;
    }

    .date-separator {
        width: 100%;
        text-align: center;
    }
}

.cat-tab-text {
    padding: 0.5rem 1.5rem;
}

.cat-tab-number {
    padding: 0.5rem;
}
/* ==========================================================================
   END OF: product-test-info.css
   ========================================================================== */



/* ==========================================================================
   START OF: fqa.css
   ========================================================================== */

/* --- 整體字型與基本設定 --- */
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    /* 維持您原有的其他設定 */
    background-color: #ffffff;
    color: #222;
}

/* ======================================================== */
/* ===         頂部分類頁籤 (最終修正版)                === */
/* ======================================================== */

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 100px;
    z-index: 999;
    padding: 1.3rem 0;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #25AC38;
    color: #333;
    background-color: #fff;
    /* 預設背景為白色 */
    display: flex;
    align-items: center;
    flex: 1;
    /* (O) 關鍵修改點：直接為背景色和邊框色添加過渡效果 */
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

    /* (O) 關鍵修改點：滑鼠懸停時，直接改變背景色 */
    .category-tab:hover {
        background-color: #e6f5e8;
        /* 懸停時變為淺綠色 */
    }

    /* --- 圖示樣式 --- */
    .category-tab .icon-wrapper {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 26px;
        height: 26px;
        border-radius: 0;
        margin-left: auto;
        transition: background-color 0.3s ease-in-out;
        background-color: #DBF4DF;
        /* 預設淺綠背景 */
    }

        .category-tab .icon-wrapper .bi {
            font-size: 0.9rem;
            transition: color 0.3s ease-in-out;
            color: #25AC38;
            /* 預設深綠圖示 */
        }

    /* 圖示的 Hover 狀態 */
    .category-tab:hover .icon-wrapper {
        background-color: #25AC38;
    }

        .category-tab:hover .icon-wrapper .bi {
            color: #fff;
        }

    /* --- Active 狀態 (點擊後) --- */
    .category-tab.active {
        background-color: #e6f5e8;
        /* 背景為淺綠色 */
        border-color: #25AC38;
        /* 邊框為深綠色 */
        color: #212529;
        font-weight: 600;
    }

        .category-tab.active .icon-wrapper {
            display: none;
            /* 圖示消失 */
        }

/* --- 響應式設計 (維持不變) --- */
@media (max-width: 767px) {
    .faq-categories {
        flex-direction: column;
        align-items: stretch;
        top: 69px;
        padding: 0.8rem 0;
    }
}

/* ======================================================== */
/* ===         全新手風琴 (FAQ) 結構樣式                === */
/* ======================================================== */

/* --- 問答項目容器 --- */
.faq-item {
    border: 1px solid #CED4DA;
    margin-bottom: 1rem;
}

/* --- 問題標題列 (可點擊區域) --- */
.faq-question {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

/* --- 'Q' 和 'A' 的共用圖示樣式 --- */
.faq-icon {
    color: #25AC38;
    font-weight: bold;
    font-size: 1.2rem;
    width: 28px;
    flex-shrink: 0;
    text-align: left;
    margin-right: 1rem;
}

/* --- 問題文字 --- */
.faq-title {
    font-weight: 700;
    color: #212529;
    flex-grow: 1;
}

/* --- 右側的 +/- 切換圖示 --- */
.faq-toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

    .faq-toggle-icon::before,
    .faq-toggle-icon::after {
        content: '';
        position: absolute;
        background-color: #25AC38;
        transition: transform 0.25s ease-in-out;
    }

    .faq-toggle-icon::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: -1px;
    }

    .faq-toggle-icon::after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        margin-left: -1px;
    }

/* --- 展開狀態下的 +/- 圖示變化 --- */
.faq-question[aria-expanded="true"] .faq-toggle-icon::after {
    transform: rotate(90deg);
}

/* --- 回答區塊 --- */
.faq-answer {
    /* (O) 修改點：將 padding-top 移到這裡 */
    padding: 0 1.25rem 1.25rem 1.25rem;
    padding-top: 1.25rem;
    background-color: rgba(255, 255, 255, 0.7);
}

.faq-answer-content {
    display: flex;
    align-items: baseline;
    color: #555;
    line-height: 1.7;
    /* (O) 修改點：移除了 border-top 和 padding-top */
}

.faq-text {
    margin: 0;
}

/* --- 響應式設計 --- */
@media (max-width: 991.98px) {
    .faq-categories {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   END OF: fqa.css
   ========================================================================== */



/* ==========================================================================
   START OF: footer.css
   ========================================================================== */

/* ==========================================================================
   頁腳 (Footer) 樣式
   檔案: footer.css
   ========================================================================== */

/* --- 頁腳主容器 --- */
.site-footer {
    /* 1. 背景與顏色 */
    background-color: #212529;
    /* 根據圖片調整為更深的炭黑色 */
    color: #adb5bd;
    /* 預設文字顏色 (淺灰) */
    /* 2. 定位與佈局 */
    position: relative;
    /* 為了定位內部的 V 型遮罩和背景圖，此項為必須 */
    overflow: hidden;
    /* 隱藏超出邊界的元素，避免背景圖露出來 */
    /* 3. 內邊距 (Padding) */
    /* 上方留出足夠空間 (80px) 給 V 型遮罩，避免內容與其重疊 */
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
}

    /* --- 頂部 V 型剪裁遮色片 --- */
    .site-footer .footer-top-shape {
        content: '';
        position: absolute;
        /* 相對於 .site-footer 定位 */
        top: -2px;
        left: 0;
        right: 0;
        height: 60px;
        /* V 型區塊本身的高度 */
        background-color: #ffffff;
        /* 背景色必須和 .site-footer 完全相同 */
        /* 關鍵：使用 clip-path 裁切出 V 型 */
        clip-path: polygon(0% 0%, 100% 0%, 100% 25%, 50% 100%, 0% 25%);
        z-index: 1000;
    }

/* --- 頁腳主容器 (修改版) --- */
.site-footer {
    /* ... 您原本的其他屬性 ... */
    position: relative;
    overflow: hidden;
    padding: 80px 0 30px 0;
    /* 直接在這裡加上背景圖 */
    background-image: url('../images/globe-background.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    /* 您可以根據需要調整尺寸 */
    background-size: 800px auto;
    margin-top: 10px;
}
    /* 然後您可以完全刪除 .site-footer::after 這個 CSS 規則 */

    /* 確保 footer 的主要內容在背景圖之上 */
    .site-footer .container {
        position: relative;
        z-index: 1;
    }

/* --- 內部區塊樣式 --- */
.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .footer-title i {
        font-size: 1.6rem;
        color: #ffffff;
        margin-right: 12px;
    }

    .footer-title h5 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #ffffff;
    }

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-links a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.footer-links .separator {
    margin: 0 0.75rem;
    color: #FFFFFF;
}

.footer-unit-info {
    font-size: 0.85rem;
    color: #fff;
    margin-top: 8rem;
}

    .footer-unit-info p {
        margin: 0.25rem 0;
    }

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .footer-bottom span {
        color: #fff;
        ;
    }

.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

    .contact-item i {
        margin-right: 8px;
        font-size: 1rem;
    }

.footer-copyright {
    font-size: 0.8rem;
    color: #fff;
}

/* --- RWD 響應式設計 --- */
@media (max-width: 992px) {

    .footer-section {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
        gap: 1rem 2rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        .separator

{
    overflow: hidden;
}

}

.footer-unit-info {
    margin-top: 1rem;
    justify-content: center;
}

}
/* ==========================================================================
   END OF: footer.css
   ========================================================================== */

/* =================================================================== */
/* ===         (0913新增待修改) 全站 RWD 響應式樣式修正 (Mobile First)            === */
/* =================================================================== */

@media (min-width: 1440px) {
    main.container.my-5 {
        width: 90% !important;
        max-width: none;
    }
}

/* --- 平板與手機通用樣式 (小於 992px) --- */
@media (max-width: 991.98px) {
    /* 縮小主要內容區的上下間距 */
    main.container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* 調整文章標題字體大小 */
    .article-title {
        font-size: 1.75rem;
    }

    /* 修正檔案下載區塊的佈局 */
    .file-download-section .col-md-6 {
        border-right: none !important; /* 移除堆疊後的垂直線 */
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

        .file-download-section .col-md-6:first-child {
            border-bottom: 1px solid #dee2e6; /* 改為底部水平分隔線 */
            padding-bottom: 2rem !important;
            margin-bottom: 2rem;
        }

    /* 修正規格列表 (.spec-section) 的左右欄佈局 */
    .spec-row {
        flex-direction: column; /* 將 Label 和 Value 垂直堆疊 */
        align-items: flex-start; /* 讓堆疊後的內容靠左對齊 */
        gap: 0.25rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .spec-label {
        width: auto; /* 移除固定的 220px 寬度，這是造成溢出的主因 */
        font-weight: 600; /* 加粗以突顯 */
    }

    /* 移除右欄的滾動條，讓內容自然延伸 */
    .right-column-scroll-container {
        max-height: none;
        overflow-y: visible;
    }
    .info-img-meta{
        flex-direction:column;
    }
    .banner-content {
        padding-top: 6rem;
        flex-direction: column;
        align-items: center !important;
        margin-top: 36px;
    }


    .banner-social {
        position: absolute;
        top: 125px;
    }
}

@media (max-width: 1024px) {
    .bn-r {
        /* 1. 視覺縮放 (您可以調整 scale 的值) */
        transform: scale(0.6);
        transform-origin: top right; /* 確保縮放時貼齊右上角 */
        margin-top: -8.5rem;
    }
}

/* --- 純手機版樣式 (小於 768px) --- */
@media (max-width: 767.98px) {
    /* 調整容器 padding，避免內容貼邊 */
    .article-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 調整表單的內距 */
    .contact-form {
        padding: 1.5rem;
    }

    /* 修正 banner 區塊的 RWD */
    /* 主要容器的樣式 */
    .banner-content {
        padding-top: 6rem;
        flex-direction: column;
        align-items: center !important;
        margin-top: 11px;
    }


    .banner-social {
        position: absolute;
        top:125px;
    }

    /* 重設或減少裝飾性元素的負邊距，避免推出螢幕 */
    .bn-r {
        margin-top: -7rem;
        margin-bottom: 2rem;
        padding-right: 1rem; /* 避免貼邊 */
    }
        .bn-r img {
            max-width: 75px;
        }

        /* 在手機上直接隱藏複雜的裝飾性圖片線條 */
        .img_left_line,
        .img_right_line,
        .about_alt,
        .card_alt {
            display: none;
        }

    .img_frame {
        border: none;
    }

    /* 修正相關圖片/影片區塊的佈局 */
    .related-photos-section .row {
        /* 讓圖片之間有垂直間距 */
        row-gap: 1.5rem;
    }

    /* 修正上/下一則按鈕 */
    .post-navigation .col-md-6:first-child {
        margin-bottom: 1rem;
    }

    /* 修正多個下拉選單的搜尋面板 */
    .search-panel .dropdown.d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
    }

        .search-panel .dropdown.d-flex .btn {
            width: 100%;
            text-align:left;
            display:flex;
            justify-content:space-between;
            align-items:center;
        }

        .search-panel .dropdown.d-flex .date-separator {
            margin: 0 !important;
            text-align:left;
        }
}
.add-section .k-svg-icon > svg {
    fill: #ffffff !important;
}
