.trip-timeline {
    margin: 30px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 48px;
    width: 4px;
    height: calc(100% - 18px);
    border-left: 2px dashed var(--color-content-border) !important;
    z-index: 1;
}

.timeline-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.day-label {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
    flex-shrink: 0;
}

.timeline-header .title {
    font-size: 18px;
    font-weight: bold;
}

.toggle-details {
    margin-left: auto;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .3s;
}

.timeline-item.active .toggle-details {
    transform: rotate(180deg);
}

.timeline-details {
    margin-top: 15px;
}

.timeline-details .description, .timeline-details .timeline-images {
    margin-left: 50px;
}

.timeline-images {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.timeline-images figure {
    margin: 0;
    text-align: center;
    /* flex: 1 0 415px; */
    width: calc(50% - 7.5px);
}

.timeline-images img {
    border-radius: 10px;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: auto;
    display: block;
    margin: 0 auto;
}

.timeline-meta {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    color: #666;
    font-size: 15px;
}

.timeline-meta li i {
    margin: 0 10px;
    margin: 0 10px;
    width: 30px;
    color: var(--color-content-primary);
    background-color: #fff;
    position: relative;
    z-index: 2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trip-timeline {
        padding-left: 15px;
    }
    .timeline-details {
        padding-left: 0;
    }
    .timeline-images {
        flex-direction: column;
        gap: 10px;
    }
    .timeline-images figure {
        width: 100%;
        max-width: 100%;
        flex: 1 0 100%;
    }
    .timeline-header .title {
        font-size: 16px;
    }
    .day-label {
        width: 28px;
        height: 28px;
        font-size: 15px;
        line-height: 28px;
        margin-right: 10px;
    }
}
