@charset "utf-8";

/* ========================================
   产品中心页面专用样式 - Product Center
   ======================================== */

/* --- 产品分类区块容器 --- */
.product-sections {
    margin-top: 30px;
}

/* --- 单个分类区块 --- */
.product-category-section {
    padding: 50px 0;
}

/* 交替背景色：偶数白色，奇数浅灰蓝色 */
.product-category-section:nth-child(even) {
    background-color: #ffffff;
}

.product-category-section:nth-child(odd) {
    background-color: #f4f6fd;
}

/* --- 分类卡片（图片+内容左右布局） --- */
.product-category-card {
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    gap: 60px;
}

/* 偶数区块：图片在左，内容在右 */
.product-category-section:nth-child(even) .product-category-card {
    flex-direction: row;
}

/* 奇数区块：图片在左，内容在右（与偶数一致） */
.product-category-section:nth-child(odd) .product-category-card {
    flex-direction: row;
}

/* --- 分类图片区 --- */
.category-image {
    flex: 0 0 380px;
    height: 380px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.category-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-image:hover img {
    transform: scale(1.05);
}

/* --- 分类内容区 --- */
.category-content {
    flex: 1;
    min-width: 0;
}

/* 分类信息 */
.category-info {
    margin-bottom: 28px;
}

.category-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 12px;
    position: relative;
}

.category-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* --- 产品缩略图网格 --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* --- 产品网格项 --- */
.product-grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-grid-item:hover {
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* 图片容器 */
.product-grid-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-grid-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.product-grid-item:hover .product-grid-img img {
    transform: scale(1.08);
}

/* Hover 遮罩 + 放大镜图标 */
.product-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.85);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.product-grid-item:hover .product-grid-overlay {
    opacity: 1;
}

.product-grid-overlay .fa-search {
    font-size: 28px;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.product-grid-item:hover .product-grid-overlay .fa-search {
    transform: scale(1);
}

/* 产品标题 */
.product-grid-title {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.product-grid-item:hover .product-grid-title {
    color: #0066cc;
}

/* --- 查看更多按钮 --- */
.category-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-size: 14px;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 4px;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
}

.category-more:hover {
    color: #fff;
    background: #0066cc;
    border-color: #0066cc;
    text-decoration: none;
}

.category-more .fa {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.category-more:hover .fa {
    transform: translateX(3px);
}


/* ========================================
   响应式设计 - Responsive
   ======================================== */

/* --- 中等屏幕 (≤992px) --- */
@media (max-width: 992px) {
    .product-category-card {
        gap: 30px;
    }

    .category-image {
        flex: 0 0 300px;
        height: 300px;
    }

    .category-title {
        font-size: 22px;
    }

    .product-grid {
        gap: 14px;
    }
}

/* --- 平板 & 小屏幕 (≤768px) --- */
@media (max-width: 768px) {
    .product-category-section {
        padding: 30px 0;
    }

    /* 移动端：上下堆叠，取消左右交替 */
    .product-category-section:nth-child(even) .product-category-card,
    .product-category-section:nth-child(odd) .product-category-card {
        flex-direction: column;
    }

    .product-category-card {
        gap: 25px;
    }

    .category-image {
        flex: 0 0 auto;
        width: 100%;
        height: 260px;
    }

    .category-content {
        width: 100%;
        padding: 0 4px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-more {
        padding: 8px 22px;
        font-size: 13px;
    }
}

/* --- 手机屏幕 (≤480px) --- */
@media (max-width: 480px) {
    .product-category-section {
        padding: 24px 0;
    }

    .product-category-card {
        gap: 18px;
    }

    .category-image {
        height: 200px;
    }

    .category-title {
        font-size: 18px;
    }

    .category-desc {
        font-size: 13px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-grid-img {
        padding-top: 100%;
    }

    .product-grid-title {
        font-size: 12px;
        padding: 8px 10px;
    }

    .product-grid-overlay .fa-search {
        font-size: 22px;
    }
}

/* ============================================================
   产品图文列表（对齐老版 product2-list：图左文右卡片，hover 蓝底白字）
   ============================================================ */
.product2-box {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 20px;
}
.menu-title {
    width: 100%;
    text-align: center;
    font-size: 30px;
    line-height: 30px;
    color: #000;
    margin-bottom: 10px;
}
.product2-list {
    width: 100%;
    margin-top: 36px;
    display: table;
}
.product2-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product2-list li {
    width: 585px;
    height: 280px;
    float: left;
    margin-right: 30px;
    margin-bottom: 30px;
    background: #f9f9f9;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.product2-list li:nth-child(2n) {
    margin-right: 0;
}
.product2-list li:hover {
    background: #0a448d;
}
.product2-list li a {
    display: block;
    height: 100%;
}
.product2-list li .img {
    width: 275px;
    height: 275px;
    float: left;
    margin: 2px 0 0 2px;
    border: 1px solid #e0e0e0;
    background: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.product2-list li .img img {
    max-width: 96%;
    max-height: 96%;
    -o-object-fit: contain;
    object-fit: contain;
}
.product2-list li:hover .img {
    border: 1px solid #0a448d;
}
.product2-list li .tbox {
    width: 260px;
    float: left;
    margin-left: 28px;
    padding-top: 52px;
}
.product2-list li .tbox .title {
    font-size: 18px;
    line-height: 30px;
    color: #000;
    margin-bottom: 7px;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.product2-list li .tbox .title span {
    font-size: 14px;
    color: #aaa;
    display: block;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.product2-list li .tbox .txt {
    font-size: 14px;
    line-height: 24px;
    color: #797979;
    margin-bottom: 22px;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.product2-list li .tbox .more {
    font-size: 12px;
    color: #666;
    width: 100px;
    height: 30px;
    text-align: center;
    line-height: 28px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #b5b5b5;
    border-radius: 15px;
    -webkit-transition: all ease 0.3s;
    -o-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.product2-list li:hover .tbox .title,
.product2-list li:hover .tbox .title span,
.product2-list li:hover .tbox .txt,
.product2-list li:hover .tbox .more {
    color: #fff;
}
.product2-list li:hover .tbox .title span {
    opacity: 0.5;
}
.product2-list li:hover .tbox .more {
    border: 1px solid #fff;
}

@media (max-width: 991px) {
    .product2-list li {
        width: 100%;
        height: auto;
        margin-right: 0;
        padding-bottom: 12px;
    }
    .product2-list li .img {
        width: 40%;
        height: auto;
        min-height: 140px;
        margin: 12px 0 12px 12px;
    }
    .product2-list li .tbox {
        width: 50%;
        margin-left: 20px;
        padding-top: 30px;
    }
}
@media (max-width: 767px) {
    .product2-list li .img {
        width: 100%;
        min-height: 180px;
        margin: 0;
        border: none;
    }
    .product2-list li .tbox {
        width: 90%;
        margin: 0 auto;
        padding: 20px 0 30px;
        text-align: center;
    }
    .product2-list li .tbox .more {
        margin: 0 auto;
    }
}
