/* 导航栏一级菜单项悬停效果 */

/* 一级菜单项悬停效果 - 只改变文字颜色，不改变背景 */
.hdt-header-col .buddha-menu-item > a:hover {
    background-color: transparent !important;
    color: #16336b !important;
    transition: all 0.3s ease !important;
}

/* 一级菜单项悬停时文字颜色 */
.hdt-header-col .buddha-menu-item > a:hover .mm-title {
    color: #16336b !important;
}

/* 一级菜单项悬停时箭头颜色 */
.hdt-header-col .buddha-menu-item > a:hover .mm-arrow {
    color: #16336b !important;
}

/* 一级菜单项悬停时标签颜色 */
.hdt-header-col .buddha-menu-item > a:hover .mm-label.hot {
    background-color: #16336b !important;
    color: #ffffff !important;
}

/* 一级菜单项悬停时标签位置调整 */
.hdt-header-col .buddha-menu-item > a:hover .mm-label {
    background-color: #16336b !important;
    color: #ffffff !important;
}

/* 确保悬停效果在所有状态下都生效 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item:hover > a {
    background-color: transparent !important;
    color: #16336b !important;
}

.hdt-header-col .buddha-menu-item:hover > a .mm-title {
    color: #16336b !important;
}

.hdt-header-col .buddha-menu-item:hover > a .mm-arrow {
    color: #16336b !important;
}

/* 悬停时的过渡动画 */
.hdt-header-col .buddha-menu-item > a {
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* 悬停时的下划线效果 */
.hdt-header-col .buddha-menu-item > a:hover::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #16336b !important;
    transition: all 0.3s ease !important;
}

/* 确保悬停效果在子菜单展开时也生效 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item.mega-hover > a,
.hdt-header-col .buddha-menu-item:hover > a {
    background-color: transparent !important;
    color: #16336b !important;
}

.hdt-header-col .buddha-menu-item.mega-hover > a .mm-title,
.hdt-header-col .buddha-menu-item:hover > a .mm-title {
    color: #16336b !important;
}

.hdt-header-col .buddha-menu-item.mega-hover > a .mm-arrow,
.hdt-header-col .buddha-menu-item:hover > a .mm-arrow {
    color: #16336b !important;
}

/* 悬停时的效果 - 只改变文字颜色，不改变背景 */
.hdt-header-col .buddha-menu-item > a:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 确保悬停效果在触摸设备上也生效 - 只改变文字颜色 */
@media (hover: hover) {
    .hdt-header-col .buddha-menu-item > a:hover {
        background-color: transparent !important;
        color: #16336b !important;
    }
}

/* 触摸设备的激活状态 - 只改变文字颜色 */
@media (hover: none) {
    .hdt-header-col .buddha-menu-item > a:active {
        background-color: transparent !important;
        color: #16336b !important;
    }
}

/* 悬停时的文字阴影效果 */
.hdt-header-col .buddha-menu-item > a:hover .mm-title {
    text-shadow: 0 1px 2px rgba(22, 51, 107, 0.3) !important;
}

/* 悬停时的图标效果 */
.hdt-header-col .buddha-menu-item > a:hover .mm-arrow {
    transform: scale(1.1) !important;
    transition: transform 0.3s ease !important;
}

/* 确保悬停效果在子菜单展开时保持 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item.mega-hover > a,
.hdt-header-col .buddha-menu-item:hover > a {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 悬停时的边框效果 */
.hdt-header-col .buddha-menu-item > a:hover {
    border-radius: 4px !important;
    margin: 0 2px !important;
}

/* 确保悬停效果在所有浏览器中一致 */
.hdt-header-col .buddha-menu-item > a:hover {
    -webkit-transform: translateY(-1px) !important;
    -ms-transform: translateY(-1px) !important;
    transform: translateY(-1px) !important;
}

/* 悬停时的焦点状态 */
.hdt-header-col .buddha-menu-item > a:focus {
    outline: 2px solid #16336b !important;
    outline-offset: 2px !important;
}

/* 确保悬停效果在键盘导航时也生效 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item > a:focus-visible {
    background-color: transparent !important;
    color: #16336b !important;
}

/* 悬停时的响应式调整 - 只改变文字颜色 */
@media (max-width: 1024px) {
    .hdt-header-col .buddha-menu-item > a:hover {
        background-color: transparent !important;
        color: #16336b !important;
    }
}

/* 悬停时的移动端优化 - 只改变文字颜色 */
@media (max-width: 768px) {
    .hdt-header-col .buddha-menu-item > a:hover {
        background-color: transparent !important;
        color: #16336b !important;
        transform: none !important;
    }
}

/* 确保悬停效果在所有状态下都正确显示 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item > a:hover,
.hdt-header-col .buddha-menu-item:hover > a,
.hdt-header-col .buddha-menu-item.mega-hover > a {
    background-color: transparent !important;
    color: #16336b !important;
    text-decoration: none !important;
}

/* 悬停时的子菜单保持显示 */
.hdt-header-col .buddha-menu-item:hover > ul.mm-submenu,
.hdt-header-col .buddha-menu-item.mega-hover > ul.mm-submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 悬停时的性能优化 */
.hdt-header-col .buddha-menu-item > a {
    will-change: color, transform !important;
}

/* 确保悬停效果在深色主题下也清晰可见 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item > a:hover {
    background-color: transparent !important;
    color: #16336b !important;
    border: none !important;
}

/* 悬停时的状态指示器 - 已移除 */
.hdt-header-col .buddha-menu-item > a:hover::before {
    content: none !important;
    display: none !important;
}

/* 确保悬停效果在所有交互状态下都生效 - 只改变文字颜色 */
.hdt-header-col .buddha-menu-item > a:hover,
.hdt-header-col .buddha-menu-item > a:focus,
.hdt-header-col .buddha-menu-item > a:active {
    background-color: transparent !important;
    color: #16336b !important;
} 