:root {
  color-scheme: light;
  --fg: #1f2328;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --link: #0969da;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.lang-switcher a,
.lang-switcher span {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
}

.lang-switcher span.current {
  color: var(--fg);
  background: var(--bg-soft);
  border-color: var(--border);
  font-weight: 600;
}

.lang-switcher a:hover {
  color: var(--link);
  border-color: var(--link);
}

.content h1 {
  font-size: 26px;
  margin-top: 0;
}

.content h2 {
  font-size: 20px;
  margin-top: 2em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.content h3 {
  font-size: 17px;
  margin-top: 1.6em;
}

.content a {
  color: var(--link);
}

.content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}

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

.content th {
  background: var(--bg-soft);
}

.content code {
  background: var(--bg-soft);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.content blockquote {
  margin: 0;
  padding: 8px 16px;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--border);
}

.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

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

.app-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-list > li {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.app-list > li:last-child {
  border-bottom: none;
}

.app-list h2 {
  margin: 0 0 10px;
  border-bottom: none;
  padding-bottom: 0;
}

.doc-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.doc-row .doc-name {
  min-width: 130px;
  color: var(--muted);
  font-size: 14px;
}

.doc-row a {
  font-size: 14px;
}
