.header .menu {
    font-family: Source Han Sans SC;
    font-weight: bold;
    font-size: 14px;
    color: #333333;
}

.header .menu li {
    cursor: pointer;
}

/* 去除a标签点击效果 */
.header .menu a:active,
.header .menu a:focus,
#header_mob .menu a:active,
#header_mob .menu a:focus,
.product-submenu .product-submenu-list li a:active,
.product-submenu .product-submenu-list li a:focus,
#header_mob .menu ul li .product-submenu-mob li a:active,
#header_mob .menu ul li .product-submenu-mob li a:focus {
    outline: none;
    text-decoration: none;
    color: inherit;
}

.header .menu li.disabled a,
#header_mob .menu ul li.disabled a,
.disabled-link {
    cursor: not-allowed;
    /* opacity: 0.6; */
    pointer-events: none;
}

.header .menu li.disabled a:hover,
#header_mob .menu ul li.disabled a:hover {
    color: inherit;
}
.header .menu li a:active,
.header .menu li a:focus{
    color: inherit;
}
@media screen and (min-width: 769px) {
    #header_mob {
        display: none;
    }
    .header {
        position: fixed;
        width: 100%;
        height: 60px;
        /* background: white; */
        z-index: 999;
        transition: all 0.3s ease;
    }
    .header.scrolled {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .header.scrolled .menu a {
        color: #333;
    }
    .header.scrolled .menu .active::after {
        background: #333;
    }
    .header.scrolled .menu .menu-arrow {
        filter: brightness(0);
    }
    .header .section-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    .header .logo {
        position: relative;
        top: 5px;
    }
    .header .logo img {
        width: 150px;
        height: 50px;
    }
    .header .logo .logo-scrolled {
        display: none;
    }
    .header.scrolled .logo .logo-default {
        display: none;
    }
    .header.scrolled .logo .logo-scrolled {
        display: block;
    }
    .header .menu {
        width: 80%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        height: 100%;
    }
    .header .menu li {
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }
    .header .menu li#product-menu {
        position: relative;
    }
    /* Aluminum Prefabricated Buildings 一级菜单链接样式 */
    /* .header .menu li#prefabricated-menu > a {
        text-transform: none !important;
    } */
    /* 强制一级菜单链接样式 */
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link,
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:link,
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:visited,
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:hover,
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:focus,
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:active {
        font-family: 'Source Han Sans SC', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333 !important;
        text-decoration: none !important;
        text-transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 18px !important;
        transition: all 0.2s ease;
        background: transparent !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
        cursor: pointer !important;
    }
    .header .menu a {
        color: #fff;
        text-transform: uppercase;
    }
    .header .menu .active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 43px;
        height: 3px;
        background: #fff;
    }
    .header .menu .has-submenu a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .header .menu .menu-arrow {
        width: 12px;
        height: 8px;
        background: url("../images/header/arrow_bottom.png") center center / contain no-repeat;
        transition: transform 0.2s ease;
    }
    .header .menu .menu-arrow.open {
        transform: rotate(180deg);
    }
    .header .container-box1 {
        padding: 0 150px;
        font-family: inherit;
        height: 100%;
    }
    .header .language-select {
        display: flex;
        align-items: center;
    }
    .header .language-select img {
        width: 20px;
        margin-right: 5px;
    }
    .header .language-select select {
        border: none;
        background: transparent;
        color: #333;
        outline: none;
        border: none;
        flex-shrink: 0;
    }
    .header .language-select select:after {
        content: "\25BC";
        /* Unicode编码，表示向下的箭头 */
        position: absolute;
        top: 12px;
        right: 10px;
    }
    .language-select select option {
        padding: 5px;
        background-color: #f9f9f9;
        color: #333;
    }
    /* 桌面端产品二级导航样式 - 垂直一级菜单 */
    .header .menu li#product-menu .product-submenu-desktop {
        display: block;
        /* position: fixed; */
        position: absolute;
        top: 60px;
        left: 100%;
        transform: translateX(-50%) translateY(-10px);
        /* width: 220px; */
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 6px 6px;
        z-index: 9999;
        padding: 8px 0 !important;
        box-sizing: border-box;
        list-style: none !important;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }
    /* Solutions菜单使用absolute定位 */
    .header .menu li#solutions-menu .product-submenu-desktop,
    .header .menu li#prefabricated-menu .product-submenu-desktop,
    .header .menu li#stories-menu .product-submenu-desktop {
        display: block;
        position: absolute;
        top: 100%;
        left: 100%;
        transform: translateX(-50%) translateY(10px);
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 6px 6px;
        z-index: 9999;
        padding: 8px 0 !important;
        box-sizing: border-box;
        list-style: none !important;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }
    /* 添加透明桥接区域,保持hover状态 */
    .header .menu li#product-menu .product-submenu-desktop::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }
    /* Solutions菜单桥接区域 */
    .header .menu li#solutions-menu .product-submenu-desktop::before,
    .header .menu li#prefabricated-menu .product-submenu-desktop::before,
    .header .menu li#stories-menu .product-submenu-desktop::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }
    /* 悬停时显示菜单 - 支持所有状态,优先级最高 */
    .header .menu li#product-menu:hover .product-submenu-desktop,
    .header .menu li#product-menu.active:hover .product-submenu-desktop {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        pointer-events: auto !important;
    }

    /* Solutions菜单悬停时显示 */
    .header .menu li#solutions-menu:hover .product-submenu-desktop,
    .header .menu li#prefabricated-menu:hover .product-submenu-desktop,
    .header .menu li#stories-menu:hover .product-submenu-desktop {
        opacity: 1 !important;
        visibility: visible !important;
        /* transform: translateX(-50%) translateY(0) !important; */
        pointer-events: auto !important;
    }
    header .menu li#stories-menu .product-submenu-desktop.stories-submenu-desktop {
        transform: translateX(-70%) translateY(0) !important;
    }
    .header .menu li#stories-menu:hover .product-submenu-desktop.stories-submenu-desktop{
        transform: translateX(-70%) translateY(0) !important;
    }
    .header .menu li#stories-menu:hover li::after{
        background-color: transparent;
    }
    /* 一级菜单 - 垂直排列 */
    .header .menu li#product-menu .product-submenu-desktop > li {
        position: relative;
        width: 100%;
        cursor: default;
        list-style: none !important;
    }
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link {
        font-family: 'Source Han Sans SC', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 18px !important;
        transition: all 0.2s ease;
        background: transparent;
        white-space: nowrap;
        line-height: 1.4;
        cursor: pointer;
        width: 100%;
    }
    /* Solutions菜单一级项样式 - 不需要箭头 */
    .header .menu li#solutions-menu .product-submenu-desktop > li,
    .header .menu li#prefabricated-menu .product-submenu-desktop > li,
    .header .menu li#stories-menu .product-submenu-desktop > li {
        position: relative;
        width: 100%;
        cursor: default;
        list-style: none !important;
    }
    .header .menu li#solutions-menu .product-submenu-desktop > li > a.parent-link,
    .header .menu li#prefabricated-menu .product-submenu-desktop > li > a.parent-link,
    .header .menu li#stories-menu .product-submenu-desktop > li > a.parent-link {
        font-family: 'Source Han Sans SC', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        text-transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 12px 18px !important;
        transition: all 0.2s ease;
        background: transparent;
        white-space: nowrap;
        line-height: 1.4;
        cursor: pointer;
        width: 100%;
    }
    /* 一级菜单悬停和激活状态 */
    .header .menu li#product-menu .product-submenu-desktop > li > a.parent-link:hover,
    .header .menu li#product-menu .product-submenu-desktop > li:hover > a.parent-link {
        color: #3f8ed0 !important;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%) !important;
    }
    .header .menu li#solutions-menu .product-submenu-desktop > li > a.parent-link:hover,
    .header .menu li#solutions-menu .product-submenu-desktop > li:hover > a.parent-link,
    .header .menu li#prefabricated-menu .product-submenu-desktop > li > a.parent-link:hover,
    .header .menu li#prefabricated-menu .product-submenu-desktop > li:hover > a.parent-link,
    .header .menu li#stories-menu .product-submenu-desktop > li > a.parent-link:hover,
    .header .menu li#stories-menu .product-submenu-desktop > li:hover > a.parent-link {
        color: #3f8ed0 !important;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%) !important;
    }
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link,
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link:link,
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link:visited,
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link:hover,
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link:focus,
    .header .menu li#stories-menu .product-submenu-desktop > li.active > a.parent-link:active {
        color: #3f8ed0 !important;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%) !important;
        font-weight: 600 !important;
    }
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link,
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link:link,
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link:visited,
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link:hover,
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link:focus,
    .header .menu li#product-menu .product-submenu-desktop > li.active > a.parent-link:active {
        color: #3f8ed0 !important;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%) !important;
        font-weight: 600 !important;
    }
    /* Product菜单箭头样式 */
    .header .menu li#product-menu .product-submenu-desktop > li .submenu-arrow {
        display: inline-block !important;
        width: 6px !important;
        height: 6px !important;
        border-right: 2px solid #999 !important;
        border-bottom: 2px solid #999 !important;
        transform: rotate(-45deg) !important;
        margin-left: 8px !important;
        transition: all 0.2s ease;
        flex-shrink: 0 !important;
        opacity: 0.6 !important;
        content: '';
    }
    /* Solutions菜单不需要箭头 */
    .header .menu li#solutions-menu .product-submenu-desktop > li .submenu-arrow,
    .header .menu li#prefabricated-menu .product-submenu-desktop > li .submenu-arrow,
    .header .menu li#stories-menu .product-submenu-desktop > li .submenu-arrow {
        display: none !important;
    }
    .header .menu li#product-menu .product-submenu-desktop > li:hover .submenu-arrow,
    .header .menu li#product-menu .product-submenu-desktop > li.active .submenu-arrow {
        border-color: #3f8ed0 !important;
        opacity: 1 !important;
        transform: rotate(-45deg) translateX(2px) !important;
    }
    /* 二级菜单 - 右侧水平展开 (仅Product菜单) */
    .header .menu li#product-menu .product-submenu-desktop .child-menu {
        display: block;
        position: absolute;
        top: 0;
        left: calc(100% + 2px);
        min-width: 260px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        padding: 8px 0;
        margin: 0;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
    }
    /* Solutions菜单不需要二级菜单 */
    .header .menu li#solutions-menu .product-submenu-desktop .child-menu,
    .header .menu li#prefabricated-menu .product-submenu-desktop .child-menu,
    .header .menu li#stories-menu .product-submenu-desktop .child-menu {
        display: none !important;
    }
    /* 悬停一级菜单项时显示二级菜单 (仅Product菜单) */
    .header .menu li#product-menu .product-submenu-desktop > li:hover .child-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 0;
        width: 4px;
        height: 100%;
        background: transparent;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li {
        padding: 0;
        cursor: default;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li a {
        font-family: 'Source Han Sans SC', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #555;
        text-decoration: none;
        text-transform: none !important;
        display: block;
        padding: 11px 20px;
        transition: all 0.25s ease;
        white-space: nowrap;
        line-height: 1.4;
        position: relative;
        cursor: pointer;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 60%;
        background: #3f8ed0;
        transition: width 0.2s ease;
        border-radius: 0 2px 2px 0;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li a:hover {
        color: #3f8ed0;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%);
        padding-left: 24px;
        font-weight: 500;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li a:hover::before {
        width: 3px;
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li.active a {
        color: #3f8ed0;
        font-weight: 600;
        background: linear-gradient(90deg, #f5f9ff 0%, #ffffff 100%);
    }
    .header .menu li#product-menu .product-submenu-desktop .child-menu li.active a::before {
        width: 3px;
    }
}

@media screen and (max-width: 769px) {
    #header {
        display: none;
    }
    #header_mob {
        position: fixed;
        width: 100%;
        max-width: 100vw;
        height: 60px;
        background: white;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        left: 0;
        right: 0;
    }
    #header_mob .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    #header_mob .container-box {
        position: relative;
        padding: 0 20px;
        height: 100%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #header_mob .section-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        font-family: Source Han Sans SC;
    }
    #header_mob .logo img {
        width: 60px;
        height: 60px;
    }
    #header_mob .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }
    #header_mob .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    #header_mob .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #header_mob .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    #header_mob .menu {
        display: none;
        position: absolute;
        width: 100%;
        max-width: 100vw;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        box-sizing: border-box;
    }
    #header_mob .menu ul {
        list-style: none;
        margin: 0;
        padding: 0 20px;
    }
    #header_mob .menu ul li {
        padding: 15px 0;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }
    #header_mob .menu ul li:last-child {
        border-bottom: none;
    }
    #header_mob .menu ul li a {
        font-family: Source Han Sans SC;
        font-size: 12px;
        font-weight: bold;
        line-height: 20px;
        color: #333;
        text-decoration: none;
        display: block;
    }
    #header_mob .menu ul li a:hover {
        color: #3f8ed0;
    }
    #header_mob .menu ul li.active a {
        color: #3f8ed0;
    }
    /* #header_mob .menu ul li.active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: #FFBB11;
    } */
    /* 移动端产品子菜单样式 */
    #header_mob .menu ul li.has-submenu .product-menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    #header_mob .menu ul li.has-submenu .menu-arrow {
        width: 12px;
        height: 8px;
        background: url("../images/header/arrow_bottom.png") center center / contain no-repeat;
        transition: transform 0.2s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }
    #header_mob .menu ul li.has-submenu .menu-arrow.open {
        transform: rotate(180deg);
    }
    /* 移动端产品二级菜单样式 */
    #header_mob .menu ul li.has-submenu .product-submenu-mob {
        display: none;
        list-style: none;
        margin: 10px 0 0 0;
        padding: 0;
        background: #f9f9f9;
        border-radius: 4px;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li {
        position: relative;
        border-bottom: 1px solid #e8e8e8;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li:last-child {
        border-bottom: none;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li > a.parent-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        padding: 12px 20px;
        text-decoration: none;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li > a.parent-link:hover {
        color: #3f8ed0;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li .submenu-arrow {
        width: 8px;
        height: 8px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(-45deg);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li .submenu-arrow.open {
        transform: rotate(45deg);
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob > li.active > a.parent-link {
        color: #3f8ed0;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob .child-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0 0 0 20px;
        background: #fff;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob .child-menu li {
        padding: 0;
        border-bottom: none;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob .child-menu li a {
        font-size: 13px;
        font-weight: 400;
        color: #666;
        padding: 10px 20px;
        display: block;
        text-decoration: none;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob .child-menu li a:hover {
        color: #3f8ed0;
        background: #f5f9ff;
    }
    #header_mob .menu ul li.has-submenu .product-submenu-mob .child-menu li.active a {
        color: #3f8ed0;
        font-weight: 500;
    }
    .product-submenu {
        display: none;
    }
    /* 移动端菜单动画优化 */
    #header_mob .menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #header_mob .change {
        display: flex;
        align-items: center;
    }
    #header_mob .language-select {
        display: flex;
        align-items: center;
        margin-right: 20px;
    }
    #header_mob .language-select img {
        width: 20px;
        margin-right: 5px;
    }
    #header_mob .language-select select {
        border: none;
        background: transparent;
        color: #333;
        outline: none;
        border: none;
        flex-shrink: 0;
    }
    #header_mob .language-select select:after {
        content: "\25BC";
        /* Unicode编码，表示向下的箭头 */
        position: absolute;
        top: 12px;
        right: 10px;
    }
    .language-select select option {
        padding: 5px;
        background-color: #f9f9f9;
        color: #333;
    }

}
