/* Product mega menu shared by the homepage and inner pages. */
#nav #navtop1 {
    display: none;
}

#nav .wx-product-nav {
    position: relative;
    z-index: 1010;
    transform: none !important;
}

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

.wx-product-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-product-nav:hover .wx-product-caret,
.wx-product-nav:focus-within .wx-product-caret {
    margin-top: 4px;
    transform: rotate(225deg);
}

#nav .wx-product-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: 246px minmax(0, 1fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #e5ecf7;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    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-product-nav:hover .wx-product-mega,
#nav .wx-product-nav:focus-within .wx-product-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.wx-product-categories {
    display: flex;
    flex-direction: column;
    background: #f3f7ff;
}

#nav .wx-product-categories a {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 14px 18px;
    border-bottom: 1px solid #dfe9fa;
    color: #24324a;
    font-size: 16px;
    text-align: center;
    transition: color .2s ease, background .2s ease;
}

#nav .wx-product-categories a:last-child {
    border-bottom: 0;
}

#nav .wx-product-categories a:hover,
#nav .wx-product-categories a.active {
    color: #2878f5;
    font-weight: 600;
    background: #dce9ff;
}

.wx-product-category-panels {
    padding: 28px 38px 24px;
    background: #fff;
}

.wx-product-category-panel[hidden] { display: none !important; }
.wx-product-category-panel.active { display: block; }

.wx-product-panel-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf1f7;
}

.wx-product-panel-title strong {
    color: #182033;
    font-size: 20px;
    font-weight: 600;
}

.wx-product-panel-title span {
    color: #8490a3;
    font-size: 13px;
}

.wx-product-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 4px;
    padding-top: 10px;
}

#nav .wx-product-overview {
    display: flex;
    min-height: 210px;
    align-items: center;
    gap: 24px;
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px solid #dce8f8;
    border-radius: 12px;
    color: #182033;
    background: #f7faff;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#nav .wx-product-overview:hover {
    border-color: #9fc3fb;
    color: #2878f5;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 82, 154, .1);
}

.wx-product-overview > i {
    display: inline-flex;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-size: 36px;
    background: #2878f5;
}

.wx-product-overview > span { flex: 1; min-width: 0; }
.wx-product-overview strong { display: block; font-size: 22px; }
.wx-product-overview small { display: block; margin-top: 8px; color: #7c899e; font-size: 14px; }
.wx-product-overview b { color: #2878f5; font-size: 14px; }

#nav .wx-product-feature {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 118px;
    padding: 22px 6px 18px;
    border-bottom: 1px solid #dce8f8;
    color: #182033;
    transition: color .2s ease, transform .2s ease;
}

#nav .wx-product-feature:hover {
    color: #2878f5;
    transform: translateY(-2px);
}

.wx-product-feature .iconfont {
    grid-row: 1 / 3;
    align-self: start;
    color: #2878f5;
    font-size: 29px;
    line-height: 38px;
    text-align: center;
}

.wx-product-feature strong {
    align-self: end;
    font-size: 16px;
    font-weight: 600;
}

.wx-product-feature span {
    align-self: start;
    overflow: hidden;
    color: #8a94a5;
    font-size: 13px;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    #nav .wx-product-mega {
        right: 18px;
        left: 18px;
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .wx-product-category-panels {
        padding-right: 26px;
        padding-left: 26px;
    }

    .wx-product-feature-grid {
        column-gap: 18px;
    }
}

@media (max-width: 980px) {
    #nav .wx-product-nav {
        display: none;
    }
}
