@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: 13rem;
  background: #ffffff;
  color: #000000;
  font-family: 'Space Mono', ui-monospace, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2rem; }

::selection { background: #000000; color: #ffffff; }

/* 侧栏导航 */
.sidenav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 13rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.4rem 1.1rem;
  background: #ffffff;
  border-right: 3px solid #000000;
  overflow-y: auto;
  z-index: 30;
}

.brandmark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000000;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.22s ease, color 0.22s ease;
}

.brandmark:hover,
.brandmark:focus-visible { background: #ffffff; color: #000000; }
.brandmark-img { width: 100%; height: 100%; object-fit: cover; }

.menu-wrap > summary { display: none; }

.menu-wrap > menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.menu-wrap li { min-width: 0; }

.menu-wrap a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.menu-wrap li:last-child a { border-bottom: 3px solid #000000; }

.menu-wrap a:hover,
.menu-wrap a:focus-visible {
  background: #000000;
  color: #ffffff;
  padding-left: 1rem;
}

.sidenav-foot {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid #000000;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  word-break: break-all;
}

.sidenav-k { display: block; letter-spacing: 0.24em; }
.sidenav-v { display: block; font-size: 0.72rem; }

/* 首屏 */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 2rem 5rem;
  border-bottom: 3px solid #000000;
}

.hero-in {
  position: relative;
  width: 100%;
  max-width: 46rem;
  text-align: center;
}

.badge {
  position: absolute;
  top: -3.4rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 2px solid #000000;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  background: #ffffff;
  white-space: nowrap;
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5.6vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #000000;
  color: #000000;
}

.hero-icon-img { width: 100%; height: 100%; object-fit: cover; }

.lede {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 2.4rem;
  padding: 0 2.2rem;
  border: 3px solid #000000;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.cta:hover,
.cta:focus-visible { background: #ffffff; color: #000000; }

/* 主区 */
.shell {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  align-items: start;
}

.rail {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 2.4rem;
}

.rail-h {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  line-height: 1.4;
}

.rail-h-in {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #000000;
}

.rail-dot { width: 8px; height: 8px; background: #000000; flex: 0 0 auto; }

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list li { counter-increment: rail; }

.rail-list li:nth-child(1) { --d: 0ms; }
.rail-list li:nth-child(2) { --d: 30ms; }
.rail-list li:nth-child(3) { --d: 60ms; }
.rail-list li:nth-child(4) { --d: 90ms; }
.rail-list li:nth-child(5) { --d: 120ms; }
.rail-list li:nth-child(6) { --d: 150ms; }
.rail-list li:nth-child(7) { --d: 180ms; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.15rem 0;
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: padding-left 0.22s ease var(--d, 0ms), background 0.22s ease var(--d, 0ms);
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.rail-list a:hover,
.rail-list a:focus-visible { padding-left: 0.45rem; background: #f0f0f0; }

.rail-host {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  word-break: break-all;
  border-top: 1px solid #000000;
  padding-top: 0.5rem;
}

/* 正文 */
.doc { min-width: 0; }

.doc > section {
  padding-block: 3rem;
  border-bottom: 3px solid #000000;
  scroll-margin-top: 1.5rem;
}

.doc > section:first-child { padding-top: 0; }
.doc > section:last-child { border-bottom: 0; padding-bottom: 0; }

.doc h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc h2 > span { display: inline; }

.doc h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 700;
}

.doc p, .doc ul, .doc ol { max-width: 44rem; }
.doc ul, .doc ol { margin: 0 0 1.4rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }

.doc a { text-underline-offset: 3px; }

.doc blockquote {
  margin: 1.6rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 6px solid #000000;
  background: #f4f4f4;
}

.doc blockquote p:last-child { margin-bottom: 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.9rem;
}

.doc th, .doc td {
  border: 1px solid #000000;
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.doc th { background: #f0f0f0; font-weight: 700; }

.doc hr { border: 0; border-top: 1px solid #000000; margin: 2rem 0; }

/* 页脚 */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  border-top: 3px solid #000000;
}

.foot-brand {
  margin: 0 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid #000000;
  font-size: clamp(2rem, 8.4vw, 5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
  border-top: 3px solid #000000;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.foot-cols dd { margin: 0; font-size: 0.84rem; line-height: 1.6; word-break: break-all; }

.foot-cols dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: padding-left 0.22s ease, background 0.22s ease;
}

.foot-cols dd a:hover,
.foot-cols dd a:focus-visible { padding-left: 0.4rem; background: #f0f0f0; }

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  border-top: 1px solid #000000;
  font-size: 0.74rem;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible { border-bottom-color: #000000; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

/* 窄屏 */
@media (max-width: 1000px) {
  body { padding-left: 0; }

  .sidenav {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-right: 0;
    border-bottom: 3px solid #000000;
    overflow: visible;
  }

  .brandmark { width: 40px; height: 40px; border-width: 2px; }
  .sidenav-foot { display: none; }

  .menu-wrap { position: relative; margin-left: auto; }

  .menu-wrap > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 2px solid #000000;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    list-style: none;
    cursor: pointer;
    background: #ffffff;
  }

  .menu-wrap > summary::-webkit-details-marker { display: none; }
  .menu-wrap[open] > summary { background: #000000; color: #ffffff; }

  .menu-wrap > menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(78vw, 20rem);
    padding: 0.4rem;
    background: #ffffff;
    border: 3px solid #000000;
  }

  .menu-wrap[open] > menu { display: grid; }
  .menu-wrap a { font-size: 0.95rem; }
  .menu-wrap li:last-child a { border-bottom: 1px solid #000000; }

  .hero {
    min-height: 78svh;
    padding: 4.5rem 1rem 3.5rem;
  }

  .badge { position: static; display: inline-block; transform: none; margin-bottom: 1.4rem; }
  .hero-line { gap: 0.9rem; }
  .hero-icon { width: 44px; height: 44px; border-width: 2px; }
  .lede { font-size: 0.92rem; }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
    padding: 2.2rem 1rem 3.5rem;
  }

  .rail { position: static; gap: 1.8rem; }
  .rail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .rail-list a { font-size: 0.82rem; }
  .rail-list a:hover { padding-left: 0; }

  .doc > section { padding-block: 2.2rem; scroll-margin-top: 5rem; }

  .foot { padding: 2.4rem 1rem 1.4rem; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.8rem; }
  .foot-bar { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

button[aria-expanded]{min-width:44px;min-height:44px}
