/* 产品中心页面样式 */

/* 导航下拉菜单 */
.nav .has-dropdown {
    position: relative;
}

.nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 10px 0;
    z-index: 1000;
}

.nav .dropdown li {
    display: block;
}

.nav .dropdown a {
    display: block;
    padding: 10px 20px;
    color: #666;
    background: transparent;
    white-space: nowrap;
}

.nav .dropdown a:hover {
    background: #5AB0B5;
    color: #fff;
}

.nav .has-dropdown:hover .dropdown {
    display: block;
}

/* 页面Banner */
.page-banner {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品中心页面内容 */
.product-center-page {
    padding: 80px 0 100px;
    background: #fff;
}

.product-center-page .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.product-center-page .section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.product-center-page .product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.product-center-page .tab-btn {
    padding: 10px 30px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    border-radius: 25px;
}

.product-center-page .tab-btn.active,
.product-center-page .tab-btn:hover {
    background: #5AB0B5;
    color: #fff;
    border-color: #5AB0B5;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 单个产品网格 */
.product-grid-single {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.product-card {
    background: #f5f5f5;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #ddd;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #fff;
    display: flex;
    gap: 0;
}

.product-img img {
    flex: 1;
    height: 280px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 25px;
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
}

.product-card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: normal;
}

.product-card-info p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-banner {
        height: 150px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-img {
        height: 220px;
    }

    .nav .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .nav .has-dropdown.active .dropdown {
        display: block;
    }
}

/* 产品参数网格 */
.product-params .params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* 参数卡片 */
.product-params .param-card {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-params .param-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* 参数图片 */
.product-params .param-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
    position: absolute;
    top: 0;
    left: 0;
}

.product-params .param-card:hover img {
    transform: scale(1.05);
}

/* 产品参数标题 */
.product-params .params-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
    width: 100%;
}
