/*
Theme Name: Razzi Child
Theme URI: https://demo4.drfuri.com/razzi/
Author: DrFuri
Author URI: http://drfuri.com
Description: Razzi Child Theme.
Version: 1.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: razzi
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: razzi
*/
/* 简洁版样式 */
/* 文章卡片容器 */
.posts-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

/* 卡片样式 */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* 卡片内部布局 */
.post-card-inner {
    display: flex;
    align-items: stretch; /* 让两边高度一致 */
    min-height: 160px; /* 和图片高度一致 */
}

/* 图片区域 */
.post-card-image {
    flex: 0 0 240px;
    min-height: 160px;
    overflow: hidden;
    position: relative;
}

.post-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.post-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumbnail {
    transform: scale(1.05);
}

.post-card-default-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.default-image-text {
    font-size: 24px;
    font-weight: bold;
}

/* 内容区域 */
.post-card-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 让内容在垂直方向分布 */
}

/* 标题区域 */
.post-card-title {
    margin: 0 0 10px 0; /* 标题和描述之间的间距 */
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.post-card-title a:hover {
    color: #0073aa;
}

/* 描述区域 */
.post-card-excerpt {
    margin: 0 0 15px 0; /* 描述和元信息之间的间距 */
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    flex-grow: 1; /* 让描述区域可以扩展 */
}

/* 元信息区域 */
.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.post-date,
.post-category {
    display: inline-block;
}

.post-category {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    color: #666;
}

/* 分页样式 */
.posts-cards-pagination {
    margin-top: 40px;
    text-align: center;
}

.posts-cards-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.posts-cards-pagination .page-numbers.current,
.posts-cards-pagination .page-numbers:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .post-card-inner {
        flex-direction: column;
    }
    
    .post-card-image {
        flex: 0 0 200px; /* 移动端图片高度 */
        width: 100%;
        min-height: 200px;
    }
    
    .post-card-content {
        padding: 15px;
    }
    
    .post-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .post-card-excerpt {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* 确保图片在移动端也保持比例 */
@media (max-width: 768px) {
    .post-card-thumbnail {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .post-card-default-image {
        height: 200px;
    }
}

/* 添加一些细节效果 */
.post-card-image {
    border-right: 10px solid transparent; /* 图片和内容之间的10px间距 */
}

@media (max-width: 768px) {
    .post-card-image {
        border-right: none;
        border-bottom: 10px solid transparent;
    }
}

/* 确保内容区域在桌面端有适当的左边距 */
.post-card-content {
    margin-left: 10px; /* 图片和内容之间的间距 */
}

@media (max-width: 768px) {
    .post-card-content {
        margin-left: 0;
        margin-top: 10px;
    }
}