/********** Template CSS **********/
:root {
    --primary: #1172ca;
    --secondary: #2a79ad;
    --accent:#fcab2c;
    --light: #F5F5F5;
    --lightgrey:#a1b2bd;
    --dark: #02245B;
    --sublight:#ecf7ff;
    --subdark:#0672F4;
    --darkgrey: #595959;

}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}
p {
   
    font-size: 1.25rem;
}
.footer p{
    font-size:1rem;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

body .btn-primary,
body .btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.topbar{
    background-color: var(--secondary);

}
.topbar-right {
    position: relative;
    background: var(--primary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}





/*** Navbar ***/

.logo-image {
    display: block;
    width: 180px;
    
    
  }
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 30px;
    padding-left:30px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}
/* navbar-nav 樣式調整 */

/* 基本樣式 */
.navbar .navbar-nav {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 桌面版導航項間距 */
@media (min-width: 992px) {
   
    .navbar .navbar-nav {
        margin-right: -15px; /* 抵消最後一個項目的右邊距 */
    }
    
    /* 確保下拉菜單的定位正確 */
    .navbar .navbar-nav .nav-item {
        position: relative;
    }
    .navbar .nav-link {
        margin-right: 35px;
        padding: 20px 0;
    }
    
    /* 導航項的懸停效果 */
    .navbar .navbar-nav .nav-item:hover > .nav-link {
        color: var(--primary);
    }
    
    /* 為活動項目添加額外的視覺提示 */
    .navbar .navbar-nav .nav-item.active > .nav-link {
        font-weight: 600;
    }
}

/* 移動設備樣式 */
@media (max-width: 991.98px) {
    .navbar {
        padding-right: 0;
    }
    .navbar .navbar-brand {
        padding-left:10px;
         height:60px;
        }
 
    .navbar .navbar-nav {
        padding: 15px 0;
        border-top: 1px solid #EEEEEE;
    }
    .logo-image{
        width:180px;
    }
    
    
    /* 調整移動設備上的間距 */
    .navbar .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    /* 最後一個項目不需要底部邊距 */
    .navbar .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    
    /* 加強移動設備上的點擊區域 */
    .navbar .navbar-nav .nav-link:not(.dropdown-toggle) {
        padding: 10px 15px;
        margin-right: 0;
    }
    
    /* 讓下拉菜單更易於區分 */
    .navbar .navbar-nav .dropdown-menu {
        border: none;
        background-color: #f8f9fa;
        padding-left: 20px;
        margin-bottom: 10px;
    }
}

/* 添加動畫效果 */
.navbar .navbar-nav .nav-item {
    transition: transform 0.2s ease;
}

@media (min-width: 992px) {
    .navbar {
        padding-right: 3rem; /* 替代pe-5 */
    }
    /* 桌面版懸停微小放大效果 */
    .navbar .navbar-nav .nav-item:hover {
        transform: translateY(-2px);
    }
}

/* nav-link 樣式調整 */

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    position: relative; /* 添加定位屬性 */
    transition: color 0.3s ease; /* 平滑過渡效果 */
}

/* 懸停和激活狀態 */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* 可以添加懸停指示器（底部線條） */
.navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 15px;
    left: 0;
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* 下拉菜單箭頭樣式 */
.navbar .navbar-nav .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.3s ease; /* 添加旋轉過渡效果 */
}

/* 箭頭懸停旋轉效果 */
.navbar .nav-item:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 針對移動設備的樣式調整 */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link:not(.dropdown-toggle) {
        padding: 10px 15px;
        margin-right: 0;
    }

    .navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        display: none; /* 移動設備上不顯示底部線條 */
    }
    
    /* 展開的下拉菜單 */
    .navbar .nav-item.dropdown.show > .nav-link {
        color: var(--primary);
    }
    
    /* 移動設備上箭頭的特殊處理 */
    .navbar .nav-item.dropdown.show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* 修復的dropdown-submenu相關樣式 */

/* 基本下拉菜單樣式 */
.dropdown-menu {
    display: none; /* 初始狀態為隱藏 */
    border: none;
    margin-top: 0;
}

/* 電腦版的懸停效果 */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block; /* 保持元素在DOM中 */
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        top: 150%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
    }

    .navbar .nav-item:hover > .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }
    
    /* 子選單樣式 */
    .dropdown-submenu {
        position: relative;
    }
    
    .nav-item .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        opacity: 0;
        visibility: hidden;
        min-width: 200px;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
    }
    
    /* 子選單箭頭 */
    .dropdown-submenu > .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        content: "\f105"; /* FontAwesome的右箭頭 */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        float: right;
        border: none;
    }
}

/* 移動設備下拉菜單樣式 */
@media (max-width: 991.98px) {
    /* 調整導航容器 */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    .dropdown-menu {
        display: none;
        border-top: none;
        padding-left: 20px;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-left: 15px;
        margin-right: 0;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        border-left: 2px solid var(--primary);
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(90deg);
        float: right;
    margin-top: 8px;
    }
}
        /* Mobile styles */
        @media (max-width: 991.98px) {
         
        
     
        
            
            /* Mobile language dropdown */
            .language-nav-dropdown {
                border-top: 1px solid rgba(0,0,0,0.1);
                margin-top: 10px;
                padding-top: 10px;
            }
            
            .language-nav-dropdown .nav-link {
                text-align: center;
            }
        }
  

      /* Language dropdown specific styles */
.language-nav-dropdown .dropdown-menu {
        min-width: 150px;
        right: 0;
        left: auto;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border: none;
        padding: 0.5rem 0;
    }

    .language-nav-dropdown .dropdown-item {
        padding: 8px 16px;
        transition: background-color 0.2s ease;
    }

    .language-nav-dropdown .dropdown-item.active,
    .language-nav-dropdown .dropdown-item:hover {
        background-color: rgba(124,202,255, 0.1);
        color: var(--primary);
    }

    .language-nav-dropdown .dropdown-item.active::before {
        content: "\f00c";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-right: 8px;
        color: var(--primary);
    }







/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;

}
.page-header.about {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%), url(../img/cherrydeck.png) right /80% no-repeat;
}
.page-header.product {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%), url(../img/bg-lenswork.png) right /100% no-repeat;
}
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}
.breadcrumb-item.active{color: var(--accent);}

/*index*/
  /* Part Block 的基本樣式 */
  .part-block {
    margin-bottom: 60px;
    background-color: white;
    padding: 30px;
   
    /* 滾動顯示效果的初始狀態 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 當區塊可見時的狀態 */
.part-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}



.img-block {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.img-block-helf {
    flex: 1;
}

.img-block-helf img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .img-block {
        flex-direction: column;
    }
    .page-header.product{
        background-size: cover;
        background-position: center;
    }
}
/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
    z-index: -1;
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}
.section-title {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}
/*關於我們*/

/* 公司介紹頁面的自定義樣式 */
.about-section {
    padding: 80px 0;
    position: relative;
}

.about-section:nth-child(even) {
    background-color: #f8f9fa;
}


.about-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.about-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
}

        
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.about-img img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

 
.facility-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
    
.facility-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background-color: var(--primary);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.facility-content h5 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.facility-content p {
    margin-bottom: 0;
    color: var(--secondary);
}
/*關於我們-歷史*/
     /* 沿革時間軸樣式 */
     .timeline {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .timeline::after {
        content: '';
        position: absolute;
        width: 6px;
        background-color: var(--primary);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
        border-radius: 5px;
    }
    
    .timeline-container {
        padding: 10px 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
        margin-bottom: 50px;
    }
    
        /* 時間軸圓點 */
        .timeline-container::after {
            content: '';
            position: absolute;
            width: 25px;
            height: 25px;
            right: -13px;
            background-color: white;
            border: 4px solid var(--primary);
            top: 15px;
            border-radius: 50%;
            z-index: 1;
        }
        
        /* 左側圓點位置 */
        .left::after {
            right: -13px;
        }
        
        /* 右側圓點位置 */
        .right::after {
            left: -12px;
        }
        
        /* 內容樣式 */
        .timeline-content {
            padding: 30px;
            background-color: white;
            position: relative;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }
        
        .timeline-year {
            font-size: 2.5rem;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 15px;
        }
        
        .timeline-title {
            color: var(--dark);
            margin-bottom: 20px;
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .timeline-item {
            margin-bottom: 15px;
            position: relative;
            padding-left: 30px;
        }
        
        .timeline-item:before {
            content: "";
            width: 10px;
            height: 10px;
            background-color: var(--primary);
            border-radius: 50%;
            position: absolute;
            left: 0;
            top: 7px;
        }
        
        .timeline-item span {
            color: var(--primary);
            font-weight: 600;
            margin-right: 10px;
        }
        
        .timeline-img {
            width: 100%;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        /* 左側內容箭頭 */
        .left .timeline-content::before {
            content: " ";
            position: absolute;
            top: 15px;
            right: -15px;
            border-width: 10px 0 10px 15px;
            border-style: solid;
            border-color: transparent transparent transparent white;
        }
        
        /* 右側內容箭頭 */
        .right .timeline-content::before {
            content: " ";
            position: absolute;
            top: 15px;
            left: -15px;
            border-width: 10px 15px 10px 0;
            border-style: solid;
            border-color: transparent white transparent transparent;
        }
        
        /* 響應式設計: 窄屏時改為單列 */
        @media screen and (max-width: 768px) {
            .timeline::after {
                left: 31px;
            }
            
            .timeline-container {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
                left: 0;
            }
            
            .left::after, .right::after {
                left: 19px;
            }
            
            .left .timeline-content::before, .right .timeline-content::before {
                left: -15px;
                border-width: 10px 15px 10px 0;
                border-color: transparent white transparent transparent;
            }
        }
        
        /* 淡入動畫 */
        .fade-in-section {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .fade-in-section.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
     /* 左側內容 */
     .timeline-container.left {
        left: 0;
    }
    
    /* 右側內容 */
    .timeline-container.right {
        left: 50%;
    }
    
    /* 時間軸圓點 */
    .timeline-container::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -13px;
        background-color: white;
        border: 4px solid var(--primary);
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }
    
    /* 左側圓點位置 */
    .timeline-container.left::after {
        right: -13px;
    }
    
    /* 右側圓點位置 */
    .timeline-container.right::after {
        left: -12px;
    }
    
    /* 內容樣式 */
    .timeline-content {
        padding: 30px;
        background-color: white;
        position: relative;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .timeline-year {
        font-size: 2.5rem;
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .timeline-title {
        color: var(--dark);
        margin-bottom: 20px;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .timeline-item {
        margin-bottom: 15px;
        position: relative;
        padding-left: 30px;
    }
    
    .timeline-item:before {
        content: "";
        width: 10px;
        height: 10px;
        background-color: var(--primary);
        border-radius: 50%;
        position: absolute;
        left: 0;
        top: 7px;
    }
    
    .timeline-item span {
        color: var(--primary);
        font-weight: 600;
        margin-right: 10px;
    }
    
    .timeline-img {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* 左側內容箭頭 */
    .left .timeline-content::before {
        content: " ";
        position: absolute;
        top: 15px;
        right: -15px;
        border-width: 10px 0 10px 15px;
        border-style: solid;
        border-color: transparent transparent transparent white;
    }
    
    /* 右側內容箭頭 */
    .right .timeline-content::before {
        content: " ";
        position: absolute;
        top: 15px;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-style: solid;
        border-color: transparent white transparent transparent;
    }
    
    /* 響應式設計: 窄屏時改為單列 */
    @media screen and (max-width: 768px) {
        .timeline::after {
            left: 31px;
        }
        
        .timeline-container {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
            left: 0;
        }
        
        .left::after, .right::after {
            left: 19px;
        }
        
        .left .timeline-content::before, .right .timeline-content::before {
            left: -15px;
            border-width: 10px 15px 10px 0;
            border-color: transparent white transparent transparent;
        }
    }
    
    /* 淡入動畫 */
    .fade-in-section {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
/* 產品頁面專用樣式 */

/* 產品類別卡片 */
.product-category-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 45px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.product-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-category-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 30px;
}
.product-content .btn-primary:hover{
    color:#fff;
    padding:0.5rem .75rem;
}

.product-title {
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.product-description {
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* 精選產品卡片 */
.featured-product-card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-product-image {
    position: relative;
    overflow: hidden;
}

.featured-product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 171, 44, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-product-card:hover .product-overlay {
    opacity: 1;
}

.featured-product-content {
    padding: 20px;
}

.featured-product-content h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-subtitle {
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
    padding: 15px 0;
    border-radius: 5px;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.product-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--secondary);
}

/* 設備表格樣式 */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 10px;
}

.equipment-table thead {
    background-color: var(--primary);
    color: white;
}

.equipment-table th,
.equipment-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.equipment-table tbody tr {
    transition: background-color 0.3s ease;
}

.equipment-table tbody tr:hover {
    background-color: rgba(252, 171, 44, 0.05);
}
.equip-img{
    text-align: center;
}

/* 規格表樣式 */
.spec-table {
    width: 100%;
    margin-bottom: 30px;
}

.spec-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    padding: 12px 15px;
}

.spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* 產品詳情頁樣式 */
.product-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.product-detail-image img {
    width: 100%;
}

.product-detail-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.product-detail-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.product-detail-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 20px;
    display: block;
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.feature-section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list li:before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

/* 響應式調整 */
@media (max-width: 991.98px) {
    .product-content {
        padding: 20px;
    }
    
    .featured-product-image img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .product-category-card .row {
        flex-direction: column;
    }
    
    .product-image {
        height: 250px;
    }
    
    .featured-product-card {
        margin-bottom: 30px;
    }
}
/*鏡片產品頁面的自定義樣式product-lens*/
.lens-card-header {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

  .product-intro {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}
.lens-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 40px;
    overflow: hidden;
}

.lens-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}



.lens-card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.lens-card-header p {
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.85;
}

.lens-card-body {
    padding: 30px;
}

.lens-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.lens-card:hover .lens-card-img {
    transform: scale(1.03);
}
.lens-section{
    border-bottom: solid 1px #ddd;
    margin-bottom: 20px;
    padding: 10px 5px;
}
.lens-section:last-child{
    border:none;
}
.lens-section-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
    color: var(--dark);
    font-size: 1.4rem;
}

.lens-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 1.2rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 10px;
}

.spec-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: center;
}

.spec-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.spec-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.spec-table tr:hover {
    background-color: rgba(252, 171, 44, 0.05);
}

.lens-card-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.product-note {
    background-color: rgba(154,179,204, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 0 5px 5px 0;
}

.capacity-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    margin-top: 20px;
}

.lens-card-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.5;
}

/* 產品書籤導航樣式 */
.product-nav {
    position: sticky;
    top: 75px;
    z-index: 98;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    margin-bottom: 40px;
    border-radius: 0 0 10px 10px;
}

.product-nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-nav-item {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    color: var(--dark);
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.product-nav-item i {
    margin-right: 8px;
    font-size: 14px;
}

.product-nav-item:hover, 
.product-nav-item.active {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* 產品錨點位置修正 */
.product-anchor {
    display: block;
    height: 150px;
    margin-top: -120px;
    visibility: hidden;
    position: relative;
    z-index: -1;
}

/* 確保滾動在 iOS 設備上也能正常工作 */
@supports (-webkit-overflow-scrolling: touch) {
    .product-anchor {
        height: 120px; /* iOS 設備上需要更多空間 */
    }
}

@media (max-width: 991.98px) {
    .product-nav {
        top: 60px;
        padding: 10px 0;
    }
    .product-nav .container{
        overflow-x: auto;
        padding: 3px;
    }
    .product-nav-container{
        width:500px;
        flex-wrap: nowrap;

    }
    .mold.product-nav-container{
        width:550px;
    }

    .product-nav-item {
        padding: 8px 15px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    /* 在移動設備上調整錨點位置 */
    .product-anchor {
        height: 140px;
        margin-top: -120px;
    }
}
/* 模具 */

/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 39px;
    top: -17px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}


/*** Team ***/

.team-item div {overflow: hidden;}
.team-item img:hover{
    transform: scale(1.2);
    transition: 1.5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
    cursor: default;
}
.footer-about img {
    height: 50px;
    margin-bottom: 20px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size:15px;
}
.copyright p{
    font-size:15px;
}
.copyright .copyfrom{
    font-size:12px;
    color:#ddd;
}
.copyright .copyfrom a{
    color:#ddd;
}
/*公司治理*/
.governance-intro {
    padding: 30px;
    border-radius: 10px;
    background-color: #f0f6fb;
    
    margin-bottom: 50px;
}
/* 公司治理頁面的自定義樣式 */
/* 公司治理標題序號設定 */
.governance-container {
    counter-reset: governance-counter; /* 初始化計數器 */
}
.governance-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 75px;
    z-index: 998;
    padding: 15px 0;
    transition: height 0.3s ease;
}
/* 當下拉選單展開時的樣式 */
.governance-nav.dropdown-expanded {
    height: 350px;
}


.governance-nav .nav-link {
    padding: 8px 20px;
    border-radius: 30px;
    color: #02245B;
    transition: all 0.3s ease;
    margin: 0 5px;
    font-weight: 500;
}

.governance-section {
    padding: 80px 0;
}

.governance-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.governance-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.governance-title,.privacy-title  {
    position: relative;
    color: #1172ca;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    padding-left: 50px;
}
.privacy-title{
    padding-left: 0;
}
.governance-title:before {
    counter-increment: governance-counter; /* 計數器加 1 */
    content: counter(governance-counter); /* 顯示計數器數值 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
}




.member-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-header {
    background-color: #e6f0ff;
    padding: 20px;
    display: flex;
    align-items: center;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1172ca;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: #02245B;
    margin-bottom: 5px;
}

.member-role {
    color: #1172ca;
    font-size: 14px;
}

.member-body {
    padding: 20px;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 10px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.org-chart {
    max-width: 100%;
    overflow-x: auto;
    text-align: center;
}

.org-chart svg {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.department-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.department-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.department-item:hover {
    background-color: #e6f0ff;
}

.department-title {
    color: #1172ca;
    font-weight: 600;
    margin-bottom: 8px;
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.committee-table th {
    background-color: #1172ca;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.committee-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.committee-table tr:hover {
    background-color: #f8f9fa;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1172ca;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.download-btn:hover {
    background-color: #0d5ca8;
    text-decoration: none;
    color: white;
}

@media (max-width: 768px) {
    .governance-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
    }
    
    .governance-nav .nav-link {
        display: inline-block;
        margin-bottom: 5px;
    }
    
    .governance-title {
        font-size: 1.5rem;
        padding-left: 40px;
    }
    .governance-title:before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .governance-card {
        padding: 20px;
    }
}



/**/
/* 公司治理導航列樣式 */
.governance-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 75px;
    z-index: 998;
    padding: 15px 0;
}

.governance-nav .nav-link {
    padding: 8px 20px;
    border-radius: 30px;
    color: #02245B;
    transition: all 0.3s ease;
    margin: 0 5px;
    font-weight: 500;
}

.governance-nav .nav-link:hover {
    background-color: #e6f0ff;
    text-decoration: none;
    color: #02245B;
}

.governance-nav .nav-link.active {
    background-color: #1172ca;
    color: #fff;
}

/* 移動設備導航樣式 */
.governance-mobile-nav .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    background: var(--sublight);
    padding:0;
}

.governance-mobile-nav .dropdown-item {
    padding: 10 px 15px;
    white-space: normal;
    border-bottom: 1px solid #f1f1f1;
}

.governance-mobile-nav .dropdown-item:last-child {
    border-bottom: none;
}

.governance-mobile-nav .dropdown-item.active {
    background-color: #1172ca;
    color: white;
}

.governance-mobile-nav .dropdown-toggle {
    text-align: left;
    position: relative;
    padding-right: 35px;
    white-space: normal;
    line-height: 1.3;
    border-radius:8px ;
}

.governance-mobile-nav .dropdown-toggle::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 響應式調整 */
@media (max-width: 991.98px) {
    .governance-desktop-nav {
        display: none !important;
    }
    
    .governance-mobile-nav {
        display: block !important;
    }
    
    .governance-nav {
        padding: 10px 0;
        top:60px;
    }
}

@media (min-width: 992px) {
    .governance-desktop-nav {
        display: flex !important;
    }
    
    .governance-mobile-nav {
        display: none !important;
    }
}

/* 在超小螢幕上調整下拉選單文字大小 */
@media (max-width: 575.98px) {
    .governance-mobile-nav .dropdown-toggle,
    .governance-mobile-nav .dropdown-item {
        font-size: 14px;
    }
}

/* 標籤內容樣式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
 /* 企業永續頁面的自定義樣式 */
 .sustainability-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sustainability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.sustainability-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #1172ca;
}

.sustainability-section-title {
    color: #02245B;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
    /* background: linear-gradient(transparent 70%, #a7d6ff 70%); */

}
.sustainability-section-title:first-letter {
    font-size: 1.6em;
    color: var(--secondary)
}

.sustainability-section-title:before {
    /* content: ''; */
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #1172ca;
    border-radius: 2px;
}

.sustainability-intro {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.activity-list {
    list-style: none;
    padding-left: 0;
}

.activity-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.activity-list li:before {
    content: "•";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #1172ca;
    font-size: 1.2rem;
}

.activity-year {
    font-weight: 700;
    color: #1172ca;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.image-caption {
    padding: 15px;
    background-color: #fff;
    text-align: center;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
}

.sustainability-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.sustainability-table th {
    background-color: #1172ca;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.sustainability-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.sustainability-table tr:hover {
    background-color: #f8f9fa;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1172ca;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.download-btn:hover {
    background-color: #0d5ca8;
    text-decoration: none;
    color: white;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .sustainability-section-title {
        font-size: 1.5rem;
    }
    
    .sustainability-card {
        padding: 20px;
    }
}

.eco-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.eco-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
}






  .eco-section-title {
    position: relative;
    display: inline-block;
    padding: 0 55px;
    line-height: 1.8em;
  }
  
  .eco-section-title:before {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 45px;
    height: 2px;
    border-top: solid 1px var(--secondary);
    border-bottom: solid 1px var(--secondary);
  }
  
  .eco-section-title:before {
    left:0;
  }




.eco-intro {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.eco-policy-list {
    list-style: none;
    padding-left: 0;
    counter-reset: policy-counter;
}

.eco-policy-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    counter-increment: policy-counter;
}

.eco-policy-list li:before {
    content: counter(policy-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.certificate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certificate-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.certificate-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.certificate-card p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.certificate-card a {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.certificate-card a:hover {
    text-decoration: underline;
}
.certificate-card .btn {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.certificate-card .btn-outline-primary {
    color: #0066cc;
    border: 1px solid #0066cc;
    background-color: transparent;
}

.certificate-card .btn-outline-primary:hover {
    background-color: #0066cc;
    color: white;
}
 /* 模態框樣式 */
 .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 10px;
}

.data-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    text-align: center;
}

.data-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.data-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table tr:hover {
    background-color: rgba(17, 114, 202, 0.05);
}

.chart-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.chart-title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.chart-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.waste-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.waste-stat-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.waste-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.waste-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.waste-stat-text {
    font-size: 1rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .waste-stats {
        flex-direction: column;
    }
    
    .waste-stat-item {
        width: 100%;
    }
}

 /* 流程樣式 */
 .process-flow {
    position: relative;
    padding-left: 30px;
}

.process-flow:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: #d9d4c3;
}

.process-step {
    position: relative;
    margin-bottom: 30px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-icon {
    position: absolute;
    left: -30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.process-content {
    padding-left: 15px;
}

.stakeholder-item {
    transition: transform 0.3s ease;
}

.stakeholder-item:hover {
    transform: translateY(-5px);
}

/* 響應式調整 */
@media (max-width: 767.98px) {
    .process-flow {
        padding-left: 25px;
    }
    
    .process-flow:before {
        left: 12px;
    }
    
    .process-icon {
        left: -25px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

/* 規章項目樣式 */
.regulation-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.regulation-item:hover {
    background-color: #e6f0ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.regulation-item h5 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1.4;
}

.regulation-item .btn-outline-primary:hover {
    color: #fff;
}
.btn-check:focus+.btn-primary, .btn-primary:focus{
    color:#fff;
    border-color: unset ;
    box-shadow:none;
}
.btn-check:focus+.btn, .btn:focus{
    box-shadow:none;
}
.btn-check:checked+.btn-primary:focus, .btn-check:active+.btn-primary:focus, .btn-primary:active:focus, .btn-primary.active:focus, .show>.btn-primary.dropdown-toggle:focus{
    box-shadow:none;
}