:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #2f6df6;
  --accent-soft: #eaf1ff;
  --border: #e7e7e4;
  --radius: 14px;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.2rem; }
.site-nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Main layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 800;
}
.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.05s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2356d6; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Sections */
.section { padding: 34px 0; border-bottom: 1px solid var(--border); }
.section h2 {
  font-size: 1.35rem;
  margin: 0 0 14px;
  font-weight: 700;
}
.muted { color: var(--muted); font-size: 0.92rem; }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 14px 0; border-top: 1px dashed var(--border); }
.post-list li:first-child { border-top: none; }
.post-list a {
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.post-list a:hover { text-decoration: none; }
.post-title { font-weight: 600; font-size: 1.05rem; }
.post-meta { color: var(--muted); font-size: 0.85rem; }
.text-link { font-weight: 600; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 10px 0 0; }
.contact-list li { padding: 6px 0; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer p { margin: 4px 0; }

/* Article page */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.article h1 { font-size: 2rem; line-height: 1.3; margin: 8px 0 6px; }
.article .post-meta { display: block; margin-bottom: 24px; }
.article p { margin: 0 0 18px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }
