*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary: #1a73e8; --text: #1f2937; --muted: #6b7280; --bg: #fff; --bg-alt: #f9fafb; --border: #e5e7eb; --radius: 6px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--text); color: #fff; padding: 20px 0; }
.site-logo { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.site-tagline { color: #9ca3af; font-size: 0.9rem; margin-top: 2px; }
.site-nav { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; }
.site-nav a { color: #d1d5db; font-size: 0.9rem; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* Articles */
.article-list { margin-top: 20px; }
.article-card { padding: 20px 0; border-bottom: 1px solid var(--border); }
.article-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.article-card h2 a { color: var(--text); }
.article-card time { font-size: 0.85rem; color: var(--muted); }
.article-card p { margin-top: 8px; color: var(--muted); }
.read-more { font-size: 0.9rem; font-weight: 500; }

/* Full article */
.article-full header { margin-bottom: 24px; }
.article-full h1 { font-size: 2rem; line-height: 1.3; }
.article-full time { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.article-category { display: inline-block; background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; margin-bottom: 8px; text-decoration: none; }
.article-content { font-size: 1.05rem; }
.article-content h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.article-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 12px 16px; background: var(--bg-alt); margin: 16px 0; }
.article-content a { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Related */
.related-articles { margin: 40px 0; padding-top: 24px; border-top: 2px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 12px; }
.related-card { display: block; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid var(--border); }
.related-card:hover { border-color: var(--primary); text-decoration: none; }
.related-card h3 { font-size: 0.95rem; }
.related-card time { font-size: 0.8rem; color: var(--muted); }

/* Pages */
.static-page h1 { margin: 20px 0 16px; }
.page-content { font-size: 1rem; }
.page-content p { margin-bottom: 12px; }

/* Category */
.category-desc { color: var(--muted); margin-bottom: 16px; }

/* Pagination */
.pagination { display: flex; gap: 8px; margin: 30px 0; justify-content: center; }
.pagination a { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { text-decoration: none; background: var(--bg-alt); }

/* 404 */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 4rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-alt); padding: 20px 0; margin-top: 40px; border-top: 1px solid var(--border); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-footer p { font-size: 0.85rem; color: var(--muted); }
.site-footer nav a { font-size: 0.85rem; margin-left: 16px; color: var(--muted); }

/* Responsive */
@media (max-width: 600px) {
    .article-full h1 { font-size: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
}
