/* 新增优化样式 */
.product-card {
    border: 1px solid #eee;
    transition: all 0.3s;
    overflow: hidden;
}

/* 图片容器统一尺寸 */
.product-img-container {
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 1rem;
}

/* 文字内容规范 */
.spec-list {
    flex: 1;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 1rem 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 3em; /* 保持两行高度 */
}

/* 按钮定位优化 */
.btn-detail {
    width: 80%;
    max-width: 200px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
    bottom: 0;
}

/* 悬停动效 */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.product-card:hover .btn-detail {
    background-color: #0d6efd;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-img-container {
        height: 200px;
    }
    
    .btn-detail {
        width: 100%;
        max-width: none;
    }
}
