/** 茶凉小记 - 赛博深色风格 */ :root { --bg: #0a0a0f; --surface: #12121a; --border: #1e1e2e; --text: #e0e0e0; --text-muted: #888; --accent: #00d4ff; --accent-dim: #00d4ff33; --code-bg: #16161f; --font: 'JetBrains Mono', monospace; } * { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } .site-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); } .header-inner { max-width: 800px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; } .site-title { font-size: 1.2rem; font-weight: 700; color: var(--accent) !important; letter-spacing: 0.05em; } .site-nav a { color: var(--text-muted); margin-left: 2rem; font-size: 0.85rem; } .site-nav a:hover { color: var(--accent); text-decoration: none; } .main-content { flex: 1; max-width: 800px; margin: 0 auto; padding: 4rem 2rem; width: 100%; } .home-hero { text-align: center; padding: 4rem 0 3rem; } .home-hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; } .hero-sub { color: var(--text-muted); font-size: 0.9rem; } .post-list { margin-top: 2rem; } .post-card { padding: 1.5rem 0; border-bottom: 1px solid var(--border); } .post-card h2 { font-size: 1.1rem; margin-bottom: 0.3rem; } .post-card h2 a { color: var(--text); } .post-card h2 a:hover { color: var(--accent); text-decoration: none; } .post-meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; } .post-summary { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; } .post-single { max-width: 680px; margin: 0 auto; } .post-title { font-size: 1.8rem; color: var(--text); margin-bottom: 0.5rem; } .post-single .post-meta { margin-bottom: 2rem; } .post-content { line-height: 1.8; } .post-content h2, .post-content h3 { color: var(--text); margin: 2rem 0 1rem; } .post-content p { margin-bottom: 1.2rem; } .post-content code { background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.88em; color: var(--accent); } .post-content pre { background: var(--code-bg); padding: 1.2rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1.2rem; } .post-content pre code { background: none; padding: 0; color: var(--text); } .post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-muted); margin: 1.5rem 0; } .post-content img { max-width: 100%; border-radius: 6px; margin: 1.5rem 0; } .site-footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.8rem; } .footer-inner p { margin: 0.3rem 0; } .footer-inner a { color: var(--text-muted); } .footer-inner a:hover { color: var(--accent); } @media (max-width: 600px) { .header-inner { flex-direction: column; gap: 1rem; } .site-nav a { margin: 0 0.8rem; } .home-hero h1 { font-size: 1.8rem; } .post-title { font-size: 1.4rem; } }