/**
 * Timeline Event Widget Styles
 */

.timeline-event-widget {
    width: 100%;
}

.timeline-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    align-self: stretch;
    padding-bottom: 40px;
    margin-bottom: -40px;
}

.timeline-year {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border: 0 solid transparent;
    box-sizing: border-box;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background-color: #e0e0e0;
}

.timeline-content {
    flex: 1;
    padding-bottom: 40px;
}

.timeline-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    border-color: #b8860b;
}

.timeline-info {
    flex: 0 0 60%;
    width: 60%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.timeline-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b8860b;
    margin-bottom: 12px;
}

.timeline-desc {
    margin: 0 0 15px 0;
    color: #666666;
    line-height: 1.6;
}

.timeline-result {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}

.timeline-result .result-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.timeline-image {
    flex: 0 0 40%;
    width: 40%;
    height: 250px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .timeline-card {
        flex-direction: column;
    }
    
    .timeline-info {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .timeline-image {
        flex: 0 0 100%;
        width: 100%;
        height: 200px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .timeline-marker {
        margin-right: 15px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
}
