/* 产品方案导航：桌面分区式 Mega Menu + 移动端手风琴 */
.product-mega-wrap {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    width: 100vw;
    transform: none;
    border-radius: 0 !important;
    z-index: 99 !important;
}

.product-mega {
    width: min(1200px, calc(100vw - 48px));
    max-height: calc(100vh - 92px);
    margin: 0 auto;
    overflow-y: auto;
    color: #263238;
    background: #fff;
}

.product-mega-main {
    display: grid;
    grid-template-columns: minmax(480px, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
    border: 1px solid #edf0f2;
    border-bottom: 0;
}

.product-mega-section {
    min-width: 0;
    padding: 24px 22px 18px;
    border-left: 1px solid #edf0f2;
}

.product-mega-section:first-child {
    border-left: 0;
}

.product-mega-heading {
    display: flex;
    gap: 10px;
    margin-bottom: 17px;
}

.product-mega-heading > span,
.product-mega-center-title > span {
    color: #ff7a22;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
}

.product-mega-heading h3 {
    margin: 0;
    color: #18232d;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
}

.product-mega-heading p {
    margin: 3px 0 0;
    color: #8b949c;
    font-size: 12px;
    line-height: 18px;
}

.product-mega-system-groups {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
}

.product-mega-system-groups h4 {
    margin: 0 0 10px;
    color: #69737c;
    font-size: 13px;
    font-weight: 600;
}

.product-mega-featured {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #ffe1ca;
    border-radius: 7px;
    background: #fff9f5;
}

.product-mega-featured strong,
.product-mega-link-list strong,
.product-mega-center strong {
    color: #263238;
    font-size: 14px;
    font-weight: 500;
}

.product-mega-featured em {
    display: inline-block;
    padding: 1px 5px;
    margin-left: 5px;
    color: #f36d16;
    font-size: 11px;
    font-style: normal;
    background: #ffeadb;
    border-radius: 3px;
}

.product-mega-featured small,
.product-mega-link-list small,
.product-mega-center small {
    display: block;
    margin-top: 4px;
    color: #9099a1;
    font-size: 12px;
    line-height: 17px;
}

.product-mega-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
}

.product-mega-link-grid a {
    padding: 6px 7px;
    color: #3e4850;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
}

.product-mega-link-list {
    display: grid;
    gap: 3px;
}

.product-mega-link-list a {
    display: block;
    padding: 7px 8px;
    border-radius: 6px;
}

.product-mega-link-grid a:hover,
.product-mega-link-list a:hover,
.product-mega-center a:hover {
    color: #f36d16;
    background: #fff7f1;
    text-decoration: none;
}

.product-mega-link-grid a:hover strong,
.product-mega-link-list a:hover strong,
.product-mega-center a:hover strong {
    color: #f36d16;
}

.product-mega-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.product-mega-capabilities span {
    padding: 3px 7px;
    color: #75808a;
    font-size: 11px;
    background: #f3f5f6;
    border-radius: 3px;
}

.product-mega-more {
    display: inline-block;
    margin-top: 13px;
    color: #d95f12;
    font-size: 13px;
    font-weight: 500;
}

.product-mega-more b {
    font-weight: 400;
}

.product-mega-center {
    display: grid;
    grid-template-columns: 155px repeat(5, minmax(0, 1fr));
    align-items: stretch;
    border: 1px solid #edf0f2;
    background: #fafbfc;
}

.product-mega-center-title,
.product-mega-center > a {
    padding: 14px 16px;
}

.product-mega-center-title {
    display: flex;
    align-items: center;
    gap: 9px;
    border-right: 1px solid #edf0f2;
}

.product-mega-center-title strong {
    font-size: 16px;
    font-weight: 600;
}

.product-mega-center > a {
    border-right: 1px solid #edf0f2;
}

.product-mega-center > a:last-child {
    border-right: 0;
}

.product-mega-decisions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e8ecef;
    border: 1px solid #e8ecef;
    border-top: 0;
}

.product-mega-decisions > a {
    position: relative;
    padding: 15px 20px;
    background: #fff;
}

.product-mega-decisions span {
    color: #27333c;
    font-size: 14px;
    font-weight: 600;
}

.product-mega-decisions small {
    display: block;
    margin: 4px 130px 0 0;
    color: #8a949d;
    font-size: 12px;
}

.product-mega-decisions strong {
    position: absolute;
    top: 25px;
    right: 20px;
    color: #f36d16;
    font-size: 13px;
    font-weight: 500;
}

/* H5 导航由 web/css/index.css 提供外壳，这里只覆盖产品手风琴。 */
.mobile-product-trigger,
.mobile-product-group-trigger {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 750px) {
    .nav_list {
        width: min(88vw, 360px) !important;
        top: 56px !important;
        right: 3% !important;
    }

    .nav_list.active > ul {
        height: calc(100vh - 76px) !important;
    }

    .nav_list > ul > li > a {
        padding: 13px 18px !important;
        background-image: none !important;
    }

    .mobile-product-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        color: #252d33;
        font-size: 15px;
        font-weight: 600;
    }

    .mobile-product-trigger i,
    .mobile-product-group-trigger i {
        width: 7px;
        height: 7px;
        border-right: 1px solid #7d858c;
        border-bottom: 1px solid #7d858c;
        transform: rotate(45deg);
        transition: transform .2s;
    }

    .mobile-product-trigger[aria-expanded="true"] i,
    .mobile-product-group-trigger[aria-expanded="true"] i {
        transform: rotate(225deg);
    }

    .mobile-product-panel {
        display: none;
        padding: 0 12px 12px;
        background: #f8f9fa;
    }

    .mobile-product-panel.is-open {
        display: block;
    }

    .mobile-product-panel section {
        border-bottom: 1px solid #e8ebed;
    }

    .mobile-product-group-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 7px;
        color: #333c43;
        font-size: 14px;
        font-weight: 600;
    }

    .mobile-product-group-trigger b,
    .mobile-product-direct b {
        margin-right: 6px;
        color: #f36d16;
        font-size: 11px;
    }

    .mobile-product-group {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        padding: 0 0 10px;
    }

    .mobile-product-group.is-open {
        display: grid;
    }

    .mobile-product-group a {
        padding: 8px;
        color: #465059;
        font-size: 13px;
        background: #fff;
    }

    .mobile-product-group a small {
        display: block;
        margin-top: 2px;
        color: #929aa1;
        font-size: 10px;
    }

    .mobile-product-group .mobile-product-more {
        color: #e66616;
    }

    .mobile-product-direct {
        display: grid;
        grid-template-columns: 1fr;
        padding-top: 7px;
    }

    .mobile-product-direct a {
        padding: 10px 7px;
        color: #303941;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #e8ebed;
    }

    .mobile-product-direct a:last-child {
        border-bottom: 0;
    }
}

@media (min-width: 751px) and (max-width: 1100px) {
    .product-mega-main {
        grid-template-columns: 1.6fr 1fr 1fr;
    }

    .product-mega {
        width: calc(100vw - 24px);
    }

    .product-mega-section {
        padding: 18px 14px;
    }

    .product-mega-system-groups {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
