/* ============================================
   占星产品卡片组件样式
   ============================================ */
.astro-product-cards-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.astro-product-card-two {
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: var(--spacing-sm);
    width: 158pt;
    height: 178pt;
    box-sizing: border-box;
    margin-top: 40px;
    overflow: visible;
    /*border: 1px solid #B7B3B4;*/
    /*background-color: #F2F2F2;*/
    left: 7px;
}

/* 卡片的三个部分组成艺术边框 */
.astro-product-card__top-two {
    width: 100%;
    height: 15px;
    background-image: url('/static/images/home/analysis-card-top.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;
}

.astro-product-card__middle-two {
    width: 150pt;
    height: 206pt;
    display: flex;
    flex-direction: column;
    margin-top: -15px;
    justify-content: center;
    left: 5px;
    padding: 0;
    position: relative;
    background-image: url('/static/images/home/product-card.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;;
    /*background-color: #F7F5F6;*/
    /*border: 1.5px solid rgba(183, 179, 180, 1);*/
}

/* 内部的astro-product-card元素作为背景层 - 只针对在middle内部的情况 */
/*.astro-product-card__middle > .astro-product-card {*/

/*    border: 1px solid #B7B3B4;*/
/*    background-color: #F2F2F2;*/
/*    position: relative;*/
/*    cursor: pointer;*/
/*    transition: var(--transition-base);*/
/*    margin-bottom: var(--spacing-sm);*/
/*    width: 100pt;*/
/*    height: 178pt;*/
/*    box-sizing: border-box;*/
/*    overflow: visible;*/
/*    z-index: -1;*/
/*}*/

.astro-product-card__bottom-two {
    width: 100%;
    height: 15px;
    background-image: url('/static/images/home/analysis-card-bottom.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 100%;
}

.astro-product-card-two:hover {
    transform: translateX(2px);
}

.astro-product-card__thumbnail-two {
    width: 44px;
    height: 44px;
    position: absolute;
    left: 16px;
    top: 34px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(240, 219, 173, 1);
}

.astro-product-card__thumbnail-two img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.astro-product-card__content-two {
    position: absolute;
    left: 16px;
    top: 79px;
    width: 118px;
    height: auto;
    z-index: 10;
}

/* 当有缩略图时，调整内容区域 */
.astro-product-card--with-thumb-two .astro-product-card__content-two {
    padding: 0;
}

.astro-product-card__title-two {
    width: 132pt;
    height: auto;
    overflow-wrap: break-word;
    color: rgba(51, 48, 41, 1);
    font-family: Helvetica, "Microsoft YaHei", Arial, sans-serif;
    font-weight: normal;
    text-align: left;
    white-space: normal;
    margin-top: 20px;
    line-height: 16pt;
    font-size: 13pt;
    margin-bottom: 10pt;
}

.astro-product-card__desc-two {
    width: 118pt;
    height: 30pt;
    overflow-wrap: break-word;
    color: rgba(109, 97, 71, 1);
    font-size: 11pt;
    font-family: Helvetica, "Microsoft YaHei", Arial, sans-serif;
    font-weight: normal;
    text-align: left;
    margin-top: 5pt;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;

}

.astro-product-card__arrow-two {
    width: 20pt;
    height: 20pt;
    background: url('/static/images/home/right-arrow.png') no-repeat center;
    background-size: contain;
    position: absolute;
    left: 15%;
    bottom: 16px;
    margin-bottom: 5pt;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.8;
    text-decoration: none;
    display: block;
}

.decoration-image {
    width: 38pt;
    height: 6pt;
    background: url('/static/images/home/decoration.png') no-repeat center;
    margin-top: -38px;
    margin-left: 12pt;
}

.astro-product-card-two:hover .astro-product-card__arrow-two {
    transform: translateX(-47%);
    opacity: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .astro-product-cards-two {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .astro-product-card__middle-two {
        padding: var(--spacing-xs) var(--spacing-md);
        width: 130pt;
        height: 176pt;
    }

    .astro-product-card-two {
        width: 137pt;
        height: 156pt;
    }


    .astro-product-card__title-two {
        font-size: 15px;
        width: 102pt;
       margin-top: 10px;
    }

    .astro-product-card__desc-two {
        font-size: 11px;
        width: 98pt;
        height: 24pt;
    }

    .astro-product-card__thumbnail-two {
        width: 36px;
        height: 36px;
        left: 12px;
        top: 18px;
    }

    .astro-product-card__content-two {
        left: 12px;
        top: 65px;
        width: 100px;
    }

    .decoration-image {
        margin-top: -12px;
        margin-bottom: 10px;
    }

    /* 移动端缩略图尺寸调整 */
    .astro-product-card__thumbnail-two {
        width: 36px;
        height: 36px;
        margin-right: var(--spacing-sm);
    }
    .astro-product-card__arrow-two {
        width: 20px;
        height: 20px;
    }
}