/* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%); color: #ffffff; overflow-x: hidden; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* 导航栏 */ .navbar { position: fixed; top: 0; width: 100%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 255, 255, 0.2); z-index: 1000; transition: all 0.3s ease; } .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 70px; } .nav-logo { position: relative; display: flex; align-items: center; } .logo-text { font-family: 'Orbitron', monospace; font-size: 24px; font-weight: 900; background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 3s ease-in-out infinite; } .logo-pulse { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: #00ffff; border-radius: 50%; animation: pulse 2s infinite; } .nav-menu { display: flex; list-style: none; gap: 30px; } .nav-link { color: #ffffff; text-decoration: none; font-weight: 500; position: relative; transition: all 0.3s ease; padding: 10px 0; } .nav-link:hover, .nav-link.active { color: #00ffff; } .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #00ffff, #ff00ff); transition: width 0.3s ease; } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .hamburger { display: none; flex-direction: column; cursor: pointer; } .hamburger span { width: 25px; height: 3px; background: #00ffff; margin: 3px 0; transition: 0.3s; } /* 英雄区域 */ .hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; } .hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } .neural-network { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(255, 255, 0, 0.1) 0%, transparent 50%); animation: networkPulse 8s ease-in-out infinite; } .particles { position: absolute; width: 100%; height: 100%; background-image: radial-gradient(2px 2px at 20px 30px, #00ffff, transparent), radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent), radial-gradient(1px 1px at 90px 40px, #ffff00, transparent), radial-gradient(1px 1px at 130px 80px, #00ffff, transparent), radial-gradient(2px 2px at 160px 30px, #ff00ff, transparent); background-repeat: repeat; background-size: 200px 100px; animation: particleFloat 20s linear infinite; } .hero-content { text-align: center; z-index: 1; max-width: 800px; padding: 0 20px; } .hero-title { font-family: 'Orbitron', monospace; font-size: 4rem; font-weight: 900; margin-bottom: 20px; position: relative; } .glitch { position: relative; color: #ffffff; animation: glitch 2s infinite; } .glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .glitch::before { animation: glitch-1 0.5s infinite; color: #00ffff; z-index: -1; } .glitch::after { animation: glitch-2 0.5s infinite; color: #ff00ff; z-index: -2; } .hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; animation: fadeInUp 1s ease-out 0.5s both; } .hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease-out 1s both; } .btn { padding: 15px 30px; border: none; border-radius: 50px; font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .btn-primary { background: linear-gradient(45deg, #00ffff, #0080ff); color: #000000; } .btn-secondary { background: transparent; color: #ffffff; border: 2px solid #00ffff; } .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3); } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .btn:hover::before { left: 100%; } .scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; } .scroll-arrow { width: 20px; height: 20px; border-right: 2px solid #00ffff; border-bottom: 2px solid #00ffff; transform: rotate(45deg); } /* 特色资讯 */ .featured-news { padding: 100px 0; background: rgba(0, 0, 0, 0.3); } .section-title { font-family: 'Orbitron', monospace; font-size: 2.5rem; text-align: center; margin-bottom: 60px; background: linear-gradient(45deg, #00ffff, #ff00ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; } .section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 100px; height: 3px; background: linear-gradient(90deg, #00ffff, #ff00ff); } .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .news-card { background: rgba(255, 255, 255, 0.05); border-radius: 15px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; border: 1px solid rgba(0, 255, 255, 0.1); backdrop-filter: blur(10px); } .news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2); border-color: rgba(0, 255, 255, 0.5); } .news-card.featured { grid-column: span 2; } .news-image { height: 200px; position: relative; overflow: hidden; } .image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; } .image-placeholder.ai-brain { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .image-placeholder.robot { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } .image-placeholder.quantum { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } .image-placeholder.medical { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); } .image-placeholder::before { content: '🧠'; font-size: 4rem; opacity: 0.7; } .image-placeholder.robot::before { content: '🤖'; } .image-placeholder.quantum::before { content: '⚛️'; } .image-placeholder.medical::before { content: '🏥'; } .news-category { position: absolute; top: 15px; left: 15px; background: rgba(0, 255, 255, 0.9); color: #000000; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; } .news-content { padding: 25px; } .news-content h3 { font-size: 1.3rem; margin-bottom: 15px; color: #ffffff; line-height: 1.4; } .news-content p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; line-height: 1.6; } .news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); } /* 技术趋势 */ .tech-trends { padding: 100px 0; } .trends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .trend-item { text-align: center; padding: 40px 20px; background: rgba(255, 255, 255, 0.05); border-radius: 15px; border: 1px solid rgba(0, 255, 255, 0.1); transition: all 0.3s ease; backdrop-filter: blur(10px); } .trend-item:hover { transform: translateY(-5px); border-color: rgba(0, 255, 255, 0.5); box-shadow: 0 15px 30px rgba(0, 255, 255, 0.1); } .trend-icon { font-size: 3rem; margin-bottom: 20px; filter: grayscale(0) hue-rotate(180deg); } .trend-item h3 { font-size: 1.3rem; margin-bottom: 15px; color: #00ffff; } .trend-item p { color: rgba(255, 255, 255, 0.8); line-height: 1.6; } /* 页脚 */ .footer { background: rgba(0, 0, 0, 0.8); padding: 60px 0 20px; border-top: 1px solid rgba(0, 255, 255, 0.2); } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; } .footer-section h3, .footer-section h4 { color: #00ffff; margin-bottom: 20px; } .footer-section p, .footer-section li { color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; } .footer-section ul { list-style: none; } .footer-section a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s ease; } .footer-section a:hover { color: #00ffff; } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); } /* 动画 */ @keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } @keyframes pulse { 0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); } 50% { opacity: 0.5; transform: translateY(-50%) scale(1.2); } } @keyframes networkPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } } @keyframes particleFloat { 0% { transform: translateY(0px); } 100% { transform: translateY(-100px); } } @keyframes glitch { 0%, 100% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } } @keyframes glitch-1 { 0%, 100% { transform: translate(0); } 10% { transform: translate(-2px, -2px); } 20% { transform: translate(2px, 2px); } 30% { transform: translate(-2px, 2px); } 40% { transform: translate(2px, -2px); } } @keyframes glitch-2 { 0%, 100% { transform: translate(0); } 15% { transform: translate(2px, -2px); } 25% { transform: translate(-2px, 2px); } 35% { transform: translate(2px, 2px); } 45% { transform: translate(-2px, -2px); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } } /* 响应式设计 */ @media (max-width: 768px) { .nav-menu { display: none; } .hamburger { display: flex; } .hero-title { font-size: 2.5rem; } .hero-buttons { flex-direction: column; align-items: center; } .news-card.featured { grid-column: span 1; } .section-title { font-size: 2rem; } .trends-grid { grid-template-columns: 1fr; } }