/* 时间树核心样式 - 全屏幕左右分布 */
.timeline-section {
    margin-bottom: 4rem;
    display: none;
}
.timeline-section.active {
    display: block;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem; /* 小屏内边距适配 */
}

/* 中央竖线样式 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #c2996c 0%, #f8f0e3 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* 文章列表容器 */
.articles-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem; /* 紧凑间距适配 */
}

/* 博客文章主样式 - 左右分布 */
.blog-article {
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    flex-direction: column;
}

/* 奇偶项分布控制 */
.blog-article:nth-child(odd) {
    flex-direction: row;
}
.blog-article:nth-child(even) {
    flex-direction: row-reverse;
}

/* 时间点样式 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #c2996c;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 0 3px rgba(248, 240, 227, 0.6);
}

/* 文章信息区 */
.article-info {
    order: 2;
    margin-top: var(--spacing-md);
    flex: 0 0 48%;
    padding: 0 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    text-align: center;
    
}

.article-info h3 {
    font-size: clamp(1rem, 3vw, 1.3rem); /* 响应式字体 */
    font-weight: bold;
    color: var(--neutral-dark, #333);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.article-excerpt {
    color: var(--neutral-brown, #666);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: 0.6rem;
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    color: var(--neutral-brown, #666);
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

.article-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--neutral-brown, #c2996c) / 10;
    color: var(--neutral-brown, #c2996c);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 999px;
    margin-bottom: var(--spacing-sm);
    margin-top: auto;
}

/* 文章卡片区 */
.article-card {
    flex: 0 0 48%;
    width: 100%;
    max-width: 30rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    order: 1;
}

.article-card:hover {
    transform: translateY(-2px);
}

/* 卡片图片样式 - 圆角处理 */
.article-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* 卡片内容区 */
.card-content {
    padding: 0.8rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.card-tag {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    margin-right: 0.3rem;
    border-radius: 999px;
}

/* 阅读按钮 */
.read-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-accent, #c2996c);
    text-decoration: none;
    transition: all 0.3s;
}

.read-btn:hover {
    color: var(--primary-accent, #c2996c) / 80;
    transform: translateX(2px);
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.load-btn {
    padding: 0.7rem 1.2rem;
    background: white;
    border: var(--border-width, 1px) solid var(--primary-accent, #c2996c);
    color: var(--primary-accent, #c2996c);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.85rem;
}

.load-btn:hover {
    background: var(--primary-accent, #c2996c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color, rgba(0, 0, 0, 0.1));
}

/* 订阅区域适配 */
.subscription-section {
    padding: 3rem 0.8rem;
}

.email-input {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
}

.subscribe-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

/* 小屏适配（保持左右分布） */
@media (max-width: 768px) {
    .article-info,
    .article-card {
        flex: 0 0 47%;
        padding: 0 0.5rem;
    }
    
    .article-img {
        height: 110px;
    }
    
    .article-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-content {
        padding: 0.8rem;
    }
}

/* 超小屏极限适配 */
@media (max-width: 320px) {
    .article-title {
        font-size: 0.95rem;
    }
    
    .tag,
    .card-tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .read-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}