:root {
  --ground: #eeede8;
  --panel: #faf8f3;
  --ink: #272d36;
  --ink-2: #586572;
  --ink-3: #66727c;
  --line: #d5d5dc;
  --brand: #6552e9;
  --brand-ink: #fff;
  --brand-soft: #e8e2f7;
  --soft: #e5e7eb;
  --note: #e8e2f7;
  --note-ink: #5843c7;
  --bar: rgba(238, 237, 232, 0.94);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111215;
    --panel: #1b1c20;
    --ink: #f4f3ef;
    --ink-2: #b6b3c1;
    --ink-3: #9c98a9;
    --line: #32323c;
    --brand: #b5a5ff;
    --brand-soft: #2e2947;
    --soft: #23232b;
    --note: #252135;
    --note-ink: #c5b9ee;
    --bar: rgba(17, 18, 21, 0.94);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111215;
  --panel: #1b1c20;
  --ink: #f4f3ef;
  --ink-2: #b6b3c1;
  --ink-3: #9c98a9;
  --line: #32323c;
  --brand: #b5a5ff;
  --brand-soft: #2e2947;
  --soft: #23232b;
  --note: #252135;
  --note-ink: #c5b9ee;
  --bar: rgba(17, 18, 21, 0.94);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font:
    15px/1.85 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button {
  font: inherit;
}
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--panel);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--bar);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1360px;
  margin: auto;
  min-height: 78px;
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 1.2;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 32px;
  flex-shrink: 0;
}
.brand small {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  margin-left: 15px;
  padding-left: 19px;
  letter-spacing: 0;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}
.header-actions > a:not(.workspace-link) {
  color: var(--ink-2);
}
.workspace-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 0 17px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 600;
}
.workspace-link:hover {
  border-color: var(--brand);
  text-decoration: none;
}
.workspace-mobile {
  display: none;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover {
  background: var(--soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
.page-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 64px;
  max-width: 1288px;
  padding: 52px 36px 0;
  margin: auto;
  align-items: start;
}
.guide-navigation {
  position: sticky;
  top: 112px;
  max-height: calc(100dvh - 142px);
  overflow: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
}
.nav-label {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 14px 13px;
}
.guide-switch {
  display: grid;
  gap: 5px;
  margin-bottom: 36px;
}
.guide-switch a {
  display: block;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 13px;
  border-radius: 9px;
  padding: 10px 14px;
}
.guide-switch a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}
.guide-switch a:hover {
  text-decoration: none;
  background: var(--soft);
}
.guide-toc {
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
  margin-left: 14px;
  padding-left: 17px;
}
.guide-toc a {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  padding: 6px 0;
  line-height: 1.65;
}
.guide-toc a[aria-current="location"] {
  color: var(--brand);
  font-weight: 650;
}
.sidebar-note {
  padding: 20px 14px 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.9;
}
.sidebar-note strong {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 5px;
}
.page {
  min-width: 0;
  padding-bottom: 65px;
}
header.top {
  margin-bottom: 40px;
}
.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow span {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
}
h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.4;
  font-weight: 720;
}
.lede {
  color: var(--ink-2);
  max-width: 650px;
  margin: 17px 0 0;
  font-size: 15px;
  line-height: 1.95;
}
.guide-flow {
  margin-top: 27px;
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-3);
}
.guide-flow span {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 5px 12px;
  border-radius: 30px;
  color: var(--ink-2);
}
.guide-flow span:last-child {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}
.section-label {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  margin-bottom: 9px;
}
main section {
  scroll-margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 25px;
  line-height: 1.5;
  margin: 0 0 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
  margin: 30px 0 12px;
  font-weight: 650;
}
p {
  margin: 12px 0;
}
main p,
main li {
  color: var(--ink-2);
}
main strong,
.key {
  color: var(--ink);
  font-weight: 650;
}
ul {
  padding-left: 20px;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
li::marker {
  color: var(--brand);
}
ol.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 21px;
}
ol.steps > li {
  counter-increment: steps;
  padding-left: 45px;
  position: relative;
  min-height: 32px;
}
ol.steps > li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 650;
}
.start-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 10px;
}
.start-section .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  font-size: 13px;
  margin-bottom: 0;
}
.start-section h2 {
  margin-bottom: 10px;
}
.btn {
  display: inline;
  padding: 2px 6px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.9em;
  white-space: normal;
}
.note {
  padding: 15px 18px;
  border-left: 3px solid var(--brand);
  color: var(--note-ink);
  background: var(--note);
  border-radius: 0 9px 9px 0;
  font-size: 13px;
  margin: 23px 0;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.mode-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px 24px;
  background: var(--panel);
}
.mode-card:last-child {
  grid-column: 1 / -1;
}
.mode-card > span {
  font-size: 10px;
  color: var(--brand);
  letter-spacing: 0.12em;
}
.mode-card h3 {
  margin: 8px 0 10px;
}
.mode-card p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 22px 0;
  background: var(--panel);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--ink-3);
  background: var(--soft);
  font-weight: 550;
  font-size: 11px;
}
td {
  color: var(--ink-2);
}
tr:last-child td {
  border-bottom: 0;
}
td.pick a {
  white-space: nowrap;
  font-weight: 650;
}
.visual-example {
  margin: 22px 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.visual-example summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.visual-example summary::-webkit-details-marker {
  display: none;
}
.visual-example summary::before {
  content: "+";
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.visual-example[open] summary::before {
  content: "−";
}
.visual-example summary span {
  font-weight: 400;
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-3);
}
.visual-example .figs {
  border-top: 1px solid var(--line);
  padding: 18px;
}
.figs {
  display: grid;
  gap: 20px;
}
.figs.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
figure {
  margin: 0;
  min-width: 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground);
}
figure.narrow img {
  max-width: 420px;
  margin: auto;
}
figcaption {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.8;
}
.faq-list {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 23px;
  background: var(--panel);
}
.faq-list details + details {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  padding: 19px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 550;
  font-size: 14px;
}
.faq-list details > p {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-size: 13px;
}
.guide-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
}
.guide-footer p {
  max-width: 490px;
  margin: 0;
}
.guide-footer a {
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .page-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 35px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-inner {
    padding-left: 25px;
    padding-right: 25px;
  }
  .brand {
    font-size: 21px;
  }
}
@media (max-width: 780px) {
  html {
    scroll-padding-top: 85px;
  }
  .header-inner {
    min-height: 68px;
    padding: 12px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 27px;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions > a:not(.workspace-link) {
    display: none;
  }
  .workspace-link {
    font-size: 11px;
    padding: 0 12px;
    min-height: 35px;
  }
  .workspace-desktop {
    display: none;
  }
  .workspace-mobile {
    display: inline;
  }
  .page-layout {
    display: block;
    padding: 25px 23px 0;
  }
  .guide-navigation {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 32px;
  }
  .guide-navigation > .nav-label,
  .sidebar-note {
    display: none;
  }
  .guide-switch {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
  }
  .guide-switch a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 10px 5px;
    border: 1px solid var(--line);
  }
  .guide-toc {
    display: flex;
    overflow-x: auto;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    gap: 18px;
    scrollbar-width: none;
  }
  .guide-toc::-webkit-scrollbar {
    display: none;
  }
  .guide-toc a {
    white-space: nowrap;
    padding: 1px 0;
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 30px;
  }
  .lede {
    font-size: 13px;
    margin-top: 14px;
  }
  header.top {
    margin-bottom: 30px;
  }
  .guide-flow {
    font-size: 10px;
    gap: 8px;
    margin-top: 22px;
  }
  .guide-flow span {
    padding: 4px 9px;
  }
  main section {
    padding: 30px 0;
    scroll-margin-top: 85px;
  }
  h2 {
    font-size: 22px;
  }
  h3 {
    font-size: 16px;
  }
  main p,
  main li {
    font-size: 13px;
  }
  ol.steps {
    gap: 20px;
  }
  ol.steps > li {
    padding-left: 38px;
  }
  .start-section {
    padding: 23px 20px;
  }
  .start-section .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .mode-card {
    padding: 20px;
  }
  th,
  td {
    padding: 12px 10px;
  }
  table {
    font-size: 12px;
  }
  .figs.two {
    grid-template-columns: 1fr;
  }
  .visual-example summary {
    padding: 14px;
  }
  .visual-example summary span {
    font-size: 9px;
  }
  .visual-example .figs {
    padding: 12px;
  }
  .faq-list {
    padding: 0 18px;
  }
  .faq-list summary {
    font-size: 13px;
  }
  .note {
    padding: 13px 14px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
