:root {
  --fg: #1f2328;
  --fg-soft: #57606a;
  --accent: #2563eb;
  --line: #e5e7eb;
  --code-bg: #f6f8fa;
  --lead-bg: #f3f6ff;
  --lead-border: #2563eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--fg);
  background: #fff;
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.post-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

h1 {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}

p {
  margin: 12px 0;
  color: var(--fg);
}

.cover {
  margin: 0 0 24px;
}

.cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.lead {
  background: var(--lead-bg);
  border-left: 4px solid var(--lead-border);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  color: #374151;
}

.q {
  font-weight: 600;
  margin-top: 22px;
  color: var(--fg);
}

strong {
  color: #111827;
}

ol,
ul {
  margin: 12px 0 12px 1.4em;
}

li {
  margin: 6px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 640px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--code-bg);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #fafbfc;
}

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .post {
    padding: 28px 16px 64px;
  }
  h1 {
    font-size: 1.55rem;
  }
}
