{--bg-primary: #050510; --bg-secondary: rgba(10, 10, 30, 0.7); --bg-card: rgba(0, 255, 255, 0.03); --text-primary: #e0f0ff; --text-secondary: #7a8fa8; --accent: #00f0ff; --accent-secondary: #ff00ff; --accent-tertiary: #00ff88; --border: rgba(0, 240, 255, 0.15); --shadow: 0 0 30px rgba(0, 240, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.6); --glass: blur(20px) saturate(180%); --neon-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1); --neon-glow-pink: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1); } [data-theme="light"] { --bg-primary: #f0f4ff; --bg-secondary: rgba(255, 255, 255, 0.7); --bg-card: rgba(0, 240, 255, 0.05); --text-primary: #0a0a20; --text-secondary: #4a5a70; --accent: #0088cc; --accent-secondary: #cc00cc; --accent-tertiary: #00aa66; --border: rgba(0, 136, 204, 0.15); --shadow: 0 0 20px rgba(0, 136, 204, 0.1), 0 8px 32px rgba(0, 0, 0, 0.1); --neon-glow: 0 0 10px rgba(0, 136, 204, 0.3), 0 0 20px rgba(0, 136, 204, 0.2); --neon-glow-pink: 0 0 10px rgba(204, 0, 204, 0.3), 0 0 20px rgba(204, 0, 204, 0.2); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; transition: all 0.3s ease; overflow-x: hidden; position: relative; } /* 赛博朋克背景网格 */ body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: 0; } /* 动态光效背景 */ .bg-effects { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; } .bg-effects .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 15s ease-in-out infinite; } .bg-effects .orb:nth-child(1) { width: 400px; height: 400px; background: rgba(0, 240, 255, 0.15); top: -100px; left: -100px; animation-delay: 0s; } .bg-effects .orb:nth-child(2) { width: 300px; height: 300px; background: rgba(255, 0, 255, 0.12); top: 50%; right: -50px; animation-delay: -5s; } .bg-effects .orb:nth-child(3) { width: 350px; height: 350px; background: rgba(0, 255, 136, 0.1); bottom: -100px; left: 30%; animation-delay: -10s; } @keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(50px, -30px) scale(1.1); } 50% { transform: translate(-30px, 50px) scale(0.9); } 75% { transform: translate(20px, 20px) scale(1.05); } } /* 扫描线效果 */ .scanline { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( to bottom, transparent 50%, rgba(0, 240, 255, 0.02) 50% ); background-size: 100% 4px; pointer-events: none; z-index: 9999; animation: scanlineMove 8s linear infinite; } @keyframes scanlineMove { 0% { transform: translateY(0); } 100% { transform: translateY(4px); } } /* 顶部栏 */ .top-bar { padding: 30px 40px 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; } /* 网站标题 - 赛博朋克风格 */ .site-title { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-family: 'Orbitron', 'Noto Sans SC', sans-serif; font-size: 1.8rem; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; color: var(--text-primary); text-shadow: var(--neon-glow); animation: titleFlicker 4s infinite; z-index: 2; white-space: nowrap; width: max-content; } .site-title::before { content: '星河的快乐小屋'; position: absolute; left: 2px; top: 2px; color: var(--accent-secondary); opacity: 0.5; z-index: -1; animation: glitchOffset 3s infinite; white-space: nowrap; } .site-title::after { content: '星河的快乐小屋'; position: absolute; left: -2px; top: -2px; color: var(--accent); opacity: 0.5; z-index: -1; animation: glitchOffset 3s infinite reverse; white-space: nowrap; } @keyframes titleFlicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0.8; } 94% { opacity: 1; } 96% { opacity: 0.9; } 97% { opacity: 1; } } @keyframes glitchOffset { 0%, 90%, 100% { transform: translate(0); } 91% { transform: translate(-3px, 2px); } 92% { transform: translate(3px, -2px); } 93% { transform: translate(-2px, -1px); } 94% { transform: translate(0); } } .time-display { display: flex; align-items: baseline; gap: 12px; font-family: 'JetBrains Mono', monospace; } .time-main { font-size: 3rem; font-weight: 700; color: var(--accent); text-shadow: var(--neon-glow); letter-spacing: -2px; animation: timePulse 2s ease-in-out infinite; } @keyframes timePulse { 0%, 100% { text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3); } 50% { text-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.5), 0 0 50px rgba(0, 240, 255, 0.2); } } .time-sec { font-size: 1.4rem; color: var(--accent-secondary); font-weight: 300; text-shadow: var(--neon-glow-pink); } .time-date { font-size: 0.9rem; color: var(--text-secondary); display: flex; flex-direction: column; line-height: 1.4; margin-left: 8px; } .weather-display { display: flex; align-items: center; gap: 15px; background: var(--bg-secondary); backdrop-filter: var(--glass); padding: 12px 24px; border-radius: 50px; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .weather-display::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent 40%, rgba(0, 240, 255, 0.1) 50%, transparent 60% ); animation: shimmer 3s infinite; } @keyframes shimmer { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } } .weather-display:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2); border-color: var(--accent); } .weather-icon { font-size: 2.2rem; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5)); } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .weather-info { display: flex; flex-direction: column; } .weather-temp { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--accent); text-shadow: var(--neon-glow); } .weather-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; } .weather-location { font-size: 0.75rem; color: var(--text-secondary); opacity: 0.8; } .loading-dots { display: inline-flex; gap: 3px; } .loading-dots span { animation: bounce 1.4s infinite ease-in-out both; background: currentColor; width: 4px; height: 4px; border-radius: 50%; } .loading-dots span:nth-child(1) { animation-delay: -0.32s; } .loading-dots span:nth-child(2) { animation-delay: -0.16s; } @keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } .main-content { max-width: 1200px; margin: 0 auto; padding: 60px 40px 60px; position: relative; z-index: 1; } .search-section { text-align: center; margin-bottom: 50px; } .greeting { font-size: 2rem; font-weight: 300; margin-bottom: 30px; color: var(--text-secondary); } .greeting strong { color: var(--accent); font-weight: 600; text-shadow: var(--neon-glow); } .search-box-container { max-width: 700px; margin: 0 auto; position: relative; } .search-box-wrapper { display: flex; background: var(--bg-secondary); backdrop-filter: var(--glass); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; } .search-box-wrapper::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent); transition: left 0.5s; } .search-box-wrapper:hover::before { left: 100%; } .search-box-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1), var(--neon-glow); } .search-engine-select { display: flex; align-items: center; padding: 0 20px; background: rgba(0, 240, 255, 0.1); border-right: 1px solid var(--border); cursor: pointer; font-weight: 500; color: var(--accent); transition: all 0.3s ease; user-select: none; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; letter-spacing: 1px; } .search-engine-select:hover { background: rgba(0, 240, 255, 0.2); text-shadow: var(--neon-glow); } .search-box { flex: 1; padding: 20px 25px; border: none; background: transparent; color: var(--text-primary); font-size: 1.1rem; outline: none; font-family: 'Noto Sans SC', sans-serif; } .search-box::placeholder { color: var(--text-secondary); } .search-btn { padding: 0 30px; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: white; border: none; cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.3s ease; font-family: 'Orbitron', sans-serif; letter-spacing: 2px; text-transform: uppercase; position: relative; overflow: hidden; } .search-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.5s; } .search-btn:hover::before { left: 100%; } .search-btn:hover { box-shadow: var(--neon-glow); transform: scale(1.02); } .categories-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; } @media (max-width: 968px) { .categories-container { grid-template-columns: 1fr; } } .category { background: var(--bg-secondary); backdrop-filter: var(--glass); border-radius: 24px; padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .category::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--color), transparent); opacity: 0; transition: opacity 0.3s; } .category:hover::before { opacity: 1; animation: borderFlow 2s linear infinite; } @keyframes borderFlow { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } .category:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--color-rgb), 0.1); border-color: var(--color); } .category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); } .category-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: linear-gradient(135deg, var(--color) 0%, rgba(255,255,255,0.1) 100%); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--color); animation: iconPulse 3s ease-in-out infinite; } @keyframes iconPulse { 0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--color); } 50% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px var(--color), 0 0 40px var(--color); } } .category-title { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); font-family: 'Orbitron', 'Noto Sans SC', sans-serif; letter-spacing: 1px; } .links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } @media (max-width: 1200px) { .links-grid { grid-template-columns: 1fr; } } .link-item { display: flex; align-items: center; padding: 16px; border-radius: 12px; text-decoration: none; color: var(--text-primary); background: var(--bg-card); border: 1px solid transparent; transition: all 0.3s ease; position: relative; overflow: hidden; } .link-item::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--color) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; } .link-item::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--color); transform: scaleY(0); transition: transform 0.3s ease; box-shadow: 0 0 10px var(--color); } .link-item:hover { border-color: var(--color); transform: translateX(5px); background: rgba(var(--color-rgb), 0.05); } .link-item:hover::before { opacity: 0.1; } .link-item:hover::after { transform: scaleY(1); } .link-favicon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 1rem; font-weight: 600; color: var(--color); z-index: 1; border: 1px solid rgba(var(--color-rgb), 0.3); transition: all 0.3s; } .link-item:hover .link-favicon { box-shadow: 0 0 10px var(--color); transform: scale(1.1); } .link-content { flex: 1; z-index: 1; } .link-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; transition: color 0.3s; } .link-item:hover .link-title { color: var(--color); text-shadow: 0 0 5px var(--color); } .link-desc { font-size: 0.8rem; color: var(--text-secondary); } .theme-toggle { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-secondary); backdrop-filter: var(--glass); border: 1px solid var(--border); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow); transition: all 0.3s ease; z-index: 99; } .theme-toggle:hover { transform: scale(1.1) rotate(15deg); background: var(--accent); color: white; box-shadow: var(--neon-glow); } /* 角落装饰 */ .corner-decoration { position: fixed; width: 100px; height: 100px; pointer-events: none; z-index: 0; } .corner-decoration.top-left { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); opacity: 0.5; } .corner-decoration.top-right { top: 0; right: 0; border-top: 2px solid var(--accent-secondary); border-right: 2px solid var(--accent-secondary); opacity: 0.5; } .corner-decoration.bottom-left { bottom: 0; left: 0; border-bottom: 2px solid var(--accent-tertiary); border-left: 2px solid var(--accent-tertiary); opacity: 0.5; } .corner-decoration.bottom-right { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); opacity: 0.5; } /* 打字机效果 */ .typewriter { overflow: hidden; border-right: 2px solid var(--accent); white-space: nowrap; animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite; } @keyframes typing { from { width: 0; } to { width: 100%; } } @keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: var(--accent); } } @media (max-width: 768px) { .top-bar { flex-direction: column; gap: 20px; padding: 60px 20px 20px; } .site-title { font-size: 1.2rem; top: 15px; white-space: nowrap; width: max-content; } .time-main { font-size: 2.5rem; } .main-content { padding: 20px; } .greeting { font-size: 1.5rem; } .categories-container { grid-template-columns: 1fr; } .links-grid { grid-template-columns: 1fr; } }