:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #656d76;
  --line: #d8dee4;
  --accent: #2f6fde;
  --surface: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --text: #e6e8eb;
    --muted: #9aa2ad;
    --line: #2d333b;
    --accent: #7aa7f5;
    --surface: #1b1f24;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0;
}

h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 16px;
  margin: 20px 0 4px;
}

p,
ul,
ol {
  margin: 8px 0;
}

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

li + li {
  margin-top: 4px;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.lang {
  font-size: 14px;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

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

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

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

th {
  background: var(--surface);
  font-weight: 600;
}

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}
