/* ===== 全局样式 ===== */ *, *::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: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 16px; } /* 按钮 */ .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; } }