/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

/* === GEO & UI 修复 2026-03-19 === */

/* 1. 隐藏 Astra 文章页自动显示的 Featured Image（避免重复） */
.single-post .post-thumb-img-content,
.single-post .ast-blog-single-element.post-thumb {
    display: none !important;
}

/* 2. 首页手机端适配 */
@media (max-width: 768px) {
    /* 首页卡片图片统一高度 */
    .fp-card img, .fp-article-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }
    /* 卡片内边距 */
    .fp-card, .fp-article-card {
        margin-bottom: 16px;
        padding: 12px;
    }
}

/* 3. 文章页 Featured Image 样式（保留我们自定义的显示） */
.entry-content > .fp-featured-img {
    max-width: 720px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
}
.entry-content > .fp-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}


/* 统一所有首页栏目标签颜色为蓝色系 */
.fp-card span[style*="background:"],
.fp-card span[style*="background-color:"] {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}
