@charset "utf-8";

/* ============================================================
   顶部导航栏（heard.css）
   基准 1600px，最小兼容 1280px
   ============================================================ */

/* 导航栏容器 */
.site-header {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
    background: rgba(17, 90, 153, 0.9) 0%;
    transition: all 0.4s ease;
}

/* 鼠标滑入导航栏时白色背景 */
.site-header:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 鼠标滑入时导航项变黑色 */
.site-header:hover .nav-link {
    color: rgba(49, 64, 79, 1);
}

.site-header:hover .nav-link:hover,
.site-header:hover .nav-link.active {
    color: #0B4D83;
}

/* 鼠标滑入时搜索按钮和语言按钮变黑色 */
.site-header:hover .search-btn {
    color: #0B4D83;
}

.site-header:hover .lang-btn {
    color: rgba(49, 64, 79, 1);
}

.header-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    box-sizing: border-box;
}

/* Logo 区域 */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    position: relative;
    width: 460px;
    height: 82px;
}

.logo-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-default {
    opacity: 1;
}

.logo-hover {
    opacity: 0;
}

/* 鼠标滑入导航栏时切换 Logo */
.site-header:hover .logo-default {
    opacity: 0;
}

.site-header:hover .logo-hover {
    opacity: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-cn {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    transition: color 0.4s ease;
}

.logo-en {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 14px;
    transition: color 0.4s ease;
}

.site-header.scrolled .logo-cn {
    color: rgba(49, 64, 79, 1);
}

.site-header.scrolled .logo-en {
    color: rgba(74, 85, 101, 1);
}

/* 导航菜单 */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: 13%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0px 14px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 400;
    line-height: 100px;
    letter-spacing: 0px;
    text-align: left;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100px;
    left: 0;
    transform: translateY(0);
    min-width: 220px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid #0B4D83;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(226, 233, 238, 1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 14px 20px;
    color: rgba(74, 85, 101, 1);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(243, 246, 248, 1);
    color: #0B4D83;
    padding-left: 24px;
}

/* ============================================================
   Mega Menu 大型下拉菜单
   ============================================================ */
.mega-menu {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1001;
    border-top: 3px solid #0B4D83;
    display: flex;
    justify-content: center;
    /* transform: translateY(-10px); */
}

.nav-item.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
}

/* Mega Menu 版心容器 */
.mega-menu-container {
    /* max-width: 1700px; */
    width: 100%;
    margin: 0 auto;
    display: flex;
    /* padding: 0 40px; */
    box-sizing: border-box;
}

/* 左侧分类栏 */
.mega-menu-left {
    width: 700px;
    border-right: 1px solid rgba(226, 233, 238, 1);
    flex-shrink: 0;
    box-sizing: border-box;
    border-right: 1px solid rgba(235, 239, 244, 1);
    background: rgba(246, 249, 253, 1);
    padding-left: 12%;
    padding-right: 3%;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.nav-item.has-mega-menu:hover .mega-menu-left {
    opacity: 1;
    transform: translateX(0);
}

.mega-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 7px;
}

.mega-category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0px;
    border-bottom: 1px solid rgba(226, 233, 238, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(51, 51, 51, 1);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0px;
    text-align: left;
}

.mega-category:last-child {
    border-bottom: none;
}

.mega-category:hover,
.mega-category.active {
    /* background: rgba(243, 246, 248, 1); */
    color: rgba(11, 77, 131, 1);
}

.mega-category .arrow {
    font-size: 25px;
    font-weight: 700;
    color: rgba(208, 208, 208, 1);
    transition: transform 0.3s ease;
    margin: auto  0 auto auto;
}

.mega-category:hover .arrow,
.mega-category.active .arrow {
    color: rgba(12, 140, 225, 1);
}

/* 右侧内容栏 */
.mega-menu-right {
    flex: 1;
    padding: 30px 40px;
    min-height: 300px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.nav-item.has-mega-menu:hover .mega-menu-right {
    opacity: 1;
    transform: translateX(0);
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

.mega-panel-title {
    color: #0B4D83;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-bottom: 12px;
    /* border-bottom: 2px solid rgba(226, 233, 238, 1); */
}

.mega-sub-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-sub-items li {
    margin-bottom: 4px;
}

.mega-sub-items li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(74, 85, 101, 1);
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left;
}

.mega-sub-items li a::before {
    content: '•';
    margin-right: 12px;
    color: rgba(150, 160, 170, 1);
    font-size: 12px;
}

.mega-sub-items li a:hover {
    color: #0B4D83;
    padding-left: 8px;
}

.mega-sub-items li a .arrow {
    font-size: 18px;
    color: rgba(150, 160, 170, 1);
    transition: all 0.3s ease;
    transform: translateX(9px);
}

.mega-sub-items li a:hover .arrow {
    color: #0B4D83;
    transform: translateX(8px);
}

/* ============================================================
   Catalyst Technologies 三级菜单
   ============================================================ */
.catalyst-mega-content {
    display: flex;
    width: 100%;
}

.catalyst-sub-categories {
    width: 520px;
    border-right: 1px solid rgba(235, 239, 244, 1);
    /* background: rgba(246, 249, 253, 1); */
    flex-shrink: 0;
}

.catalyst-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalyst-sub-item {
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* border-bottom: 1px solid rgba(235, 239, 244, 1); */
    color: rgba(51, 51, 51, 1);
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left;
}

.catalyst-sub-item:last-child {
    border-bottom: none;
}

.catalyst-sub-item:hover,
.catalyst-sub-item.active {
    background: rgba(243, 246, 248, 1);
    color: rgba(11, 77, 131, 1);
}

.catalyst-products {
    flex: 1;
    padding: 30px 40px;
}

.catalyst-product-panel {
    display: none;
}

.catalyst-product-panel.active {
    display: block;
}

.catalyst-product-title {
    margin: 0 0 10px 0;
    padding-bottom: 12px;
    color: rgba(55, 174, 226, 1);
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left;
}

.catalyst-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalyst-product-list li {
    margin-bottom: 4px;
}

.catalyst-product-list li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(51, 51, 51, 1);
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left;
}

.catalyst-product-list li a::before {
    content: '•';
    margin-right: 6px;
    color: rgba(11, 77, 131, 1);
    font-size: 16px;
}

.catalyst-product-list li a:hover {
    color: #0B4D83;
    padding-left: 9px;
}

.catalyst-product-list li a .arrow {
    font-size: 18px;
    color: rgba(11, 77, 131, 1);
    transition: all 0.3s ease;
    transform: translateX(7px);
}

.catalyst-product-list li a:hover .arrow {
    transform: translateX(9px);
}

/* 右侧工具栏 */
.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    /* padding: 8px; */
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.site-header.scrolled .search-btn {
    color: rgba(49, 64, 79, 1);
}

.site-header.scrolled .search-btn:hover {
    background: rgba(243, 246, 248, 1);
}

/* 语言选择器 */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 1);
    font-family: "Noto Sans SC";
    font-style: Regular;
    font-size: 20px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: 0px;
    text-align: left;
}

.lang-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.lang-selector:hover .lang-btn::after {
    transform: rotate(180deg);
}

.site-header.scrolled .lang-btn {
    color: rgba(49, 64, 79, 1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 80px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: rgba(74, 85, 101, 1);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-dropdown li a:hover {
    background: rgba(243, 246, 248, 1);
    color: #0B4D83;
}

/* ============================================================
   1500px 适配
   ============================================================ */
@media (max-width: 1550px) {
    .header-container {
        padding: 0 25px;
    }

    .header-nav {
        margin-left: 10%;
    }

    .nav-list {
        gap: 6px;
    }

    .nav-link {
        padding: 0 12px;
        font-size: 17px;
    }

    .logo-icon {
        width: 420px;
        height: 75px;
    }

    .header-tools {
        gap: 18px;
    }

    .lang-btn {
        font-size: 18px;
    }

    /* Mega Menu 适配 */
    .mega-menu-container {
        padding: 0 30px;
    }

    .mega-menu-left {
        width: 520px;
        padding-left: 10%;
        padding-right: 3%;
    }

    .mega-category {
        padding: 20px 0px;
        font-size: 16px;
        line-height: 20px;
    }

    .mega-category .arrow {
        font-size: 22px;
    }

    .mega-menu-right {
        padding: 25px 30px;
    }

    .mega-panel-title {
        font-size: 16px;
    }

    .mega-sub-items li a {
        font-size: 13px;
    }

    /* Catalyst 三级菜单适配 */
    .catalyst-sub-categories {
        width: 450px;
    }

    .catalyst-sub-item {
        padding: 12px 20px;
        font-size: 15px;
    }

    .catalyst-product-title {
        font-size: 15px;
    }

    .catalyst-product-list li a {
        font-size: 15px;
    }
}

/* ============================================================
   1400px 适配
   ============================================================ */
@media (max-width: 1400px) {
    .header-container {
        padding: 0 22px;
    }

    .header-nav {
        margin-left: 9%;
    }

    .nav-list {
        gap: 5px;
    }

    .nav-link {
        padding: 0 11px;
        font-size: 16px;
    }

    .logo-icon {
        width: 380px;
        height: 68px;
    }

    .header-tools {
        gap: 16px;
    }

    .lang-btn {
        font-size: 17px;
    }

    /* Mega Menu 适配 */
    .mega-menu-container {
        padding: 0 25px;
    }

    .mega-menu-left {
        width: 480px;
        padding-left: 9%;
        padding-right: 3%;
    }

    .mega-category {
        padding: 18px 0px;
        font-size: 15px;
        line-height: 19px;
    }

    .mega-category .arrow {
        font-size: 21px;
    }

    .mega-menu-right {
        padding: 22px 28px;
    }

    .mega-panel-title {
        font-size: 15px;
    }

    .mega-sub-items li a {
        font-size: 12px;
    }

    /* Catalyst 三级菜单适配 */
    .catalyst-sub-categories {
        width: 420px;
    }

    .catalyst-sub-item {
        padding: 11px 18px;
        font-size: 14px;
        line-height: 18px;
    }

    .catalyst-product-title {
        font-size: 14px;
    }

    .catalyst-product-list li a {
        font-size: 14px;
    }
}

/* ============================================================
   1280+ 适配（≤1366px）
   ============================================================ */
@media (max-width: 1366px) {
    .header-container {
        padding: 0 20px;
        height: 70px;
    }

    /* Logo 缩小适配 */
    .logo-icon {
        width: 320px;
        height: 55px;
    }

    .logo-icon img {
        width: 100%;
        height: auto;
    }

    /* 导航菜单间距收窄 */
    .header-nav {
        margin-left: 8%;
    }

    .nav-list {
        gap: 4px;
    }

    /* 导航项字号和间距缩小 */
    .nav-link {
        padding: 4px 10px;
        font-size: 15px;
        line-height: 22px;
    }

    /* 下拉菜单适配 */
    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu li a {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 右侧工具栏间距收窄 */
    .header-tools {
        gap: 12px;
    }

    /* 语言按钮字号缩小 */
    .lang-btn {
        padding: 6px 10px;
        font-size: 16px;
        line-height: 24px;
    }

    .lang-dropdown li a {
        font-size: 14px;
    }

    /* Mega Menu 适配 */
    .mega-menu {
        top: 70px;
    }

    .mega-menu-container {
        padding: 0 20px;
    }

    .mega-menu-left {
        width: 434px;
    }

    .mega-category {
        padding: 14px 16px;
        font-size: 13px;
    }

    .mega-menu-right {
        padding: 20px 24px;
        min-height: 250px;
    }

    .mega-panel-title {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .mega-sub-items li a {
        font-size: 12px;
        padding: 8px 0;
    }

    /* Catalyst 三级菜单适配 */
    .catalyst-sub-categories {
        width: 380px;
    }

    .catalyst-sub-item {
        padding: 10px 16px;
        font-size: 13px;
        line-height: 17px;
    }

    .catalyst-product-title {
        font-size: 13px;
    }

    .catalyst-product-list li a {
        font-size: 13px;
        padding: 8px 0;
    }

    .catalyst-product-list li a::before {
        font-size: 14px;
        margin-right: 5px;
    }

    .catalyst-product-list li a .arrow {
        font-size: 16px;
    }
}

/* 页面内容顶部间距（避免被固定导航栏遮挡） */
body {
    padding-top: 0;
}

@media (max-width: 1366px) {
    body {
        padding-top: 0;
    }
}
