/* 顶部导航栏样式 */ header  {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(80 * 100vw / 1920);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 1);
    transition: background-color 0.3s ease;
    /* box-shadow: 0 calc(2 * 100vw / 1920) calc(10 * 100vw / 1920) rgba(0, 0, 0, 0.05);
    */
}
/* 删除悬停时的背景变白效果，因为现在背景始终是白色 */ /* header:hover  {
    background-color: rgba(255, 255, 255, 1);

}
*/ header.white-bg  {
    background-color: rgba(255, 255, 255, 1);

}
nav  {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 calc(36 * 100vw / 1920);
    margin: 0 auto;
    position: relative;

}
.logo  {
    position: absolute;
    left: calc(36 * 100vw / 1920);
    display: flex;
    align-items: center;
    height: 100%;

}
.logo img  {
    width: calc(134 * 100vw / 1920);
    height: calc(41 * 100vw / 1920);

}
.nav-links  {
    display: flex;
    gap: calc(20 * 100vw / 1920);
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    align-items: center;

}
.nav-links li  {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;

}
.nav-links li.active,
.nav-links li:hover  {
    background-color: #FFFFFF;

}
/* 导航链接样式 - 移除过渡效果避免闪烁 */ .nav-links a,
.nav-links span  {
    color: #5C5D95;
    font-weight: 400;
    text-decoration: none;
    font-size: calc(16 * 100vw / 1920);
    /* 移除过渡效果，确保状态变化即时 */
    /* transition: color 0.3s ease; */
    cursor: pointer;
    padding: 0 calc(15 * 100vw / 1920);
    height: 100%;
    display: flex;
    align-items: center;

}
/* 菜单过渡状态样式 - 移除所有过渡效果 */ .nav-links a.transition-active,
.nav-links span.transition-active  {
    /* 移除过渡效果 */
    /* transition: color 0.1s ease !important; */

}
/* 增强菜单激活状态样式选择器 */ .nav-links a.active,
.nav-links span.active,
.nav-links a[data-protected="true"],
.nav-links span[data-protected="true"],
body:not(.no-headers) .nav-links a.active,
body:not(.no-headers) .nav-links span.active,
html body .nav-links a.active,
html body .nav-links span.active,
body.imv .nav-links a.active,
body.imv .nav-links span.active  {
    color: #0066FF !important;
    font-weight: 400 !important;

}
/* 直接导航项（不是子菜单触发器）在active状态下不可点击 */ .nav-links > li > a.active,
.nav-links > li > a[data-protected="true"]  {
    cursor: default !important;
    pointer-events: none !important;

}
/* 确保处于激活状态的元素强制保持蓝色 */ .nav-links a.active[style*="color"],
.nav-links span.active[style*="color"]  {
    color: #0066FF !important;

}
.nav-links li:hover > a,
.nav-links li:hover > span  {
    color: #0066FF;

}
/* 二级菜单容器 */ .submenu  {
    position: fixed;
    top: calc(80 * 100vw / 1920);
    left: 0;
    width: 100vw;
    height: calc(80 * 100vw / 1920);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(calc(10 * 100vw / 1920));
    display: none;
    justify-content: center;
    align-items: center;
    gap: calc(10 * 100vw / 1920);
    z-index: 999;
    transition: all 0.3s ease;

}

/* 英文状态下的解决方案二级菜单间距调整 */
html[lang="en"] .submenu {
    gap: calc(6 * 100vw / 1920);
}

/* 英文状态下的解决方案二级菜单项字体大小调整 */
html[lang="en"] .submenu a {
    font-size: calc(14 * 100vw / 1920);
}
/* 二级菜单项 - 移除过渡效果 */ .submenu a  {
    color: #5C5D95;
    font-size: calc(16 * 100vw / 1920);
    text-decoration: none;
    white-space: nowrap;
    /* 移除过渡效果 */
    /* transition: color 0.1s ease; */

}
/* 增强二级菜单项激活状态样式选择器 */ .submenu a:hover,
.submenu a.active,
.submenu a[data-protected="true"],
html body .submenu a.active,
body:not(.no-headers) .submenu a.active,
body.imv .submenu a.active  {
    color: #0066FF !important;
    font-weight: 400 !important;

}
/* 仅对子菜单中的当前页面链接禁用点击 */ .submenu a.active,
.submenu a[data-protected="true"]  {
    cursor: default !important;
    pointer-events: none !important;

}
/* 确保处于激活状态的二级菜单元素强制保持蓝色 */ .submenu a.active[style*="color"]  {
    color: #0066FF !important;

}
/* 显示子菜单时主菜单项的样式 */ .nav-links li.submenu-active  {
    background-color: #FFFFFF;

}
/* 显示子菜单的样式 */ .submenu.show  {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;

}
/* 增强解决方案菜单激活状态样式 */ .nav-links span[data-i18n="header.nav.solutions"].active,
.nav-links span[data-i18n="header.nav.solutions"][data-protected="true"],
html body .nav-links span[data-i18n="header.nav.solutions"].active  {
    color: #0066FF !important;
    font-weight: 400 !important;

}
/* 增强智慧地产菜单激活状态样式 */ .submenu a[href*="smart-estate"].active,
.submenu a[data-i18n="header.solutions.estate"].active,
.submenu a[href*="smart-estate"][data-protected="true"],
.submenu a[data-i18n="header.solutions.estate"][data-protected="true"],
html body .submenu a[href*="smart-estate"].active,
html body .submenu a[data-i18n="header.solutions.estate"].active  {
    color: #0066FF !important;
    font-weight: 400 !important;
    pointer-events: none !important;
    cursor: default !important;

}
/* 通用的更高优先级选择器，确保样式不被覆盖 */ [data-protected="true"][style*="color"]  {
    color: #0066FF !important;

}
/* 对于智慧地产页面特别处理 */ body[class*="estate"] .nav-links span[data-i18n="header.nav.solutions"],
body[class*="estate"] .submenu a[href*="smart-estate"],
body[class*="estate"] .submenu a[data-i18n="header.solutions.estate"]  {
    color: #0066FF !important;
    font-weight: 400 !important;

}
/* 移动端菜单按钮 */ .mobile-menu-btn  {
    display: none;
    width: calc(48 * 100vw / 750);
    height: calc(32 * 100vw / 750);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    margin-left: auto;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}
.mobile-menu-btn span  {
    display: block;
    width: calc(38 * 100vw / 750);
    height: calc(4 * 100vw / 750);
    background-color: #5C5D95;
    transition: all 0.3s ease;
    margin: calc(2 * 100vw / 750) 0;

}
/* 移动端菜单容器 */ .mobile-menu  {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
    opacity: 0;
    /* 优化滚动体验 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* 为iOS设备优化滚动 */
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 93, 149, 0.3) transparent;
    /* 确保触摸滚动正常工作 */
    touch-action: pan-y;
    /* 只允许垂直滚动 */
    overscroll-behavior: contain;
    /* 防止滚动传播到父元素 */
    /* 硬件加速优化 */
    will-change: transform;
    transform3d: translateZ(0);
    /* 触摸优化 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;

}
.mobile-menu.active  {
    display: block;
    transform: translateX(0);
    opacity: 1;

}
/* 移动端导航链接 */ .mobile-nav-links  {
    list-style: none;
    padding: calc(100 * 100vw / 750) calc(45 * 100vw / 750) calc(50 * 100vw / 750);
    margin: 0;
    /* 确保菜单内容有足够的滚动空间 */
    min-height: calc(100vh - 100 * 100vw / 750);
    box-sizing: border-box;

}
.mobile-nav-links li  {
    margin-bottom: calc(40 * 100vw / 750);

}
.mobile-nav-links a,
.mobile-nav-links span  {
    display: block;
    /* 微信兼容性：添加固定字体大小作为备用 */
    font-size: 18px;
    font-size: calc(28 * 100vw / 750);
    font-weight: 300;
    color: #333 !important;
    text-decoration: none;
    /* 微信兼容性：添加固定内边距作为备用 */
    padding: 8px 0;
    padding: calc(10 * 100vw / 750) 0;
    position: relative;
    /* 微信兼容性：确保文字显示 */
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

}
.mobile-nav-links a.active,
.mobile-nav-links span.active  {
    color: #0066FF !important;
    font-weight: 400;

}
/* 移动端子菜单 */ .mobile-submenu  {
    display: none;
    /* 微信兼容性：添加固定内边距作为备用 */
    padding-left: 25px;
    padding-left: calc(40 * 100vw / 750);
    margin-top: 15px;
    margin-top: calc(20 * 100vw / 750);

}
.mobile-submenu.show  {
    display: block;

}
.mobile-submenu a  {
    /* 微信兼容性：添加固定字体大小作为备用 */
    font-size: 16px;
    font-size: calc(28 * 100vw / 750);
    padding: 12px 0;
    padding: calc(20 * 100vw / 750) 0;
    color: #666 !important;
    /* 微信兼容性：确保文字显示 */
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

}
/* 移动端菜单展开指示器 */ .has-submenu > span::after  {
    content: '';
    display: inline-block;
    width: calc(16 * 100vw / 750);
    height: calc(16 * 100vw / 750);
    border-right: calc(2 * 100vw / 750) solid #3333337e;
    border-bottom: calc(2 * 100vw / 750) solid #33333364;
    transform: rotate(45deg);
    position: absolute;
    right: calc(20 * 100vw / 750);
    top: calc(19 * 100vw / 750);
    transition: transform 0.3s ease;

}
.has-submenu.active > span::after  {
    transform: rotate(-135deg);

}
/* 移动端菜单遮罩层 */ .mobile-menu-overlay  {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;

}
.mobile-menu-overlay.active  {
    display: block;
    opacity: 1;

}
/* 响应式布局 */ @media screen and (max-width: 750px)   {

    header  {
        height: calc(90 * 100vw / 750);
        z-index: 1000;

    }
    nav  {
        padding: 0 calc(30 * 100vw / 750);
        justify-content: flex-start;

    }
    .logo  {
        position: static;
        left: auto;

    }
    .logo img  {
        width: calc(150 * 100vw / 750);
        height: calc(45 * 100vw / 750);

    }
    .nav-links  {
        display: none;

    }
    .mobile-menu-btn  {
        display: flex;

    }
    .mobile-menu  {
        display: block;
        width: 60%;

    }
    /* 为内容区域添加顶部内边距，避免被header遮挡 */ .scroll-content  {
        padding-top: calc(90 * 100vw / 750);

    }
    /* 调整banner顶部距离，不受额外内边距影响 */ .npc-banner,
    .ft-banner,
    section.banner  {
        margin-top: 0 !important;

    }
    /* 移动端菜单滚动优化 */ .mobile-menu.active  {
        height: 100vh;
        /* 滚动设置已在主样式中定义，这里只需要确保高度 */

    }

    /* 移动端菜单内容区域调整 */
    .mobile-nav-links {
        /* 在小屏幕设备上进一步优化间距 */
        padding: calc(80 * 100vw / 750) calc(35 * 100vw / 750) calc(40 * 100vw / 750);
    }

}
/* 汉堡菜单动画 */ .mobile-menu-btn.active span:nth-child(1)  {
    transform: translateY(calc(12 * 100vw / 750)) rotate(45deg);

}
.mobile-menu-btn.active span:nth-child(2)  {
    opacity: 0;

}
.mobile-menu-btn.active span:nth-child(3)  {
    transform: translateY(calc(-12 * 100vw / 750)) rotate(-45deg);

}
/* 移动端菜单关闭按钮 */ .mobile-menu-close  {
    position: absolute;
    top: calc(40 * 100vw / 750);
    right: calc(40 * 100vw / 750);
    width: calc(48 * 100vw / 750);
    height: calc(48 * 100vw / 750);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;

}
.mobile-menu-close span  {
    display: block;
    width: calc(48 * 100vw / 750);
    height: calc(4 * 100vw / 750);
    background-color: #5C5D95;
    position: absolute;
    left: 0;
    top: 50%;

}
.mobile-menu-close span:first-child  {
    transform: rotate(45deg);

}
.mobile-menu-close span:last-child  {
    transform: rotate(-45deg);

}
.mobile-menu-close:hover span  {
    background-color: #0066FF;

}

/* 移动端菜单滚动条样式优化 */
.mobile-menu::-webkit-scrollbar {
    width: calc(6 * 100vw / 750);
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(3 * 100vw / 750);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(92, 93, 149, 0.3);
    border-radius: calc(3 * 100vw / 750);
    transition: background 0.3s ease;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 93, 149, 0.5);
}

/* 移动端菜单滚动提示 */
.mobile-menu::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: calc(2 * 100vw / 750);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 10;
    pointer-events: none;
}

.mobile-menu::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(2 * 100vw / 750);
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 10;
    pointer-events: none;
}

/* ============================
   终极防闪烁CSS增强规则
   ============================ */

/* 移除过度的CSS规则，恢复正常样式 */

/* 基础防闪烁 - 只禁用过渡效果，不影响其他样式 */
.nav-links a,
.nav-links span,
.submenu a {
    /* 只禁用过渡，保持其他样式正常 */
    transition: none !important;
}

/* 确保激活状态正确显示 */
.nav-links a.active,
.nav-links span.active,
.submenu a.active {
    color: #0066FF !important;
}

/* 受保护的菜单项 */
.nav-links a[data-protected="true"],
.nav-links span[data-protected="true"],
.submenu a[data-protected="true"] {
    color: #0066FF !important;
}

/* 激活状态下显示子菜单 */
.nav-links li.submenu-active .submenu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================
   微信浏览器兼容性样式
   ============================ */

/* 微信浏览器特殊处理 */
@media screen and (max-width: 750px) {
    /* 强制显示移动端菜单文字 */
    .mobile-nav-links a,
    .mobile-nav-links span {
        /* 确保在微信中文字可见 */
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        /* 防止文字被隐藏 */
        text-indent: 0 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        white-space: normal !important;
        /* 确保颜色显示 */
        background-color: transparent !important;
    }

    /* 子菜单文字兼容性 */
    .mobile-submenu a {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        text-indent: 0 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        white-space: normal !important;
        background-color: transparent !important;
    }

    /* 菜单容器兼容性 */
    .mobile-menu {
        /* 确保菜单背景正确显示 */
        background-color: #ffffff !important;
        /* 防止内容被隐藏 */
        overflow: visible;
        overflow-y: auto;
    }

    /* 列表项兼容性 */
    .mobile-nav-links li {
        /* 确保列表项显示 */
        display: list-item !important;
        list-style: none !important;
        margin-bottom: 25px;
        margin-bottom: calc(40 * 100vw / 750);
    }
}
