.timeline-container {
            max-width: 100%;
            margin: 0 auto;
        }

        .timeline-title {
            text-align: center;
            margin-bottom: 80px;
        }

        .timeline-title h1 {
          
            color: #1a365d;
            margin-bottom: 15px;
            font-weight: 800;
        }

        .timeline-title p {
            color: #718096;
         
            max-width: 800px;
            margin: 0 auto;
        }

        /* 時間軸容器 */
        .timeline {
            position: relative;
            padding: 0px 0 0px 0;
        }

        /* 主時間軸線 */
        .main-timeline-line {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: transparent;
            transform: translateX(-50%);
            z-index: 1;
        }

        /* 每個年份的時間軸項目 - 放慢動畫 */
        .timeline-item {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            margin-bottom: 20px;
            position: relative;
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1.2s ease, transform 1.2s ease;
        }

        .timeline-item.active {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item:last-child {
            margin-bottom: 0;
        }

        /* 每個年份自己的時間軸線段 - 放慢動畫 */
        .item-timeline-line {
            position: absolute;
            left: 50%;
            top: 50px;
            width: 4px;
            height: calc(100% - 50px);
            transform: translateX(-50%);
            z-index: 3;
            opacity: 0;
            transition: opacity 1.5s ease 0.4s;
        }

        .timeline-item.active .item-timeline-line {
            opacity: 1;
        }

        /* 年份標記 - 放慢動畫 */
        .year-marker {
            position: absolute;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
            color: #e53e3e;
            padding: 0;
            font-weight: bold;
         
            z-index: 4;
            min-width: auto;
            text-align: center;
            background: none;
            box-shadow: none;
            opacity: 0;
            transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
            transform: translateX(-50%) scale(0.8);
        }

        .timeline-item.active .year-marker {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }

        /* 時間軸節點 - 放慢動畫 */
        .timeline-node {
            position: absolute;
            left: 50%;
            top: 50px;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            z-index: 4;
            border: 4px solid white;
            box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transition: opacity 1.2s ease 0.5s, transform 1.2s ease 0.5s;
            transform: translateX(-50%) scale(0);
        }

        .timeline-item.active .timeline-node {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }

        /* 內容區域 - 放慢動畫 */
        .timeline-content {
            width: 45%;
            padding: 30px;
            border-radius: 15px;
            position: relative;
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 1.2s ease 0.6s, transform 1.2s ease 0.6s;
        }

        .timeline-item:nth-child(even) .timeline-content {
            transform: translateX(30px);
        }

        .timeline-item.active .timeline-content {
            opacity: 1;
            transform: translateX(0);
        }

        /* 左右交替佈局 */
        .timeline-item:nth-child(odd) .timeline-content {
            margin-right: 8%;
        }

        .timeline-item:nth-child(even) .timeline-content {
            margin-left: 8%;
            order: 2;
        }

        /* 內容標題 - 放慢動畫 */
        .content-title {
            font-size: 25px;
            color: #e53e3e;
           /** margin-bottom: 15px;**/
            padding-bottom: 10px;
            /**border-bottom: 3px solid #e53e3e;**/
            border-bottom:none;
            font-weight: 700;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
        }

        .timeline-item.active .content-title {
            opacity: 1;
            transform: translateY(0);
        }

        /* 內容文字 - 放慢動畫 */
        .content-text {
            color: #4a5568;
            margin-bottom: 15px;
            
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease 0.9s, transform 1s ease 0.9s;
        }

        .timeline-item.active .content-text {
            opacity: 1;
            transform: translateY(0);
        }

        /* 圖片容器 */
        .timeline-images {
            width: 45%;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .timeline-item:nth-child(odd) .timeline-images {
            order: 2;
        }

        /* 圖片網格 */
        .images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 450px;
        }

        /* 圖片容器 - 放慢動畫 */
        .image-container {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
          /**  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);**/
           /** height: 220px;**/
            opacity: 0;
            transform: scale(0.8) translateY(30px);
            transition: opacity 1.5s ease 1s, transform 1.5s ease 1s;
        }

        .timeline-item.active .image-container {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        /* Zoom in 動畫效果 - 放慢並簡化 */
        .timeline-item.active .image-container {
            animation: gentleZoomIn 1.8s ease-out 1s forwards;
        }

        @keyframes gentleZoomIn {
            0% {
                transform: scale(0.9);
                opacity: 0.5;
            }
            60% {
                transform: scale(1.02);
                opacity: 0.9;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* 圖片框 */
        .image-box {
            overflow: hidden;
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 9;
        }

        .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            overflow: hidden;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: scale(1);
        }

        /* Hover 放大效果 - 放慢 */
        .image-box:hover img {
            transform: scale(1.1);
            transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* 移除脈衝動畫，保持簡潔 */

        /* 響應式設計 */
        @media (max-width: 992px) {
            .main-timeline-line {
                left: 40px;
            }
            
            .timeline-item {
                flex-direction: column;
                margin-bottom: 100px;
            }
            
            .item-timeline-line {
                left: 40px;
            }
            
            .year-marker {
                left: 40px;
            }
            
            .timeline-node {
                left: 40px;
            }
            
            .timeline-content,
            .timeline-images {
                width: calc(100% - 100px);
                margin-left: 100px !important;
                margin-right: 0 !important;
                order: 0 !important;
            }
            
            .timeline-images {
                margin-top: 30px;
            }

            .timeline-item:nth-child(even) .timeline-content {
                transform: translateX(0);
            }
        }

        @media (max-width: 576px) {
            .timeline-content,
            .timeline-images {
                width: calc(100% - 60px);
                margin-left: 60px !important;
            }
            
            .year-marker {
               
            }
            
            .images-grid {
                grid-template-columns: 1fr;
            }
            
            .image-container {
                height: 200px;
            }
        }

 /********************/ 
 /* 让容器完全自适应 */
/* 基本样式保持不变，移除固定高度 */
.image-container {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    height: auto; /* 高度自适应 */
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: opacity 1.5s ease 1s, transform 1.5s ease 1s;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: minmax(160px, auto);
    gap: 15px;
    padding: 15px;
    align-items: center;
}

.image-box {
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 160px;
    position: relative;
    z-index: 9;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-box img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

/* 768px及以上 - 完全自适应 */
@media (min-width: 768px) {
    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-auto-rows: auto; /* 完全自适应行高 */
        gap: 20px;
        padding: 20px;
    }
    
    .image-box {
        min-height: unset; /* 移除最小高度限制 */
        height: auto; /* 高度自适应 */
        aspect-ratio: unset; /* 移除宽高比限制 */
        display: block; /* 改为block布局 */
    }
    
    .image-box img {
        width: auto; /* 宽度自适应 */
        height: auto; /* 高度自适应 */
        max-width: 100%;
        max-height: 250px; /* 稍微限制最大高度 */
        object-fit: contain;
        padding: 15px;
    }
    
    /* 单张图片时更大一些 */
    .image-container:has(.image-box:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr); /* 固定2列 */
    gap: 20px; /* 增加间距 */
    }

    .image-container:has(.image-box:nth-child(2):last-child) .image-box {
        /*min-height: 180px;  增加最小高度 */
    }

    .image-container:has(.image-box:nth-child(2):last-child) .image-box img {
       /* max-height: 200px;  增加最大高度 */
        padding: 15px;
    }
}
/* 768px及以上 - 完全自适应，2个图片时更大 */
@media (min-width: 768px) {
    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-auto-rows: auto;
        gap: 20px;
        padding: 20px;
    }
    
    .image-box {
        min-height: unset;
        height: auto;
        display: block;
    }
    
    .image-box img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
        padding: 15px;
    }
    
    /* 2个图片时在768px以上更大 */
    .image-container:has(.image-box:nth-child(2):last-child) {
        /**grid-template-columns: repeat(2, 1fr);**/
        grid-template-columns: unset;
        gap: 25px;
    }
    
    .image-container:has(.image-box:nth-child(2):last-child) .image-box {
        max-width: 100%;
    }
    
    .image-container:has(.image-box:nth-child(2):last-child) .image-box img {
        max-height: 280px; /* 2个图片时更大 */
        max-width: 100%;
    }
    
    /* 单张图片时更大一些 */
    .image-container:has(.image-box:only-child) .image-box img {
        max-height: 320px;
        max-width: 100%;
    }
}

/* 992px及以上 - 更大的屏幕 */
@media (min-width: 992px) {
    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        padding: 25px;
    }
    
    .image-box img {
        max-height: 280px;
        padding: 20px;
    }
    
    /* 2个图片时在992px以上更大 */
    .image-container:has(.image-box:nth-child(2):last-child) .image-box img {
        max-height: 320px; /* 增加到320px */
    }
    
    /* 单张图片时更大 */
    .image-container:has(.image-box:only-child) .image-box img {
        max-height: 350px;
    }
}

/* 1200px以上超大屏幕 */
@media (min-width: 1200px) {
    /* 2个图片时最大 */
    .image-container:has(.image-box:nth-child(2):last-child) .image-box img {
        max-height: 350px;
    }
    
    .image-container:has(.image-box:only-child) .image-box img {
        max-height: 380px;
    }
}

/* 单张图片特殊处理 */
.image-container:has(.image-box:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}