/* 粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 8, 24, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 195, 255, 0.3);
    padding: 15px 5%;
    /*display: flex;*/
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    visibility:hidden;
    display:none;
    flex-wrap: wrap;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.navbar-logo-icon {
    font-size: 32px;
    color: #00c3ff;
    animation: pulse 2s infinite;
}

.navbar-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 2;
    min-width: 500px;
}

.nav-link {
    color: #a0a0ff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(0, 195, 255, 0.15);
}

.nav-link.active {
    color: #00f2fe;
    background: rgba(0, 195, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center;
}

.nav-links a {
    /*color: var(--text);*/
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    /*background: rgba(255, 107, 0, 0.15);*/
    /*color: var(--accent);*/
}

.navbar-user-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-auth-btn {
    background: linear-gradient(90deg, #00c3ff, #00f2fe);
    color: #0a0818;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

.navbar-auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 195, 255, 0.6);
}

.navbar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c3ff, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a0818;
}

.navbar-username {
    font-weight: 600;
    color: #a0a0ff;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 900px) {
    /* 导航栏响应式 */
    .navbar-logo {
        order: 2;
    }
    .navbar-user-section {
        order: 3;
    }

    .nav-links {
        order: 5;
        width: 100%;
        max-height: 500;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .nav-links ul {
        padding: 20px 0;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        display:flex;
        list-style: none;
    }
    .nav-links ul li {
        display: inline;
        height: 50px;
        line-height: 50px;
    }
}

/* 移动导航菜单动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}