/* 时间线部分样式 */
.timeline-section {
    background-color: #fef6f9;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--background-color), transparent);
    z-index: 1;
}

.timeline-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--background-color), transparent);
    z-index: 1;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.timeline-center-line {
    position: absolute;
    width: 4px;
    background: var(--gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(240, 98, 146, 0.3);
}

.timeline-item {
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(255, 105, 180, 0.2);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    top: 10px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(240, 98, 146, 0.3);
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.timeline-description {
    color: #666;
    line-height: 1.7;
}

.timeline-icon {
    position: absolute;
    font-size: 1.2rem;
    color: white;
    top: 0;
    left: 50%;
    transform: translate(-50%, 25%);
    z-index: 3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-center-line {
        left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
}