/* 导航菜单样式 */
.nav-container {
    position: relative;
    width: 100%;
    background: linear-gradient(45deg, #000000, #222222, #000000); /* 渐变背景 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 153, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4), 0 0 40px rgba(0, 255, 153, 0.2), 0 0 60px rgba(0, 255, 153, 0.1); /* 多层发光阴影 */
    border-radius: 10px;
    transition: all 0.3s ease; /* 过渡效果 */
    margin-bottom: 20px;
    overflow: hidden; /* 确保星空效果不会溢出 */
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #00ff99;
    text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99, 0 0 15px #00ff99;
    border: none;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    display: block; /* 确保logo正确显示 */
}

.nav-logo:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 导航菜单项样式 - 更酷炫的效果 */
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif; /* 科幻字体 */
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.7);
}

/* 霓虹灯效果 */
.nav-menu li a:hover {
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.5), 0 0 30px rgba(0, 255, 153, 0.3);
    text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99, 0 0 15px #00ff99;
    transform: translateY(-2px);
}

/* 特殊链接样式 */
.nav-menu li a.special-link {
    background: linear-gradient(90deg, rgba(0, 255, 153, 0.1), rgba(0, 255, 153, 0.3));
    border: 1px solid rgba(0, 255, 153, 0.5);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.nav-menu li a.special-link span {
    position: relative;
    z-index: 2;
}

.nav-menu li a.special-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 153, 0.4), transparent);
    transition: left 0.8s;
}

.nav-menu li a.special-link:hover::before {
    left: 100%;
}

/* 下划线动画效果 */
.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #00ff99;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00ff99, 0 0 20px #00ff99;
}

.nav-menu li a:hover::before {
    width: 100%;
}

/* 添加文字周围的光晕效果 */
.nav-menu li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu li a:hover::after {
    opacity: 1;
}

/* 添加文字扫描线效果 */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.nav-menu li a:hover span {
    position: relative;
}

.nav-menu li a:hover span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 255, 153, 0.7); /* 增强扫描线亮度 */
    animation: scanline 2s linear infinite; /* 改回为2秒 */
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        width: 100%;
        background: linear-gradient(45deg, #000000, #222222, #000000);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 255, 153, 0.3);
        border-bottom: 1px solid rgba(0, 255, 153, 0.3);
        box-shadow: 0 0 15px rgba(0, 255, 153, 0.3), 0 0 30px rgba(0, 255, 153, 0.1);
        margin-bottom: 20px;
        z-index: auto;
    }
    
    .nav-wrapper {
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-logo {
        display: block;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .nav-logo img {
        width: 60px;
        height: auto;
        border-radius: 8px;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu li {
        flex: 0 1 auto;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 6px 8px;
        font-size: 10px;
        text-align: center;
        border-radius: 4px;
        background: rgba(0, 255, 153, 0.1);
        border: 1px solid rgba(0, 255, 153, 0.3);
        transition: all 0.3s ease;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .nav-menu li a:hover {
        background: rgba(0, 255, 153, 0.2);
        border-color: rgba(0, 255, 153, 0.5);
    }
    

    
    /* 移除页面内容底部边距 */
    body {
        padding-bottom: 0;
    }
}

@keyframes moving-light {
    0% { transform: translateY(-100vh); opacity: 0.9; }
    100% { transform: translateY(100vh); opacity: 0.2; }
}

.moving-light-bar {
    position: fixed;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, 
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.6) 50%, /* 增强亮度 */
                rgba(255, 255, 255, 0) 100%);
    animation: moving-light 4s infinite linear; /* 保持4秒 */
    z-index: 2;
    pointer-events: none;
}

/* 添加扫描线效果 */
@keyframes scanline-effect {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.scanline-effect {
    position: fixed;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 255, 153, 0.7); /* 增强亮度 */
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.8), 0 0 20px rgba(0, 255, 153, 0.4); /* 添加发光效果 */
    animation: scanline-effect 4s infinite linear; /* 修改为4秒，与moving-light一致 */
    z-index: 4;
    pointer-events: none;
}

/* 添加回body样式和星空背景 */
/* 修改body样式，使用已有图片或纯CSS星空效果 */
body {
    background-color: #000;
    color: #ccc;
    font-family: 'Ink Free', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* 移除不存在的背景图片引用 */
    background-color: #000;
    background-attachment: fixed;
}

/* 使用纯CSS创建星空效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    z-index: -1;
}

/* 横屏适配 - 针对手机横屏时的优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-container {
        background: linear-gradient(45deg, #000000, #111111, #000000);
        border-radius: 0;
        margin-bottom: 10px;
        box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
    }
    
    .nav-wrapper {
        padding: 4px 8px;
        gap: 4px;
        max-height: 50px;
        overflow: hidden;
    }
    
    .nav-logo {
        font-size: 14px;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .nav-logo img {
        width: 40px;
        height: auto;
    }
    
    .nav-menu {
        gap: 3px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu li a {
        padding: 4px 6px;
        font-size: 9px;
        white-space: nowrap;
        border-radius: 3px;
        background: rgba(0, 255, 153, 0.08);
        border: 1px solid rgba(0, 255, 153, 0.2);
    }
    
    .nav-menu li a:hover {
        background: rgba(0, 255, 153, 0.15);
        transform: none;
    }
}

/* 导航栏星空效果 */
.nav-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nav-star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: nav-twinkle linear infinite;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #ffffff, 0 0 24px rgba(255,255,255,0.5);
}

@keyframes nav-twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.nav-meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff99;
    border-radius: 50%;
    animation: nav-meteor-fall linear;
    box-shadow: 0 0 6px #00ff99, 0 0 12px #00ff99;
}

@keyframes nav-meteor-fall {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(200px) translateY(200px) rotate(45deg);
        opacity: 0;
    }
}

.nav-meteor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #00ff99, transparent);
    transform: translateX(-50px);
    box-shadow: 0 0 6px #00ff99;
}

/* 全屏流星效果 */
.fullscreen-meteor {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #00ff99;
    border-radius: 50%;
    animation: fullscreen-meteor-fall linear;
    box-shadow: 0 0 8px #00ff99, 0 0 16px #00ff99;
    z-index: 1000;
    pointer-events: none;
}

@keyframes fullscreen-meteor-fall {
    0% {
        transform: translateX(0) translateY(-100vh) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

.fullscreen-meteor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #00ff99, transparent);
    transform: translateX(-80px);
    box-shadow: 0 0 8px #00ff99;
}

/* 确保导航栏内容在星空之上 */
.nav-wrapper {
    position: relative;
    z-index: 2;
}

