:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6760;
  --border: #e6e2da;
  --accent: #1f6f43;
  --accent-soft: #eaf4ee;
  --code-bg: #f3f1ec;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121311;
    --surface: #1a1b19;
    --text: #ecebe6;
    --muted: #a19d94;
    --border: #2d2e2a;
    --accent: #7cc69a;
    --accent-soft: #1d2b22;
    --code-bg: #20211e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header__inner,
.site-footer__inner,
.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 0;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.page {
  padding: 32px 0 56px;
}

.intro h1,
.post__header h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.3;
}

.intro p {
  margin: 0 0 28px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card__meta,
.post__meta,
.breadcrumb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card__title {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.card__title a {
  color: var(--text);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.card__more {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb {
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
}

.post__header {
  margin-bottom: 20px;
}

.answer {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.answer p {
  margin: 0;
}

.answer .answer__label {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.post__body h2 {
  margin: 40px 0 12px;
  font-size: 24px;
  line-height: 1.4;
}

.post__body h3,
.faq h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  line-height: 1.45;
}

.post__body p,
.post__body li {
  overflow-wrap: anywhere;
}

.post__body ul,
.post__body ol {
  padding-left: 1.4em;
}

.post__body blockquote {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}

.post__body blockquote p {
  margin: 0;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.88em;
}

pre {
  margin: 16px 0 24px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code-bg);
  line-height: 1.55;
}

pre code {
  padding: 0;
  background: none;
  font-size: 14px;
}

.table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
}

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

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

th {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
}

.faq {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.faq h2,
.related h2 {
  margin: 24px 0 8px;
  font-size: 22px;
}

.faq p {
  margin: 0 0 12px;
}

.cta {
  margin: 40px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.cta p {
  margin: 0 0 14px;
}

.cta .cta__title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 19px;
}

.cta__button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.related ul {
  padding-left: 1.2em;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  padding: 22px 0 32px;
}

.site-footer p {
  margin: 0 0 8px;
}

.languages a {
  margin-right: 12px;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .page {
    padding-top: 22px;
  }

  .card {
    padding: 16px;
  }
}
