/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.mainBox-right-t5 {
    color: #94A3B8;
}
ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

/* ========== 静态头部 ========== */
.static-header {
    background: linear-gradient(to right, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.static-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0px;
}

/* Logo */
.sh-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-logo:hover {
    color: #a87fff;
}

.sh-logo img {
    height: 32px;
}

/* 一级导航 */
.sh-nav {
    display: flex;
    gap: 48px;
    align-items: center;
    margin: 0 !important;
}

.sh-nav>li {
    position: relative;
    height: 68px;
    display: flex;
    align-items: center;
}

.sh-nav>li>a {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.sh-nav>li>a:hover,
.sh-nav>li:hover>a {
    color: #a87fff;
}

/* 下拉箭头 */
.sh-nav>li.has-dropdown>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #94A3B8;
    border-bottom: 1.5px solid #94A3B8;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.sh-nav>li.has-dropdown:hover>a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: #a87fff;
}

/* ====== 巨型下拉面板 ====== */
.sh-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);

    box-sizing: border-box;
    /* HTML to MasterGo - Refore 网页转设计/白色/白色 10% */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.08);
    min-width: 720px;
    padding: 28px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.sh-nav>li:hover .sh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ---- 产品下拉（4列网格）---- */
.dd-products {
    display: grid;
    grid-template-columns: 140px 150px 130px 120px 120px;
    gap: 32px 12px;
    white-space: nowrap;
}

/* 分类标题 */
.dd-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748B;
    margin-bottom: 10px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

/* 链接列表 */
.dd-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dd-links a {
    color: #CBD5E1;
    font-size: 13px;
    padding: 5px 0;
    display: block;
    line-height: 1.4;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dd-links a:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.12);
    padding-left: 8px;
}

/* Agent 列表特殊样式 */
.dd-agent-list a {
    font-weight: 500;
}

.dd-agent-list a:hover {
    color: #C4B5FD;
}

/* ---- 解决方案下拉 ---- */
.dd-solutions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 解决方案面板自适应宽度 */
.sh-dropdown.dd-panel-narrow {
    min-width: auto;
    width: 250px;
    /* max-width: 280px; */
}

/* ---- 资源中心下拉（两列）---- */
.dd-resources {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 38px;
    padding: 24px 28px;
}

.dd-resources .dd-col:first-child {
    border-right: 1px solid rgba(139, 92, 246, 0.12);
    padding-right: 20px;
}

/* ---- 三级菜单（营销峰会 flyout）---- */
.dd-has-sub {
    position: relative;
    padding-right: 8px;
}

.dd-has-sub>a {
    position: relative;
    z-index: 2;
}

.dd-has-sub>a::after {
    content: "›";
    display: inline-block;
    margin-left: 5px;
    font-size: 15px;
    color: #64748B;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* 隐形桥接区：填补触发元素与三级菜单之间的间隙 */
.dd-has-sub::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -12px;
    width: 20px;
    height: calc(100% + 8px);
    z-index: 1;
}

.dd-sub-flyout {
    position: absolute;
    left: calc(100% + 8px);
    top: -8px;
    background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    white-space: nowrap;
}

.dd-has-sub:hover .dd-sub-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dd-sub-flyout a {
    display: block !important;
    padding: 8px 20px !important;
    color: #CBD5E1 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    border-radius: 0 !important;
}

.dd-sub-flyout a:hover {
    color: #fff !important;
    background: rgba(139, 92, 246, 0.12) !important;
    padding-left: 26px !important;
}

/* 右侧操作按钮 */
.sh-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-btn-login {
    color: #CBD5E1;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sh-btn-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sh-btn-primary {
    background: linear-gradient(135deg, #9d5cff, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.sh-btn-primary:hover {
    background: linear-gradient(135deg, #8b49e8, #6d28d9);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

/* 移动端汉堡按钮 */
.sh-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sh-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 1px;
    transition: all 0.25s;
}

/* 汉堡按钮激活态 */
.sh-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sh-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sh-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.sh-btn-primaryv {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 10px;
    border-radius: 6px;
    border: 1px solid #6212F5;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

/* ========== 移动端侧边栏（ID选择器确保最高优先级）========== */
#mmOverlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    display: block !important;
}

#mmOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#mmPanel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    transform: translateX(100%) !important;
    width: 340px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    background-color: #111118 !important;
    border-radius: 16px 0 0 16px !important;
    z-index: 9999 !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mmPanel.active {
    transform: translateX(0) !important;
}

/* 侧边栏头部 */
#mmPanel .mm-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 28px 20px !important;
    background-color: #111118 !important;
    flex-shrink: 0 !important;
    min-height: 68px !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

#mmPanel .mm-logo img {
    height: 30px !important;
    display: block !important;
}

#mmClose {
    background: rgba(255, 255, 255, 0.12) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px 16px !important;
    color: #94a3b8 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    transition: all 0.2s !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mmClose:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 菜单列表 */
#mmNav {
    padding: 8px 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    background-color: #111118 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

#mmNav .mm-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 一级菜单项 - 关键：强制可见 */
#mmNav .mm-item a.mm-link,
#mmNav .mm-link {
    display: block !important;
    padding: 20px 28px !important;
    color: #e2e8f0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
}

#mmNav .mm-item a.mm-link:hover,
#mmNav .mm-link:hover,
#mmNav .mm-item a.mm-link:active,
#mmNav .mm-link:active {
    color: #a87fff !important;
    background-color: rgba(139, 92, 246, 0.12) !important;
}

/* 底部 CTA */
#mmPanel .mm-footer {
    padding: 20px 28px 32px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
    background-color: #111118 !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mmPanel .mm-cta,
#mmPanel .mm-footer a.mm-cta {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #9d5cff, #7c3aed) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mmPanel .mm-cta:hover,
#mmPanel .mm-footer a.mm-cta:hover {
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* ========== 移动端菜单新样式 ========== */

/* 可展开的一级菜单 */
.mm-expandable {
    position: relative;
}

.mm-expandable>.mm-link-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 28px !important;
}

.mm-expandable>.mm-link-row .mm-link-text {
    color: #e2e8f0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.mm-expandable>.mm-link-row .mm-expand-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px;
    color: #64748b !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mm-expand-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a87fff !important;
}

.mm-expandable.active>.mm-link-row .mm-expand-btn {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a87fff !important;
}

/* 二级菜单容器 */
.mm-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.mm-submenu.active {
    max-height: 800px;
}

/* 二级菜单内容 */
.mm-submenu-inner {
    padding: 12px 20px 20px 28px;
}

/* 二级分类标题 */
.mm-sub-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748B;
    font-weight: 600;
    padding: 12px 0 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    margin-bottom: 8px;
}

.mm-sub-title:first-child {
    padding-top: 0;
}

/* 二级链接网格 */
.mm-sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.mm-sub-links a {
    display: block !important;
    padding: 8px 12px !important;
    color: #CBD5E1 !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    text-align: center;
}

.mm-sub-links a:hover {
    color: #fff !important;
    background: rgba(139, 92, 246, 0.2) !important;
}

/* 解决方案单列布局 */
.mm-sub-links.single-col {
    flex-direction: column;
    gap: 0;
}

.mm-sub-links.single-col a {
    padding: 10px 12px !important;
    text-align: left;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mm-sub-links.single-col a:last-child {
    border-bottom: none;
}

/* 三级菜单（营销峰会子菜单） */
.mm-sub-flyout {
    padding-left: 12px;
    margin-top: 4px;
}

.mm-sub-flyout a {
    display: block !important;
    padding: 8px 12px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    background: transparent !important;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    margin-left: 8px;
    border-radius: 0 4px 4px 0;
}

.mm-sub-flyout a:hover {
    color: #fff !important;
    background: rgba(139, 92, 246, 0.15) !important;
    border-left-color: #a87fff;
}

/* ========== 移动端适配 ========== */
@media (max-width: 900px) {
    .sh-nav {
        display: none;
    }

    .sh-action .sh-btn-login {
        display: none;
    }

    .sh-mobile-toggle {
        display: block;
    }

    .static-header__inner {
        padding: 0 20px;
    }
}
