/* 菜单默认颜色 - 薄荷绿 */
.navigation .mainmenu > li > a {
    color: #3EB489 !important;
}

#sticky-header .navigation .mainmenu > li > a {
    color: #3EB489 !important;
}

.navigation .mainmenu > li > a.nav-link {
    color: #3EB489 !important;
}

#sticky-header .navigation .mainmenu > li > a.nav-link {
    color: #3EB489 !important;
}

/* 确保导航菜单active状态的黄色下划线正确显示 */
.navigation .mainmenu > li > a.active:before {
    width: 16px !important;
    opacity: 1 !important;
}

/* 同时支持sticky header中的导航 */
#sticky-header .navigation .mainmenu > li > a.active:before {
    width: 16px !important;
    opacity: 1 !important;
}

/* 鼠标悬停时文字颜色 */
.navigation .mainmenu > li > a:hover,
.navigation .mainmenu > li > a.nav-link:hover {
    color: #0099ff !important;
}

#sticky-header .navigation .mainmenu > li > a:hover,
#sticky-header .navigation .mainmenu > li > a.nav-link:hover {
    color: #0099ff !important;
}

/* active状态时文字颜色 */
.navigation .mainmenu > li > a.active,
.navigation .mainmenu > li > a.nav-link.active {
    color: #ED6D46 !important;
}

#sticky-header .navigation .mainmenu > li > a.active,
#sticky-header .navigation .mainmenu > li > a.nav-link.active {
    color: #ED6D46 !important;
}

/* 冰块效果 - 当菜单浮动在页面上时 */
#sticky-header.active .site-header {
    background: linear-gradient(135deg, 
        rgba(220, 240, 255, 0.65) 0%, 
        rgba(230, 245, 255, 0.60) 50%,
        rgba(215, 238, 255, 0.65) 100%) !important;
    backdrop-filter: blur(18px) saturate(95%) brightness(1.06);
    -webkit-backdrop-filter: blur(18px) saturate(95%) brightness(1.06);
    box-shadow: 
        0 5px 25px 0 rgba(100, 150, 200, 0.18),
        0 8px 40px 0 rgba(50, 120, 180, 0.10),
        inset 0 2px 5px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px 0 rgba(180, 220, 255, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(180, 220, 255, 0.55);
    position: relative;
    transition: all 0.3s ease;
}

/* 冰块表面的光泽效果 */
#sticky-header.active .site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* 冰块底部的冷光效果 */
#sticky-header.active .site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(180, 220, 255, 0.4) 0%, 
        rgba(200, 235, 255, 0.65) 50%, 
        rgba(180, 220, 255, 0.4) 100%);
    box-shadow: 0 2px 8px rgba(180, 220, 255, 0.3);
    pointer-events: none;
}

/* 页面下拉菜单的冰透效果 */
.navigation .mainmenu > li.megamenu:hover .sub-menu.megamenu-main {
    background: linear-gradient(135deg, 
        rgba(220, 240, 255, 0.90) 0%, 
        rgba(230, 245, 255, 0.90) 50%,
        rgba(215, 238, 255, 0.90) 100%) !important;
    backdrop-filter: blur(18px) saturate(95%) brightness(1.06) !important;
    -webkit-backdrop-filter: blur(18px) saturate(95%) brightness(1.06) !important;
    box-shadow: 
        0 5px 25px 0 rgba(100, 150, 200, 0.18),
        0 8px 40px 0 rgba(50, 120, 180, 0.10),
        inset 0 2px 5px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px 0 rgba(180, 220, 255, 0.4) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid rgba(180, 220, 255, 0.55) !important;
}

/* 页面下拉菜单表面的光泽效果 - 使用伪元素但不影响布局 */
.navigation .mainmenu > li.megamenu .sub-menu.megamenu-main .megamenu-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

/* 页面下拉菜单底部的冷光效果 */
.navigation .mainmenu > li.megamenu .sub-menu.megamenu-main .megamenu-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(180, 220, 255, 0.4) 0%, 
        rgba(200, 235, 255, 0.65) 50%, 
        rgba(180, 220, 255, 0.4) 100%);
    box-shadow: 0 2px 8px rgba(180, 220, 255, 0.3);
    pointer-events: none;
    z-index: 0;
}

/* 确保megamenu-wrapper有相对定位以支持伪元素 */
.navigation .mainmenu > li.megamenu .sub-menu.megamenu-main .megamenu-wrapper {
    position: relative;
}

/* 确保内容在光泽效果之上 */
.navigation .mainmenu > li.megamenu .sub-menu.megamenu-main .megamenu-container {
    position: relative;
    z-index: 1;
}

/* 首页标题灵动效果 */
.hero-title {
    text-shadow: 
        0 2px 10px rgba(0, 153, 255, 0.15),
        0 4px 20px rgba(0, 153, 255, 0.1);
    transition: all 0.3s ease;
}

/* 蓝色关键词的灵动效果 */
.hero-title .color-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    transition: all 0.3s ease;
    animation: shimmer 3s ease-in-out infinite;
}

/* 闪烁动画 */
@keyframes shimmer {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(0, 153, 255, 0.3));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(0, 153, 255, 0.5));
    }
}

/* 加粗文字的微妙效果 */
.hero-title .w-700 {
    position: relative;
    transition: all 0.3s ease;
}

/* 鼠标悬停时整个标题的效果 */
.hero-title:hover {
    transform: translateY(-2px);
    text-shadow: 
        0 4px 15px rgba(0, 153, 255, 0.2),
        0 6px 30px rgba(0, 153, 255, 0.15);
}

/* 鼠标悬停时蓝色关键词的增强效果 */
.hero-title:hover .color-primary {
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(0, 204, 255, 0.6));
    transform: scale(1.02);
}

/* 为蓝色关键词添加呼吸效果 */
.hero-title .color-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 153, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

/* 呼吸动画 */
@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* 响应式调整 */
@media only screen and (max-width: 991px) {
    .hero-title .color-primary::after {
        animation: none;
    }
}
