/* 商品容器 - 更合理的网格布局 */
.new-sale-page .goods-container,
.product-list-page .goods-container {
    width: 980px;
    padding-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* 商品卡片 - 更合理的结构 */
.good-info {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e3e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto; /* 改为自动高度 */
}

/* 图片容器 - 确保图片完整显示 */
.good-detail-img {
    width: 100%;
    height: 200px; /* 固定图片高度 */
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 15px;*/
    position: relative;
}

.good-detail-img .good-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 商品信息区域 - 确保价格可见 */
.good-detail-text {
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: #f0f5fc;  /* 柔和的浅蓝色 */
}
.good-detail-text a {
    color: #2d3747;
    font-size: 14px;
    line-height: 1.5;
    /*margin-bottom: 12px;*/
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /*overflow: hidden;*/
    flex-grow: 1; /* 标题区域自动扩展 */
}

/* 价格样式 - 确保始终可见 */
.price {
    margin-top: 10px;

}


.sale-price.prime-cost {
    color: #d32f2f;
    font-size: 18px;
    font-weight: 600;
    display: block; /* 确保独占一行 */
}

/* 悬停效果 */
.good-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.center-content {
    width: 1245px;
    margin-left: auto;
    margin-right: auto;
}
.product-page .list-right {
    width: 100%;
}
.new-sale-page .goods-container, .product-list-page .goods-container {
    width: 100%;
    padding-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.new-sale-page .goods-container, .product-list-page .goods-container {
    width: 100%;
    padding-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
