/*=======================================================================================
* 1. 全局樣式 (GLOBAL STYLES)
=======================================================================================*/
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #17a2b8;
    --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;
    }
}

/* 導航欄樣式 */
.nav-link {
    font-size: 1.1rem; /* 根據用戶偏好設置字體大小 */
}

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

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

.navbar-brand .company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-block;
    vertical-align: middle;
    line-height: 40px;
}

/* 頁腳公司名稱樣式 */
.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: 12px;
    object-fit: contain;
}

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

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

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

/* 確保下拉選單的活動項目有藍色背景 */
.dropdown-menu .active {
    background-color: var(--primary-color);
    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: rgba(0, 51, 102, 0.9); /* 稍微透明的深藍色 */
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 86, 179, 0.1); /* 添加微妙的陰影 */
    border-left: 3px solid rgba(0, 86, 179, 0.7); /* 左側邊框，呼應波浪線條 */
}

.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(--primary-color);
    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: 1.1rem;
    position: relative;
    padding: 15px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

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

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

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/*=======================================================================================
* 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(--primary-color);
}

.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(--primary-color);
}

.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(--primary-color);
    padding-left: 5px;
}

/*=======================================================================================
* 5. 頁腳樣式 (FOOTER)
=======================================================================================*/
footer {
    background-color: var(--secondary-color);
    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: 50px;
    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 {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-menu-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

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

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

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

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

.footer-menu-content a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-menu-content a:hover {
    color: white;
    text-decoration: none;
    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(--primary-color);
    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;
    opacity: 0.8;
}

@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);
    }
}

/*=======================================================================================
* 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;
}

.hero-carousel {
    margin-top: 73px; /* 為導航欄留出空間 */
}

/*=======================================================================================
* 7. 按鈕樣式 (BUTTONS)
=======================================================================================*/
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.8rem;
}

/*=======================================================================================
* 6. 首頁輪播區域 (HERO CAROUSEL SECTION)
=======================================================================================*/
.hero-content {
    max-width: 600px;
    margin-left: 0;
}

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

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

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

: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: 3.5rem;
    font-family: 'Microsoft JhengHei', 'Microsoft YaHei', 'SimHei', 'Heiti TC', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
}

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

: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: 1200px) {
    :lang(en) .hero-text-block {
        left: 50%;
    }
    
    :lang(en) .hero-title {
        font-size: 2.5rem;
    }
    :lang(en) .hero-subtitle {
        font-size: 1.5rem;
    }
    :lang(en) .hero-description {
        font-size: 0.9rem;
    }
    
    :lang(zh) .hero-title {
        font-size: 3rem;
    }
    :lang(zh) .hero-subtitle {
        font-size: 1.8rem;
    }
    :lang(zh) .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    :lang(en) .hero-text-block {
        left: 50%;
    }
    
    :lang(en) .hero-title {
        font-size: 2.2rem;
    }
    :lang(en) .hero-subtitle {
        font-size: 1.3rem;
    }
    :lang(en) .hero-description {
        font-size: 0.85rem;
    }
    
    :lang(zh) .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
    }
    :lang(zh) .hero-subtitle {
        font-size: 1.5rem;
        letter-spacing: 0.8px;
    }
    :lang(zh) .hero-description {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 768px) {
    :lang(en) .hero-text-block {
        left: 50%;
    }
    
    :lang(en) .hero-title {
        font-size: 1.8rem;
    }
    :lang(en) .hero-subtitle {
        font-size: 1.1rem;
    }
    :lang(en) .hero-description {
        font-size: 0.8rem;
    }
    
    :lang(zh) .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    :lang(zh) .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    :lang(zh) .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}


.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.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);
}

.hero-buttons {
    margin-bottom: 50px;
}

/* 輪播圖容器設置 */
.hero-carousel {
    position: relative;
    height: 600px; /* 固定輪播圖高度 */
    overflow: hidden;
}

/* 確保輪播圖在不同螢幕尺寸下保持相同比例 */
@media (max-width: 1200px) {
    .hero-carousel, .hero-carousel .carousel-item {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .hero-carousel, .hero-carousel .carousel-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-carousel, .hero-carousel .carousel-item {
        height: 350px;
    }
}

/* 輪播圖項目設置 */
.hero-carousel .carousel-item {
    height: 600px;
}

/* 輪播圖圖片設置 */
.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 固定顯示的輪播圖文字 */
.hero-text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 600px;
    text-align: left;
    background: none;
    box-shadow: none;
}

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

.en-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text-block {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content-fixed .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/*=======================================================================================
* 7. 輪播元素 (CAROUSEL ELEMENTS)
=======================================================================================*/
.carousel {
    position: relative;
}

/* 一般輪播圖項目樣式 - 用於其他頁面 */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* 一般輪播圖圖片樣式 - 用於其他頁面 */
.carousel-item img {
    opacity: 0.85;
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: left;
}

.carousel-caption .container {
    position: relative;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

/*=======================================================================================
* index 頁面 輪播產品介紹 (CAROUSEL CONTROLS)
=======================================================================================*/
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
    position: relative;
}

.swiper {
overflow: visible; /* 👈 讓左右圖片能超出容器被看到 */
}

.swiper-slide {
width: 300px;
}

.swiper-slide-active {
opacity: 1;
transform: scale(1);
z-index: 10;
}

.swiper-slide img {
width: 100%;
border-radius: 16px;
display: block;
}


/* 產品展示輪播圖樣式 */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.carousel-container::before {
    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;
}

.swiper {
    width: 100%;
    padding: 10px 0;
    position: relative;
}

.swiper-slide {
    width: 280px;
    height: auto;
    min-height: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



@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-active {
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
    transform: translateY(-5px);
}

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

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

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

.swiper-slide:hover::after {
    height: 40%;
}

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

.swiper-slide:hover .swiper-slide-content {
    opacity: 1;
    transform: translateY(0);
}

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

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

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

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

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

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

@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;
    }
}

/* 展覽風格輪播圖樣式 */
.exhibition-carousel-container {
    position: relative;
    margin: 30px auto;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.exhibition-item-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.exhibition-item {
    width: 45%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exhibition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.exhibition-item:hover .exhibition-caption {
    background-color: var(--primary-color);
}

.exhibition-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px;
}

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

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

.exhibition-caption {
    background-color: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.exhibition-caption h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* 展覽輪播圖控制按鈕樣式 */
#productExhibitionCarousel .carousel-control-prev,
#productExhibitionCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#productExhibitionCarousel .carousel-control-prev {
    left: 20px;
}

#productExhibitionCarousel .carousel-control-next {
    right: 20px;
}

#productExhibitionCarousel .carousel-control-prev:hover,
#productExhibitionCarousel .carousel-control-next:hover {
    opacity: 1;
}

#productExhibitionCarousel .carousel-indicators {
    bottom: -10px;
}

#productExhibitionCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
}

#productExhibitionCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* 響應式樣式 */
@media (max-width: 991px) {
    .exhibition-item {
        width: 45%;
    }
}

@media (max-width: 767px) {
    .exhibition-item-container {
        flex-direction: column;
    }
    
    .exhibition-item {
        width: 80%;
        margin-bottom: 20px;
    }
    
    .exhibition-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .exhibition-item {
        width: 90%;
    }
    
    .exhibition-image {
        height: 180px;
    }
}
/*=======================================================================================
* 9. 輪播控制元素 (CAROUSEL CONTROLS)
=======================================================================================*/
.carousel-indicators {
    bottom: 80px;
}

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

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

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 35px;
    height: 25px;
    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);
}

/* 輪播圖導航按鈕響應式樣式 */
@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. 主要按鈕樣式 (MAIN BUTTONS)
=======================================================================================*/
.btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/*=======================================================================================
* 11. 捲動提示 (SCROLL DOWN INDICATOR)
=======================================================================================*/
.scroll-down {
    position: absolute;
    bottom: 50px;
    right: 50px;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down a {
    color: white;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 86, 179, 0.7);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.scroll-down i {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/*=======================================================================================
* 12. 檔案下載頁面 (DOWNLOADS PAGE)
=======================================================================================*/

/* 檔案下載頁面樣式 - 橫幅區域 */
.banner-container {
    width: 100%;
}

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

.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);
}

/* 檔案下載頁面樣式 - 類別區域 */
.download-category {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

/* 檔案下載頁面樣式 - 下載項目 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.download-info {
    flex-grow: 1;
}

.download-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.download-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.file-info {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* 檔案下載頁面樣式 - 下載按鈕 */
.download-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* 下載區域容器和列樣式 */
.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項目 */
.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;
}

/* Adjust the container padding for download items */
.downloads-section .container {
    padding: 0 50px;
}

/* Make the columns smaller */

/*=======================================================================================
* 13. 關於我們頁面 (ABOUT PAGE)
=======================================================================================*/
.about-content {
    padding: 30px 0;
}

.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(--primary-color);
}

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

.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(--primary-color), 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;
    }
}

/* 頁面標題樣式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

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

/*=======================================================================================
* 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(--primary-color);
    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(--primary-color);
    border-color: var(--primary-color);
}

.product-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    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(--primary-color);
    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 #3498db;
    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(--primary-color);
    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);
    }
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/*=======================================================================================
* 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(--primary-color);
    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(--primary-color);
    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(--secondary-color);
    line-height: 1.4;
}

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

/* 產品連結 */
.product-link {
    color: var(--primary-color);
    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(--primary-color);
}

.contact-info {
    background-color: var(--primary-color);
    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(--secondary-color);
    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(--primary-color);
}

.custom-solution-simple p[data-lang-key="contact-for-more"] {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.custom-solution-simple .btn-lg {
    padding: 12px 35px;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

/* 確保 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;
}

/* 調整頁腳中的聯絡資訊容器寬度 */
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;
}

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

/*=======================================================================================
* 16. 頁腳區域 (FOOTER)
=======================================================================================*/

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

/* 頁腳選單項目 */
.footer-menu-item {
    width: 100%;
    margin-bottom: 10px;
}

/* 頁腳選單標題 */
.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;
}

.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: #adb5bd;
    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;
}

/* 桌面設備樣式 */
@media (min-width: 992px) {
    .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;
    }
}

/* 舊的頁腳樣式，保留以免影響其他頁面 */
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links h4 i {
    transition: transform 0.3s ease;
}

.footer-links h4.active i {
    transform: rotate(180deg);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-dropdown-menu {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

@media (max-width: 991px) {
    .footer-dropdown-menu {
        max-height: 0;
    }
    
    .footer-links h4 {
        margin-bottom: 10px;
    }
    
    .footer-links {
        margin-bottom: 15px;
    }
}

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

.footer-links ul li a {
    color: #adb5bd;
    transition: all 0.3s ease;
}

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

.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;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* 輪播圖響應式樣式 */
    .carousel-item {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 比例 */
        min-height: auto;
    }
    
    .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .carousel-caption {
        padding: 50px 0;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact-info {
        margin-top: 30px;
    }
    
    /* 輪播圖響應式樣式 - 平板 */
    .carousel-item {
        padding-bottom: 66.67%; /* 3:2 比例，更適合平板 */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* 英文版本字體大小調整 */
    :lang(en) .hero-title {
        font-size: 2.2rem;
    }
    
    :lang(en) .hero-subtitle {
        font-size: 1.3rem;
    }
    
    :lang(en) .hero-description {
        font-size: 0.9rem;
    }
    
    /* 調整輪播圖控制按鈕位置 */
    .scroll-down {
        right: 30px;
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* 輪播圖響應式樣式 - 手機 */
    .carousel-item {
        padding-bottom: 100%; /* 1:1 比例，手機上顯示更完整 */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* 英文版本字體大小調整 */
    :lang(en) .hero-title {
        font-size: 1.8rem;
    }
    
    :lang(en) .hero-subtitle {
        font-size: 1.1rem;
    }
    
    :lang(en) .hero-description {
        font-size: 0.85rem;
    }
    
    /* 調整輪播圖控制按鈕位置 */
    .scroll-down {
        right: 20px;
        bottom: 20px;
    }
    
    .scroll-down a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .scroll-down i {
        font-size: 1.1rem;
    }
    
    /* 調整按鈕大小 */
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}
