/* ==================== 文章列表样式 ==================== */
.posts-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 文章列表 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章卡片 */
.post-item {
    background: var(--white-10);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
    border: 1px solid var(--white-15);
    cursor: pointer;
}

.post-item:hover {
    background: var(--white-15);
    transform: translateY(-2px);
    border-color: var(--white-30);
}

/* 文章标题 */
.post-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.post-title a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.post-title a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* 文章元信息（日期、作者） */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--white-50);
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* 文章摘要 */
.post-summary {
    color: var(--white-50);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    text-align: left;
}

/* 阅读更多按钮 */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: #93c5fd;
    gap: 10px;
}

.read-more svg {
    width: 14px;
    height: 14px;
    transition: var(--transition);
}

.read-more:hover svg {
    transform: translateX(3px);
}

/* 加载状态 */
.loading-posts {
    text-align: center;
    padding: 60px 40px;
    color: var(--white-50);
    font-size: 16px;
    background: var(--white-10);
    border-radius: 16px;
}

.loading-posts::before {
    content: "📖";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 错误状态 */
.error-posts {
    text-align: center;
    padding: 60px 40px;
    color: #f87171;
    font-size: 16px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.error-posts::before {
    content: "⚠️";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* 空状态 */
.no-posts {
    text-align: center;
    padding: 60px 40px;
    color: var(--white-50);
    font-size: 16px;
    background: var(--white-10);
    border-radius: 16px;
}

.no-posts::before {
    content: "✨";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

/* 文章分割线 */
.posts-divider {
    height: 1px;
    background: var(--white-10);
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-item {
        padding: 18px;
    }
    
    .post-title {
        font-size: 17px;
    }
    
    .post-summary {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .post-meta {
        font-size: 11px;
        gap: 12px;
    }
    
    .loading-posts,
    .error-posts,
    .no-posts {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    .loading-posts::before,
    .error-posts::before,
    .no-posts::before {
        font-size: 36px;
    }
}

/* 暗色主题适配（跟随系统） */
@media (prefers-color-scheme: dark) {
    .post-item {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .post-item:hover {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* 滚动加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item {
    animation: fadeInUp 0.4s ease forwards;
}