/* ===== 全局样式 ===== */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg: #030712; --bg-secondary: #020510; --bg-glass: rgba(255, 255, 255, 0.02); --border: rgba(255, 255, 255, 0.05); --border-hover: rgba(6, 182, 212, 0.3); --cyan: #06b6d4; --cyan-light: #22d3ee; --blue: #3b82f6; --purple: #8b5cf6; --text: #fff; --text-secondary: #9ca3af; --text-muted: #6b7280; } html { scroll-behavior: smooth; scroll-padding-top: 80px; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; } /* 粒子画布 */ #particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; } /* 通用 */ .section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .section-header { text-align: center; margin-bottom: 64px; } .section-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.2); color: var(--cyan-light); font-size: 14px; font-weight: 500; margin-bottom: 20px; } .section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; } .section-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; } .gradient-text { background: linear-gradient(135deg, var(--cyan), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .glass { /* 苹果液态玻璃效果 */ background: linear-gradient( 135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100% ); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.1); } /* 苹果液态玻璃 - 轻量版 */ .liquid-glass { background: linear-gradient( 135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100% ); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5); } /* 苹果液态玻璃 - 加强版 */ .liquid-glass-strong { background: linear-gradient( 135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100% ); backdrop-filter: blur(50px) saturate(220%); -webkit-backdrop-filter: blur(50px) saturate(220%); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 28px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(255, 255, 255, 0.15); } /* 按钮 */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; } .btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; } .btn-primary:hover { box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3); transform: translateY(-2px); } .btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(6, 182, 212, 0.3); } .btn-outline:hover { background: rgba(6, 182, 212, 0.1); transform: translateY(-2px); } .btn-lg { padding: 18px 36px; font-size: 18px; } .btn-arrow { width: 20px; height: 20px; transition: transform 0.3s ease; } .btn:hover .btn-arrow { transform: translateX(4px); } /* 代码样式 */ .code-comment { color: #6b7280; font-style: italic; } .code-str { color: #34d399; } .code-keyword { color: #c084fc; } .code-func { color: #60a5fa; } .code-bool { color: #f472b6; } .code-type { color: #fbbf24; } .code-cmd { color: #9ca3af; } /* 响应式 */ @media (max-width: 768px) { .section-container { padding: 0 16px; } .section-header { margin-bottom: 40px; } }