@import url('/style/product-mega-menu.css?v=20260909-1');
@import url('/style/function-mega-menu.css?v=20260903-1');

#nav .pull-right > .item[data-db-nav-id] > .list {
    width: 128px;
    margin-left: -64px;
    overflow: hidden;
    border: 1px solid #e3ebf7;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(20, 54, 106, .14);
}

#nav .pull-right > .item[data-db-nav-id] > .list .itemn {
    display: block;
    width: 100%;
    min-width: 128px;
    padding: 0 12px;
    color: #26364f;
    text-decoration: none;
    white-space: nowrap;
}

#nav .pull-right > .item[data-db-nav-id] > .list .itemn:hover,
#nav .pull-right > .item[data-db-nav-id] > .list .itemn:focus {
    outline: 0;
    color: #2879f5;
    background: #f2f7ff;
}

#nav .pull-right > .item[data-db-nav-id].is-current {
    font-weight: 700;
}

/* News templates use a permanently white header. Their original rules only
   targeted <a class="item">, while database-backed wide menus are <div>
   elements. Keep every trigger visible on the white header, including the
   currently selected and expanded menu. */
.wx-company-news #nav .pull-right > .item,
.wx-industry-news #nav .pull-right > .item,
.wx-news-updates #nav .pull-right > .item,
.wx-update-detail #nav .pull-right > .item,
.wx-company-news #nav .wx-product-trigger,
.wx-company-news #nav .wx-function-trigger,
.wx-company-news #nav .wx-content-trigger,
.wx-industry-news #nav .wx-product-trigger,
.wx-industry-news #nav .wx-function-trigger,
.wx-industry-news #nav .wx-content-trigger,
.wx-news-updates #nav .wx-product-trigger,
.wx-news-updates #nav .wx-function-trigger,
.wx-news-updates #nav .wx-content-trigger,
.wx-update-detail #nav .wx-product-trigger,
.wx-update-detail #nav .wx-function-trigger,
.wx-update-detail #nav .wx-content-trigger {
    color: #26364f !important;
}

.wx-company-news #nav .pull-right > .item.is-current,
.wx-company-news #nav .pull-right > .item[data-db-nav-id="16"],
.wx-industry-news #nav .pull-right > .item.is-current,
.wx-industry-news #nav .pull-right > .item[data-db-nav-id="16"],
.wx-news-updates #nav .pull-right > .item.is-current,
.wx-news-updates #nav .pull-right > .item[data-db-nav-id="16"],
.wx-update-detail #nav .pull-right > .item.is-current,
.wx-update-detail #nav .pull-right > .item[data-db-nav-id="16"],
.wx-company-news #nav .pull-right > .item.is-current > .wx-content-trigger,
.wx-company-news #nav .pull-right > .item[data-db-nav-id="16"] > .wx-content-trigger,
.wx-industry-news #nav .pull-right > .item.is-current > .wx-content-trigger,
.wx-industry-news #nav .pull-right > .item[data-db-nav-id="16"] > .wx-content-trigger,
.wx-news-updates #nav .pull-right > .item.is-current > .wx-content-trigger,
.wx-news-updates #nav .pull-right > .item[data-db-nav-id="16"] > .wx-content-trigger,
.wx-update-detail #nav .pull-right > .item.is-current > .wx-content-trigger,
.wx-update-detail #nav .pull-right > .item[data-db-nav-id="16"] > .wx-content-trigger {
    color: #2879f5 !important;
}

.wx-company-news #nav .pull-right .demoCenter.download,
.wx-industry-news #nav .pull-right .demoCenter.download,
.wx-news-updates #nav .pull-right .demoCenter.download,
.wx-update-detail #nav .pull-right .demoCenter.download {
    border-color: #c8dcfa;
    background: #edf5ff;
}

.wx-company-news #nav .pull-right .demoCenter.download a,
.wx-industry-news #nav .pull-right .demoCenter.download a,
.wx-news-updates #nav .pull-right .demoCenter.download a,
.wx-update-detail #nav .pull-right .demoCenter.download a {
    color: #2879f5 !important;
}

.wx-company-news #nav .pull-right > .demoCenter:not(.download),
.wx-industry-news #nav .pull-right > .demoCenter:not(.download),
.wx-news-updates #nav .pull-right > .demoCenter:not(.download),
.wx-update-detail #nav .pull-right > .demoCenter:not(.download) {
    border-color: #2879f5;
    color: #fff;
    background: #2879f5;
}

/* Database-driven wide menus for Product News and About Us. */
#nav .wx-content-nav {
    position: relative;
    z-index: 1010;
    transform: none !important;
}

#nav .wx-content-trigger {
    display: inline-flex;
    height: 100%;
    align-items: center;
    gap: 7px;
    color: inherit;
}

.wx-content-caret {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s ease, margin .22s ease;
}

.wx-content-nav:hover .wx-content-caret,
.wx-content-nav:focus-within .wx-content-caret {
    margin-top: 4px;
    transform: rotate(225deg);
}

#nav .wx-content-mega {
    position: fixed;
    top: 76px;
    right: max(16px, calc((100vw - 1180px) / 2));
    left: max(16px, calc((100vw - 1180px) / 2));
    z-index: 1009;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: 354px;
    overflow: hidden;
    border: 1px solid #e2eaf6;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 24px 60px rgba(18, 52, 105, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transform-origin: center top;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

#nav .wx-content-nav:hover .wx-content-mega,
#nav .wx-content-nav:focus-within .wx-content-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.wx-content-categories {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    background: #f1f6ff;
}

#nav .wx-content-categories a {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 13px 28px;
    border-bottom: 1px solid #dfebfb;
    color: #26364f;
    transition: color .2s ease, background .2s ease;
}

#nav .wx-content-categories a:last-child { border-bottom: 0; }
#nav .wx-content-categories a:hover,
#nav .wx-content-categories a.active { color: #2879f5; background: #dce9ff; }
.wx-content-categories strong { font-size: 16px; font-weight: 600; }
.wx-content-categories span { max-width: 100%; margin-top: 4px; overflow: hidden; color: #8a98ac; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.wx-content-panel { padding: 28px 34px 30px; background: #fff; }
.wx-content-mega--about .wx-content-panel { padding: 32px 40px 36px; }
.wx-content-mega--news .wx-content-panel { padding: 32px 40px 36px; }
.wx-content-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 21px; border-bottom: 1px solid #e9eff7; }
.wx-content-heading > div { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.wx-content-heading strong { color: #17243c; font-size: 20px; font-weight: 600; }
.wx-content-heading span { color: #8794a7; font-size: 13px; }
#nav .wx-content-heading > a { flex: 0 0 auto; color: #2879f5; font-size: 13px; }

.wx-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 24px; }
.wx-content-mega--about .wx-content-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
#nav .wx-content-mega.wx-content-mega--about { grid-template-columns: minmax(0, 1fr); min-height: 338px; }
#nav .wx-content-mega.wx-content-mega--news { grid-template-columns: minmax(0, 1fr); min-height: 338px; }
#nav .wx-content-mega--about .wx-content-card { min-height: 218px; }
#nav .wx-content-mega--news .wx-content-card { min-height: 218px; }
#nav .wx-content-card { position: relative; display: grid; min-width: 0; min-height: 202px; align-content: start; padding: 24px 22px; overflow: hidden; border: 1px solid #e1eaf6; border-radius: 12px; color: #17243c; background: #fbfdff; box-shadow: 0 10px 25px rgba(29,75,145,.05); transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
#nav .wx-content-card:hover { color: #2879f5; border-color: #b7d2f8; background: #fff; box-shadow: 0 15px 32px rgba(31,91,185,.12); transform: translateY(-3px); }
.wx-content-card .iconfont { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 22px; border-radius: 10px; color: #2879f5; background: #eaf3ff; font-size: 24px; }
.wx-content-card small { position: absolute; top: 25px; right: 22px; color: #b8c7dc; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.wx-content-card strong { font-size: 17px; font-weight: 600; }
.wx-content-card span { display: block; margin-top: 7px; overflow: hidden; color: #8290a4; font-size: 12px; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.wx-content-card b { display: block; margin-top: 16px; color: #2879f5; font-size: 12px; font-weight: 500; opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.wx-content-card:hover b { opacity: 1; transform: translateX(0); }

@media (max-width: 1180px) {
    #nav .wx-content-mega { right: 18px; left: 18px; grid-template-columns: 230px minmax(0,1fr); }
    #nav .wx-content-mega.wx-content-mega--about,
    #nav .wx-content-mega.wx-content-mega--news { grid-template-columns: minmax(0,1fr); }
    .wx-content-panel { padding-right: 24px; padding-left: 24px; }
    #nav .wx-content-card { padding-right: 16px; padding-left: 16px; }
}

@media (min-width: 981px) {
    #nav .pull-right > .item[data-db-nav-id] {
        display: inline-block !important;
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 980px) {
    #nav .pull-right > .item[data-db-nav-id] {
        display: block !important;
        width: 100%;
        height: auto;
        min-height: 48px;
        margin-left: 0;
        padding: 0 6px;
        border-bottom: 1px solid #edf2f9;
        color: #26364f !important;
        line-height: 48px;
    }

    #nav .wx-product-trigger,
    #nav .wx-function-trigger {
        display: flex;
        min-height: 48px;
        color: inherit;
        line-height: 48px;
    }

    #nav .wx-product-caret,
    #nav .wx-function-caret {
        display: none;
    }

    #nav .wx-product-mega,
    #nav .wx-function-mega,
    #nav .wx-content-mega {
        display: none !important;
    }

    #nav .wx-content-trigger {
        display: flex;
        min-height: 48px;
        color: inherit;
        line-height: 48px;
    }

    #nav .wx-content-caret { display: none; }

    #nav .pull-right > .item[data-db-nav-id] > .list {
        position: static;
        width: 100%;
        margin: 4px 0 0;
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    #nav .pull-right > .item[data-db-nav-id] > .list .itemn {
        min-width: 0;
        height: 42px;
        padding-left: 18px;
        line-height: 42px;
        text-align: left;
    }
}
