/* 修复图片显示问题 */

/* 首页和分类页的人格卡片图片 */
.type-card-image {
    width: 100%;
    height: 260px !important;
    background: linear-gradient(180deg, #f8fcf9, #edf6ef);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px !important;
}

.type-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

/* 人格详情页的主图片 */
.detail-image {
    width: 100%;
    max-width: 420px !important;
    margin: 0 auto;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* 分类页的迷你人格卡片图片 */
.mini-type-image {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 12px;
    background: linear-gradient(180deg, #f8fcf9, #edf6ef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
}

.mini-type-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

/* 相关人格推荐的图片 */
.related-image {
    width: 100%;
    height: 160px !important;
    background: linear-gradient(180deg, #f8fcf9, #edf6ef);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
}

.related-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .type-card-image {
        height: 200px !important;
        padding: 20px !important;
    }

    .mini-type-image {
        width: 80px !important;
        height: 80px !important;
        padding: 10px !important;
    }

    .related-image {
        height: 140px !important;
        padding: 16px !important;
    }
}
