/* 文章列表页图片悬停放大效果 (全局) - 高优先级覆盖主题默认样式 */

/* 分类列表页、归档页文章图片容器 - 包括 blog-layout-4-grid 布局 */
body .ast-article-post .post-thumb-img-content,
body .ast-article-post .post-thumb,
body .ast-article-post .wp-post-image,
body .ast-article-post .entry-thumb,
body .ast-article-post .ast-blog-featured-section,
body .blog-layout-4-grid .ast-article-inner .wp-post-image,
body .ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content {
    overflow: hidden !important;
    border-radius: 8px;
}

/* 文章图片默认状态 */
body .ast-article-post .post-thumb-img-content img,
body .ast-article-post .post-thumb img,
body .ast-article-post .wp-post-image img,
body .ast-article-post .entry-thumb img,
body .ast-article-post .ast-blog-featured-section img,
body .blog-layout-4-grid .ast-article-inner .wp-post-image img,
body .ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: scale(1) !important;
    display: block;
    width: 100%;
    height: auto;
}

/* 鼠标悬停时放大图片 - 包括 blog-layout-4-grid 布局 */
body .ast-article-post:hover .post-thumb-img-content img,
body .ast-article-post:hover .post-thumb img,
body .ast-article-post:hover .wp-post-image img,
body .ast-article-post:hover .entry-thumb img,
body .ast-article-post:hover .ast-blog-featured-section img,
body .blog-layout-4-grid .ast-article-post:hover .ast-article-inner .wp-post-image img,
body .blog-layout-4-grid .ast-article-post:hover .post-thumb-img-content img {
    transform: scale(1.15) !important;
}

/* 首页 Latest Guides 文章图片悬停放大效果 - 匹配 all-articles 页面 */
/* 容器固定尺寸 - 悬停时不变化，圆角 12px */
.wp-block-latest-posts__featured-image {
    overflow: hidden !important;
    border-radius: 12px !important;
    width: 100% !important;
    height: 200px !important;
    display: block !important;
    text-align: center !important;
    margin: 10px auto 0 !important;
    transition: none !important;
    transform: none !important;
}

/* 图片填充容器 100%，圆角 12px */
.wp-block-latest-posts__featured-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: scale(1) !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 12px !important;
}

/* 鼠标悬停时只放大图片，容器尺寸保持不变 */
.wp-block-latest-posts__featured-image:hover img,
.wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.1) !important;
}

/* 确保 alignleft 不影响布局 */
.wp-block-latest-posts__featured-image.alignleft {
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}
