:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1a1a1a;
  --text-soft: #5a6068;
  --accent: #d4380d;
  --border: #e8eaed;
  --maxw: 720px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.nav a { margin-left: 18px; color: var(--text-soft); font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 56px 0 28px; }
.hero h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
.hero p { color: var(--text-soft); font-size: 17px; margin: 0; }
.hero .sub { margin-top: 16px; font-size: 15px; color: #9aa0a6; }

.posts { padding: 20px 0 48px; }
.posts h2 { font-size: 20px; margin: 0 0 16px; }
.post-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); text-decoration: none; }
.post-card .tag { display: inline-block; font-size: 12px; color: var(--accent); background: var(--bg-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.post-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.post-card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.post-card .date { display: block; margin-top: 10px; font-size: 13px; color: #9aa0a6; }

.article { padding: 40px 0 56px; }
.article h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
.article .meta { color: #9aa0a6; font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 8px; }
.article h3 { font-size: 18px; margin: 28px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--bg-soft); color: var(--text-soft); border-radius: 0 8px 8px 0; }
.article code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article .back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

.faq { margin: 32px 0; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--text-soft); }

.about { padding: 40px 0 56px; }
.about h1 { font-size: 28px; margin: 0 0 16px; }
.about p { margin: 0 0 16px; }

.contact { margin-top: 32px; padding: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.contact h2 { font-size: 20px; margin: 0 0 16px; }
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 14px 0; }
.contact li strong { display: inline-block; min-width: 86px; color: var(--text); }
.contact .qr { display: block; width: 160px; height: 160px; margin-top: 8px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-soft); font-size: 14px; }
.site-footer a { color: var(--text-soft); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 600px) {
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 24px; }
  .article h1, .about h1 { font-size: 24px; }
}
