/* 产品中心页面样式 */

.product_page {
    padding-top: 101px;
}
/* 解决方案页面固定子菜单 */
.solution_submenu_fixed {
    background: #fff;
    padding: 20px 0;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 90;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

/* 解决锚点跳转被固定菜单遮挡 */
.solution_section {
    scroll-margin-top: 126px; /* 65px导航栏 + 61px子菜单 + 20px间距 */
}

/* 第一个section需要额外的上边距 */
.solution_page .solution_section:first-of-type {
    padding-top:96px;
}

.solution_submenu_items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.solution_submenu_item {
    font-size: 15px;
    color: #666;
    text-decoration: none;
    transition: all .3s;
    padding: 5px 0;
    position: relative;
}

.solution_submenu_item:hover,
.solution_submenu_item.active {
    color: #54acd7;
}

.solution_submenu_item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #54acd7;
}



/* Banner */
.product_banner {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.product_banner_content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.product_banner_content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product_banner_content p {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
}

/* 产品列表/设备预览区块通用内边距 */
.product_list_section,
.product_device_section,
.product_topology_section,
.product_entry_section {
    /* padding: 80px 0; */
}

.product_topology_section{
    background: #fbfbff;
    
}
/* 系统拓扑图 */
.product_topology_box {
    /* margin-top: 40px; */
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); */
}

.product_topology_box img {
    display: block;
    width: 100%;
    height: auto;
}

/* 拓扑图下方设备分类Tab */
.product_device_tabs_section {
    padding: 60px 0 80px;
    background: #fafbfc;
}

/* 产品分类区域 */
.product_category_section {
    margin-bottom: 80px;
}

.product_category_section:last-child {
    margin-bottom: 0;
}

/* 分类标题 */
.product_category_title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

/* 核心硬件产品 - 3列布局 */
.product_category_section:first-child .device_items {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 核心硬件产品 - 特殊卡片样式 */
.product_category_section:first-child .device_card {
    background: #E8E8E8;
    border-radius: 16px;
    padding: 0;
    height: 360px;
    position: relative;
    overflow: hidden;
    display: block;
}

.product_category_section:first-child .device_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 核心硬件 - 图片作为背景 */
.product_category_section:first-child .device_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    z-index: 0;
}

.product_category_section:first-child .device_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 核心硬件 - 标题在顶部 */
.product_category_section:first-child .device_card h4 {
    margin-top: 10px;
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #333;
    /* margin: 0; */
    padding: 24px 20px 16px;
    font-weight: 500;
    background: transparent;
    text-align: center;
}

/* 核心硬件 - 白色圆角按钮 */
.product_category_section:first-child .device_card p {
    position: absolute;
    top:70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 14px;
    color: #333;
    margin: 0;
    padding: 8px 20px;
    background: #fff;
    border-radius: 20px;
    white-space: nowrap;
}

/* 其他硬件产品 - 4列布局 */
.product_category_section:last-child .device_items {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 其他硬件产品 - 简洁卡片样式 */
.product_category_section:last-child .device_card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    height: auto;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product_category_section:last-child .device_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 其他硬件 - 图片居中显示 */
.product_category_section:last-child .device_image {
    width: 100%;
    /* height: 120px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product_category_section:last-child .device_image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* 其他硬件 - 标题在图片下方 */
.product_category_section:last-child .device_card h4 {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0;
    font-weight: 500;
    /* text-align: center; */
}

/* 其他硬件 - 了解更多文字链接 */
.product_category_section:last-child .device_card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0;
    background: transparent;
    /* text-align: center; */
}

/* Tab导航（已弃用，保留兼容） */
.device_tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.device_tab {
    padding: 15px 40px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all .3s;
    position: relative;
    border-bottom: 3px solid transparent;
}

.device_tab:hover {
    color: #333;
}

.device_tab.active {
    color: #54acd7;
    border-bottom-color: #54acd7;
}
.current {
    color: #54acd7;
    border-bottom-color: #54acd7;
}

/* 设备卡片通用 */
.device_content {
    min-height: 400px;
}

.device_items {
    display: grid;
}

/* 默认卡片样式（已被具体分类样式覆盖） */
.device_card {
    transition: all .3s;
    cursor: pointer;
    /* text-align: center; */
}

.device_card:hover {
    transform: translateY(-5px);
}

/* 硬件/软件入口 */
.product_entry_text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.product_entry_text h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product_entry_text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.product_entry_box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product_entry_item {
    display: block;
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f9ff 0%, #fdfbff 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all .3s;
}

.product_entry_item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product_entry_item .entry_title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product_entry_item .entry_desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product_entry_item .entry_more {
    font-size: 14px;
    color: #54acd7;
    font-weight: 500;
}

/* 设备类别标签 */
.product_category_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 40px;
}

.category_tag {
    padding: 8px 18px;
    border-radius: 20px;
    background: #f0f4ff;
    color: #666;
    font-size: 14px;
}

/* 设备预览网格沿用原product_grid样式 */

/* 筛选 */
.product_filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.product_filter_item {
    padding: 12px 30px;
    font-size: 16px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all .3s;
}

.product_filter_item:hover {
    color: #54acd7;
    border-color: #54acd7;
}

.product_filter_item.active {
    color: #fff;
    background: #54acd7;
    border-color: #54acd7;
}

/* 产品网格 */
.product_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product_item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all .3s;
}

.product_item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product_image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.product_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .5s;
}

.product_item:hover .product_image img {
    transform: scale(1.1);
}

.product_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 172, 215, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .3s;
}

.product_item:hover .product_overlay {
    opacity: 1;
}

.product_detail_btn {
    padding: 12px 30px;
    background: #fff;
    color: #54acd7;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all .3s;
}

.product_detail_btn:hover {
    background: #333;
    color: #fff;
}

.product_info {
    padding: 30px;
}

.product_name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product_desc {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.product_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product_tag {
    padding: 5px 15px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 15px;
}

/* 技术优势 */
.product_advantage_section {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantage_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.advantage_item {
    text-align: center;
}

.advantage_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.advantage_item:hover .advantage_icon {
    transform: rotateY(360deg);
}

.advantage_icon .iconfont {
    font-size: 36px;
    color: #fff;
}

.advantage_item h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.advantage_item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 响应式 */
@media screen and (max-width: 980px) {
    .product_banner {
        height: 300px;
    }

    .product_banner_content h1 {
        font-size: 42px;
    }

    .product_banner_content p {
        font-size: 18px;
    }

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

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

    .product_filter {
        gap: 15px;
    }

    .product_filter_item {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Tab导航 */
    .device_tabs {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .device_tabs::-webkit-scrollbar {
        display: none;
    }
    
    .device_tab {
        padding: 12px 25px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 设备卡片 */
    .device_items {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .device_card {
        padding: 15px;
    }
    
    .device_image {
        height: 120px;
        margin-bottom: 15px;
    }
    
    .device_card h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .device_card p {
        font-size: 12px;
    }
    
    /* 产品入口 */
    .product_entry_box {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product_entry_item {
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .product_page {
        padding-top: 70px;
    }
    
    .product_banner {
        height: 250px;
    }

    .product_banner_content h1 {
        font-size: 32px;
    }

    .product_banner_content p {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .product_list_section,
    .product_advantage_section,
    .product_device_tabs_section,
    .product_entry_section {
        padding: 40px 0;
    }

    .product_grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product_image {
        height: 220px;
    }

    .advantage_grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product_filter {
        gap: 10px;
    }
    
    /* Tab导航 */
    .device_tabs {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .device_tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 设备卡片 */
    .device_items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .device_image {
        height: 150px;
    }
    
    /* 产品入口文字 */
    .product_entry_text h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .product_entry_text p {
        font-size: 14px;
    }
    
    .product_entry_item .entry_title {
        font-size: 18px;
    }
    
    .product_entry_item .entry_desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
}
