/* 文章容器 */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 文章卡片样式 */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 卡片内容 */
.card-content {
    padding: 0;
}

/* 缩略图 */
.card-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

.default-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
}

/* 分类标签 */
.card-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 卡片信息 */
.card-info {
    padding: 20px;
}

.card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片元数据 */
.card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85em;
    color: #7f8c8d;
}

.card-meta li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta a {
    color: inherit;
    text-decoration: none;
}

.card-meta a:hover {
    color: #667eea;
}

/* 摘要 */
.card-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    color: #5d6d7e;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片操作 */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.read-more-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #5a67d8;
}

.card-views {
    font-size: 0.85em;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 完整内容样式 */
/* 完整内容样式 */
.full-content {
    padding: 30px;
    display: none;
}

/* 内容头部 */
.content-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.content-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.content-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95em;
    color: #7f8c8d;
}

.content-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-meta a {
    color: inherit;
    text-decoration: none;
}

.content-meta a:hover {
    color: #667eea;
}

/* 文章内容 */
.full-content .post-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05em;
}

.full-content .post-content p {
    margin-bottom: 1.5em;
}

.full-content .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.full-content .post-content h2{
    margin: 1.5em 0 0.8em 0;
    color: #2c3e50;
    font-weight: 600;
}

.full-content .post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5em;
    margin: 1.5em 0;
    color: #5d6d7e;
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
}

/* 内容操作按钮 */
.content-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    justify-content: center;
}

.back-to-card {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s ease;
}

.back-to-card:hover {
    background: #5a67d8;
}

.view-original {
    background: #48bb78;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.3s ease;
}

.view-original:hover {
    background: #38a169;
}

/* 展开状态 */
.article-card[data-expanded="true"] {
    grid-column: 1 / -1;
    cursor: default;
}

.article-card[data-expanded="true"] .card-content {
    display: none;
}

.article-card[data-expanded="true"] .full-content {
    display: block;
}

        
       
/* 响应式设计 */
@media (max-width: 768px) {
    .content-title {
        font-size: 1.6em;
    }
    
    .content-meta {
        gap: 12px;
        font-size: 0.9em;
    }
    
    .full-content {
        padding: 20px;
    }
    
    .content-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-to-card,
    .view-original {
        width: 100%;
        text-align: center;
    }
    
/* 图标样式 */
.icon-user:before { content: '👤'; }
.icon-calendar:before { content: '📅'; }
.icon-comment:before { content: '💬'; }
.icon-eye:before { content: '👁️'; }