:root{
  --bg:#ffffff;
  --bg-soft:#f7f7f8;
  --text:#1a1a1a;
  --text-muted:#6b7280;
  --border:#e5e7eb;
  --accent:#2563eb;
  --accent-soft:#eff4ff;
  --radius:14px;
  --maxw:760px;
  --font:"PingFang SC","Microsoft YaHei","Hiragino Sans GB",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---------- 顶部导航 ---------- */
.site-header{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-weight:700;font-size:19px;letter-spacing:.5px}
.nav{display:flex;gap:22px;font-size:15px;color:var(--text-muted)}
.nav a:hover{color:var(--accent)}

/* ---------- 首页 Hero ---------- */
.hero{padding:64px 0 40px;text-align:center}
.hero h1{font-size:38px;line-height:1.25;font-weight:800;letter-spacing:-.5px}
.hero-sub{margin:14px auto 0;color:var(--text-muted);font-size:17px;max-width:560px}

/* ---------- 文章列表 ---------- */
.post-list{list-style:none;display:grid;gap:18px;padding-bottom:60px}
.post-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px 26px;
  background:var(--bg);
  transition:.18s ease;
  display:block;
}
.post-card:hover{
  border-color:var(--accent);
  box-shadow:0 8px 24px rgba(37,99,235,.08);
  transform:translateY(-2px);
}
.tag{
  display:inline-block;
  font-size:12px;font-weight:600;
  color:var(--accent);background:var(--accent-soft);
  padding:3px 10px;border-radius:999px;margin-bottom:12px;
}
.post-card h2{font-size:22px;font-weight:700;line-height:1.35;margin-bottom:8px}
.post-meta{font-size:13px;color:var(--text-muted);margin-bottom:10px}
.post-excerpt{color:#374151;font-size:15.5px}
.read-more{display:inline-block;margin-top:14px;color:var(--accent);font-weight:600;font-size:14.5px}

/* ---------- 文章页 ---------- */
.article{max-width:720px;padding:40px 20px 70px}
.back{display:inline-block;color:var(--text-muted);font-size:14px;margin-bottom:24px}
.back:hover{color:var(--accent)}
.article h1{font-size:32px;line-height:1.3;font-weight:800;margin:14px 0 10px}
.article .post-meta{margin-bottom:30px}
.article-body{font-size:17px;color:#1f2937}
.article-body p{margin:18px 0}
.article-body h2{font-size:24px;font-weight:700;margin:34px 0 12px}
.article-body h3{font-size:20px;font-weight:700;margin:26px 0 10px}
.article-body blockquote{
  border-left:4px solid var(--accent);
  background:var(--bg-soft);
  padding:14px 18px;margin:22px 0;border-radius:0 8px 8px 0;
  color:#374151;font-style:italic;
}
.article-body pre{
  background:#0f172a;color:#e2e8f0;padding:18px 20px;border-radius:10px;
  overflow:auto;font-size:14px;line-height:1.6;margin:22px 0;
  font-family:var(--mono);
}
.article-body code{font-family:var(--mono)}
.article-body img{max-width:100%;border-radius:10px;margin:22px 0}
.article-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}

/* ---------- 关于页 ---------- */
.about{max-width:720px;padding:48px 20px 70px}
.about h1{font-size:32px;font-weight:800;margin-bottom:18px}
.about p{margin:16px 0;font-size:17px;color:#1f2937}

/* ---------- 页脚 ---------- */
.site-footer{border-top:1px solid var(--border);padding:30px 0;color:var(--text-muted);font-size:14px;text-align:center}

/* ---------- 响应式 ---------- */
@media(max-width:600px){
  .hero{padding:44px 0 28px}
  .hero h1{font-size:30px}
  .post-card{padding:20px}
  .article h1{font-size:26px}
  .nav{gap:16px}
}
