
/* 头图样式 */
.goodproductshd .container{

    padding: 0 0;
    object-fit: cover;
}

.aboutfa-hero{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-image: url('../images/cp-header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.9);
}



/* 选项栏 */
.goodproductshd .aboutfa-text-center{
    /*top: 0;*/
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #50585c;
    /* margin-top: 100px; */
    opacity: 0.65;
    /* padding: 0 500px; */
    display: grid;
    text-align: center; 
    position: absolute;
    /* top: 48%; */
    top: 440px;
}

.goodproductshd .aboutfa-text{
    top: 440px;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0 300px;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px,1fr));
    align-items: center;
    justify-content: center;
    position: absolute;
    /* top: 48%; */
    /*top: 440px;*/
}
.aboutfa-text a{
    text-align: center;
    padding: 10px 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 300;
}

.aboutfa-text a.active {
        background-color: rgba(255,255,255,0.2);
        font-weight: 600;
}

.aboutfa-text a:hover{
    cursor: pointer;
    font-weight: 600;
}



@media (max-width: 1290px) {
    .goodproductshd .aboutfa-text{
        padding: 0;
    }
    .aboutfa-text a{
        font-size: 20px;
        padding: 14px 0;
    }
}



/* 产品展示 */
.goodproducts .container {

    max-width: 1200px;
    margin-top: 550px;
    margin-bottom: 110px;
    padding: 0 20px;
}

.product-title{
    color: #333333;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}
/* 产品导航 */
.product-nav ul {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}
.product-nav li {
    list-style: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}
.product-nav li.active {
    color: #2b6cb0;
    border-bottom: 2px solid #2b6cb0;
}
.product-nav li:hover {
    color: #4299e1;
}

/* 热门产品画廊 */
.hot-gallery {
    background: #fff;
    border-radius: 8px;
    /*padding: 5px;*/
    margin-bottom: 40px;

    position: relative;
    overflow: hidden;
}

.gallery-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}
.carousel-wrapper {
    display: flex;
    width: max-content;
    will-change: transform;


    gap: 65px;
    /*overflow-x: auto;*/
    /*overflow-x: scroll;*/
    /*scroll-behavior: smooth;*/
    padding: 0 0 10px 0;
    /*padding-bottom: 10px;*/
}

.product-card {
    min-width: 240px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-card img {
    width: 238px;
    height: 150px;
    margin: 0 auto;
    object-fit: cover;
}
.card-info {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1290px) {
    .hot-gallery h2 {
        font-size: 20px;
    }

    .hot-gallery .product-card {
        width: 150px;
        min-width: unset;

    }
    .hot-gallery .product-card .card-info{
        font-size: 10px;
    }
    .hot-gallery .product-card img {
        width:100%;
        height: auto;
        object-fit: fill;
    }
}



/* 选型表筛选栏 */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}
.filter-bar select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}
.filter-bar button {
    padding: 8px 16px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.filter-bar button:hover {
    background: #2c5282;
}

/* 产品选型表 */
.table-container {
    background: #fff;
    border-radius: 8px;
    /*overflow: hidden;*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: auto;
}
.product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
.product-table thead {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 1;
}
.product-table th, .product-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}
.product-table th:first-child,
.product-table td:first-child {
    width: 40px;
    text-align: center;
}
.product-table tr:hover {
    background-color: #d7dadd;
}



@media (max-width: 1290px) {
    .table-section .table-container .product-table {
        /*min-width: unset;*/
        overflow-x: auto;
    }

}



/* 对比弹窗 */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.compare-modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.compare-modal.active .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    line-height: 1;
}
.close-btn:hover {
    color: #333;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.compare-table th, .compare-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    font-size: 14px;
}
.compare-table th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar select,
    .filter-bar button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 更多产品 */
.cp-products {
    padding: 110px 0;
    background-color: #f8f9fa;
}

.cp-products .container {
    /* display: flex; */
    max-width: 1000px;
    /* align-items: center; */
    padding: 6px 0px;
}

.cp-products h2{
    color: #333333;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}

.cp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 70px;
    margin-top: 90px;
}

.cp-product-card {
    background-color: #fff;
    border: 1px solid rgba(221, 221, 221, 0);
    /* padding: 0px; */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    
}

.cp-product-card:hover {
    transform: translateY(-10px);
}

.cp-product-card img {
    width: 100%;
    /* height: 0; */
    padding: 20px; 
    padding-bottom: 0%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cp-product-card:hover img {
    transform: scale(1.1);
}

.cp-product-card h3 {
    background-color: #F3F3F3;
    font-size: 36px;
    padding: 70px 20px;
    /* margin: 20px ; */
    text-align: center;
    color: #191919;
}

.cp-product-grid .product-image {
    overflow: hidden;
    border-radius: 5px;
    margin: -20px -20px 20px -20px;
}


@media (max-width: 1290px) {
    .container h2{
        font-size: 32px;
    }

    .cp-products .cp-product-grid {
        display: grid;
        place-self: center;
        grid-template-columns: repeat(3,1fr);
        grid-gap: 20px;

        margin: 40px 40px;
        /*margin: 40px 90px;*/
    }
    .cp-product-grid .cp-product-card {
        width: 90px;
    }
    .cp-product-card h3 {
        font-size: 10px;
        padding: 30px 10px;
    }
}