/* 导航栏 - 简洁设计 */
:root {
    --nav-bg: #ffffff;
    --nav-text-primary: #1f2937;
    --nav-text-secondary: #6b7280;
    --nav-accent: #8b5cf6;
    --nav-hover-bg: #f3f4f6;
    --nav-border: #e5e7eb;
}

/* 暗黑主题变量 */
.dark-theme {
    --nav-bg: #1f2937;
    --nav-text-primary: #ffffff;
    --nav-text-secondary: #d1d5db;
    --nav-accent: #8b5cf6;
    --nav-hover-bg: rgba(255, 255, 255, 0.1);
    --nav-border: #374151;
}

/* 导航栏容器 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    height: 64px;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* 主导航 - 简洁布局 */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* 左侧Logo区域 */
.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--nav-text-primary);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo:hover .logo-text {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 25%, #0891b2 75%, #06b6d4 100%) !important;
    text-shadow: 0 0 25px rgba(139, 92, 246, 0.5) !important;
}

.logo-icon {
    font-size: 28px !important;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-3px);
    }
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    letter-spacing: 2px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 25%, #06b6d4 75%, #0891b2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* 中间导航菜单 */
.nav-center {
    display: flex;
    flex: 1;
    justify-content: center;
    max-width: 600px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--nav-text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px 24px;
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link:not(.active):hover {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    color: var(--nav-accent);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    position: relative;
    font-weight: 600;
    transform: translateY(-1px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.15),
        0 4px 16px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 14px 24px;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(6, 182, 212, 0.08) 50%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.6) 20%, 
        rgba(6, 182, 212, 0.8) 50%, 
        rgba(139, 92, 246, 0.6) 80%, 
        transparent 100%);
    border-radius: 1px;
    filter: blur(0.5px);
    animation: liquidGlow 2s ease-in-out infinite;
}

@keyframes liquidGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scaleX(1.3);
    }
}

.nav-link.community-link {
    position: relative;
}

.nav-link.community-link::after {
    content: 'NEW';
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    animation: pulse 2s infinite;
    z-index: 10;
}

/* 社区链接active状态时隐藏NEW标签，避免冲突 */
.nav-link.community-link.active::after {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 右侧功能区 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 180px;
    justify-content: flex-end;
}

.simple-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.simple-nav-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
}

.simple-nav-btn:hover {
    color: var(--nav-text-primary);
    background: var(--nav-hover-bg);
}

.simple-nav-btn.active {
    color: var(--nav-accent);
    background: rgba(139, 92, 246, 0.1);
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    cursor: pointer;
    min-width: 64px;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.login-btn {
    color: #1f2937 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1f2937 !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.login-btn:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.register-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.register-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #7c3aed;
    background: transparent;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    color: white;
    background: #7c3aed;
    border-color: #7c3aed;
}

.theme-toggle i {
    font-size: 16px;
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--nav-text-primary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--nav-hover-bg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        height: 64px;
        padding: 0 16px;
    }
    
    .site-header .container {
        padding: 0 8px;
    }
    
    .main-nav {
        gap: 16px;
    }
    
    .nav-left {
        min-width: auto;
    }
    
    .nav-logo {
        font-size: 20px;
        padding: 8px 12px;
        gap: 12px;
    }
    
    .logo-icon {
        font-size: 26px !important;
    }
    
    .logo-text {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .nav-center,
    .nav-right .simple-nav-buttons {
        display: none;
    }
    
    .nav-right {
        min-width: auto;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 移动端显示Logo文字 */
    .nav-logo .logo-text {
        display: inline !important;
    }
}

/* 移动端菜单 */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-nav-link:hover {
    color: var(--nav-text-primary);
    background: var(--nav-hover-bg);
}

.mobile-nav-link.active {
    color: var(--nav-accent);
    background: rgba(139, 92, 246, 0.1);
    font-weight: 600;
}

.mobile-auth-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--nav-border);
}

.mobile-auth-btn {
    flex: 1;
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-auth-btn:first-child {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.mobile-auth-btn:first-child:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.mobile-auth-btn:last-child {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.mobile-auth-btn:last-child:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

/* 页面内容适配 */
body {
    padding-top: 64px;
}

/* 明亮主题下的液态玻璃效果 */
.light-theme .nav-link.active {
    background: rgba(255, 255, 255, 0.85);
    color: #6366f1;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%) brightness(110%);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.12),
        0 4px 16px rgba(56, 178, 172, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 14px 24px;
}

.light-theme .nav-link.active::before {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(56, 178, 172, 0.06) 50%, 
        rgba(99, 102, 241, 0.04) 100%);
    border-radius: 20px;
}

.light-theme .nav-link.active::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.7) 20%, 
        rgba(56, 178, 172, 0.9) 50%, 
        rgba(99, 102, 241, 0.7) 80%, 
        transparent 100%);
}

.light-theme .nav-link:hover {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 14px 24px;
    backdrop-filter: blur(10px) saturate(120%) brightness(105%);
    -webkit-backdrop-filter: blur(10px) saturate(120%) brightness(105%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.light-theme .nav-link:not(.active):hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* 明亮主题下的简洁导航按钮 */
.light-theme .simple-nav-btn {
    color: rgba(17, 24, 39, 0.7);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .simple-nav-btn:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .simple-nav-btn.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

/* 明亮主题下的认证按钮 */
.light-theme .login-btn {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1f2937 !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.light-theme .login-btn:hover {
    background: linear-gradient(135deg, #6366f1, #38b2ac) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.light-theme .register-btn {
    background: linear-gradient(135deg, #6366f1, #38b2ac) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.light-theme .register-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #319795) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.light-theme .theme-toggle {
    background: transparent;
    border: 1px solid #6d28d9;
    color: #6d28d9;
}

.light-theme .theme-toggle:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    color: white;
}

/* 暗黑主题下的认证按钮 */
.dark-theme .login-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.dark-theme .login-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.dark-theme .register-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

.dark-theme .register-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5) !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

.dark-theme .theme-toggle {
    background: transparent;
    border: 1px solid #c084fc;
    color: #c084fc;
}

.dark-theme .theme-toggle:hover {
    background: #c084fc;
    border-color: #c084fc;
    color: #1f2937;
} 