/* ===== 顶栏：隐藏电话 / 客服整条 ===== */
.header__top {
    display: none !important;
}

/* ===== 主导航：白底灰字（对齐落地页风格） ===== */
.header__bottom,
.header__bottom.header-fixed {
    background: #ffffff !important;
    border-bottom: 1px solid #e8ecf2;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header__logo img {
    max-height: 58px;
    width: auto;
}

@media (min-width: 1200px) {
    .header__nav .mainactive > ul li a {
        /* 原导航高度增加约五分之一 */
        padding-top: 1.62rem !important;
        padding-bottom: 1.62rem !important;
        color: #4b5563 !important;
        background: transparent !important;
        font-size: 1rem;
        font-weight: 500;
    }

    .header__nav .mainactive > ul li a:hover,
    .header__nav .mainactive > ul li:hover > a,
    .header__nav .mainactive > ul li.current-menu-item > a,
    .header__nav .mainactive > ul li.current_page_item > a,
    .header__nav .mainactive > ul li.current-menu-ancestor > a {
        color: #1a56db !important;
    }

    /* 下拉菜单 */
    .header__nav .mainactive > ul li ul {
        background: #ffffff !important;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    }

    .header__nav .mainactive > ul li ul li {
        border-bottom-color: #eef2f7 !important;
    }

    .header__nav .mainactive > ul li ul li a {
        padding-top: 0.5625rem !important;
        padding-bottom: 0.5625rem !important;
        color: #4b5563 !important;
        background: transparent !important;
    }

    .header__nav .mainactive > ul li ul li a:hover,
    .header__nav .mainactive > ul li ul li:hover > a,
    .header__nav .mainactive > ul li ul li a.active {
        color: #1a56db !important;
        background: #f3f6fc !important;
    }

    .header__bottom .right .searchbtn i {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1rem;
        color: #4b5563 !important;
        border-color: #d1d5db !important;
        background: transparent !important;
    }

    .header__bottom .right .searchbtn i:hover {
        color: #1a56db !important;
        border-color: #1a56db !important;
    }

    /* 有子菜单的箭头颜色 */
    .header .menu-item-has-children > a::before,
    .header .menu-item-has-children > a::after {
        background: #9ca3af !important;
    }
}

@media (max-width: 1199px) {
    .header__bottom,
    .header__bottom.header-fixed {
        padding-top: 0.78rem;
        padding-bottom: 0.78rem;
        background: #ffffff !important;
    }

    .header__bottom .right .bar i,
    .header__bottom .right .ellepsis i,
    .header__bottom .right .searchbtn i {
        color: #4b5563 !important;
        border-color: #d1d5db !important;
        background: transparent !important;
    }

    /* 侧滑菜单整块白底 */
    .header__nav.target,
    .header__nav.target.open {
        background: #ffffff !important;
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    }

    .header__nav .mobilelogo {
        background: #ffffff !important;
        border-bottom: 1px solid #e8ecf2 !important;
        padding: 0.75rem 1rem;
    }

    .header__nav .mainactive > ul li a,
    .header__nav .mainactive > ul li ul li a,
    .header__nav .mainactive > ul li ul li ul li a {
        color: #4b5563 !important;
        background: #ffffff !important;
        border-bottom-color: #eef2f7 !important;
    }

    .header__nav .mainactive > ul li a:hover,
    .header__nav .mainactive > ul li:hover > a,
    .header__nav .mainactive > ul li.current-menu-item > a,
    .header__nav .mainactive > ul li.current_page_item > a,
    .header__nav .mainactive > ul li.current-menu-ancestor > a,
    .header__nav .mainactive > ul li ul li a:hover,
    .header__nav .mainactive > ul li ul li:hover > a,
    .header__nav .mainactive > ul li ul li a.active {
        color: #1a56db !important;
        background: #f3f6fc !important;
    }

    .header__nav .mainactive > ul li ul li a {
        padding-top: 0.5625rem !important;
        padding-bottom: 0.5625rem !important;
    }

    .header__nav .mainactive > ul li ul {
        background: #ffffff !important;
    }

    .header__nav .mainactive > ul li ul li {
        border-bottom-color: #eef2f7 !important;
    }

    /* 展开箭头改为灰色，适配白底 */
    .header .menu-item-has-children > a::before,
    .header .menu-item-has-children > a::after {
        background: #9ca3af !important;
    }
}
