* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #2563eb; --primary-dark: #1d4ed8; --text: #1f2937; --text-light: #6b7280; --bg: #ffffff; --bg-alt: #f9fafb; --border: #e5e7eb; --shadow: 0 1px 3px rgba(0,0,0,0.1); --shadow-lg: 0 10px 40px rgba(0,0,0,0.1); } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; } .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; } /* Header */ .header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; } .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.25rem; } .logo-icon { font-size: 1.5rem; } .logo-blog { color: var(--primary); } .nav-links { display: flex; gap: 24px; } .nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.2s; } .nav-links a:hover { color: var(--primary); } /* Hero */ .hero { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); padding: 60px 0; text-align: center; } .hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text); } .hero-subtitle { font-size: 1.25rem; color: var(--text-light); } /* Posts */ .posts { padding: 60px 20px; display: grid; gap: 32px; } .post-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: box-shadow 0.2s, transform 0.2s; } .post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .post-category { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; } .post-meta time { color: var(--text-light); font-size: 0.875rem; } .post-card h2 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; } .post-card h2 a { color: var(--text); text-decoration: none; } .post-card h2 a:hover { color: var(--primary); } .post-card p { color: var(--text-light); margin-bottom: 16px; } .read-more { color: var(--primary); font-weight: 600; text-decoration: none; } .read-more:hover { text-decoration: underline; } /* Footer */ .footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; } .footer-content { text-align: center; } .footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; margin-bottom: 16px; } .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; } .footer-links a { color: var(--text-light); text-decoration: none; } .footer-links a:hover { color: var(--primary); } .footer-copy { color: var(--text-light); font-size: 0.875rem; } /* Post Page */ .post-header { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); padding: 60px 0; } .post-header h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; max-width: 800px; } .post-header .post-meta { justify-content: flex-start; } .post-content { padding: 48px 20px; max-width: 800px; margin: 0 auto; } .post-content h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 16px; } .post-content h3 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 12px; } .post-content p { margin-bottom: 16px; } .post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 24px; } .post-content li { margin-bottom: 8px; } .post-content code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-family: 'Monaco', 'Consolas', monospace; font-size: 0.9em; } .post-content pre { background: #1f2937; color: #f9fafb; padding: 20px; border-radius: 8px; overflow-x: auto; margin-bottom: 24px; } .post-content pre code { background: none; padding: 0; color: inherit; } .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-weight: 500; margin-bottom: 20px; } .back-link:hover { text-decoration: underline; } /* Responsive */ @media (max-width: 768px) { .hero h1 { font-size: 1.75rem; } .hero-subtitle { font-size: 1rem; } .post-card h2 { font-size: 1.25rem; } .nav-links { gap: 16px; font-size: 0.9rem; } }