/* 🎯 顶部导航栏 - 赛博朋克黄色系风格 */

/* ============================================
   导航栏主体 - 赛博朋克背景
   ============================================ */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 193, 7, 0.20) 50%,
        rgba(255, 215, 0, 0.15) 100%
    ),
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 248, 225, 0.98) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 2px solid rgba(255, 193, 7, 0.4) !important;
    box-shadow: 
        0 5px 30px rgba(255, 193, 7, 0.15),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 -2px 10px rgba(255, 215, 0, 0.1) !important;
    z-index: 1000 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 滚动后的导航栏 */
.header.scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.20) 0%,
        rgba(255, 193, 7, 0.25) 50%,
        rgba(255, 215, 0, 0.20) 100%
    ),
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 248, 225, 1) 100%
    ) !important;
    box-shadow: 
        0 8px 40px rgba(255, 193, 7, 0.2),
        0 0 30px rgba(255, 215, 0, 0.25),
        inset 0 -2px 15px rgba(255, 215, 0, 0.15) !important;
    border-bottom-color: rgba(255, 193, 7, 0.5) !important;
}

/* 网格纹理背景 */
.header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* 发光线条动画 */
.header::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #FFD700 20%,
        #FFA500 50%,
        #FFD700 80%,
        transparent 100%
    ) !important;
    opacity: 0.5 !important;
    animation: headerLineFlow 4s linear infinite !important;
    background-size: 200% 100% !important;
}

@keyframes headerLineFlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   Logo区域 - 霓虹效果
   ============================================ */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    padding: 5px 0 !important;
}

.logo-icon {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: #1a1410 !important;
    font-weight: 900 !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3) !important;
    border: 2px solid #FFEB3B !important;
    transition: all 0.3s ease !important;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

.logo-text {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 2px !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.logo:hover .logo-text {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)) !important;
}

/* ============================================
   导航链接 - 霓虹按钮
   ============================================ */
.nav {
    display: flex !important;
    gap: 5px !important;
    align-items: center !important;
}

.nav a {
    position: relative !important;
    padding: 10px 20px !important;
    color: #D97706 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 1px !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    overflow: hidden !important;
}

/* 链接背景层 */
.nav a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 165, 0, 0.1) 100%
    ) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    border-radius: 10px !important;
}

.nav a:hover,
.nav a.active {
    color: #F59E0B !important;
    background: rgba(255, 193, 7, 0.2) !important;
    box-shadow: 
        0 0 15px rgba(255, 193, 7, 0.3),
        inset 0 0 10px rgba(255, 215, 0, 0.15) !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.nav a:hover::before,
.nav a.active::before {
    opacity: 1 !important;
}

/* ============================================
   搜索框 - 赛博朋克风格
   ============================================ */
/* 搜索框 - 简洁统一版本 */
.search-box {
    position: relative !important;
    max-width: 320px !important;
}

.search-box input {
    width: 100% !important;
    padding: 8px 35px 8px 15px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    color: #333 !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.search-box input::placeholder {
    color: #999 !important;
}

.search-box input:focus {
    border-color: #F57F17 !important;
    box-shadow: 0 0 0 2px rgba(245, 127, 23, 0.1) !important;
}

.search-box button,
.search-box i {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
}

.search-box button:hover,
.search-box i:hover {
    transform: translateY(-50%) !important;
    color: #F57F17 !important;
    box-shadow: none !important;
}

/* ============================================
   认证按钮 - 霓虹风格
   ============================================ */
.auth-buttons {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.auth-buttons a {
    position: relative !important;
    padding: 10px 25px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 1px !important;
    overflow: hidden !important;
}

/* 登录按钮 */
.auth-buttons a:first-child {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 193, 7, 0.6) !important;
    color: #D97706 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.auth-buttons a:first-child::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
}

.auth-buttons a:first-child:hover::before {
    left: 100% !important;
}

.auth-buttons a:first-child:hover {
    border-color: #F59E0B !important;
    background: rgba(255, 193, 7, 0.25) !important;
    box-shadow: 
        0 0 20px rgba(255, 193, 7, 0.4),
        inset 0 0 15px rgba(255, 215, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 注册按钮 */
.auth-buttons a:last-child {
    background: linear-gradient(135deg, #FBBF24, #F59E0B) !important;
    border: 2px solid #FCD34D !important;
    color: #78350F !important;
    font-weight: 900 !important;
    box-shadow: 
        0 0 15px rgba(251, 191, 36, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.auth-buttons a:last-child:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 
        0 0 25px rgba(251, 191, 36, 0.7),
        0 5px 20px rgba(251, 191, 36, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

/* ============================================
   移动端菜单按钮
   ============================================ */
.mobile-menu-toggle {
    display: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    color: #D97706 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 193, 7, 0.2) !important;
    border-color: #F59E0B !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4) !important;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1199px) {
    .nav {
        gap: 0 !important;
    }
    
    .nav a {
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }
    
    .search-box {
        max-width: 250px !important;
    }
    
    .auth-buttons a {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 1023px) {
    .nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .search-box {
        max-width: 200px !important;
    }
    
    .auth-buttons {
        gap: 10px !important;
    }
    
    .auth-buttons a {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 10px 15px !important;
    }
    
    .logo-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }
    
    .logo-text {
        font-size: 1.2rem !important;
    }
    
    .search-box {
        max-width: 150px !important;
    }
    
    .search-box input {
        padding: 8px 35px 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .search-box button {
        width: 30px !important;
        height: 30px !important;
    }
    
    .auth-buttons a {
        padding: 7px 15px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 575px) {
    .search-box {
        display: none !important;
    }
    
    .auth-buttons {
        gap: 8px !important;
    }
    
    .auth-buttons a {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ============================================
   性能优化
   ============================================ */
.header,
.logo-icon,
.nav a,
.auth-buttons a {
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .header::after,
    .auth-buttons a:first-child::before {
        animation: none !important;
    }
    
    .header,
    .logo-icon,
    .logo-text,
    .nav a,
    .search-box input,
    .search-box button,
    .auth-buttons a {
        transition: none !important;
    }
}

/* ============================================
   辅助功能支持
   ============================================ */
.nav a:focus,
.auth-buttons a:focus,
.search-box input:focus,
.search-box button:focus {
    outline: 3px solid rgba(255, 215, 0, 0.5) !important;
    outline-offset: 2px !important;
}

@media (prefers-contrast: high) {
    .header {
        border-bottom-width: 3px !important;
    }
    
    .nav a,
    .auth-buttons a {
        border-width: 3px !important;
    }
}

