/* 加载更多按钮样式 */
.timeline-load-more {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.timeline-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-load-more-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-load-more-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.timeline-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.timeline-loading span {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.timeline-articles-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* 时间轴中心线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #3498db;
    border-radius: 2px;
}

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

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

/* 时间轴节点 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    border: 4px solid #f8f9fa;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.timeline-title a {
    color: inherit;
    text-decoration: none;
}

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

.timeline-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

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

.timeline-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .timeline-content::before {
        left: -60px !important;
    }
    
    .timeline-meta {
        flex-direction: column;
        gap: 5px;
    }
    .timeline-load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
/* 小工具专用样式 - 简化版时间轴 */
.timeline-widget-container {
    width: 100%;
    margin: 0 auto;
}

.timeline-widget {
    position: relative;
    padding: 10px 0;
}

/* 小工具时间轴中心线 */
.timeline-widget::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e0e0e0;
}

.timeline-widget-item {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

/* 小工具时间轴节点 */
.timeline-widget-item {
    font-size: 0.8rem;
}

.timeline-widget-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e0e0e0;
    z-index: 2;
}

.timeline-widget-date {
    width: 50px;
    font-size: 0.75rem;
    color: #7f8c8d;
    text-align: center;
    padding-top: 2px;
    flex-shrink: 0;
}

.timeline-widget-content {
    flex: 1;
    padding-left: 5px;
    padding-right: 10px;
}

.timeline-widget-title {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

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

.timeline-widget-empty {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    padding: 10px 0;
}

/* 小工具响应式设计 */
@media (max-width: 480px) {
    .timeline-widget::before {
        left: 20px;
    }
    
    .timeline-widget-item::before {
        left: 15px;
    }
    
    .timeline-widget-date {
        width: 40px;
        font-size: 0.7rem;
    }
    
    .timeline-widget-title {
        font-size: 0.85rem;
    }
}
/* 小工具标题链接样式 */
.timeline-widget-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline-widget-title-link:hover {
    color: #3498db;
    text-decoration: underline;
}