/*
Theme Name: Neve Child
Theme URI: https://www.naturalhealingchina.com
Description: Child theme for Neve with custom Shop homepage
Author: Your Name
Author URI: https://www.naturalhealingchina.com
Template: neve
Version: 1.0
Text Domain: neve-child
*/

/* 文章区图片样式 - 横向比例 */
.post-thumbnail-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 下载区图片样式 - 竖向比例 */
.download-thumbnail-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.download-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-thumbnail-wrapper {
        height: 180px;
    }
    
    .download-thumbnail-wrapper {
        height: 250px;
    }
}

/* 热门排行板块样式 */
.popular-posts {
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 8px;
}

.popular-posts .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.popular-post-item:hover {
    background-color: #fff;
    border-radius: 6px;
    margin: 0 -10px;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.popular-post-item:hover .rank-number {
    color: #005bb5;
}

.popular-post-item:hover h4 a {
    color: #0073e6;
}

.popular-post-item:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .popular-posts {
        padding: 30px 15px;
    }
    
    .popular-post-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rank-number {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .post-info {
        width: 100%;
    }
}


/* Banner 响应式样式 */
@media (max-width: 768px) {
    #hero-banner {
        min-height: 500px !important;
    }
    
    #hero-banner .innerblocks-wrap {
        padding: 60px 15px !important;
    }
    
    #hero-banner h1 {
        font-size: 32px !important;
    }
    
    #hero-banner p {
        font-size: 16px !important;
    }
    
    #hero-banner .wp-block-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #hero-banner .wp-block-button__link {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    #hero-banner {
        min-height: 400px !important;
    }
    
    #hero-banner .innerblocks-wrap {
        padding: 40px 10px !important;
    }
    
    #hero-banner h1 {
        font-size: 24px !important;
    }
    
    #hero-banner p {
        font-size: 14px !important;
    }
}


