.timeline-section {
    margin-top: 60px;
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
    position: relative;
}

/* 确保timeline-container只包含内容，并且居中显示 */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 60px;
    color: #181c29;
    font-weight: 600;
        letter-spacing: 1px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
    overflow: hidden;
}

.timeline-carousel {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.timeline-item {
    flex: 0 0 auto;
    width: 33.333%;
    padding: 0 0px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.timeline-content {
    background-color: white;
    border-radius: 0px;
    /* 移除阴影效果 */
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* 日期显示 - 图片上方 */
.timeline-date {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    /* background-color: rgb(0 0 0 / 90%); */
    /* padding: 5px 22px; */
    border-radius: 50px;
    z-index: 10;
}

/* 图片容器 */
.timeline-image-container {
    position: relative;
    width: 100%;
    padding-top: 46.67%; /* 3:2 宽高比 */
    overflow: hidden;
}

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

.timeline-content-text {
    padding: 20px;
}

.timeline-title-item {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

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

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-220%);
    width: 50px;
    height: 50px;
    background-color: rgb(248 248 248);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 100;
}

/* 移除悬浮效果 */
.carousel-arrow:hover {
    background-color: #f1f1f1;
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

/* 年份导航 */
.year-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    /* border: 1px solid #eee; */
    /* 移除阴影效果 */
}

.year-item {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 1rem;
    color: #666;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}



.year-item.active {
    color: #0055ff;
    font-weight: bold;
}

.year-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #0055ff;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .timeline-item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .timeline-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        width: 100%;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    .year-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .year-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}