/* seemb14 header – product category mega menu (hover dropdown) */

@media (min-width: 992px) {
    header.app-header .header-content,
    header.app-header .header-content > .container-fluid,
    header.app-header .menu-wrap,
    header.app-header .menu-wrap > .navbar-nav {
        overflow: visible;
    }

    header.app-header .nav-item.nav-hover-menu.has-category-mega {
        position: relative;
        z-index: 1003;
    }

    header.app-header .nav-item.nav-hover-menu.has-category-mega:hover > .nav-top-link,
    header.app-header .nav-item.nav-hover-menu.has-category-mega:focus-within > .nav-top-link {
        color: var(--warning-color, #ff6221);
    }

    header.app-header .nav-item.nav-hover-menu.has-category-mega:hover .seemb14-category-mega,
    header.app-header .nav-item.nav-hover-menu.has-category-mega:focus-within .seemb14-category-mega {
        display: block;
    }

    header.app-header .nav-item.nav-hover-menu.has-category-mega .seemb14-category-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        width: auto;
        padding-top: 4px;
    }
}

.seemb14-category-mega {
    display: none;
    z-index: 1002;
}

.seemb14-category-mega__panel {
    display: flex;
    align-items: stretch;
    width: min(760px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.seemb14-category-mega__primary {
    flex: 0 0 42%;
    min-width: 0;
    max-height: 420px;
    overflow-y: auto;
    border-right: 1px solid #eee;
}

.seemb14-category-mega__primary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f3f3f3;
    transition: background 0.15s ease, color 0.15s ease;
}

.seemb14-category-mega__primary-item:last-child {
    border-bottom: none;
}

.seemb14-category-mega__primary-item:hover,
.seemb14-category-mega__primary-item.is-active {
    background: #fafafa;
    color: #000;
}

.seemb14-category-mega__primary-text {
    flex: 1;
    min-width: 0;
}

.seemb14-category-mega__primary-name {
    display: inline;
    word-break: break-word;
}

.seemb14-category-mega__primary-count {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.seemb14-category-mega__primary-item .iconfont {
    flex-shrink: 0;
    font-size: 12px;
    color: #888;
}

.seemb14-category-mega__secondary {
    flex: 1;
    min-width: 0;
    position: relative;
    min-height: 180px;
    max-height: 420px;
}

.seemb14-category-mega__secondary-panel {
    display: none;
    flex-direction: column;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0 0;
}

.seemb14-category-mega__secondary-panel.is-active {
    display: flex;
}

.seemb14-category-mega__secondary-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #222;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.seemb14-category-mega__secondary-item:hover {
    color: var(--warning-color, #ff6221);
    background: #fafafa;
}

.seemb14-category-mega__secondary-name {
    word-break: break-word;
}

.seemb14-category-mega__secondary-count {
    margin-left: 6px;
    font-size: 12px;
    color: #666;
}

.seemb14-category-mega__view-all-wrap {
    margin-top: auto;
    padding: 12px 16px 14px;
    border-top: 1px solid #eee;
}

.seemb14-category-mega__view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--warning-color, #ff6221);
    text-decoration: none;
}

.seemb14-category-mega__view-all:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .seemb14-category-mega {
        display: none !important;
    }
}

/* 单页菜单悬停浮窗（同菜单单页列表，替代页内 prev-next） */
.seemb14-page-flyout {
    display: none;
}

.seemb14-page-flyout__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    header.app-header .nav-item.nav-hover-menu.has-page-flyout {
        position: relative;
        z-index: 1003;
    }

    header.app-header .nav-item.nav-hover-menu.has-page-flyout:hover > .nav-top-link,
    header.app-header .nav-item.nav-hover-menu.has-page-flyout:focus-within > .nav-top-link {
        color: var(--warning-color, #ff6221);
    }

    header.app-header .nav-item.nav-hover-menu.has-page-flyout .seemb14-page-flyout {
        position: absolute;
        top: 100%;
        left: 0;
        padding-top: 4px;
        z-index: 1002;
    }

    header.app-header .nav-item.nav-hover-menu.has-page-flyout:hover .seemb14-page-flyout,
    header.app-header .nav-item.nav-hover-menu.has-page-flyout:focus-within .seemb14-page-flyout {
        display: block;
    }

    .seemb14-page-flyout__list {
        min-width: 180px;
        padding: 8px 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    }

    .seemb14-page-flyout__link {
        display: block;
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.45;
        color: #222;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.15s ease, background 0.15s ease;
    }

    .seemb14-page-flyout__link:hover {
        color: var(--warning-color, #ff6221);
        background: #fafafa;
    }
}

@media (max-width: 991.98px) {
    header.app-header .nav-item.has-page-flyout .seemb14-page-flyout {
        display: block;
    }

    .seemb14-page-flyout__list {
        padding: 0 0 6px;
    }

    .seemb14-page-flyout__link {
        display: block;
        padding: 8px 0 8px 16px;
        font-size: 13px;
        color: #555;
        text-decoration: none;
    }
}
