/* 极简样式：系统字体、窄栏阅读宽度、自动跟随深色模式 */
:root { color-scheme: light dark; --muted: #6b7280; --accent: #2563eb; }
@media (prefers-color-scheme: dark) { :root { --muted: #9ca3af; --accent: #60a5fa; } }

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font: 17px/1.75 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { margin-bottom: 2rem; }
.site-title { font-size: 1.25rem; font-weight: 700; color: inherit; }
.site-description { color: var(--muted); }
.site-footer { margin-top: 3rem; font-size: .875rem; color: var(--muted); }

.post-list { list-style: none; padding: 0; }
.post-list li { margin: 1.25rem 0; }
.post-list .post-meta { margin: .1rem 0 0; }
.post-meta { font-size: .875rem; color: var(--muted); }

article h1 { line-height: 1.3; margin-bottom: .25rem; }
img { max-width: 100%; }
pre { overflow-x: auto; padding: .75rem 1rem; border-radius: 6px; }
code { font-size: .9em; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--muted); color: var(--muted); }

/* 对话式文章：我的消息靠右、带底色；AI 回复占满宽度、左侧细线 */
.msg { margin: 1.5rem 0; }
.msg-from { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.msg-body > :first-child { margin-top: 0; }
.msg-body > :last-child { margin-bottom: 0; }
.msg-me { margin-left: 15%; }
.msg-me .msg-from { text-align: right; }
.msg-me .msg-body { padding: .6rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.msg-ai .msg-body { padding-left: 1rem; border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
