:root {
  color-scheme: light;
  --background: #f5f7fc;
  --surface: #fff;
  --ink: #14233c;
  --muted: #4a5a73;
  --line: #d8e0ee;
  --accent: #224ccc;
  --accent-fill: #224ccc;
  --accent-ink: #fff;
  --preview: #e8eefa;
  --shadow: #132a5630;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--ink);
}
:root.dark {
  color-scheme: dark;
  --background: #101729;
  --surface: #19233a;
  --ink: #eef3ff;
  --muted: #bdc9dd;
  --line: #35435e;
  --accent: #a9c0ff;
  --accent-fill: #a9c0ff;
  --accent-ink: #101a33;
  --preview: #202d46;
  --shadow: #0008;
}
:root[data-lang="en"] [lang="zh-Hans"], :root:not([data-lang="en"]) [lang="en"] { display: none; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 40px, 1120px); margin-inline: auto; }
.topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.brand, .nav, .actions, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brand { color: var(--ink); font-size: 1.15rem; font-weight: 720; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { gap: 8px; }
.pill, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font: inherit;
  text-decoration: none;
  font-weight: 650;
}
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.primary { color: var(--accent-ink); background: var(--accent-fill); }
button.pill { cursor: pointer; }
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .95fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  padding: clamp(34px, 6vw, 80px) 0;
}
h1 { margin: 0; font-size: clamp(2rem, 4.35vw, 3.5rem); letter-spacing: -.045em; line-height: 1.16; text-wrap: balance; }
h2 { margin: 0 0 .7em; font-size: clamp(1.26rem, 2.3vw, 1.7rem); line-height: 1.28; }
h3 { margin: 0 0 .45em; line-height: 1.35; }
p, li { line-height: 1.72; }
.lead { max-width: 32rem; margin: 1.05rem 0 1.45rem; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.17rem); }
.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 23px);
  min-height: 375px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--preview);
}
.preview img {
  width: min(47%, 190px);
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 15px 35px var(--shadow);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 44px; }
.feature-grid article {
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature-grid p { margin: 0; color: var(--muted); }
.workflow { max-width: 680px; margin: 0 0 48px; }
.workflow ol { padding-inline-start: 1.5rem; }
.workflow li { margin-block: .65rem; }
.document { width: min(100%, 840px); padding: clamp(36px, 6vw, 72px) 0 42px; }
.document h1 { font-size: clamp(2rem, 4vw, 3rem); }
.document h2 { margin-top: 1.7em; }
.document h3 { margin-top: 1.35em; }
.document p, .document li { overflow-wrap: anywhere; }
.document .updated { color: var(--muted); }
footer { color: var(--muted); padding: 22px 0 32px; border-top: 1px solid var(--line); }
.footer-links { gap: 18px; }
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .preview { min-height: auto; padding: 22px; }
  .feature-grid { grid-template-columns: 1fr; gap: 11px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 66px; }
  .pill { padding-inline: 10px; }
}
