/* 时间轴容器样式 */
.article-timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* 中央时间线 */
.timeline-line {
    position: absolute;
    left: 15%; /* 调整到接近时间区域右侧 */
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

/* 时间轴项目 */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 时间点 */
.timeline-dot {
    position: absolute;
    left: 15%;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    transform: translateX(-50%);
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* 左侧时间区域 */
.timeline-date-container {
    width: 15%;
    padding-right: 30px;
    text-align: right;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    padding: 15px 0;
    display: inline-block;
}

/* 右侧文章内容区域 */
.timeline-content {
    width: 85%;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #3498db;
}

/* 文章标题 */
.timeline-title {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.timeline-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-title a:hover {
    color: #3498db;
}

/* 文章缩略图 */
.timeline-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 文章摘要 */
.timeline-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 阅读更多按钮 */
.timeline-read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 14px;
}

.timeline-read-more:hover {
    background: #2980b9;
    color: #fff;
}

/* 没有文章时的提示 */
.timeline-no-posts {
    text-align: center;
    padding: 40px;
    color: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date-container {
        width: 100%;
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 30px;
    }
}
    