

/* 主导航菜单样式 */
.uk-navbar-nav {
    height: 100%;
    margin: 0;
    padding: 0;
}

.uk-navbar-nav > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 2px; /* 减小边距 */
}

.uk-navbar-nav > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px; /* 减小内边距 */
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* 子菜单样式 */
.sub-menu {
    position: absolute;
    top: calc(100% - 13px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 0;
    pointer-events: none;
}

.uk-navbar-nav > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    display: block;
}

.sub-menu li {
    padding: 0;
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li a:hover {
    background: #f8f9fa;
    color: #0066ff;
    padding-left: 25px;
}

/* Contact Us 按钮样式 */
.join {
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.join .b-r-4.b-a {
    padding: 8px 20px;
    border-radius: 6px;
    background: #0066ff;
    color: #fff;
    transition: all 0.3s ease;
}

.join .b-r-4.b-a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #0052cc;
}

/* 移动端菜单样式 */
/* 移动端导航基础样式 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 展开状态 */
.mobile-nav.uk-open {
    display: block;
}

/* 防止body滚动 */
body.menu-open {
    overflow: hidden;
}

/* 移动端菜单项样式 */
.mobile-menu {
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

.mobile-menu li {
    margin: 4px 16px;
}

.mobile-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

/* 子菜单样式 */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px;
    margin: 0;
    list-style: none;
}

/* 展开/收起指示器 */
.submenu-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.has-submenu.uk-open .submenu-toggle {
    transform: rotate(45deg);
}
.mobile-submenu li a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #5c6b7a;
    font-weight: normal;
}

/* 展开/收起指示器 */
.submenu-toggle {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #5c6b7a;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    margin-left: 8px;
    position: relative;
    right: 20px; /* 向左偏移指示器 */
}

.has-submenu.uk-open > a .submenu-toggle {
    transform: rotate(45deg);
    background: #0066ff;
    color: #fff;
}

.has-submenu.uk-open .mobile-submenu {
    max-height: 500px;
    margin-left: 30px;
}

/* 悬停效果 */
@media (hover: hover) {
    .mobile-menu li a:hover,
    .mobile-submenu li a:hover {
        color: #0066ff;
    }
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


