﻿/* ProductTypeStyle.css - 产品类型通用样式 */
/* 产品列表容器 */
.product-list {
    /* 新增：控制每行4列 + 列间距 */
    display: grid; /* 启用网格布局（必须） */
    grid-template-columns: repeat(4, 1fr); /* 核心：每行4列，每列宽度均等 */
    gap: 20px; /* 可选：列/行之间的间距，优化排版 */

    padding: 0 !important;
    margin: 10px auto !important;
    width: 100% !important;
    max-width: 1500px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
/* 单个产品项 */
.product-item {
    width: 100% !important;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
/* 产品名称 */
.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    /* Flex 居中核心 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 固定高度 */
    height: 35px;
    line-height: normal;
}
/* 产品内容容器（文字+图片） */
.product-content {
    display: flex;
    width: 100%;
    padding: 0px;
    gap: 5px;
    margin-bottom: 0px;
    align-items: center;
}
/* 产品描述文字区 */
.product-desc {
    width: 50% !important;
    flex: none !important;
    font-size: 0.675rem;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
    padding: 0 0px;
    overflow: hidden;
}
/* 产品图片区 */
.product-img {
    width: 50% !important;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}
    /* 产品图片 */
    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        margin-top: 5px; 
    }
/* 产品详情链接区 */
.product-detail {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}
    /* 产品详情链接 */
    .product-detail a {
        color: inherit;
        text-decoration: none;
        display: inline-block;
        text-align: inherit;
    }

        .product-detail a:hover {
            color: #e6ac00;
            text-decoration: underline;
        }
/* 更多产品按钮 */
.more-btn {
    display: block;
    width: 120px;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    padding: 0 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    margin: 0 auto 18.75px !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

    .more-btn:hover {
        background: linear-gradient(120deg, #ffecb3 0%, #fff8e1 100%) !important;
        color: #e6ac00 !important;
        border-color: #e6ac00 !important;
        text-decoration: none !important;
    }
/* 产品类型响应式适配（仅针对产品样式） */
@media (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr !important;
    }

    .product-content {
        flex-direction: column !important;
    }

    .product-img {
        width: 100% !important;
        height: 100% !important;
    }
}
