/* 硬件产品页面样式 */

.product_hw_page {
    padding-top: 81px;
}

.product_hw_banner {
    height: 320px;
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product_hw_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.product_hw_banner_content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.product_hw_banner_content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product_hw_banner_content p {
    font-size: 20px;
    letter-spacing: 3px;
}

/* 主体布局 */
.product_hw_section {
    /* padding: 60px 0 80px; */
    position: relative;
}

.product_hw_layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    height: calc(100vh - 81px); /* 减去头部高度 */
    overflow: hidden; /* 禁止整体滚动 */
}

/* 左侧类型树 */
.product_hw_sidebar {
    border-radius: 8px;
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%; /* 占满容器高度 */
    overflow-y: auto; /* 左侧独立滚动 */
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.product_hw_sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.sidebar_title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.device_tree {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.device_tree > li {
    border-bottom: 1px solid #f5f5f5;
}

.device_tree > li:last-child {
    border-bottom: none;
}

.node_label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all .3s;
    position: relative;
}

.node_label::after {
    content: '\203A';
    font-size: 18px;
    color: #999;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.device_tree > li.active > .node_label {
    /* color: #54acd7; */
    background: #f0f8fc;
    font-weight: bold;
}

.device_tree > li.active > .node_label::after {
    transform: rotate(90deg);
    /* color: #54acd7; */
}

.node_label:hover {
    background: #f8f9fa;
    color: #54acd7;
}
.node_label.active {
    background: #f8f9fa;
    color: #54acd7;
}

.device_tree > li > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* background: #fafafa; */
    list-style: none;
    padding: 0;
    margin: 0;
}

.device_tree > li.active > ul {
    max-height: 1000px;
}

.device_tree > li > ul > li {
    /* border-top: 1px solid #f0f0f0; */
}

.device_tree > li > ul > li:first-child {
    border-top: none;
}

.leaf_label {
    display: block;
    padding: 10px 20px 10px 40px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
    position: relative;
}

.leaf_label::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    transition: all .3s;
}

.leaf_label:hover {
    background: #f0f8fc;
    color: #54acd7;
    padding-left: 42px;
}

.leaf_label:hover::before {
    background: #54acd7;
    width: 6px;
    height: 6px;
}
.current {
       font-weight: bold;
           color: #000;
}

.current .leaf_label {
    /* background: #54acd7; */
    color: #000;
    font-weight: bold;
}

.device_tree > li > ul > li.current .leaf_label::before {
    background: #000;
}

/* 右侦详情 */
.product_hw_detail {
    padding: 10px 0;
    height: 100%; /* 占满容器高度 */
    overflow-y: auto; /* 右侧独立滚动 */
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.product_hw_detail::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.hw_detail_header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.hw_detail_type {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.hw_detail_type span {
    color: #333;
}

.hw_detail_title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.hw_detail_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.hw_detail_content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.hw_detail_image {
    margin-bottom: 20px;
    text-align: center;
}

.hw_detail_image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hw_detail_empty {
    padding: 80px 0;
    text-align: center;
    color: #999;
    font-size: 16px;
}

.hw_detail_content ul {
    padding-left: 18px;
    margin-top: 10px;
}

.hw_detail_content li {
    margin-bottom: 6px;
}

/* 左侧树展开/收起 - 已移动到上方 */

/* 响应式 */
@media screen and (max-width: 980px) {
    .product_hw_layout {
        grid-template-columns: 1fr;
        height: auto; /* 移动端取消固定高度 */
        overflow: visible; /* 移动端恢复正常滚动 */
    }

    .product_hw_sidebar {
        max-width: 100%;
        height: auto; /* 移动端高度自适应 */
        overflow: visible; /* 移动端不需要单独滚动 */
        margin-bottom: 20px;
    }
    
    .product_hw_detail {
        height: auto; /* 移动端高度自适应 */
        overflow: visible; /* 移动端不需要单独滚动 */
    }
}

@media screen and (max-width: 768px) {
    .product_hw_page {
        padding-top: 70px;
    }

    .product_hw_banner {
        height: 260px;
    }

    .product_hw_banner_content h1 {
        font-size: 32px;
    }

    .product_hw_section {
        padding: 40px 0 60px;
    }
}
