/*=======================================================================================
* 1. 全局樣式 (GLOBAL STYLES)
=======================================================================================*/
:root {
    --summer-blue: #0056b3;
    --secondary-color: #003366;
    --accent-color: #17a2b8;
    --summer-blue: #00b4d8; /* 清涼夏季藍色 */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
}

body {
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', 'Noto Sans TC', 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
    margin-top: 80px; /* 為固定頂部導航欄留出空間 */
}

/* 創建冷凍冰塊背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' fill='none'%3E%3Cpath d='M100 100L200 50L300 150L250 250L100 200L100 100Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M400 300L500 200L600 250L550 400L450 450L400 300Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M700 100L850 150L800 300L650 350L600 200L700 100Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M900 400L1050 350L1100 500L1000 600L850 550L900 400Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M150 500L300 450L350 600L250 700L100 650L150 500Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M500 600L650 550L700 700L600 800L450 750L500 600Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M800 650L950 600L1000 750L900 850L750 800L800 650Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
    background-position: center center;
    background-repeat: repeat;
    background-size: 1200px 800px;
    opacity: 0.8;
    animation: iceMove 60s linear infinite;
}

/* 添加第二層冰塊，增加深度感 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' fill='none'%3E%3Cpath d='M50 200L150 150L200 250L150 350L50 300L50 200Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M350 400L450 300L550 350L500 500L400 550L350 400Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M650 200L800 250L750 400L600 450L550 300L650 200Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M850 500L1000 450L1050 600L950 700L800 650L850 500Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M100 600L250 550L300 700L200 800L50 750L100 600Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M450 700L600 650L650 800L550 900L400 850L450 700Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3Cpath d='M750 750L900 700L950 850L850 950L700 900L750 750Z' fill='%23003366' fill-opacity='0.05' stroke='%23003366' stroke-width='2' stroke-opacity='0.1'/%3E%3C/svg%3E");
    background-position: center center;
    background-repeat: repeat;
    background-size: 1200px 800px;
    opacity: 0.7;
    animation: iceMove 80s linear infinite reverse;
}

/* 冰塊移動動畫 */
@keyframes iceMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1200px 800px;
    }
}



/* Banner 樣式 */
.page-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-container {
    width: 100%;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* 在使用 picture 元素的情況下，下面的樣式可能不再需要，但保留以便兼容舊版本 */
/* 如果使用雙圖片結構，可以啟用這些樣式 */
/*
.desktop-banner {
    display: block;
}

.mobile-banner {
    display: none;
}

@media (max-width: 991px) {
    .desktop-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
    }
}


/* 導航欄樣式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

/* 內容區域樣式 */
.about-content {
    padding: 100px 0 0px;
}

/* 產品詳細頁面內容區域樣式 */
.product-detail-content {
    padding: 100px 0 0px;
}

/* 響應式內容區域樣式 */
@media (max-width: 991px) {
    .about-content {
        padding: 50px 0 0px;
    }


}
/* 導航欄樣式已移動到下方更具體的選擇器 */

/* 導航欄公司名稱樣式 */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand .logo {
    height: 60px;
    margin-right: 10px;
    object-fit: contain;
}

/* 響應式模式下縮小logo尺寸 */
@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 40px;
    }
}

.navbar-brand .company-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--summer-blue);
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3;
}

/* 英文版公司名稱樣式 */
/* 公司名稱樣式 */
.navbar-nav .nav-item {
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-item.dropdown {
    position: relative !important;
}

/* 確保下拉選單定位正確 */
.navbar-nav .dropdown {
    position: static !important;
}

.navbar-nav .dropdown-menu {
    position: absolute !important;
}

/* 大螢幕下直接顯示完整公司名稱 */
@media (min-width: 992px) {
    :lang(en) .navbar-brand .company-name {
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.3;
    }
}

/* 小螢幕下換行顯示 */
@media (max-width: 991px) {
    :lang(en) .navbar-brand .company-name {
        font-size: 0; /* 隱藏原始文字 */
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        justify-content: center;
    }

    /* 使用::before假元素顯示"Chung Yu" */
    :lang(en) .navbar-brand .company-name::before {
        content: 'Chung Yu';
        display: block;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.2;
    }

    /* 使用::after假元素顯示"Grainchiller Machinery" */
    :lang(en) .navbar-brand .company-name::after {
        content: 'Grainchiller Machinery';
        display: block;
        font-size: 14px;
        line-height: 1.2;
    }
}

/* 導航欄主選項活動狀態 */
.nav-link.active {
    color: white !important; /* 確保文字是白色 */
    background-color: var(--summer-blue);
    border-radius: 4px;
}

/* 導航欄下拉選單活動狀態 */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--summer-blue);
    color: white !important; /* 確保文字是白色 */
}

/* 確保下拉選單的活動項目有藍色背景 */
.dropdown-menu .active {
    background-color: var(--summer-blue);
    color: white !important; /* 確保文字是白色 */
}

.container-narrow {
    max-width: 1000px;
    padding-left: 50px;
    padding-right: 50px;
    margin: 0 auto;
}

/*=======================================================================================
* 16. 老式網頁風格 (RETRO WEBSITE STYLE)
=======================================================================================*/
.retro-style {
    background-color: rgba(240, 248, 255, 0.4); /* 淡藍色背景，更透明 */
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
}

.retro-content {
    padding: 100px 0;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.03); /* 更淡的藍色陰影 */
    -webkit-backdrop-filter: blur(3px); /* Safari 支持 */
    backdrop-filter: blur(3px);
}

.retro-banner {
    border-bottom: 2px solid #003366;
    margin-bottom: 20px;
}

.retro-header {
    text-align: center;
    margin-bottom: 30px;
    background-color: var(--summer-blue); /* 稍微透明的深藍色 */
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 86, 179, 0.1); /* 添加微妙的陰影 */
    border-left: 3px solid #e74c3c; /* 左側邊框，呼應波浪線條 */
}

.retro-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.retro-subtitle {
    font-size: 14px;
    margin-bottom: 0;
}

.retro-products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.retro-product-item {
    width: calc(50% - 10px);
    border: 1px solid #cccccc;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.retro-product-image {
    border-bottom: 1px solid #cccccc;
    padding: 5px;
    text-align: center;
}

.retro-product-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}

.retro-product-info {
    padding: 15px;
}

.retro-product-title {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
    border-bottom: 1px dotted #cccccc;
    padding-bottom: 5px;
}

.retro-icon {
    color: #003366;
    margin-right: 5px;
}

.retro-product-desc {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.retro-button {
    display: inline-block;
    padding: 5px 15px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.retro-button:hover {
    background-color: #004c99;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .retro-product-item {
        width: 100%;
    }
}

a {
    color: var(--summer-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/*=======================================================================================
* 2. 頂部區域 (HEADER & TOP BAR)
=======================================================================================*/
header {
    width: 100%;
    z-index: 1000;
    background-color: white;
}

.top-bar {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--light-color);
}

.top-bar i {
    margin-right: 5px;
}

.contact-info {
    display: flex;
    align-items: center;
}

.language-selector a {
    color: white;
    margin: 0 5px;
    font-weight: 500;
}

.language-selector a:hover {
    color: var(--light-color);
}

/* 為所有主要內容區域添加透明白色背景 */
.container,
.container-fluid,
.hero-content-container,
.about-section,
.products-section,
.services-section,
.contact-section,
.footer-content,
.product-inner-page > .container,
.about-inner-page > .container,
.downloads-page > .container {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/*=======================================================================================
* 3. 導航欄 (NAVIGATION BAR)
=======================================================================================*/
.navbar {
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: auto;
}

.navbar-brand {
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem; /* 縮小導航欄右側文字 */
    position: relative;
    padding: 15px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--summer-blue);
}

.navbar-nav .nav-link.active {
    color: white;
    background-color: var(--summer-blue);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(5px);
    z-index: 100;
}

/* 當下拉選單打開時，確保導航項目保持活動狀態 */
.navbar-nav .dropdown.show .nav-link.dropdown-toggle,
.navbar .navbar-nav .dropdown.show .nav-link.dropdown-toggle {
    color: white !important;
    background-color: var(--summer-blue) !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(5px) !important;
    z-index: 100 !important;
}

.dropdown-menu,
.navbar .navbar-nav .dropdown .dropdown-menu {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    padding: 15px 0 !important;
    margin-top: 0 !important;
    border-radius: 0 0 20px 20px !important; /* 增加弧形半徑 */
    background-color: white !important; /* 預設為白色 */
    min-width: 200px !important; /* 設定最小寬度 */
    width: auto !important; /* 改為 auto 以適應內容寬度 */
    position: absolute !important;
    top: calc(100% + 16px) !important; /* 往下移動 10px */
    left: 50% !important;
    transform: translateX(-50%) !important; /* 水平置中 */
    z-index: 1000 !important; /* 確保下拉選單顯示在最上層 */
}

.dropdown-item,
.navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item {
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--dark-color) !important; /* 在白色背景上顯示深色文字 */
    text-align: center !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover,
.navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--summer-blue) !important;
}

/* 點擊時的樣式 */
.dropdown-item:active,
.dropdown-item.active,
.navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item:active,
.navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item.active {
    background-color: var(--summer-blue) !important;
    color: white !important;
}

/* 確保下拉選單顯示正確 */
.navbar .navbar-nav .dropdown.show {
    position: relative !important;
}

/* 下拉選單在展開時的導航項目樣式 */
.navbar-nav .dropdown.show .nav-link.dropdown-toggle,
.navbar .navbar-nav .dropdown.show .nav-link.dropdown-toggle {
    background-color: var(--summer-blue) !important;
    color: white !important;
    border-radius: 10px 10px 0 0 !important;
    position: relative !important;
    z-index: 1001 !important; /* 比下拉選單高一層 */
}

/* 確保桌面版下拉選單正確對齊 */
@media (min-width: 992px) {
    /* 重設下拉選單容器 */
    .navbar-nav .dropdown {
        position: relative !important;
    }

    /* 重設下拉選單 */
    .navbar-nav .dropdown .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important; /* 往下移動 10px */
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 200px !important;
        width: auto !important;
        white-space: nowrap !important;
        border-radius: 0 0 20px 20px !important;
        margin-top: 0 !important;
        text-align: center !important;
    }

    /* 確保下拉選單在展開時的導航項目樣式正確 */
    .navbar-nav .dropdown.show .nav-link.dropdown-toggle {
        background-color: var(--summer-blue) !important;
        color: white !important;
        border-radius: 10px 10px 0 0 !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    /* 修復下拉選單項目在桌面版的樣式 */
    .navbar-nav .dropdown .dropdown-item {
        text-align: center !important;
        padding: 8px 20px !important;
    }
}

/* 確保下拉選單在移動設備上也能正確顯示 */
@media (max-width: 991px) {
    /* 重置移動設備上的下拉選單樣式 */
    .navbar-nav .dropdown-menu,
    .navbar .navbar-nav .dropdown .dropdown-menu {
        border: none !important;
        background-color: white !important; /* 預設為白色 */
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 0 0 20px 20px !important; /* 弧形底部 */
        width: 100% !important; /* 在移動設備上使用全寬 */
        position: static !important;
        float: none !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* 在移動設備上移除下拉選單的寬度限制 */
    .navbar-nav .nav-item.dropdown {
        position: static !important;
    }

    /* 確保下拉選單項目正確顯示 */
    .navbar-nav .dropdown-item,
    .navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item {
        color: var(--dark-color) !important; /* 深色文字 */
        text-align: center !important;
        padding: 8px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: var(--summer-blue) !important;
    }

    /* 點擊時的樣式 */
    .navbar-nav .dropdown-item:active,
    .navbar-nav .dropdown-item.active,
    .navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item:active,
    .navbar .navbar-nav .dropdown .dropdown-menu .dropdown-item.active {
        background-color: var(--summer-blue) !important;
        color: white !important;
    }

    /* 點擊展開下拉選單時的導航項目樣式 */
    .navbar-nav .dropdown.show .nav-link.dropdown-toggle,
    .navbar .navbar-nav .dropdown.show .nav-link.dropdown-toggle {
        background-color: var(--summer-blue) !important;
        color: white !important;
        border-radius: 10px 10px 0 0 !important;
    }

    /* 確保導航折疊區域不會溢出 */
    .navbar-collapse {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }

    /* 重設導航項目的邊距，確保內容不會溢出 */
    .navbar-nav .nav-link {
        padding: 10px !important;
        margin: 0 !important;
    }

    /* 確保容器不會溢出 */
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }
}

/*=======================================================================================
* 4. 大型選單 (MEGA MENU)
=======================================================================================*/
.mega-menu-container {
    position: static;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 30px 0;
    border-radius: 0;
    border-top: 3px solid var(--summer-blue);
}

.category-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.mega-menu-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.mega-menu-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--summer-blue);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 10px;
}

.mega-menu-list a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.mega-menu-list a:hover {
    color: var(--summer-blue);
    padding-left: 5px;
}

/*=======================================================================================
* 5. 頁腳樣式 (FOOTER)
=======================================================================================*/
/* 頁腳公司名稱樣式 */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    margin-bottom: 15px;
}

.footer-brand .logo {
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
}

.footer-brand .company-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    vertical-align: middle;
    line-height: 40px;
}

/* 頁腳公司名稱置中樣式 */
.footer-brand-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
}

.footer-brand-centered .logo {
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-brand-centered .company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

footer {
    background-color: var(--summer-blue);
    color: white;
    padding: 30px 0 10px;
    margin-top: 30px;
    position: relative;
}

footer .container {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* 頁腳選單容器 */
.footer-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 頁腳選單項目 */
.footer-menu-item {
    width: 100%;
    margin-bottom: 10px;
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

/* 頁腳選單標題 */
.footer-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu-header i {
    transition: transform 0.3s ease;
}

.footer-menu-header.active i {
    transform: rotate(180deg);
}

/* 桌面模式下的標題 */
.footer-menu-header.desktop-mode {
    cursor: default;
}

.footer-menu-header.desktop-mode i {
    display: none;
}

/* 頁腳選單內容 */
.footer-menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.footer-menu-content.active {
    max-height: 500px; /* 足夠大的值來容納內容 */
    padding-bottom: 15px;
}

.footer-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-content ul li {
    margin-bottom: 10px;
}

.footer-menu-content ul li a {
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.footer-menu-content ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-menu-content i {
    margin-right: 8px;
    width: 15px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--summer-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #d6dbe1;
    opacity: 0.8;
}

/* 調整頁腳中的聯絡資訊容器寬度 */
footer .contact-info-item,
footer .footer-menu-content ul li {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* 特別設置 email 容器 */
footer .email-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    overflow: hidden !important;
}

footer .email-container a {
    display: block !important;
    width: calc(100% - 26px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.8rem !important;
}

footer .contact-info-item i,
footer .footer-menu-content ul li i {
    flex-shrink: 0;
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

footer .contact-info-item span,
footer .contact-info-item a,
footer .footer-menu-content ul li span,
footer .footer-menu-content ul li a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 響應式樣式 */
@media (max-width: 991px) {
    .footer-menu-container {
        flex-direction: column;
    }

    .footer-menu-header i {
        display: block;
    }

    .footer-menu-content {
        display: none;
        padding-left: 10px;
    }

    .footer-menu-content.active {
        display: block;
    }

    .footer-menu-header.active i {
        transform: rotate(180deg);
    }
    
    .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
        color: white;
        margin-right: 10px;
        transition: all 0.3s ease;
    }
}

/* 確保在桌面版上頁腳選單始終顯示 */
@media (min-width: 992px) {
    .footer-menu-content {
        display: block !important;
    }

    .footer-menu-header i {
        display: none !important;
    }
    
    .footer-menu-item {
        width: 23%;
        border-bottom: none;
    }

    .footer-menu-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 15px;
    }

    .footer-menu-content.active {
        padding-bottom: 0;
    }
}


/*=======================================================================================
* 6. 頁面橫幅樣式 (PAGE BANNER)
=======================================================================================*/
.page-banner {
    position: relative;
    margin-top: 80px; /* 為導航欄留出空間 */
    width: 100%;
    overflow: hidden;
}

.banner-container {
    width: 100%;
    height: auto;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/*=======================================================================================
* 6. 首頁英雄輪播區域 (HERO CAROUSEL SECTION)
=======================================================================================*/
/* 固定顯示的輪播圖文字 */
.hero-text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: calc(100% - 200px); /* 增加左右两侧的空间 */
    max-width: 1200px;
    text-align: left;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    pointer-events: none; /* 確保文字不會阻擋輪播圖的點擊 */
}

/* 輪播圖文字樣式 */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 20px;
    color: white;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
    line-height: 1.2;
    text-transform: uppercase;
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
}
.hero-content {
    max-width: 600px;
    margin-left: 0;
}

.hero-subtitle, .hero-subtitle1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-color);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.965);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 英文文字樣式 - 比中文文字小一點，文字靠左 */
:lang(en) .hero-text-block {
    left: 50%;
    text-align: left;
}

:lang(en) .hero-title {
    font-size: 1.5rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 600;
}

:lang(en) .hero-subtitle,
:lang(en) .hero-subtitle1 {
    font-size: 2.5rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    letter-spacing: 0.3px;
    font-weight: 800;
}

:lang(en) .hero-description {
    font-size: 1rem;
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* 中文文字樣式 - 更精細的控制 */
:lang(zh) .hero-title {
    font-size: 1.5rem;
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
}

:lang(zh) .hero-subtitle,
:lang(zh) .hero-subtitle1 {
    font-size: 3.5rem;
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
    letter-spacing: 1px;
    font-weight: 800;
}

:lang(zh) .hero-description {
    font-size: 1.2rem;
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 響應式樣式 - 不同屏幕尺寸的調整 */
@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* 英文版本響應式調整 */
    :lang(en) .hero-text-block {
        left: 50%;
        width: calc(100% - 180px); /* 增加左右两侧的空间 */
        max-width: 90%;
    }

    :lang(en) .hero-title {
        font-size: 1.5rem;
    }

    :lang(en) .hero-subtitle,
    :lang(en) .hero-subtitle1 {
        font-size: 1.3rem;
        font-weight: 800;
    }

    :lang(en) .hero-description {
        font-size: 0.85rem;
    }

    /* 中文版本響應式調整 */
    :lang(zh) .hero-title {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    :lang(zh) .hero-subtitle,
    :lang(zh) .hero-subtitle1 {
        font-size: 1.3rem;
        letter-spacing: 0.8px;
    }

    :lang(zh) .hero-description {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .hero-text-block {
        width: calc(100% - 160px); /* 增加左右两侧的空间 */
    }
}
@media (max-width: 1300px) {
    .hero-text-block {
        width: calc(100% - 180px); /* 增加左右两侧的空间 */
    }
}
@media (max-width: 768px) {
    /* 調整小屏幕下的文字區域寬度 */
    .hero-text-block {
        width: calc(100% - 60px); /* 減少小屏幕下的左右间距 */
    }

    /* 一般樣式調整 */
    .hero {
        padding: 80px 0;
    }

    .hero-text-block {
        max-width: 90%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 英文版本響應式調整 */
    :lang(en) .hero-text-block {
        left: 50%;
    }

    :lang(en) .hero-title {
        font-size: 1.2rem;
    }

    :lang(en) .hero-subtitle,
    :lang(en) .hero-subtitle1 {
        font-size: 1.1rem;
        font-weight: 800;
    }

    :lang(en) .hero-description {
        font-size: 0.8rem;
    }

    /* 中文版本響應式調整 */
    :lang(zh) .hero-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    :lang(zh) .hero-subtitle,
    :lang(zh) .hero-subtitle1 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    :lang(zh) .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    /* 一般樣式調整 */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle, .hero-subtitle1 {
        font-size: 1.2rem;
    }

    .hero-content-fixed .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* 英文版本響應式調整 */
    :lang(en) .hero-title {
        font-size: 1rem;
    }

    :lang(en) .hero-subtitle {
        font-size: 1.1rem;
    }

    :lang(en) .hero-description {
        font-size: 0.85rem;
    }
}

/* hero 區塊設置 */
.hero-section {
    width: 100%;
    margin-top: 73px; /* 為導航欄留出空間 */
    position: relative;
    overflow: hidden;
}

/* hero 輪播圖容器設置 */
.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel-item {
    height: 700px;
    min-height: 600px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* 一般輪播圖圖片樣式 - 用於其他頁面 */
.hero-carousel-item img {
    opacity: 0.85;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 輪播圖淡入淡出效果 */
.hero-carousel-fade .hero-carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-carousel-fade .hero-carousel-item.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .hero-carousel, .hero-carousel .hero-carousel-item {
        height: 500px;
    }
    /* 輪播圖響應式樣式 */
    .hero-carousel-item {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 比例 */
        min-height: auto;
    }

    .hero-carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .contact-info {
        margin-top: 30px;
    }

    /* 輪播圖響應式樣式 - 平板 */
    .hero-carousel-item {
        padding-bottom: 66.67%; /* 3:2 比例，更適合平板 */
    }

    .hero-carousel, .hero-carousel .hero-carousel-item {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* 輪播圖響應式樣式 - 手機 */
    .hero-carousel-item {
        padding-bottom: 100%; /* 1:1 比例，手機上顯示更完整 */
    }

    /* 調整按鈕大小 */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}
/*=======================================================================================
*產品輪播冰塊效果移除 (PRODUCT CAROUSEL ICE CUBE EFFECT REMOVAL)
=======================================================================================*/
/* Specifically remove the carousel ice cube background animation */
.carousel-container::before {
    display: none !important;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800' fill='none'%3E%3Cpath d='M100 100L200 50L300 150L250 250L100 200L100 100Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M400 300L500 200L600 250L550 400L450 450L400 300Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M700 100L850 150L800 300L650 350L600 200L700 100Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M900 400L1050 350L1100 500L1000 600L850 550L900 400Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M150 500L300 450L350 600L250 700L100 650L150 500Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M500 600L650 550L700 700L600 800L450 750L500 600Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M800 650L950 600L1000 750L900 850L750 800L800 650Z' fill='%2317a2b8' fill-opacity='0.1' stroke='%230056b3' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
    background-position: center center;
    background-repeat: repeat;
    background-size: 1200px 800px;
    opacity: 0.8;
    animation: iceMove 60s linear infinite;
    z-index: -1;
    pointer-events: none;
}

/* Remove 3D effects but keep slide content styling */
.swiper-slide-shadow-left,
.swiper-slide-shadow-right,
.swiper-slide-shadow-top,
.swiper-slide-shadow-bottom,
.swiper-cube-shadow,
.swiper-slide-shadow,
.swiper-3d {
    display: none !important;
}

/*=======================================================================================
* index 產品 輪播產品介紹 (CAROUSEL CONTROLS)
=======================================================================================*/
.carousel-container {
    position: relative;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
}
/* 中間活動卡片樣式 */
.swiper-slide img {
    width: 100%;
    border-radius: 16px;
    display: block;
}
/* 中間活動幻燈片樣式 */
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}
/* 產品展示輪播圖樣式 */

.swiper-slide {
    min-height: 420px; /* 設置最小高度，確保較短的圖片也有足夠高度 */
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform-origin: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}


@keyframes slideBackground {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 60px 60px;
    }
    100% {
        background-position: 120px 120px;
    }
}

/* 底部大輪播圖背景效果已移除 */

.swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



.swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
    margin: 40px auto 0;
    position: relative;
    z-index: 0;
}

.swiper-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide:hover .swiper-slide-content {
    opacity: 1;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.8), transparent);
    z-index: 1;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-slide-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.swiper-slide-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}


.swiper {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 50px 0;
}

.swiper-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* 相鄰幻燈片樣式 */
.swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.8);
    z-index: 1;
    filter: brightness(0.8);
}

/* 非活動幻燈片樣式 */
.swiper-slide {
    transition: all 0.5s ease;
    opacity: 0.6;
    filter: brightness(0.7);
}

/* 幻燈片圖片樣式 */
.swiper-slide img {
    transition: all 0.5s ease;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* 活動幻燈片樣式 */
.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 活動幻燈片圖片樣式 */
.swiper-slide-active img {
    transform: translateY(-20px);
}
.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--summer-blue);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--summer-blue);
}

/* 統一輪播圖導航按鈕樣式 */
.swiper-button-next, .swiper-button-prev {
    width: 10%;
    opacity: 0.8;
    z-index: 20; /* 確保控制按鈕在最上層 */
    pointer-events: auto; /* 確保按鈕可以點擊 */
    background: none;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

/* 移除原始 Swiper 箭頭 */
.swiper-button-next:after, .swiper-button-prev:after {
    display: none;
}

/* 使用與 hero 輪播圖相同的箭頭圖標 */
.swiper-button-next .carousel-control-next-icon,
.swiper-button-prev .carousel-control-prev-icon {
    width: 70px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    background-size: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* 按钮按下效果 */
.swiper-button-next:active .carousel-control-next-icon,
.swiper-button-prev:active .carousel-control-prev-icon {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

/* 輪播圖導航按鈕響應式樣式 */
@media (max-width: 1200px) {
    .swiper-button-next .carousel-control-next-icon,
    .swiper-button-prev .carousel-control-prev-icon {
        width: 100px;
        height: 42px;
    }
}

@media (max-width: 992px) {
    .swiper-button-next .carousel-control-next-icon,
    .swiper-button-prev .carousel-control-prev-icon {
        width: 45px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .swiper-button-next:after, .swiper-button-prev:after {
        width: 20px;
        height: 15px;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 220px;
        height: 260px;
    }

    .swiper-slide-title {
        font-size: 1rem;
    }

    .swiper-slide-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .swiper-slide {
        width: 180px;
        height: 220px;
    }
}


/*=======================================================================================
* 9. 輪播控制元素 (CAROUSEL CONTROLS)
=======================================================================================*/
.hero-carousel-indicators {
    bottom: 80px;
}

.hero-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-carousel-indicators button.active {
    background-color: var(--summer-blue);
    transform: scale(1.2);
}

/* 產品輪播圖樣式 - 讓中間的幻燈片更突出 */
/* 輪播圖容器樣式 */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 10%;
    opacity: 0.8;
    z-index: 20; /* 確保控制按鈕在最上層 */
    pointer-events: auto; /* 確保按鈕可以點擊 */
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    background-size: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

/* 按钮按下效果 */
.hero-carousel .carousel-control-prev:active,
.hero-carousel .carousel-control-next:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.hero-carousel .carousel-control-prev:active .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:active .carousel-control-next-icon {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

/* 輪播圖導航按鈕響應式樣式 */
@media (max-width: 1200px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 22px;
    }
}

@media (max-width: 992px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 15px;
    }
}

/*=======================================================================================
* 10. 下載頁面與按鈕樣式 (DOWNLOAD PAGE & BUTTONS)
=======================================================================================*/

/* ===== 下載按鈕樣式 ===== */

/* 下載按鈕基本樣式 */
.download-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 主要下載按鈕 - 夏季藍色主題 */
.download-btn-primary {
    background-color: var(--summer-blue);
    border-color: var(--summer-blue);
    color: #fff;
}

/* 下載按鈕懸停效果 */
.download-btn:hover {
    background-color: #0096b5;
    border-color: var(--summer-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 輪廓下載按鈕 */
.download-btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

/* 輪廓下載按鈕懸停效果 */
.download-btn-outline:hover {
    background-color: white;
    color: var(--summer-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 下載頁面樣式 ===== */

/* 橫幅區域 */
.banner-container {
    width: 100%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
}

.banner-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* 下載區域容器和列樣式 */
.downloads-section {
    padding: 60px 0;
}

.downloads-section .container {
    padding: 0 50px;
}

.downloads-section .row {
    display: flex;
    justify-content: center;
}

.downloads-section .col-lg-3 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 下載項目卡片樣式 */
.dm-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 下載項目懸停效果 */
.dm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 下載項目圖片容器 */
.dm-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

/* 下載項目圖片和畫布 */
.dm-image img, .dm-image canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 下載項目內容區域 */
.dm-content {
    padding: 20px;
    text-align: center;
}

/* 下載項目標題 */
.dm-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-color);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*=======================================================================================
* 10. 產品頁面樣式 (PRODUCT PAGES)
=======================================================================================*/

.product-main-image {
    margin-bottom: 10px;
}

.product-overview {
    margin-top: 15px;
}

.overview-text {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 響應式樣式 */
@media (max-width: 991px) {
    .product-main-image {
        margin-bottom: 25px;
    }

    .product-overview {
        padding: 0 15px;
    }

    .overview-text {
        margin-bottom: 25px;
        font-size: 1.05rem;
        text-align: center;
    }
}

/*=======================================================================================
* 13. 關於我們頁面 (ABOUT PAGE)
=======================================================================================*/
.about-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--summer-blue);
}

.about-card h3 {
    color: var(--summer-blue);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--summer-blue);
}

.about-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image-item:hover {
    transform: scale(1.05);
}

.about-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.about-image-item:hover img {
    transform: scale(1.1);
}

.about-values {
    background: linear-gradient(135deg, var(--summer-blue), var(--secondary-color));
    padding: 80px 0;
    color: white;
    margin: 60px 0;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* 關於我們頁面響應式設計 */
@media (max-width: 992px) {
    .about-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-image-grid {
        grid-template-columns: 1fr;
    }
}

/*=======================================================================================
* 14. 章節樣式 (SECTION STYLES)
=======================================================================================*/
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--summer-blue);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--summer-blue);
}

/*=======================================================================================
* 14. 最新產品區塊 (LATEST PRODUCTS)
=======================================================================================*/
#latest-products {
    padding: 80px 0;
    background-color: white;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: none;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--summer-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    min-height: 40px;
}

.product-desc {
    color: var(--gray-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card .btn {
    align-self: flex-start;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn-outline-primary {
    color: var(--summer-blue);
    border-color: var(--summer-blue);
}

.product-card .btn-outline-primary:hover {
    background-color: var(--summer-blue);
    color: white;
}

@media (max-width: 992px) {
    .product-title {
        min-height: auto;
    }
}

/*=======================================================================================
* 15. 產品頁面共用樣式 (PRODUCT PAGES COMMON STYLES)
=======================================================================================*/

/* 禁用所有產品卡片動畫效果 */
.product-card,
.product-card *,
.product-image img,
.product-showcase,
.product-showcase * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}
.product-content {
    padding: 80px 0;
    background-color: white;
}

.product-detail-page .container,
.product-inner-page .container {
    max-width: 1000px;
    padding-left: 80px;
    padding-right: 80px;
}

@media (max-width: 768px) {
    .product-detail-page .container,
    .product-inner-page .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}
/* 產品展示區塊 */
.product-showcase {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-showcase:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-showcase:hover .product-image-container img {
    transform: none;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-icon {
    color: var(--summer-blue);
    margin-right: 10px;
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-description h4 {
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', SimHei, 'Heiti TC', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5276;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--summer-blue);
    position: relative;
}

.product-description h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

/* 產品特點 */
.product-features {
    margin-top: 30px;
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.feature-card {
    background: white;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--summer-blue);
    margin-bottom: 20px;
}

.feature-card h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* 應用場景 */
.application-scenarios {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.scenario-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.scenario-image {
    height: 200px;
    overflow: hidden;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scenario-card:hover .scenario-image img {
    transform: scale(1.05);
}

.scenario-content {
    padding: 25px;
}

.scenario-content h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .product-showcase {
        margin-bottom: 30px;
    }

    .product-image-container {
        height: 250px;
    }
}
.downloads-section .col-lg-3 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 確保按鈕在相同高度對齊 */
.dm-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dm-title-area {
    margin-bottom: 20px;
}

.dm-button-area {
    margin-top: auto;
}

/*=======================================================================================
* 13. 動畫效果 (ANIMATIONS)
=======================================================================================*/
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}



/*=======================================================================================
* 15. 產品展示 (PRODUCT SHOWCASE)
=======================================================================================*/

/* 產品網格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-item {
    margin-bottom: 30px;
}

/* 產品卡片 */
.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 產品圖片 */
.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* 產品覆蓋層 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* 產品查看按鈕 */
.btn-view {
    background-color: var(--summer-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: white;
    color: var(--summer-blue);
    transform: translateY(-3px);
}

/* 產品內容區域 */
.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-series {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--summer-blue);
    line-height: 1.4;
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 產品連結 */
.product-link {
    color: var(--summer-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.product-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--summer-blue);
}

.contact-info {
    background-color: var(--summer-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-info-item {
    font-size: 0.9rem;
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--light-color);
}

/* Map */
.map-container {
    height: 400px;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



/* 簡化版客製化解決方案區塊 */
.custom-solution-simple {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.custom-solution-simple:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.custom-solution-simple h2 {
    color: var(--summer-blue);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.custom-solution-simple h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--summer-blue);
}

.custom-solution-simple p[data-lang-key="contact-for-more"] {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--summer-blue);
    margin: 30px 0 15px;
}
/* 下載按鈕基本樣式 */
.custom-product-btn {
    padding: 12px 35px;
    font-size: 1rem;
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 主要下載按鈕 - 夏季藍色主題 */
.custom-product-btn-primary {
    background-color: var(--summer-blue);
    border-color: var(--summer-blue);
    color: #fff;
}

/* 下載按鈕懸停效果 */
.custom-product-btn:hover {
    background-color: #0096b5;
    border-color: var(--summer-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 輪廓下載按鈕 */
.custom-product-btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

/* 輪廓下載按鈕懸停效果 */
.custom-product-btn-outline:hover {
    background-color: white;
    color: var(--summer-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* 確保 email 地址不換行 */
a[href^="mailto:"],
[data-lang-key="contact-email"],
.email-container,
.email-container a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: inline-block !important;
    vertical-align: middle !important;
}


