body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.timeline-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0 20px 0;
    text-align: center;
}
.timeline-container h2 {
    font-size: 2em;
    margin-bottom: 0.2em;
}
.timeline-container h3 {
    font-size: 1.2em;
    color: var(--color);
    margin-bottom: 1em;
}
.slider-container {
    position: relative;
    overflow: hidden;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    flex-wrap: nowrap;
}
.slide {
    flex: 0 0 32%;
    box-sizing: border-box;
     padding: 10px 30px;
}
.slide .card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.slide img {
    width: 100%;
    display: block;
}
.card-content {
    padding: 15px;
    text-align: left;
}
.card-content .year {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #333;
}
.card-content .desc {
    font-size: 1em;
    color: #555;
    line-height: 1.5em;
}
/* Navigation buttons */
.button-prev, .button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}
.button-prev:hover, .button-next:hover {
    background: rgba(0,0,0,0.8);
}
.button-prev { left: 0px; }
.button-next { right: 0px; }

/* Responsive settings */
@media (max-width: 992px) {
    .slide {
        flex: 0 0 50%;
    }
}
@media (max-width: 600px) {
    .slide {
        flex: 0 0 100%;
    }
}

/* 原来的 .slide .card 基础样式保持 */
.slide .card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.5s ease; /* 平滑过渡 */
}

/* 默认大小 */
.slide {
    flex: 0 0 33.33%;
    box-sizing: border-box;
    padding: 45px 30px;
    transition: transform 0.5s ease;
}

/* 居中卡片放大 */
.slide.active .card {
    transform: scale(1.2);
    z-index: 2; /* 保证放大后在最上层 */
}

/* 响应式保持不变 */
@media (max-width: 992px) {
    .slide {
        flex: 0 0 50%;
    }
}
@media (max-width: 600px) {
    .slide {
        flex: 0 0 100%;
    }
}