:root {
  --ink: #000000;
  --paper: #ffffff;
  --pad: clamp(16px, 4.5vw, 56px);
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 10px 0 18px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 顶部两行 ---------- */

.top {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  z-index: 40;
}

@media (min-width: 900px) {
  .top {
    position: sticky;
    top: 0;
  }
}

.stripe {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.22em;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--ink);
}

.brandRow {
  padding: 12px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.wordmark {
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.markBox {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--ink);
}

.menu {
  border-top: 1px solid var(--ink);
}

.menuList {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(4px, 2vw, 26px);
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
}

.menuList li {
  display: flex;
}

.menuList a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 2px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s ease;
}

.menuList a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--ink);
  transition: transform 0.22s ease;
}

.menuList a:hover {
  border-bottom-color: var(--ink);
}

.menuList a:hover::before {
  transform: rotate(45deg);
}

/* ---------- 版心 ---------- */

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

/* ---------- 首屏 ---------- */

.hero {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 7vw, 80px) var(--pad) clamp(58px, 10vw, 120px);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.heroMedia {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9vw), 0 100%);
}

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

.heroCopy {
  max-width: min(660px, 100%);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(20px, 3.4vw, 36px);
}

.heroCopy h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.lede {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.jump::after {
  content: "↓";
}

.jump:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 正文 ---------- */

.body {
  padding: clamp(22px, 4vw, 56px) var(--pad);
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  align-content: start;
}

.body > section {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 34px);
}

.sheet section[id] {
  scroll-margin-top: 24px;
}

@media (min-width: 900px) {
  .sheet section[id] {
    scroll-margin-top: 190px;
  }
}

.body h2 {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.body h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

.body p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
}

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

.body ul,
.body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.body li {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.7;
}

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

.body strong {
  font-weight: 500;
}

.body blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--ink);
}

.body blockquote p {
  margin: 0;
}

/* ---------- 侧栏 ---------- */

.rail {
  border-top: 2px solid var(--ink);
  padding: clamp(20px, 3vw, 36px) var(--pad) clamp(28px, 4vw, 48px);
  display: grid;
  gap: 10px;
  align-content: start;
}

@media (min-width: 900px) {
  .rail {
    border-left: 2px solid var(--ink);
    position: sticky;
    top: 168px;
    align-self: start;
    max-height: calc(100vh - 190px);
    overflow: auto;
  }
}

.rail h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.railList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.railList a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: padding-left 0.22s ease;
}

.railList a:hover {
  padding-left: 6px;
}

.num {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.totop {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.22s ease;
}

.totop:hover {
  opacity: 0.6;
}

/* ---------- 页脚 ---------- */

.foot {
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .foot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fCta {
  grid-column: 1 / -1;
  padding: clamp(28px, 6vw, 72px) var(--pad);
  border-bottom: 2px solid var(--ink);
}

.fCtaText {
  margin: 0;
  font-size: clamp(28px, 7.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  word-break: break-word;
}

.fCol {
  padding: clamp(18px, 3vw, 32px) var(--pad);
  border-bottom: 1px solid var(--ink);
}

.fCol h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.fCol p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .fCol {
    border-right: 1px solid var(--ink);
  }

  .fCol:last-of-type {
    border-right: 0;
  }
}

.fList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.fList a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: padding-left 0.22s ease;
}

.fList a:hover {
  padding-left: 5px;
}

.fTop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.fBottom {
  grid-column: 1 / -1;
  padding: 14px var(--pad);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menuList a,
  .jump,
  .railList a,
  .fList a,
  .totop {
    transition: none;
  }
}

@media (max-width: 480px) {
  .stripe {
    letter-spacing: 0.14em;
  }

  .menuList {
    gap: 0 14px;
  }

  .hero {
    justify-content: flex-start;
    padding-top: clamp(24px, 8vw, 48px);
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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