:root {
  --bg: #f2efe9;
  --card: #ffffff;
  --ink: #21232b;
  --ink-2: #5d616c;
  --line: rgba(33, 35, 43, 0.09);
  --sea: #3380e0;
  --sea-soft: #e3effc;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --card: #1f2229;
    --ink: #eceef2;
    --ink-2: #a1a6b1;
    --line: rgba(255, 255, 255, 0.09);
    --sea: #6aa8f5;
    --sea-soft: rgba(106, 168, 245, 0.14);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top a.home { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.langs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hero { margin: 40px 0 28px; }
h1 {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "PingFang SC", sans-serif;
  font-size: 40px; line-height: 1.15; font-weight: 800; margin: 0; letter-spacing: -0.01em;
}
.tag { margin: 6px 0 0; color: var(--sea); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 8px; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; line-height: 1.3; }
h3 { font-size: 17px; margin: 18px 0 4px; }
.muted { color: var(--ink-2); }
ul { padding-left: 1.2em; margin: 0 0 14px; }
li { margin: 4px 0; }
.controls { list-style: none; padding: 0; }
.controls li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.controls li:first-child { border-top: 0; }
.controls b { flex: none; min-width: 7.5em; }
a { color: var(--sea); }
.btn {
  display: inline-block; background: var(--sea); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; margin: 4px 0 16px;
}
.pill { display: inline-block; background: var(--sea-soft); color: var(--sea); font-weight: 600; font-size: 14px; padding: 3px 10px; border-radius: 999px; }
footer { margin-top: 40px; color: var(--ink-2); font-size: 14px; text-align: center; }
footer a { color: var(--ink-2); }
[lang]:not(html) { display: none; }
html[data-lang="en"] [lang="en"],
html[data-lang="zh-Hans"] [lang="zh-Hans"],
html[data-lang="zh-Hant"] [lang="zh-Hant"] { display: revert; }
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .controls li { flex-direction: column; gap: 0; }
}
