/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-width: 300px;
    padding-top: 65px;
}

html {
    overflow-x: hidden;
    width: 100%;
    min-width: 300px;
}

/* 當 mega menu 啟動時的模糊效果 */
body.mega-menu-active > *:not(.navbar):not(.top-navbar):not(.navbar-brand) {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

body.mega-menu-active .navbar,
body.mega-menu-active .top-navbar,
body.mega-menu-active .navbar-brand {
    filter: none;
}

/* 背景影片 */
.video-background {
    position: relative;
    width: 100%;
    height: 50vw;
    min-height: 400px;
    max-height: calc(80vh + 50px);
    z-index: 1;
    overflow: visible;
    margin-top: -100px;
}

.video-background video,
.video-background .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 影片標語 */
.video-slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 90%;
    max-width: 1000px;
}

.slogan-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    animation: fadeInDown 1s ease-out;
}

.slogan-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 - 字體使用 clamp 自動縮放,不需要額外斷點 */

/* 往下箭頭 */
.scroll-down-arrow {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    cursor: pointer;
    animation: bounce-arrow 2s infinite;
    z-index: 1000;
    pointer-events: auto;
}

.scroll-down-arrow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 上層導航欄樣式 */
.top-navbar {
    background: linear-gradient(135deg, #b0ca41 0%, #b1cb41 100%);
    color: #000;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    min-height: 65px;
}

.top-navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 65px;
    max-width: none;
    margin: 0;
    padding: 0 10px 0 0;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-size: 11px;
    font-weight: 400;
    padding: 0 0.3rem;
}

.lang-label {
    color: #000;
    font-weight: 400;
}

.lang-arrow {
    font-size: 0.6rem;
    color: #000;
    transition: transform 0.3s ease;
}

.language-selector:hover .lang-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    min-width: 100px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 502;
}

.language-selector:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #BFDA3C;
    color: #000;
    font-weight: 700;
}

/* 主導航欄樣式 */
.navbar {
    background-color: #fff;
    box-shadow: none;
    position: sticky;
    top: 40px;
    z-index: 999;
    height: 60px;
}



.navbar-brand {
    position: fixed;
    left: 5px;
    top: 5px;
	font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    z-index: 999999 !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
}

.company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transform: translateY(10px);
}

.company-name-en {
    font-size: 0.7rem;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.2;
    border-bottom: 2px solid #333;
    padding-bottom: 3px;
    display: none;
}

.company-name {
    font-size: 1.3rem;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    line-height: 1.2;
    display: block;
}

/* Hero Section - 首頁主區域 */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 3rem 1rem;
}

/* 動畫 Logo 容器 */
.animated-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-image-only {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin-left: 150px;
    animation: rotate-slow 30s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-image-only img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.company-slogan {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    transform: rotate(-15deg);
}

/* 緩慢旋轉動畫 - 30秒一圈 */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.9rem;
    flex-wrap: wrap;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

/* 在這個項目之前強制換行 - 只在桌面版生效 */
.navbar-menu > li.nav-break::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: -1;
}

/* 確保在桌面版時導航欄有足夠的高度容納兩排 */
.top-navbar {
    min-height: auto;
}

.top-navbar .container {
    height: auto;
    min-height: 65px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-menu .nav-link {
    text-decoration: none;
    color: #000;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 0 0.3rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-text-zh {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}

.nav-text-en,
.nav-text-ja {
    display: none;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.5px;
    align-items: center;
    gap: 0.05rem;
}

.navbar-menu .nav-link:hover {
    color: #333;
}

.nav-text-zh {
    position: relative;
}

.nav-text-zh::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    transition: width 0.3s ease;
}

.navbar-menu > li:hover .nav-text-zh::after {
    width: 100%;
}

/* 下拉箭頭樣式 */
.dropdown-arrow {
    display: inline-block;
    margin-left: 0.05rem;
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-text-zh .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown:hover .nav-text-en .dropdown-arrow,
.dropdown:hover .nav-text-ja .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉選單 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: auto;
    max-width: 400px;
    width: auto;
    list-style: none;
    padding: 0.5rem 8px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu-container {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

/* 下拉選單顯示 */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 隱藏 mega menu 圖片區域 */
.mega-menu-image-wrapper {
    display: none;
}

.mega-menu-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mega-menu-title-overlay {
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
    margin: 0;
}

/* 標題區域（純文字版本，給其他沒有圖片的選單用） */
.mega-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

/* 選單內容區域 - 置中 */
.mega-menu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

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

.mega-menu-links a {
    display: inline-block;
    padding: 0.5rem 5px;
    color: #333;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.95rem;
    background: transparent;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

.mega-menu-links a[data-zh*="獨立董事"] {
    white-space: normal;
    max-width: 200px;
    line-height: 1.4;
    padding: 0.5rem 5px;
}

.mega-menu-links a[data-zh*="高效率油浸式配電變壓器"] {
    white-space: normal;
    max-width: 200px;
    line-height: 1.4;
    padding: 0.5rem 5px;
}

/* CSR 下拉選單 - 英文文字較長，需要更寬的選單 */
.dropdown-menu-csr {
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
}

.dropdown-menu-csr .mega-menu-links a {
    white-space: nowrap;
}

.mega-menu-links a:hover {
    background-color: #3d3d3d;
    color: #ffffff;
    border-radius: 4px;
}

/* 鎖鏈掉落動畫 */
@keyframes chainDrop {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotate(-5deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) rotate(2deg);
    }
    80% {
        transform: translateY(-2px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* 整體鎖鏈晃動動畫 */
@keyframes chainSwing {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    20% {
        transform: translateX(-50%) rotate(2deg);
    }
    40% {
        transform: translateX(-50%) rotate(-2deg);
    }
    60% {
        transform: translateX(-50%) rotate(1deg);
    }
    80% {
        transform: translateX(-50%) rotate(-1deg);
    }
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

/* 漢堡選單按鈕 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* 主要內容區域 */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Footer 樣式 */
.footer {
    position: relative;
    background-color: #f8f9fa;
    color: #333;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

/* Footer 背景圖片層 - 已移除 */
.footer::before {
    display: none;
}

.footer .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: block;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links li a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-links li a:hover {
    color: #BFDA3C;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.footer-contact p {
    margin: 0;
}

.footer-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #BFDA3C;
}

.footer-address {
    color: #666;
}

.footer-simple-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}

.footer-simple-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-simple-links a:hover {
    color: #BFDA3C;
}

/* 底部版權欄 */
.footer-bottom {
    background: linear-gradient(135deg, #BFDA3C 0%, #AAC530 100%);
    color: #000;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.footer-bottom .container {
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

.contact-item a {
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #333;
}

/* ========================================
   內頁樣式
   ======================================== */

/* 橫幅圖片區塊 */
.banner-section {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-top: -100px;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding-top: 100px;
}

.banner-main-title {
    color: #fff;
    font-size: 4rem;
    font-weight: 900;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* 麵包屑容器 */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 1rem 0;
}

.breadcrumb-container .breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb-container .breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-container .breadcrumb a:hover {
    color: #BFDA3C;
}

.breadcrumb-container .breadcrumb .separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-container .breadcrumb span:last-child {
    color: #333;
    font-weight: 600;
}

/* 頁面標題區 */
.page-header {
    background: linear-gradient(135deg, #BFDA3C 0%, #AAC530 100%);
    padding: 3rem 0 2rem;
    margin-top: calc(100px + 50px);
}

.page-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

.breadcrumb {
    color: #fff;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

/* 內容區塊 */
.content-section {
    padding: 3rem 0;
    background: #fff;
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.info-block {
    margin-bottom: 3rem;
}

.section-heading {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #BFDA3C;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

.content-title {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

/* 資訊網格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    color: #666;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    line-height: 1.6;
}

.info-value a {
    color: #BFDA3C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #AAC530;
}

/* 文字內容 */
.text-content {
    line-height: 1.8;
    color: #555;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* 經營理念列表 */
.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.philosophy-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #BFDA3C;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #333;
}

/* 產品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.product-card {
    padding: 2rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #BFDA3C;
    box-shadow: 0 4px 12px rgba(191, 218, 60, 0.2);
}

.product-card h3 {
    color: #003366;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 量子交換動畫 - 簡約版 */
@keyframes quantumSwap {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        height: 40px;
        overflow: hidden;

        gap: 0;
    }

    .navbar-menu.active {
        max-height: 1000px;
        padding: 1rem 0;
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #f5f5f5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
    }

    .dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }


    .footer-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    /* 平板尺寸調整圖片 */
    .center-image-only {
        width: 350px;
        height: 350px;
        margin-left: 0;
    }

    .company-slogan {
        font-size: 2rem;
    }

    /* 手機版應用領域區塊 - 降低上方間距 */
    .applications-section {
        padding: 40px 0 0 0;
        min-height: auto;
    }

    /* 手機版應用領域卡片高度 */
    .application-card {
        height: clamp(300px, 48vw, 390px) !important;
    }

    .application-image-wrapper {
        height: 100% !important;
    }

    .application-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    /* 手機尺寸調整圖片 */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .center-image-only {
        width: 280px;
        height: 280px;
        margin-left: 0;
    }

    .company-slogan {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

/* Cookie 同意提示框樣式 */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(46, 125, 50, 0.6);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-consent.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #fff;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-accept {
    background-color: #333;
    color: #fff;
}

.btn-accept:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.btn-decline {
    background-color: #95a5a6;
    color: #fff;
}

.btn-decline:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

/* Cookie 提示框響應式設計 */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }
}

/* 浮動聯繫按鈕 */
.floating-contact-btn {
    background: rgba(33, 150, 243, 0.7);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    border: none;
    backdrop-filter: blur(10px);
}

.floating-contact-btn:hover {
    transform: scale(1.15);
}

.chat-icon {
    width: 26px;
    height: 26px;
}

.chat-icon path {
    fill: #fff;
    opacity: 1;
    transition: none;
}

.chat-icon circle {
    fill: #000;
    opacity: 1;
    transition: none;
}

.contact-text {
    white-space: nowrap;
    display: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .floating-contact-btn {
        width: 50px;
        height: 50px;
    }

    .chat-icon {
        width: 24px;
        height: 24px;
    }
}

/* 浮動按鈕容器 */
.floating-buttons-container {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
}

/* 回到頂部按鈕 */
.back-to-top-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(10px);
}

.back-to-top-btn:hover {
    transform: scale(1.15);
}

.arrow-icon {
    width: 26px;
    height: 26px;
    fill: #fff;
    opacity: 1;
    transition: none;
}

@media (max-width: 768px) {
    .floating-buttons-container {
        left: 10px;
        gap: 12px;
    }

    .back-to-top-btn {
        width: 50px;
        height: 50px;
    }

    .arrow-icon {
        width: 24px;
        height: 24px;
    }
}

/* 主要內容區域 */
.main-content {
    position: relative;
    z-index: 1;
    background: #fff;
}

/* 股票價格資訊區塊 */
.stock-info {
    background: #f5f5f5;
    padding: 80px 0;
}

.stock-card {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.stock-image {
    flex: 0 0 250px;
    position: relative;
}

.stock-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(95, 140, 115, 0.85), rgba(60, 90, 70, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: #fff;
}

.stock-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.stock-datetime {
    font-size: 0.9rem;
    opacity: 0.95;
}

.stock-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock-exchange {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.company-name {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.stock-price {
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 300;
    color: #333;
}

.price-currency {
    font-size: 1.2rem;
    color: #666;
    margin-left: 0.5rem;
}

.stock-change {
    margin-top: 0.5rem;
}

.change-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* 子公司區塊 */
.subsidiaries {
    background: #fff;
    padding: 80px 0;
}

.subsidiaries .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.subsidiaries .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #BFDA3C, #8FBA1C);
    border-radius: 2px;
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subsidiary-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
}

.subsidiary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.subsidiary-logo {
    background: #f8f8f8;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.subsidiary-logo img {
    max-width: 80%;
    height: auto;
    display: block;
}

.subsidiary-info {
    padding: 2rem;
    border-top: 1px solid #e5e5e5;
}

.subsidiary-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.subsidiary-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* 圖片區塊 - 影片下方左邊 */
.image-section {
    background: transparent;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    margin-top: 60px;
}

.image-section .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background-color: transparent;
    transform-origin: top center;
}

.image-container-left {
    position: relative;
    width: 450px;
    margin: 0;
    flex-shrink: 0;
}

/* 舊的分散框線已移除，改用 main-content-wrapper 的統一外框 */

.company-section-title {
    position: absolute;
    top: -1.2vw;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
    padding: 0 1vw;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
    text-decoration: underline;
    white-space: nowrap;
}

.rounded-image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: block;
    object-fit: cover;
}

.datetime-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-overlay-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-overlay-code {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-overlay-company {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-overlay-price {
    margin: 12px 0;
}

.price-number {
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.price-unit {
    font-size: 1.1rem;
    color: #fff;
    margin-left: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.stock-change-display {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* 公司介紹區塊 */
.company-cards {
    flex: 1;
    background: transparent;
    border-radius: 0;
    padding: 25px;
    padding-left: 10px;
    box-shadow: none;
    position: relative;
}

.company-cards-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.company-card {
    flex: 1;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding-top: 40px;
    flex-shrink: 0;
}

.company-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.company-link:hover {
    opacity: 0.8;
}

.company-image-box {
    width: 180px;
    height: 140px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-image-box img {
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
}

.company-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #333;
    display: inline-block;
}

.company-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #999;
    margin: 0;
}

/* 關於光譜電機區塊 */
.about-section {
    position: relative;
    background: #f9f9f9;
    padding: 80px 0;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('../images/greenery-product-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
    filter: blur(0px);
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    box-shadow: inset 0 0 100px 50px #f9f9f9;
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #115b88;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #BFDA3C, #8FBA1C);
    border-radius: 2px;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    text-align: left;
    padding: 0 15%;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #115b88;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* 應用領域區塊 */
.applications-section {
    background: #f8f9fa;
    padding: 60px 0 0 0;
    width: 100%;
    margin-top: 0;
    min-height: 600px;
}

.section-title {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 0 20px;
}

.applications-grid {
    display: flex;
    gap: 0;
    width: 100%;
}

.application-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    flex: 1;
    height: clamp(400px, 63vw, 750px);
    transition: flex 0.4s ease;
}

.application-card:hover {
    flex: 1.18;
    z-index: 10;
}

.application-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.application-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    will-change: auto;
}

.application-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 20px 15px;
    transition: background 0.3s ease;
}

.application-card:hover .application-overlay {
    background: linear-gradient(to top, rgba(191, 218, 60, 0.95) 0%, rgba(191, 218, 60, 0.7) 60%, transparent 100%);
}

.application-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    backface-visibility: hidden;
}

.application-card:hover .application-title {
    color: #000;
    text-shadow: none;
    transform: translateY(-5px) translateZ(0);
}

/* ========================================
   響應式設計 - 應用領域區塊
   ======================================== */
/* 1250px 以上使用 flex 佈局，自動並排 5 張圖 */

/* 全球布局區塊 */
.global-section {
    background: #fff;
    padding: 80px 0;
}

/* 國家按鈕容器 */
.country-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 10px 0;
    width: 100%;
    max-width: 100%;
}

/* 國家按鈕樣式 */
.country-btn {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.country-btn:hover {
    background: #BFDA3C;
    border-color: #BFDA3C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 218, 60, 0.3);
}

.country-btn.active {
    background: #BFDA3C;
    border-color: #BFDA3C;
    color: #fff;
    box-shadow: 0 4px 12px rgba(191, 218, 60, 0.3);
}

/* 全球地圖容器 */
.global-map-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.world-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #ddd;
}

.world-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    z-index: 1;
    transform: scale(1.5);
    transform-origin: 60% 30%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 據點標記樣式 */
.location-pin {
    cursor: pointer;
    pointer-events: all;
    opacity: 1;
    transform: scale(1);
}

.location-pin:hover .pin-dot {
    fill: #BFDA3C;
}

.location-pin:hover .pin-label {
    font-weight: 700;
    fill: #333;
}

/* 弧線樣式 */
.arc-line {
    stroke: #000;
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
    opacity: 0.3;
}

/* 航線繪製動畫 */
.arc-line.draw-route {
    animation: drawRoute 2.5s ease-out forwards;
}

@keyframes drawRoute {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    1% {
        opacity: 0.5;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
}

/* 當有國家被 hover 時，所有國家先變淡（除了台灣總部） */
.map-overlay:has(.location-pin:not(.headquarters):hover) .location-pin:not(.headquarters):not(:hover) {
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

/* 台灣總部永遠保持顯示 */
.map-overlay:has(.location-pin:hover) .headquarters {
    opacity: 1;
}

/* 被 hover 的國家保持完整顯示 */
.map-overlay:has(.location-pin:hover) .location-pin:hover {
    opacity: 1;
}

/* Hover 效果 - 線條放大加粗並重新繪製 */
.location-pin:hover .arc-line {
    stroke-width: 3;
    stroke-dasharray: 15 10;
    opacity: 1;
    animation: redrawLine 2s ease-out forwards;
}

/* Hover 效果 - 標籤放大加粗 */
.location-pin:hover .pin-label {
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* Hover 效果 - 台灣總部標籤也放大 */
.map-overlay:has(.location-pin:not(.headquarters):hover) .headquarters .pin-label-hq {
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s ease;
}

/* 點擊按鈕時的地圖效果（模擬 hover） */
.map-overlay:has(.location-pin.map-active) .location-pin:not(.headquarters):not(.map-active) {
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.map-overlay:has(.location-pin.map-active) .headquarters {
    opacity: 1;
}

.location-pin.map-active {
    opacity: 1;
}

.location-pin.map-active .arc-line {
    stroke-width: 3;
    stroke-dasharray: 15 10;
    opacity: 1;
    animation: redrawLine 2s ease-out forwards;
}

/* 運送箭頭（箱子）樣式 */
.shipping-arrow {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 20px;
    text-anchor: middle;
    dominant-baseline: middle;
}

.location-pin:hover .shipping-arrow,
.location-pin.map-active .shipping-arrow {
    opacity: 1;
}

.location-pin.map-active .pin-label {
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.map-overlay:has(.location-pin.map-active:not(.headquarters)) .headquarters .pin-label-hq {
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s ease;
}

@keyframes redrawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* 總部標記點樣式 */
.pin-dot-hq {
    fill: #e74c3c;
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 3px 8px rgba(231, 76, 60, 0.5));
    transition: all 0.3s ease;
}

.pin-ring {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 2;
    opacity: 0.4;
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        r: 16;
        opacity: 0.6;
    }
    100% {
        r: 24;
        opacity: 0;
    }
}

/* 公司沿革簡介 */
.history-intro {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.history-intro p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

/* 移除橫向年份導航條 */
.year-navigation {
    display: none;
}

.year-nav-line {
    display: none;
}

.year-nav-dot {
    display: none;
}

/* ========== 公司沿革時間軸 ========== */

/* 時間軸容器 */
.history-timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    overflow: hidden;
}

/* 中央垂直線 */
.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ddd;
    transform: translateX(-50%);
}

/* 清除浮動 */
.history-timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* 每個歷史項目 */
.history-item {
    position: relative;
    width: 45%;
    margin-bottom: 50px;
}

/* 奇數項目 - 左側 */
.history-item:nth-of-type(odd) {
    float: left;
    clear: left;
    text-align: right;
}

/* 偶數項目 - 右側 */
.history-item:nth-of-type(even) {
    float: right;
    clear: right;
    text-align: left;
}

/* 年份 - 小字,黑色,加粗 */
.history-year {
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    margin: 0 0 10px 0;
}

/* 內容區域 */
.history-content {
    width: 100%;
    position: relative;
}

/* 內容文字 */
.history-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #575757;
    text-align: justify;
    padding: 3px 0 20px 0;
    margin: 0;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
}

/* 左側項目的內容文字靠右 */
.history-item:nth-of-type(odd) .history-content p {
    margin-left: auto;
    width: 70%;
}

/* 右側項目的內容文字靠左 */
.history-item:nth-of-type(even) .history-content p {
    margin-right: auto;
    width: 70%;
}

/* 左側項目連接到中央的線 */
.history-item:nth-of-type(odd)::before {
    content: '';
    position: absolute;
    right: -5%;
    top: 20px;
    width: 5%;
    height: 2px;
    background: #ddd;
}

/* 右側項目連接到中央的線 */
.history-item:nth-of-type(even)::before {
    content: '';
    position: absolute;
    left: -5%;
    top: 20px;
    width: 5%;
    height: 2px;
    background: #ddd;
}

/* 中央圓點 */
.history-item::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 12px;
    height: 12px;
    background: #0090F5;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ddd;
    z-index: 1;
}

/* 左側項目的圓點在右邊 */
.history-item:nth-of-type(odd)::after {
    right: -6.5%;
}

/* 右側項目的圓點在左邊 */
.history-item:nth-of-type(even)::after {
    left: -6.5%;
}

/* 換行間距 */
.history-content p br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 30px;
    }

    .history-item:nth-of-type(odd),
    .history-item:nth-of-type(even) {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
        padding-left: 70px;
    }

    .history-item:nth-of-type(odd) .history-year,
    .history-item:nth-of-type(even) .history-year,
    .history-item:nth-of-type(odd) .history-content,
    .history-item:nth-of-type(even) .history-content {
        float: none !important;
    }

    .history-item:nth-of-type(odd) .history-content p,
    .history-item:nth-of-type(even) .history-content p {
        float: none !important;
        width: 100% !important;
    }
}

/* 移除分隔線 */
.history-divider {
    display: none;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }

    .history-item {
        flex-direction: column;
    }

    .history-year {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .history-year::after {
        left: 9px;
        right: auto;
    }

    .history-content {
        padding-left: 50px;
    }
}

.pin-label-hq {
    fill: #e74c3c;
    font-size: 14px;
    font-weight: 700;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    text-anchor: middle;
    pointer-events: none;
}

/* 一般據點標記樣式 */
.pin-dot {
    fill: #BFDA3C;
    stroke: #fff;
    stroke-width: 2;
    filter: drop-shadow(0 2px 6px rgba(191, 218, 60, 0.4));
    transition: all 0.3s ease;
}

/* 標籤文字樣式 */
.pin-label {
    fill: #333;
    font-size: 13px;
    font-weight: 600;
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif;
    text-anchor: middle;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* ==========================================
   手機版 & 平板樣式 (寬度低於 1250px)
   ========================================== */
@media (max-width: 1249px) {
    /* 桌面版導航選單改為手機版全螢幕選單 - 不要隱藏 */

    /* 顯示漢堡選單按鈕 */
    .navbar-toggle {
        display: flex !important;
        position: fixed;
        right: 70px;
        top: 20px;
        z-index: 999999;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .navbar-toggle span {
        width: 25px;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Logo 保持原始大小，不調整 */
}

/* 至頂按鈕 - 右下角 */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* 手機版調整 */
@media (max-width: 1249px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }
}

/* ==========================================
   全域字體統一設定 - 確保所有頁面字體一致
   ========================================== */
body, body *, html, html * {
    font-family: "微軟正黑體", Arial, "Microsoft JhengHei", sans-serif !important;
}

/* ==========================================
   Banner 往上移動 - 因為刪除了下層導航欄
   ========================================== */
.page-banner {
    margin-top: -100px !important;
}

/* ==========================================
   手機版漢堡選單
   ========================================== */
/* 漢堡按鈕 - 預設隱藏 */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    display: block;
    transition: opacity 0.2s ease;
}

/* 手機版全螢幕選單 - 現代網格風格 */
.mobile-fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 999999999;
    overflow: hidden;
    padding: 0;
}

.mobile-fullscreen-menu.active {
    display: flex;
    flex-direction: column;
}

/* 頂部區域：語言切換 + 關閉按鈕 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #333 0%, #333 100%);
    flex-shrink: 0;
}

.mobile-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn img {
    filter: brightness(0) invert(1);
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 語言切換 */
.mobile-menu-language {
    display: flex;
    gap: 8px;
    padding: 0;
    border: none;
    margin: 0;
}

.mobile-menu-language button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mobile-menu-language button:hover {
    background: rgba(255,255,255,0.3);
}

/* 語言按鈕啟用狀態 */
body[data-lang="zh"] .mobile-menu-language .lang-btn-zh,
body[data-lang="en"] .mobile-menu-language .lang-btn-en,
body[data-lang="ja"] .mobile-menu-language .lang-btn-ja {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 導航內容區：兩欄網格 */
.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 網格項目 */
.mobile-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    min-height: 100px;
    border: 2px solid transparent;
}

.mobile-grid-item:hover,
.mobile-grid-item:active {
    background: #fff;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 137, 163, 0.2);
}

.mobile-grid-item.full-width {
    grid-column: span 2;
}

/* 網格項目圖標 */
.grid-item-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #333;
}

.grid-item-icon.green {
    color: #333;
}

.grid-item-icon svg {
    width: 100%;
    height: 100%;
}

/* 網格項目文字 */
.mobile-grid-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* 直接連結樣式 */
.mobile-grid-item.direct-link {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08) 0%, rgba(13, 71, 161, 0.08) 100%);
}

.mobile-grid-item.direct-link:hover {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

/* 子選單面板 */
.mobile-submenu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.mobile-submenu-panel.active {
    transform: translateX(0);
}

/* 子選單頂部 */
.submenu-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #333 0%, #333 100%);
    gap: 15px;
}

.submenu-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submenu-back-btn svg {
    width: 18px;
    height: 18px;
}

.submenu-back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.submenu-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 子選單內容 */
.submenu-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.submenu-content a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 40px;
}

.submenu-content a::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333 0%, #333 100%);
}

.submenu-content a:hover {
    background: #f8f9fa;
    color: #333;
    padding-left: 45px;
}

.submenu-content a:last-child {
    border-bottom: none;
}

/* 平板和手機版響應式 */
/* 1250px以下 - 平板和手機共用設定 */
@media (max-width: 1250px) {
    /* 全域設定 - 防止內容溢出 */
    * {
        box-sizing: border-box;
    }

    /* 防止水平滾動 */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* 顯示漢堡選單 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 隱藏桌面版導航 */
    .navbar-menu {
        display: none !important;
    }

    /* 容器設定 - 不使用zoom，讓內容自然縮放 */
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* 導航欄和Logo不使用 zoom，保持原始大小 */
    .top-navbar,
    .navbar,
    .navbar-brand,
    .top-navbar .container,
    .navbar .container {
        zoom: 1 !important;
    }

    /* 平板模式下對整個 image-section 使用 zoom，像應用領域那樣 */
    .image-section {
        zoom: 0.8;
        transform-origin: top center;
    }

    /* 確保公司卡片保持左右排列 */
    .company-cards-row {
        flex-direction: row !important;
    }

    /* 平板模式下股票區塊文字不換行，不縮小字體 */
    .stock-overlay-info {
        left: 5px !important;
        right: 5px !important;
    }

    .stock-overlay-title,
    .stock-overlay-code,
    .stock-overlay-company {
        white-space: nowrap !important;
        overflow: visible !important;
    }

    /* 所有section的padding調整 */
    section {
        overflow-x: hidden;
    }

    /* 讓圖片等比例縮小，跟著容器寬度 */
    .about-image img {
        width: 100%;
        height: auto;
    }

    /* 影片標語保持白色 */
    .video-slogan,
    .video-slogan *,
    .slogan-title,
    .slogan-subtitle {
        color: white !important;
    }

    /* 平板模式隱藏往下箭頭 */
    .scroll-down-arrow {
        display: none;
    }

    /* 股票資訊保持原色 */
    .stock-overlay,
    .stock-overlay * {
        color: white !important;
    }

    /* 應用領域標題保持白色 */
    .application-title,
    .application-overlay,
    .application-overlay * {
        color: white !important;
    }

    .application-card:hover .application-title {
        color: #000 !important;
    }

    /* 應用領域使用 clamp 自動調整高度,不需要 zoom */


    /* 關於光譜使用 zoom 縮放 */
    .about-section {
        zoom: 0.8;
        transform-origin: top center;
    }
}

/* 平板專用樣式 (768px ~ 1024px) - 額外調整 */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 平板版不需要額外zoom，讓內容自然適應寬度 */

    /* 圖片通用設定 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* 表格響應式 */
    table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }

    /* 文字內容不換行處理 */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 關於光譜區塊 */
    .about-content {
        flex-direction: column;
        max-width: 100%;
    }

    .about-image, .about-text {
        max-width: 100%;
        padding: 0 10px;
    }

    /* 應用領域卡片 - 使用flexbox實現點擊擠壓效果 */
    .applications-grid {
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .application-card {
        flex: 1;
        overflow: hidden;
        margin: 0;
        padding: 0;
        transition: flex 0.4s ease;
        cursor: pointer;
        height: clamp(350px, 50vw, 500px);
    }

    /* 點擊時變寬，高度不變 */
    .application-card:hover,
    .application-card:active {
        flex: 2;
    }

    .application-image-wrapper {
        margin: 0;
        height: 100%;
        width: 100%;
        position: relative;
    }

    .application-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 影片背景 */
    .video-background {
        max-width: 100%;
        overflow: hidden;
    }

    .video-background video,
    .video-background .hero-image {
        max-width: 100%;
        object-fit: cover;
    }

    /* 影片標語調整 */
    .video-slogan {
        padding: 0 20px;
    }

    /* 字體大小使用 clamp 自動縮放,不需要固定設定 */

    /* 公司卡片行 */
    .company-cards-row {
        flex-direction: column;
        max-width: 100%;
    }

    /* 標題區塊 */
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    /* 資訊區塊 */
    .info-block {
        padding: 30px 15px !important;
        max-width: 100%;
        overflow: hidden;
    }

    /* Banner區塊 */
    .page-banner {
        min-height: 250px !important;
        padding: 0 15px;
    }

    .page-banner h1 {
        font-size: 2rem !important;
    }

    /* 確保容器有相對定位 */
    .top-navbar .container {
        position: relative;
        max-width: 100%;
    }

    /* Logo區域保持原始大小 */

    /* 顯示漢堡按鈕 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 隱藏桌面版導航選單 */
    .navbar-menu {
        display: none !important;
    }

    /* 禁用桌面版的 mega menu 效果 */
    body.mega-menu-active > *,
    body.mega-menu-active,
    body * {
        filter: none !important;
    }

    .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    /* 確保圖片不模糊 */
    img {
        filter: none !important;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .application-image {
        filter: none !important;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* 已改用 .mobile-fullscreen-menu，此段舊程式碼不再使用 */
    /* .navbar-menu {
        position: fixed !important;
        top: 0 !important;
        left: 100% !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: none !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.3s ease !important;
        z-index: 99999999 !important;
        display: flex !important;
        margin: 0 !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3) !important;
    } */

    /* 打開選單 */
    .navbar-menu.active {
        left: 0 !important;
        transform: translateX(0) !important;
    }

    /* 移除下拉箭頭 */
    .dropdown-arrow {
        display: none;
    }

    /* 主選單項目 */
    .navbar-menu > li {
        width: 100% !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    .navbar-menu > li > .nav-link {
        padding: 15px 20px !important;
        color: #000 !important;
        display: block !important;
        text-align: left !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid #eee !important;
        background: transparent !important;
    }

    .navbar-menu > li > .nav-link .nav-text-zh,
    .navbar-menu > li > .nav-link .nav-text-en,
    .navbar-menu > li > .nav-link .nav-text-ja {
        color: #000 !important;
        font-weight: 700 !important;
        display: block !important;
    }

    /* 在手機版，帶有dropdown的主選單項目不是連結 */
    .navbar-menu .dropdown > .nav-link {
        cursor: default !important;
        pointer-events: none !important;
    }

    /* 當選單打開時，隱藏 Logo 和綠色導航欄 - 使用JavaScript控制 */

    /* 顯示所有下拉選單和子選單 */
    .navbar-menu .dropdown-menu {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .navbar-menu .dropdown-menu-container {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .navbar-menu .mega-menu-content {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .navbar-menu .mega-menu-links {
        width: 100% !important;
        padding: 0 !important;
        display: block !important;
    }

    .navbar-menu .mega-menu-links li {
        border-bottom: 1px solid #f0f0f0 !important;
        display: block !important;
    }

    .navbar-menu .mega-menu-links a {
        padding: 12px 20px 12px 40px !important;
        color: #666 !important;
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        display: block !important;
        white-space: normal !important;
    }

    /* 隱藏圖片裝飾 */
    .navbar-menu .mega-menu-image-wrapper {
        display: none !important;
    }

    /* 語言選擇器 */
    .navbar-menu .language-selector {
        margin-top: auto;
        padding: 20px;
        border-top: 2px solid #eee;
        width: 100%;
        justify-content: center;
        display: flex !important;
    }

    .language-selector .language-menu {
        position: static;
        display: flex;
        gap: 15px;
        padding: 10px 0 0 0;
        background: transparent;
        box-shadow: none;
    }

    /* 遮罩層 */
    .mobile-menu-toggle.active ~ .menu-overlay {
        display: block;
    }
}

/* 遮罩層 - 不需要顯示 */
.menu-overlay {
    display: none !important;
}


/* 867px 以下慢慢分級縮小 */
@media (max-width: 867px) {
    .image-section {
        zoom: 0.78 !important;
    }
}

@media (max-width: 850px) {
    .image-section {
        zoom: 0.76 !important;
    }
}

@media (max-width: 830px) {
    .image-section {
        zoom: 0.74 !important;
    }
}

@media (max-width: 810px) {
    .image-section {
        zoom: 0.72 !important;
    }
}

@media (max-width: 790px) {
    .image-section {
        zoom: 0.70 !important;
    }
}

@media (max-width: 770px) {
    .image-section {
        zoom: 0.68 !important;
    }
}

@media (max-width: 750px) {
    .image-section {
        zoom: 0.66 !important;
    }
}

@media (max-width: 730px) {
    .image-section {
        zoom: 0.64 !important;
    }
}

@media (max-width: 710px) {
    .image-section {
        zoom: 0.62 !important;
    }
}

@media (max-width: 690px) {
    .image-section {
        zoom: 0.60 !important;
    }
}

@media (max-width: 670px) {
    .image-section {
        zoom: 0.58 !important;
    }
}

@media (max-width: 650px) {
    .image-section {
        zoom: 0.56 !important;
    }
}

@media (max-width: 630px) {
    .image-section {
        zoom: 0.54 !important;
    }
}


/* 1000px 以下隱藏 footer 的連結欄位,但保留聯絡資訊 */
@media (max-width: 1000px) {
    .footer-column:not(:last-child) {
        display: none !important;
    }

    /* 聯絡資訊置中,改用 flex */
    .footer-columns {
        display: flex !important;
        justify-content: center !important;
    }

    /* 地址不換行 */
    .footer-address {
        white-space: nowrap !important;
    }
}


/* 777px 以下關於光譜圖片保持在上方 */
@media (max-width: 777px) {
    .about-content {
        flex-direction: column !important;
    }

    .about-image {
        order: -1 !important;
        max-width: 100% !important;
        margin-bottom: 30px;
    }

    .about-text {
        max-width: 100% !important;
    }

    .about-image img {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}


/* 613px 以下股票與關係企業改為上下排列 */
@media (max-width: 613px) {
    /* 改為上下排列,左右保留 20px gap */
    .image-section {
        zoom: 0.85 !important;
    }

    .main-content-wrapper {
        flex-direction: column !important;
        align-items: center;
        padding: 20px !important;
        gap: 20px !important;
    }

    .image-container-left,
    .company-cards {
        width: calc(100% - 40px) !important;
        max-width: 450px !important;
        margin: 0 20px !important;
    }
}

/* 482px 以下繼續慢慢縮小 */
@media (max-width: 590px) {
    .image-section {
        zoom: 0.82 !important;
    }
}

@media (max-width: 570px) {
    .image-section {
        zoom: 0.79 !important;
    }
}

@media (max-width: 550px) {
    .image-section {
        zoom: 0.76 !important;
    }
}

@media (max-width: 530px) {
    .image-section {
        zoom: 0.73 !important;
    }
}

@media (max-width: 510px) {
    .image-section {
        zoom: 0.70 !important;
    }
}

@media (max-width: 490px) {
    .image-section {
        zoom: 0.67 !important;
    }
}

@media (max-width: 482px) {
    .image-section {
        zoom: 0.65 !important;
    }
}

/* Banner 標題響應式設計 - 所有頁面統一 */
@media (max-width: 1200px) {
    .banner-main-title {
        font-size: 3.8rem;
    }
}

@media (max-width: 1000px) {
    .banner-main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .banner-main-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 800px) {
    .banner-main-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .banner-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .banner-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .banner-main-title {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }
}
