/* 校长部分时间线树状样式 */
.timeline {
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    margin-left: -2px;
    background-color: #4CAF50;
}

.timeline-list {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: right;
    padding-left: 30px;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: left;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:after {
    content: '';
    display: block;
    clear: both;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: #F1F8E9;
    border-radius: 10px;
    box-shadow: 2px 4px 20px 1px rgba(45, 45, 45, 0.13);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #F1F8E9;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -10px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: #4CAF50;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #303036;
}

.timeline-content p {
    margin-bottom: 0;
    color: #63636b;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid #4CAF50;
    border-radius: 50%;
    z-index: 1;
    left: 50%;
    margin-left: -8px;
}

/* 响应式调整 */
@media only screen and (max-width: 767px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
        width: calc(100% - 60px);
        text-align: left;
        padding-left: 30px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
    }

    .timeline-item::before {
        left: 30px;
        margin-left: 0;
    }
}
