:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e6e0;
  --accent: #07c160;
  --accent-2: #06ad56;
  --paper: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  position: sticky; top: 0; z-index: 100;
}
.nav .inner {
  max-width: 800px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.nav .brand {
  font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav .brand .mk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: white;
  font-weight: 800; font-size: 14px;
}
.nav .menu a { margin-left: 22px; color: var(--muted); }
.nav .menu a:hover { color: var(--ink); text-decoration: none; }

/* container */
.wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px; }

/* hero */
.hero { padding: 60px 0 40px; text-align: center; }
.hero h1 { font-size: 36px; margin: 0 0 14px; line-height: 1.25; }
.hero p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }
.hero .cta { margin-top: 28px; }

.btn {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 12px 26px; border-radius: 6px;
  font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--paper); }

/* post list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: transform .15s, box-shadow .15s;
}
.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -10px rgba(0,0,0,0.08);
}
.post-item h2 { margin: 0 0 8px; font-size: 20px; }
.post-item h2 a { color: var(--ink); }
.post-item .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.post-item .excerpt { color: #444; font-size: 15px; margin: 0; }
.post-item .tag {
  display: inline-block; background: rgba(7,193,96,0.1);
  color: var(--accent-2); padding: 2px 10px; border-radius: 999px;
  font-size: 12px; margin-right: 6px;
}

/* article */
article.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 50px 60px;
}
article.post h1 {
  font-size: 30px; margin: 0 0 12px; line-height: 1.3;
}
article.post .meta {
  color: var(--muted); font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px; margin-bottom: 30px;
}
article.post h2 {
  font-size: 22px; margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
article.post h3 { font-size: 18px; margin: 28px 0 10px; }
article.post p { margin: 0 0 18px; color: #2a2a2a; }
article.post blockquote {
  margin: 20px 0; padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(7,193,96,0.04);
  color: #444;
}
article.post ul, article.post ol { padding-left: 24px; }
article.post li { margin-bottom: 6px; }
article.post code {
  background: #f5f3ed; padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, "SF Mono", monospace; font-size: 14px;
}
article.post .cta-box {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(7,193,96,0.06) 0%, rgba(6,173,86,0.03) 100%);
  border: 1px solid rgba(7,193,96,0.18);
  border-radius: 10px;
  text-align: center;
}
article.post .cta-box h3 { margin: 0 0 10px; border: 0; padding: 0; }
article.post .cta-box p { color: var(--muted); margin: 0 0 16px; }

article.post table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}
article.post th, article.post td {
  padding: 10px 14px; border: 1px solid var(--line);
  text-align: left; font-size: 14px;
}
article.post th { background: #f5f3ed; }

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* footer */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
  margin-top: 60px;
}
footer.foot a { color: var(--muted); margin: 0 8px; }

/* responsive */
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  article.post { padding: 30px 24px; }
  .nav .menu a { margin-left: 14px; font-size: 14px; }
}
