| | |
| | | |
| | | return ( |
| | | <nav |
| | | className={`fixed top-0 left-0 w-full z-50 transition-all duration-700 ${ |
| | | className={`fixed top-0 z-50 transition-all duration-700 h-16 w-full lg:w-[1260px] ${ |
| | | scrolled |
| | | ? 'bg-gradient-to-r from-[#1E2B63]/95 to-[#0A1033]/95 backdrop-blur-md shadow-lg py-2' |
| | | : 'bg-gradient-to-r from-[#1E2B63] to-[#0A1033] py-2' |
| | | }`} |
| | | style={{ |
| | | width: '1260px', |
| | | height: '64px' |
| | | left: '50%', |
| | | transform: 'translateX(-50%)' |
| | | }} |
| | | > |
| | | {/* AI科技感背景效果层 - 调整为更明显但不干扰交互 */} |
| | |
| | | <div className="absolute top-0 left-0 w-full h-[1.5px] bg-gradient-to-r from-transparent via-[#6ADBFF]/70 to-transparent"></div> |
| | | </div> |
| | | |
| | | <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative"> |
| | | <div className="flex items-center justify-between"> |
| | | <div className="w-full px-4 md:px-6 lg:px-8 h-full mx-auto relative"> |
| | | <div className="flex items-center justify-between h-full"> |
| | | {/* Logo区域 */} |
| | | <div className="flex-shrink-0 relative z-10 group"> |
| | | <a href="/" className="flex items-center"> |
| | |
| | | </div> |
| | | |
| | | {/* 红框中的动态科技感圆圈 - 更柔和的颜色 */} |
| | | <div className="absolute left-[230px] top-1/2 -translate-y-1/2 z-10 pointer-events-none"> |
| | | <div className="absolute left-[120px] md:left-[180px] lg:left-[230px] top-1/2 -translate-y-1/2 z-10 pointer-events-none"> |
| | | <div className="relative w-8 h-8"> |
| | | {/* 外圈 - 脉动效果,降低不透明度 */} |
| | | <div className="absolute inset-0 rounded-full border-[1.5px] border-[#6ADBFF]/50 bg-[#1E2B63]/30 animate-tech-circle-pulse"></div> |
| | |
| | | </div> |
| | | |
| | | {/* 导航菜单 - 增加z-index确保在动效之上 */} |
| | | <div className="hidden md:flex items-center space-x-8 relative z-20"> |
| | | <div className="hidden md:flex items-center space-x-4 lg:space-x-8 relative z-20"> |
| | | <a |
| | | href="/ai-scene" |
| | | className="relative px-3 py-2 text-sm font-medium" |
| | | className="relative px-2 lg:px-3 py-2 text-sm font-medium" |
| | | onMouseEnter={() => setActiveMenu('ai-scene')} |
| | | onMouseLeave={() => setActiveMenu('')} |
| | | > |
| | |
| | | |
| | | <Link |
| | | href="/chat" |
| | | className="relative px-3 py-2 text-sm font-medium" |
| | | className="relative px-2 lg:px-3 py-2 text-sm font-medium" |
| | | onMouseEnter={() => setActiveMenu('chat')} |
| | | onMouseLeave={() => setActiveMenu('')} |
| | | > |
| | |
| | | |
| | | <Link |
| | | href="/training" |
| | | className="relative px-3 py-2 text-sm font-medium" |
| | | className="relative px-2 lg:px-3 py-2 text-sm font-medium" |
| | | onMouseEnter={() => setActiveMenu('training')} |
| | | onMouseLeave={() => setActiveMenu('')} |
| | | > |
| | |
| | | |
| | | {/* 登录按钮 */} |
| | | <div className="relative group"> |
| | | <a href="/login" className="relative overflow-hidden flex items-center justify-center px-7 py-2 rounded-full border border-[#6ADBFF]/40 bg-gradient-to-r from-[#131C41] to-[#1E2B63] hover:border-[#6ADBFF]/70 transition-all duration-300 group quantum-button"> |
| | | <a href="/login" className="relative overflow-hidden flex items-center justify-center px-4 lg:px-7 py-2 rounded-full border border-[#6ADBFF]/40 bg-gradient-to-r from-[#131C41] to-[#1E2B63] hover:border-[#6ADBFF]/70 transition-all duration-300 group quantum-button"> |
| | | <span className="relative z-10 text-white group-hover:text-[#6ADBFF] transition-colors duration-300 quantum-pulse">登录</span> |
| | | |
| | | {/* 量子光线效果 */} |
| | |
| | | |
| | | {/* 注册按钮 */} |
| | | <div className="relative group -ml-2"> |
| | | <a href="/register" className="relative overflow-hidden flex items-center justify-center px-7 py-2 rounded-full border border-[#FF6A88]/40 bg-gradient-to-r from-[#131C41] via-[#1E2B63] to-[#2A1B48] hover:border-[#FF6A88]/70 transition-all duration-300 group quantum-button"> |
| | | <a href="/register" className="relative overflow-hidden flex items-center justify-center px-4 lg:px-7 py-2 rounded-full border border-[#FF6A88]/40 bg-gradient-to-r from-[#131C41] via-[#1E2B63] to-[#2A1B48] hover:border-[#FF6A88]/70 transition-all duration-300 group quantum-button"> |
| | | <span className="relative z-10 text-white group-hover:text-[#FF6A88] transition-colors duration-300 quantum-pulse">注册</span> |
| | | |
| | | {/* 量子光线效果 */} |
| | |
| | | <div className="md:hidden relative z-20"> |
| | | <button |
| | | onClick={() => setIsMenuOpen(!isMenuOpen)} |
| | | className="relative w-10 h-10 flex items-center justify-center focus:outline-none" |
| | | className="relative w-10 h-10 flex items-center justify-center focus:outline-none cursor-pointer" |
| | | aria-label="Toggle navigation menu" |
| | | > |
| | | <div className="relative"> |
| | |
| | | <a |
| | | href="/ai-scene" |
| | | className="block px-4 py-3 text-white border-l-2 border-transparent hover:border-[#6ADBFF] |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200" |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200 cursor-pointer" |
| | | > |
| | | AI场景模拟 |
| | | </a> |
| | |
| | | <Link |
| | | href="/chat" |
| | | className="block px-4 py-3 text-white border-l-2 border-transparent hover:border-[#6ADBFF] |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200" |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200 cursor-pointer" |
| | | > |
| | | 聊天室 |
| | | </Link> |
| | |
| | | <Link |
| | | href="/training" |
| | | className="block px-4 py-3 text-white border-l-2 border-transparent hover:border-[#6ADBFF] |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200" |
| | | hover:bg-[#3B4888]/20 rounded-r-md transition-all duration-200 cursor-pointer" |
| | | > |
| | | 训练场 |
| | | </Link> |
| | | |
| | | <div className="flex space-x-2 px-4 py-3"> |
| | | <Link href="/login" className="relative overflow-hidden flex items-center justify-center w-full px-6 py-2 rounded-full border border-[#6ADBFF]/40 bg-gradient-to-r from-[#131C41] to-[#1E2B63] text-white font-medium group"> |
| | | <Link href="/login" className="relative overflow-hidden flex items-center justify-center w-full px-6 py-2 rounded-full border border-[#6ADBFF]/40 bg-gradient-to-r from-[#131C41] to-[#1E2B63] text-white font-medium group cursor-pointer"> |
| | | <span className="relative z-10 text-white group-hover:text-[#6ADBFF] transition-colors duration-300">登录</span> |
| | | |
| | | {/* 简化版量子效果 - 适合移动端 */} |
| | |
| | | </div> |
| | | </Link> |
| | | |
| | | <Link href="/register" className="relative overflow-hidden flex items-center justify-center w-full px-6 py-2 rounded-full border border-[#FF6A88]/40 bg-gradient-to-r from-[#131C41] via-[#1E2B63] to-[#2A1B48] text-white font-medium group"> |
| | | <Link href="/register" className="relative overflow-hidden flex items-center justify-center w-full px-6 py-2 rounded-full border border-[#FF6A88]/40 bg-gradient-to-r from-[#131C41] via-[#1E2B63] to-[#2A1B48] text-white font-medium group cursor-pointer"> |
| | | <span className="relative z-10 text-white group-hover:text-[#FF6A88] transition-colors duration-300">注册</span> |
| | | |
| | | {/* 简化版量子效果 - 适合移动端 */} |