:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2f6df0;
  --accent-soft: #eaf1ff;
  --border: #e6e6e3;
  --radius: 12px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 560px;
}

.section { padding: 32px 0; }
.section h2 {
  font-size: 22px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.post-list h3 { margin: 0 0 6px; font-size: 19px; }
.post-list .excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.post-list .meta { color: #999; font-size: 13px; margin-top: 8px; }

.eeat {
  background: var(--accent-soft);
  border: 1px solid #d4e2ff;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.eeat h2 { border: none; padding: 0; margin: 0 0 10px; }
.eeat p { margin: 0; color: #2a3a55; font-size: 15px; }

article.post { padding: 40px 0 20px; }
article.post header { margin-bottom: 28px; }
article.post h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
article.post .meta { color: #999; font-size: 14px; }
article.post h2 { font-size: 24px; margin: 36px 0 12px; }
article.post h3 { font-size: 19px; margin: 28px 0 10px; }
article.post p { margin: 0 0 18px; }
article.post ul, article.post ol { margin: 0 0 18px; padding-left: 22px; }
article.post li { margin-bottom: 8px; }
article.post pre {
  background: #0f1115;
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
article.post pre code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
article.post code {
  background: #f0f1f4;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #c0264a;
}
article.post blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #2a3a55;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- inline SVG figures ---- */
figure.diagram {
  margin: 28px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.callout {
  background: #fff8e6;
  border: 1px solid #f0e0b0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  color: #6a5320;
  margin: 0 0 18px;
}

article.post table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}
article.post table.compare th,
article.post table.compare td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
article.post table.compare thead th {
  background: var(--accent-soft);
  color: #2a3a55;
  font-weight: 700;
}
article.post table.compare tbody tr:nth-child(even) td {
  background: #fafafa;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 27px; }
  article.post h1 { font-size: 26px; }
  body { font-size: 16px; }
}
