/* ===== 炫酷版本 - 超凡驿站顶部导航 ===== */

/* 顶部导航容器 */
.page-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(15px) saturate(120%);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 55px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 暗色模式 */
.io-black-mode .page-header {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 导航内容容器 */
.navbar {
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ===== 站点标题特殊化样式 ===== */
.site-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, 
        #3b82f6 0%, 
        #8b5cf6 50%, 
        #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* 站点标题背景光效 */
.site-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.08) 50%, 
        rgba(6, 182, 212, 0.1) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    filter: blur(8px);
}

/* 站点标题悬停效果 */
.site-title:hover {
    transform: scale(1.08) translateY(-2px);
    text-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.4),
        0 2px 4px rgba(139, 92, 246, 0.3);
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.2));
}

.site-title:hover::before {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(12px);
}

/* 站点标题动态光环效果 */
.site-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(139, 92, 246, 0.2) 30%, 
        transparent 70%);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: titlePulse 3s ease-in-out infinite;
}

.site-title:hover::after {
    width: 120px;
    height: 120px;
}

@keyframes titlePulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    50% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1.2); 
    }
}

/* 暗色模式下的站点标题 */
.io-black-mode .site-title {
    background: linear-gradient(135deg, 
        #60a5fa 0%, 
        #a78bfa 50%, 
        #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(96, 165, 250, 0.4);
}

.io-black-mode .site-title::before {
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.15) 0%, 
        rgba(167, 139, 250, 0.12) 50%, 
        rgba(34, 211, 238, 0.15) 100%);
}

/* 汉堡菜单按钮 - 增强特效 */
.header-mini-btn {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.header-mini-btn label {
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 汉堡按钮悬停特效 */
.header-mini-btn label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(147, 51, 234, 0.2) 50%, 
        transparent 100%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.header-mini-btn label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.2),
        0 4px 10px rgba(147, 51, 234, 0.1);
}

.header-mini-btn label:hover::before {
    width: 100px;
    height: 100px;
}

.io-black-mode .header-mini-btn label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.header-mini-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-mini-btn label:hover svg {
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

/* 导航菜单 */
.navbar-nav.site-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

/* 菜单项 - 普通样式 */
.navbar-nav.site-menu .menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav.site-menu .menu-item > a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 40px;
    border-radius: 25px;
    color: rgba(0, 0, 0, 0.85); /* 加深字体颜色 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    overflow: hidden;
}

.io-black-mode .navbar-nav.site-menu .menu-item > a {
    color: rgba(255, 255, 255, 0.9); /* 暗色模式下也加深 */
}

/* 普通菜单项的悬停特效 */
.navbar-nav.site-menu .menu-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.navbar-nav.site-menu .menu-item > a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(147, 51, 234, 0.15) 40%, 
        transparent 70%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* 普通菜单项悬停效果 */
.navbar-nav.site-menu .menu-item > a:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    color: rgba(0, 0, 0, 0.95); /* 悬停时更深的颜色 */
    transform: scale(1.12) translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.15),
        0 5px 15px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(25px) saturate(150%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-nav.site-menu .menu-item > a:hover::before {
    left: 100%;
}

.navbar-nav.site-menu .menu-item > a:hover::after {
    width: 150px;
    height: 150px;
}

.io-black-mode .navbar-nav.site-menu .menu-item > a:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.06) 100%);
    color: rgba(255, 255, 255, 1); /* 暗色模式悬停时的颜色 */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.2),
        0 5px 15px rgba(147, 51, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(96, 165, 250, 0.2);
}

/* 当前页面激活状态 */
.navbar-nav.site-menu .current-menu-item > a,
.navbar-nav.site-menu .current_page_item > a {
    background: transparent;
    color: rgba(59, 130, 246, 0.9);
    font-weight: 600;
    border-color: transparent;
    position: relative;
}

/* 激活状态的特效 */
.navbar-nav.site-menu .current-menu-item > a::after,
.navbar-nav.site-menu .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.8), 
        transparent);
    transform: translateX(-50%);
    border-radius: 1px;
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% { opacity: 0.6; transform: translateX(-50%) scaleX(0.8); }
    100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

.io-black-mode .navbar-nav.site-menu .current-menu-item > a,
.io-black-mode .navbar-nav.site-menu .current_page_item > a {
    color: rgba(96, 165, 250, 0.9);
    border-color: rgba(96, 165, 250, 0.3);
}



.navbar-nav.site-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
    color: rgba(59, 130, 246, 0.8);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* 子菜单 */
.navbar-nav.site-menu .sub-menu {
    position: absolute;
    top: calc(100% + 5px); /* 同时减少间距 */
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    /* 磨砂透明玻璃背景 */
    background: rgba(255, 255, 255, 0.15); /* 更透明的白色 */
    backdrop-filter: blur(20px) saturate(150%) brightness(1.1);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px) scale(0.9) rotateX(-10deg);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    padding: 15px 0;
    overflow: hidden;
}

.io-black-mode .navbar-nav.site-menu .sub-menu {
    background: rgba(0, 0, 0, 0.25); /* 透明的黑色 */
    backdrop-filter: blur(20px) saturate(150%) brightness(0.9);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.navbar-nav.site-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
}

/* 子菜单项 - 满宽度悬停特效 */
.navbar-nav.site-menu .sub-menu .menu-item {
    position: relative;
    width: 100%; /* 确保菜单项占满宽度 */
}

.navbar-nav.site-menu .sub-menu .menu-item > a {
    padding: 14px 24px;
    border-radius: 10px; /* 修复单位 */
    margin: 0 20px 0 8px; /* 左右各12px边距 */
    font-size: 13px;
    color: rgba(51, 65, 85, 0.8);
    background: transparent;
    border: none;
    height: auto;
    position: relative;
    overflow: hidden;
    width: calc(100% - 24px); /* 减去左右margin：12px + 12px = 24px */
    display: block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* 子菜单项的满宽度悬停背景特效 */
.navbar-nav.site-menu .sub-menu .menu-item > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(239, 246, 255, 0.8), /* 非常浅的蓝色 */
        transparent);
    transition: left 0.4s ease;
    z-index: -1;
}

/* 子菜单项的满宽度悬停背景 */
.navbar-nav.site-menu .sub-menu .menu-item > a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(239, 246, 255, 0.6); /* 浅蓝色背景 */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -2;
}

.io-black-mode .navbar-nav.site-menu .sub-menu .menu-item > a {
    color: rgba(203, 213, 225, 0.9);
}

.io-black-mode .navbar-nav.site-menu .sub-menu .menu-item > a::after {
    background: rgba(51, 65, 85, 0.6); /* 暗色模式下的浅色背景 */
}

/* 子菜单项悬停效果 - 满宽度特效 */
.navbar-nav.site-menu .sub-menu .menu-item > a:hover {
    color: rgba(30, 64, 175, 0.95); /* 深蓝色文字 */
    transform: translateX(8px); /* 轻微向右移动 */
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.2);
}

.navbar-nav.site-menu .sub-menu .menu-item > a:hover::before {
    left: 100%; /* 光效从左到右扫过 */
}

.navbar-nav.site-menu .sub-menu .menu-item > a:hover::after {
    opacity: 1; /* 显示满宽度背景 */
}

.io-black-mode .navbar-nav.site-menu .sub-menu .menu-item > a:hover {
    color: rgba(147, 197, 253, 0.95);
    text-shadow: 0 1px 2px rgba(147, 197, 253, 0.3);
}

/* 进入动画 */
@keyframes slideInWithGlow {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.navbar-nav.site-menu .menu-item {
    opacity: 0;
    animation: slideInWithGlow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.navbar-nav.site-menu .menu-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav.site-menu .menu-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav.site-menu .menu-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav.site-menu .menu-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav.site-menu .menu-item:nth-child(5) { animation-delay: 0.5s; }

/* 点击反馈 */
.navbar-nav.site-menu .menu-item > a:active {
    transform: scale(0.95) translateY(1px);
    transition: transform 0.1s ease;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 滚动时的效果 */
.page-header.scrolled {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.io-black-mode .page-header.scrolled {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }
    
    .navbar-nav.site-menu {
        display: none;
    }
    
    .header-mini-btn {
        margin-right: 0;
    }
    
    .site-title {
        font-size: 18px;
        padding: 6px 16px;
    }
}

@media (max-width: 768px) {
    .navbar-nav.site-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 25px;
        gap: 10px;
        border-radius: 0 0 25px 25px;
    }
    
    .io-black-mode .navbar-nav.site-menu.show {
        background: rgba(20, 20, 25, 0.98);
        border-top-color: rgba(255, 255, 255, 0.15);
    }
    
    .navbar-nav.site-menu.show .menu-item > a {
        padding: 16px 24px;
        border-radius: 15px;
        justify-content: flex-start;
        width: 100%;
    }
}

/*
==================================================================
== 强制修正【首页】按钮的激活样式 ==
== 目的：让首页按钮即使在当前页面，也保持和其他普通按钮一样的外观和悬停效果 ==
==================================================================
*/

/* --- 1. 重置【首页】按钮的默认激活样式 (普通/亮色模式) --- */
.navbar-nav.site-menu .menu-item-home.current-menu-item > a,
.navbar-nav.site-menu .menu-item-home.current_page_item > a {
    /* 强制恢复为普通按钮的文字颜色和字重 */
    color: rgba(0, 0, 0, 0.85) !important; /* 更新为加深的颜色 */
    font-weight: 500 !important;
    /* 确保没有意外的背景或边框 */
    background: transparent !important;
    border-color: transparent !important;
}

/* --- 2. 重置【首页】按钮的默认激活样式 (暗色模式) --- */
.io-black-mode .navbar-nav.site-menu .menu-item-home.current-menu-item > a,
.io-black-mode .navbar-nav.site-menu .menu-item-home.current_page_item > a {
    /* 强制恢复为暗色模式下普通按钮的文字颜色 */
    color: rgba(255, 255, 255, 0.9) !important; /* 更新为加深的颜色 */
}

/* --- 3. 彻底移除【首页】按钮的激活下划线特效 --- */
.navbar-nav.site-menu .menu-item-home.current-menu-item > a::after,
.navbar-nav.site-menu .menu-item-home.current_page_item > a::after {
    /* 隐藏那个蓝色的、会发光的下划线，这是导致"下面蓝"的元凶 */
    display: none !important;
}
