/*  
Theme Name: Puock Child Theme  
Template: wordpress-theme-puock-master  
*/
/* 子主题路径：/wp-content/themes/puock-child/style.css */

.life-timeline-container {
    position: relative;
    max-width: 100%;
    margin: 60px auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #d4d4d4;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    border-color: #222;
    transform: translateX(-50%) scale(1.2);
}

.timeline-card {
    background: #fefefe;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    width: 45%;
    margin-left: auto; /* 右对齐 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:nth-child(even) .timeline-card {
    margin-right: auto; /* 左对齐 */
    margin-left: 0;
}

.timeline-card:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.timeline-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #222;
    letter-spacing: 0.5px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.timeline-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 25px;
    }
    
    .timeline-item:nth-child(even) .timeline-card {
        margin-left: 60px;
        margin-right: 0;
    }
}
