* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', Arial, sans-serif;
    color: white;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg1: rgb(13, 16, 37);
    --color-bg2: rgb(32, 17, 85);
    --color1: 18, 113, 255;
    --color2: 221, 74, 255;
    --color3: 100, 220, 255;
    --color4: 200, 135, 190;
    --color-interactive: 140, 100, 255;
    --circle-size: 80%;
    --blending: hard-light;
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    z-index: -1;
}

.gradient-bg svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
}

.g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.7) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 0.8;
}

.g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.7) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 0.7;
}

.g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.7) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 0.8;
}

.g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.7) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

/* ===================
   多語系樣式
   =================== */

.language-switcher {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 1rem;
    }
    
    .lang-btn {
        height: 40px;
        width: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .lang-btn:hover,
    .lang-btn.active {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }
    
    .lang-btn.active {
        background:  rgba(255, 255, 255, 0.4);

    }

/* 英文字體優化 */
    .en .section-title,
    .en .detailed-title {
        font-weight: 700;
    }
    
    .en .timeline-stage-title {
        font-weight: 600;
    }
    
    /* 響應式語系切換 */
    @media (max-width: 768px) {
        .language-switcher {
            margin-left: 0;
            margin-top: 1rem;
            justify-content: center;
            order: 3;
        }
        
        .nav-menu {
            flex-direction: column;
            align-items: center;
        }
        
        .lang-btn {
            padding: 8px 16px;
            font-size: 1rem;
        }
    }

/* ===================
   導航欄樣式
   =================== */
.navigation {
    position: fixed ;
    top: 0 ;
    left: 0 ;
    right: 0 ;
    z-index: 1000 ;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    transform: translateY(0);
    backdrop-filter: blur(10px);
}

/* 滾動後的背景效果 */
.navigation.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideDown 0.8s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.nav-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

/* 導航選單 */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    animation: fadeInScale 0.8s ease 0.2s both;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 129, 255, 0.2);
}

/* 移動端選單按鈕 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 44px; /* 最小觸摸區域 */
    min-height: 44px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    width: 24px;
    height: 3px;
    background: #ffffff;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* 漢堡選單動畫 - 修正變形參數 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* 觸摸反饋效果 */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 160px 0 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 流動曲線canvas樣式 */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: left;
    justify-content: center;
    margin-bottom: 60px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.25rem;
    font-weight: bold;
}

.company-name {
    font-size: 1rem;
    font-weight: normal;
}

.main-title {
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease 0.3s both, float 6s ease-in-out infinite;
}

.subtitle {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease 0.5s both, float 6s ease-in-out infinite 1s;
}

.company-footer {
    font-size: 3rem;
    animation: fadeInScale 1s ease 0.7s both, float 8s ease-in-out infinite 2s;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    border-top: rgba(255, 255, 255, 0.5) 1px solid;
}

/* 漂浮動畫 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 滾動進入動畫 */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 交錯動畫延遲 */
.scroll-delay-1 { transition-delay: 0.1s; }
.scroll-delay-2 { transition-delay: 0.2s; }
.scroll-delay-3 { transition-delay: 0.3s; }
.scroll-delay-4 { transition-delay: 0.4s; }
.scroll-delay-5 { transition-delay: 0.5s; }
.scroll-delay-6 { transition-delay: 0.6s; }
.scroll-delay-7 { transition-delay: 0.7s; }
.scroll-delay-8 { transition-delay: 0.8s; }
.scroll-delay-9 { transition-delay: 0.9s; }

/* ===================
   簡約版快速導向按鍵樣式
   =================== */
.quick-nav {
    position: fixed !important;
    right: 30px !important;
    top: 50vh !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}

.quick-nav-item:hover {
    transform: translateX(-8px);
}

.quick-nav-item.active .quick-nav-dot {
    background: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.quick-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.quick-nav-item:hover .quick-nav-dot {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.quick-nav-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    opacity: 1;
    transform: translateX(0);
}

.quick-nav-item:hover .quick-nav-label,
.quick-nav-item.active .quick-nav-label {
    color: #ffffff;
    opacity: 1;
    transform: translateX(0);
}

/* ===================
   修正後的回到頂部按鈕樣式
   =================== */
.back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(226, 129, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(226, 129, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background-image: linear-gradient(90deg, #1CA8FF,rgb(169, 116, 255), #FF3283);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
}

 /* 新的時間線樣式 */
.timeline {
    margin: 60px 0;
    padding-left: 120px; /* 往右推整個時間線 */
}

.timeline-section {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.timeline-left {
    flex: 0 0 340px;
    text-align: center;
    padding-right: 40px;
    position: relative;
}

.timeline-stage-image {
    font-size: 7rem;
    font-weight: bold;
    opacity: 0.2;
    filter: blur(5px);
    position: absolute;
    top: 100%;
    left: 45%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
    pointer-events: none;
}

.timeline-stage-title {
    font-size: 2.4rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.timeline-center {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 500px;
}

.timeline-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.3), #ffffff);
    position: absolute;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(226, 129, 255, 0.3);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(226, 129, 255, 0.5);
}

.timeline-right {
    flex: 1;
    padding-left: 40px;
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    position: relative;
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 30px;
}

.timeline-content {
    flex: 1;
    font-size: 1.2rem;
    padding-left: 25px;
    line-height: 1.6;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.solution-card {

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-title {
    font-size: 1.25rem;
    font-weight: bold;

}

.solution-subtitle {
    font-size: 1.25rem;
    font-weight: bold;

}

/* 英文版隱藏中文解決方案標題 */
.en .solution-title {
    display: none !important;
}

/* 英文版時讓英文副標題更突出 */
.en .solution-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.detailed-section {
    padding: 80px;
    backdrop-filter: blur(10px);
}

.detailed-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: left;
}

.detailed-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-align: left;
}

/* 圖表按鈕樣式 */
.diagram-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding: 0 20px;
}

.diagram-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 140px;
    justify-content: center;
}

.diagram-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(28, 168, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 168, 255, 0.3);
}

.diagram-btn:active {
    transform: translateY(0);
}

.diagram-btn i {
    font-size: 1.1rem;
}

.detail-btn:hover {
    border-color: rgba(28, 168, 255, 0.6);
    box-shadow: 0 8px 25px rgba(28, 168, 255, 0.4);
}

.video-btn:hover {
    border-color: rgba(255, 50, 131, 0.6);
    box-shadow: 0 8px 25px rgba(255, 50, 131, 0.4);
}

/* 模態框樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(13, 16, 37, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: auto; /* 改為auto */
    min-width: 800px; /* 設定最小寬度 */
    max-width: 95vw; /* 最大不超過螢幕95% */
    height: 90vh; /* 高度保持固定 */
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-content.video-modal {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 30px; /* 減少padding */
    color: white;
    line-height: 1.6;
    flex: 1;
    overflow: hidden; /* 防止溢出 */
    display: flex;
    flex-direction: column;
}

.modal-body h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1CA8FF;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    opacity: 0.9;
}

/* 影片容器 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* 動畫效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .diagram-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }
    
    .diagram-btn {
        min-width: auto;
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95vw;
        height: 95vh;
        min-width: auto;
    }
    
    .modal-header {
        padding: 20px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-close {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .diagram-buttons {
        gap: 10px;
    }
    
    .diagram-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* 高對比度支援 */
@media (prefers-contrast: high) {
    .diagram-btn {
        border: 2px solid rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.8);
    }
    
    .modal-content {
        border: 2px solid rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.95);
    }
}

/* 減少動畫偏好支援 */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-content,
    .diagram-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Subscription Section Enhanced */
.subscription-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 4x3 Grid layout */
.unified-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 180px);
    gap: 24px;
    margin-bottom: 50px;
    grid-template-areas: 
        "modular-hero modular-hero custom-hero custom-hero"
        "modular-hero modular-hero services services"
        "cta cta services services";
}

.bento-card {
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(28, 168, 255);
}

/* Modular Hero Card - 2x2 */
.modular-hero-card {
    grid-area: modular-hero;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.modular-hero-card::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(28, 168, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-badge {
    background: linear-gradient(135deg, #1CA8FF, #FF3283);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: inline-block;
    align-self: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1CA8FF, #FF3283);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.hero-number {
    font-size: 5.5rem;
    font-weight: 900;
    color: #00aeff;
    line-height: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-unit {
    font-size: 2rem;
    margin-left: 8px;
    font-weight: 700;
    opacity: 0.8;
}

.hero-label {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.hero-highlights {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.highlight-item i {
    font-size: 1.2rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #1CA8FF, #FF3283);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-item span {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Custom Hero Card - 2x1 */
.custom-hero-card {
    grid-area: custom-hero;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.custom-hero-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.custom-hero-label {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.custom-hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 15px;
}

.custom-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.custom-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.custom-feature-item i {
    font-size: 1rem;
    color: #00aeff;
}

.custom-feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Services Card - 2x1 */
.services-card {
    grid-area: services;
    padding: 24px;
}

.services-header {
    margin-bottom: 20px;
}

.services-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.services-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: center;
}

.services-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1CA8FF, #FF3283);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.service-desc {
    font-size: 1rem;
    opacity: 0.8;
}

/* CTA Card - 2x1 */
.cta-card {
    grid-area: cta;
    display: flex;
    align-items: center;
    gap: 120px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
}

.cta-left {
    flex: 1;
}

.cta-right {
    flex: 0 0 200px;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer
}

.cta-button.primary {
    background: linear-gradient(135deg, #1CA8FF, #FF3283);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 129, 255, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 129, 255, 0.3);
    border-color: rgba(28, 168, 255, 0.5);
}

.feature-item.active {
    border-color: #1CA8FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(28, 168, 255, 0.4);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(28, 168, 255, 0.3), rgba(169, 116, 255, 0.3));
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #ffffff;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(28, 168, 255, 0.5), rgba(169, 116, 255, 0.5));
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-content p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

.system-diagram {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-diagram::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(28, 168, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(169, 116, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 50, 131, 0.1) 0%, transparent 50%);
    animation: geometricFlow 20s ease-in-out infinite;
    z-index: 1;
}


@keyframes geometricFlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    33% {
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        transform: rotate(240deg) scale(0.9);
    }
}

.system-diagram h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-weight: 600;
}

.system-diagram-container {
    position: relative;
    z-index: 2;
}

.system-diagram-img {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    cursor: pointer; /* 點擊指示 */
    background: rgba(255, 255, 255, 0.05);
}

.system-diagram-img:hover {
    transform: scale(1.02); /* 新增：懸停縮放 */
    box-shadow: 0 10px 30px rgba(28, 168, 255, 0.3); /* 新增：懸停陰影 */
}

.system-diagram-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 填滿容器，保持比例 */
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* 添加放大指示圖標 */
.system-diagram-img::after {
    content: '\f065'; /* FontAwesome expand icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.system-diagram-img:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.system-diagram-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 30% 40%, rgba(28, 168, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(169, 116, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.system-diagram-img:hover::before {
    opacity: 1;
}

.system-diagram-img p {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 影片支援樣式 */
.system-diagram-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.system-diagram-img video:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(28, 168, 255, 0.3);
}

/* 影片放大模態框樣式 */
.video-modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 10px;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-modal-content video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* 載入狀態樣式 */
.system-diagram-img .loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .system-diagram-img video {
        height: 250px;
    }
    
    .video-modal-content {
        width: 95vw;
        height: 95vh;
    }
    
    .video-modal-content video {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .system-diagram-img video {
        height: 200px;
    }
}

/* 影片控制項樣式 */
.system-diagram-img video::-webkit-media-controls {
    display: none !important;
}

.system-diagram-img video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* 如果需要顯示控制項，可以用這個類 */
.system-diagram-img.show-controls video::-webkit-media-controls {
    display: block !important;
}

.system-diagram-img.show-controls video::-webkit-media-controls-enclosure {
    display: block !important;
}

.system-description {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    transition: all 0.6s ease;
}

/* 淡入淡出過渡效果 */
.fade-transition {
    opacity: 0;
    transform: translateY(10px);
}

.fade-transition.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes decorationPulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0.6;
    }
}

.contact-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 80px 0;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-description {
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.9;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.office-card {
    text-align: left;
}

.office-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.office-address {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.office-phone {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: left;
    gap: 30px;
    margin-bottom: 40px;
}

.social-item {
    text-align: center;
}

.qr-code {
    width: 136px;
    height: 136px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 0.875rem;
}

.social-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer {
    text-align: left;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



/* 滾動指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInScale 1.5s ease 1s both;
}

.scroll-indicator::before {
    content: '';
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #00bcd4);
    display: block;
    margin: 0 auto 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===================
   響應式設計媒體查詢補充
   =================== */

/* 大屏幕 (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .main-title, .subtitle {
        font-size: 5.5rem;
    }
    
    .company-footer {
        font-size: 3.2rem;
    }
}

/* 桌面端 (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 20px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .timeline {
        padding-left: 80px;
    }
    
    .timeline-left {
        flex: 0 0 280px;
    }

    /* 快速導向桌面優化 - 保持原樣式，只隱藏標籤 */
    .quick-nav {
        right: 15px;
        opacity: 1;
    }
    
    .quick-nav-label {
        display: none;
    }
    
    .quick-nav-dot {
        width: 10px;
        height: 10px;
        margin-right: 0;
    }
    
    .quick-nav-item {
        padding: 8px 0;
        justify-content: center;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 20px;
    }
    
    .main-title, .subtitle {
        font-size: 4.2rem;
    }
    
    .company-footer {
        font-size: 2.6rem;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .system-diagram {
        order: -1;
        margin-bottom: 20px;
    }
    
    .unified-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 160px);
        grid-template-areas: 
            "modular-hero modular-hero"
            "custom-hero services"
            "cta services"
            "cta services";
    }
    
    .office-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-left {
        flex: 0 0 240px;
    }
    
    .timeline-stage-title {
        font-size: 2rem;
    }

    /* 快速導向中等屏幕優化 - 保持原樣式，只隱藏標籤 */
    .quick-nav {
        right: 15px;
        opacity: 1;
    }
    
    .quick-nav-label {
        display: none;
    }
    
    .quick-nav-dot {
        width: 10px;
        height: 10px;
        margin-right: 0;
    }
    
    .quick-nav-item {
        padding: 8px 0;
        justify-content: center;
    }
}

/* 平板端 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }
    
    /* 導航欄響應式 */
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13, 16, 37, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 主要內容響應式 - 調整字體落差 */
    .main-title, .subtitle {
        font-size: 3.8rem;
    }
    
    .company-footer {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .solution-card {
        padding: 15px;
    }
    
    .solution-title, .solution-subtitle {
        font-size: 1rem;
    }
    
    /* 時間線響應式 */
    .timeline {
        padding-left: 0;
    }
    
    .timeline-section {
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .timeline-left {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        padding-right: 0;
    }
    
    .timeline-center {
        display: none;
    }
    
    .timeline-right {
        width: 100%;
        padding-left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding-left: 0;
        font-size: 1.1rem;
    }
    
    /* 詳細區塊響應式 */
    .detailed-section {
        padding: 60px 0;
    }
    
    .detailed-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .detailed-description {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .system-diagram {
        padding: 40px 20px;
    }
    
    .system-diagram-img {
        height: 300px;
    }
    
    /* 訂閱方案響應式 */
    .unified-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        grid-template-areas: 
            "modular-hero"
            "custom-hero"
            "services"
            "cta";
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .modular-hero-card {
        min-height: 300px;
    }
    
    .custom-hero-card {
        min-height: 200px;
    }
    
    .services-card {
        min-height: 250px;
    }
    
    .cta-card {
        min-height: 200px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .services-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .custom-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* 聯絡區塊響應式 */
    .office-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    /* 快速導向平板優化 - 保持原樣式，只隱藏標籤 */
    .quick-nav {
        right: 15px;
        opacity: 1;
    }
    
    .quick-nav-label {
        display: none;
    }
    
    .quick-nav-dot {
        width: 10px;
        height: 10px;
        margin-right: 0;
    }
    
    .quick-nav-item {
        padding: 8px 0;
        justify-content: center;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}

/* 大手機/小平板 (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 10px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-logo-text {
        font-size: 0.9rem;
    }
    
    .nav-logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .main-title, .subtitle {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }
    
    .company-footer {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .solution-card {
        padding: 20px;
        text-align: center;
    }
    
    .detailed-section {
        padding: 50px 0;
    }
    
    .detailed-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .detailed-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .feature-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .system-diagram {
        padding: 30px 15px;
    }
    
    .system-diagram-img {
        height: 250px;
    }
    
    .bento-card {
        padding: 20px;
    }
    
    .hero-number {
        font-size: 4rem;
    }
    
    .hero-label {
        font-size: 1.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .office-card {
        text-align: center;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .timeline-stage-title {
        font-size: 1.8rem;
    }
    
    .timeline-year {
        font-size: 1.3rem;
    }
    
    .timeline-content {
        font-size: 1rem;
    }
    
    /* 手機端quick-nav保持原樣式，只隱藏標籤 */
    .quick-nav {
        right: 10px;
        opacity: 1;
    }
    
    .quick-nav-label {
        display: none !important;
    }
    
    .quick-nav-dot {
        width: 8px;
        height: 8px;
        margin-right: 0;
    }
    
    .quick-nav-item {
        padding: 6px 0;
        justify-content: center;
        min-width: auto;
    }
}

/* 小手機 (最大 575px) */
@media (max-width: 575px) {
    .container {
        padding: 8px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 65px;
    }
    
    .nav-logo-text {
        font-size: 0.8rem;
    }
    
    .nav-logo-text p {
        font-size: 0.6rem !important;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding-top: 30px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .main-title, .subtitle {
        font-size: 2.6rem;
        margin-bottom: 15px;
    }
    
    .company-footer {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .detailed-section {
        padding: 40px 0;
    }
    
    .detailed-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .detailed-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .feature-item {
        padding: 12px;
        gap: 8px;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .feature-content p {
        font-size: 0.9rem;
    }
    
    .system-diagram {
        padding: 20px 10px;
    }
    
    .system-diagram-img {
        height: 200px;
    }
    
    .bento-card {
        padding: 16px;
    }
    
    .hero-number {
        font-size: 3rem;
    }
    
    .hero-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .services-title {
        font-size: 1.3rem;
    }
    
    .services-subtitle {
        font-size: 0.9rem;
    }
    
    .service-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .service-name {
        font-size: 1.1rem;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }
    
    .cta-title {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .cta-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .office-card {
        padding: 15px;
    }
    
    .office-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .office-address, .office-phone {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .qr-code {
        width: 80px;
        height: 80px;
    }
    
    .social-label {
        font-size: 0.8rem;
    }
    
    .quick-nav {
        right: 8px;
        transform: translateY(-50%);
    }
    
    .back-to-top {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-stage-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .timeline-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .timeline-year {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .timeline-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* 極小屏幕 (最大 375px) */
@media (max-width: 375px) {
    .main-title, .subtitle {
        font-size: 2.2rem;
    }
    
    .company-footer {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .detailed-title {
        font-size: 1.4rem;
    }
    
    .hero-number {
        font-size: 2.8rem;
    }
    
    .hero-label {
        font-size: 1rem;
    }
    
    .system-diagram-img {
        height: 180px;
    }
    
    .timeline-stage-title {
        font-size: 1.3rem;
    }
    
    .nav-logo-text {
        font-size: 0.7rem;
    }
    
    .nav-logo-text p {
        font-size: 0.5rem !important;
    }
}

/* 橫屏模式優化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .main-title, .subtitle {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .company-footer {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        padding-top: 20px;
    }
    
    .nav-menu a {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .detailed-section {
        padding: 30px 0;
    }
}

/* 打印樣式 */
@media print {
    .navigation,
    .quick-nav,
    .back-to-top,
    .gradient-bg {
        display: none !important;
    }
    
    .content-wrapper {
        background: white !important;
        color: black !important;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .detailed-section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* 高對比度支援 */
@media (prefers-contrast: high) {
    .nav-menu a,
    .feature-item,
    .solution-card,
    .bento-card {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .gradient-text {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* 減少動畫偏好支援 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-bg {
        animation: none !important;
    }
    
    .hero-canvas {
        display: none !important;
    }
}

/* ===================
   移動端額外CSS樣式
   請將此代碼添加到 common.css 文件末尾
   =================== */

/* iOS Safari視窗高度修復 */
:root {
    --vh: 1vh;
}

.mobile-device {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

/* 觸摸狀態樣式 */
.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.8 !important;
    transition: all 0.1s ease !important;
}

/* 移動端菜單相關樣式 */
.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.nav-menu.show {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 移動端快速導向優化 - 保持原樣式 */
.mobile-device .quick-nav-label {
    display: none !important;
}

.mobile-device .quick-nav-item {
    justify-content: center;
}

.mobile-device .quick-nav-dot {
    margin-right: 0 !important;
}

/* 移動端按鈕優化 */
.mobile-device .cta-button,
.mobile-device .back-to-top,
.mobile-device .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
}

/* 移動端表單優化 */
.mobile-device input,
.mobile-device textarea,
.mobile-device select {
    font-size: 16px !important; /* 防止iOS放大 */
    border-radius: 0; /* 移除iOS預設圓角 */
}

/* 移動端圖片優化 */
.mobile-device img {
    height: auto;
    max-width: 100%;
}

.mobile-device .system-diagram-img img {
    object-fit: contain;
}

/* 移動端動畫性能優化 - 防止閃爍 */
.mobile-device * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-device .gradient-bg {
    will-change: auto;
}

/* 修正弧線動畫閃爍問題 */
.mobile-device .hero-canvas {
    opacity: 0.4 !important;
    transition: opacity 0.5s ease;
}

.mobile-device .g1,
.mobile-device .g2,
.mobile-device .g3,
.mobile-device .g4 {
    animation-duration: 90s !important; /* 延長動畫時間以減少CPU使用 */
    will-change: transform;
}

/* 在低性能設備上進一步優化 */
@media (max-width: 576px) {
    .mobile-device .hero-canvas {
        opacity: 0.2 !important;
    }
    
    .mobile-device .g1,
    .mobile-device .g2,
    .mobile-device .g3,
    .mobile-device .g4 {
        animation-duration: 120s !important;
    }
}

/* 防止Canvas重繪造成的閃爍 */
.mobile-device canvas {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 移動端文字選擇優化 */
.mobile-device .nav-menu a,
.mobile-device .quick-nav-item,
.mobile-device .cta-button {
    -webkit-user-select: none;
    user-select: none;
}

/* 移動端滾動條隱藏 */
.mobile-device::-webkit-scrollbar {
    display: none;
}

.mobile-device {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 移動端focus狀態優化 */
.mobile-device input:focus,
.mobile-device textarea:focus,
.mobile-device select:focus {
    outline: 2px solid #1CA8FF;
    outline-offset: 2px;
}

/* 移動端懸停效果禁用 */
@media (hover: none) and (pointer: coarse) {
    .feature-item:hover,
    .solution-card:hover,
    .bento-card:hover,
    .nav-menu a:hover {
        transform: none !important;
        background: initial !important;
        box-shadow: initial !important;
    }
    
    /* 只保留active狀態 */
    .feature-item.active,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: #1CA8FF !important;
    }
}

/* 移動端載入狀態 */
.mobile-device .loading {
    pointer-events: none;
    opacity: 0.6;
}

.mobile-device .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 移動端錯誤狀態 */
.mobile-device .error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

/* 移動端成功狀態 */
.mobile-device .success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}

/* 移動端工具提示 */
.mobile-device .tooltip {
    position: relative;
    display: inline-block;
}

.mobile-device .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 14px;
    line-height: 1.4;
}

.mobile-device .tooltip:active .tooltiptext {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
}

/* 移動端無障礙優化 */
.mobile-device .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-device .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.mobile-device .skip-link:focus {
    top: 6px;
}

/* 移動端性能優化 */
.mobile-device .performance-mode * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.mobile-device .performance-mode .gradient-bg {
    display: none;
}

.mobile-device .performance-mode .hero-canvas {
    display: none;
}

/* 移動端暗色模式支援 */
@media (prefers-color-scheme: dark) {
    .mobile-device .nav-menu {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .mobile-device .error-message {
        background: rgba(139, 69, 19, 0.3);
        border-color: rgba(205, 92, 92, 0.5);
    }
}

/* 移動端高對比度模式 */
@media (prefers-contrast: high) {
    .mobile-device .nav-menu a,
    .mobile-device .cta-button,
    .mobile-device .feature-item {
        border: 2px solid #ffffff;
    }
    
    .mobile-device .gradient-text {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* 移動端減少動畫模式 */
@media (prefers-reduced-motion: reduce) {
    .mobile-device * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 移動端橫屏模式特殊處理 */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-device .hero {
        padding: 60px 0 30px;
    }
    
    .mobile-device .main-title,
    .mobile-device .subtitle {
        font-size: 2rem;
    }
    
    .mobile-device .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 10px;
    }
    
    .mobile-device .nav-menu a {
        padding: 6px 20px;
        font-size: 1rem;
    }
}

/* 移動端網絡狀態優化 */
@media (prefers-reduced-data: reduce) {
    .mobile-device .gradient-bg,
    .mobile-device .hero-canvas,
    .mobile-device .system-diagram::before {
        display: none !important;
    }
    
    .mobile-device img {
        filter: none !important;
    }
}

/* 移動端安全區域支援（iPhone X等） */
@supports (padding: max(0px)) {
    .mobile-device .navigation {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .mobile-device .nav-menu {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .mobile-device .back-to-top {
        bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
        right: max(30px, calc(30px + env(safe-area-inset-right)));
    }
    
    .mobile-device .quick-nav {
        right: max(30px, calc(30px + env(safe-area-inset-right)));
    }
}

/* 移動端調試模式 */
.mobile-debug * {
    outline: 1px solid red !important;
}

.mobile-debug .touch-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 0, 0.2);
    pointer-events: none;
    z-index: 10000;
}

/* 圖片放大模態框樣式 */
.image-modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 10px;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-modal-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* 保持完整顯示 */
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Slideshow輪播樣式 - 16:9比例 */
.slideshow-container {
    display: flex;
    gap: 20px;
    height: 100%;
    width: fit-content; /* 根據內容調整寬度 */
    min-width: 900px; /* 設定最小寬度確保佈局 */
    max-width: 100%;
}

.slideshow-thumbnails {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px
}

.slideshow-thumbnails::-webkit-scrollbar {
    width: 6px; /* 稍微加寬滾動條 */
}

.slideshow-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.slideshow-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.slideshow-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.thumbnail-item {
    width: 120px;
    height: 68px; /* 16:9 比例 */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    flex-shrink: 0; /* 防止縮圖被壓縮 */
}

.thumbnail-item:hover {
    border-color: rgba(28, 168, 255, 0.5);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #1CA8FF;
    box-shadow: 0 4px 15px rgba(28, 168, 255, 0.4);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 影片縮圖樣式 */
.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 168, 255, 0.8), rgba(169, 116, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-thumbnail i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2px 4px; /* 縮小padding */
    font-size: 0.65rem; /* 縮小字體 */
    font-weight: 600;
    text-align: center;
}

.slideshow-main {
    flex: 0 0 auto; /* 改為不伸縮，根據內容調整 */
    display: flex;
    flex-direction: column;
    width: 640px; /* 設定固定寬度維持16:9比例 */
    height: 100%;
}

.slideshow-image-container {
    flex: 1;
    position: relative;
    width: 640px; /* 16:9比例：640x360 */
    height: 360px; /* 固定高度維持16:9 */
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.slideshow-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持完整顯示 */
    transition: opacity 0.3s ease;
}

.slideshow-content {
    flex-shrink: 0; /* 不允許縮小 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 20px; /* 減少padding */
    backdrop-filter: blur(10px);
}

.slideshow-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1CA8FF;
    font-weight: 600;
}

.slideshow-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
}

.slideshow-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* 移除margin */
}

.slideshow-counter {
    font-size: 0.9rem;
    opacity: 0.7;
}

.slideshow-controls {
    display: flex;
    gap: 10px;
}

.slideshow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #1CA8FF;
    transform: scale(1.1);
}

.slideshow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* 大螢幕版本 - 更大的顯示區域 */
@media (min-width: 1400px) {
    .modal-content {
        min-width: 1000px;
        max-width: 90vw;
    }
    
    .slideshow-container {
        min-width: 1100px;
    }
    
    .slideshow-main {
        width: 800px; /* 更大的顯示區域 */
    }
    
    .slideshow-image-container {
        width: 800px;
        height: 450px; /* 16:9比例：800x450 */
    }
}

/* 中等螢幕版本 */
@media (min-width: 1024px) and (max-width: 1399px) {
    .modal-content {
        min-width: 900px;
        max-width: 95vw;
    }
    
    .slideshow-container {
        min-width: 1000px;
    }
    
    .slideshow-main {
        width: 720px;
    }
    
    .slideshow-image-container {
        width: 720px;
        height: 405px; /* 16:9比例：720x405 */
    }
}

/* 小螢幕版本 */
@media (max-width: 1023px) {
    .modal-content {
        width: 95vw; /* 小螢幕回到百分比 */
        min-width: auto;
        max-width: 95vw;
        height: 95vh;
    }
    
    .slideshow-container {
        min-width: auto;
        width: 100%;
    }
    
    .slideshow-main {
        width: 100%;
        flex: 1;
    }
    
    .slideshow-image-container {
        width: 100%;
        height: auto;
        /* 小螢幕使用padding-bottom維持16:9 */
        padding-bottom: 56.25%;
        position: relative;
    }
    
    .slideshow-main-image {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* 手機端slideshow響應式 */
@media (max-width: 768px) {
    .slideshow-container {
        flex-direction: column;
        height: 100%;
        gap: 10px;
        min-width: auto;
        width: 100%;
    }
    
    .slideshow-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 5px;
    }
    
    .thumbnail-item {
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    .slideshow-main {
        order: -1;
        width: 100%;
        flex: 1;
    }
    
    .slideshow-image-container {
        width: 100%;
        height: auto;
        padding-bottom: 56.25%; /* 16:9 */
        position: relative;
        margin-bottom: 10px;
    }

    .slideshow-thumbnails {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: 80px;
        width: 100%;
    }
    
    .slideshow-content {
        padding: 10px 15px;
    }
    
    .slideshow-nav {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .thumbnail-item {
        flex-shrink: 0;
        width: 90px;
        height: 50px;
        margin-right: 8px;
    }

     /* 手機端影片縮圖調整 */
    .video-thumbnail i {
        font-size: 1.2rem;
    }
}