:root {
  --ink: #000000;
  --paper: #ffffff;
  --grey: #3a3a3a;
  --faint: rgba(0, 0, 0, 0.22);
  --pad: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

li {
  margin: 0.3em 0;
}

.skip {
  position: absolute;
  top: -90px;
  left: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
}

.skip:focus {
  top: 12px;
}

/* 页头：品牌独占一行，菜单独占一行 */
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.brandrow {
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: 'Righteous', 'Poppins', system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.mk {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  overflow: hidden;
}

.mk-vec svg,
.mk-pic img {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1);
}

.menurow {
  padding: 3px var(--pad);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  margin: 0 -10px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.mi {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transition: background-color 0.22s ease;
}

.menu a:hover .mi,
.menu a:focus-visible .mi {
  background: currentColor;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: calc(100svh - 150px);
  padding: clamp(34px, 7vw, 88px) var(--pad);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background-image: radial-gradient(var(--faint) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -2px -2px;
}

.hero-mark {
  position: absolute;
  top: clamp(20px, 4vw, 42px);
  left: var(--pad);
  width: clamp(30px, 5vw, 48px);
  height: clamp(30px, 5vw, 48px);
  background: var(--ink);
}

.hero h1 {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 15ch;
  margin-left: auto;
  text-align: right;
  font-size: clamp(2.2rem, 8.6vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  word-break: break-word;
}

/* 主体网格 */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 76px) var(--pad);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.doc {
  min-width: 0;
}

.doc-h {
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.doc-h h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  max-width: 22ch;
}

.subtitle {
  margin: 0;
  padding-left: 15px;
  border-left: 4px solid var(--ink);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 62ch;
}

.doc > div {
  margin-top: clamp(30px, 4.6vw, 52px);
  padding-top: clamp(28px, 4.2vw, 46px);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 28px;
}

.doc > div:first-of-type {
  margin-top: 0;
}

.doc h2 {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
}

.doc h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.doc > div > h2 + p {
  color: var(--grey);
  font-size: 16px;
}

.doc > div > section {
  margin: 0 0 1.2em;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--r);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}

.doc > div > section > p:last-child,
.doc > div > p:last-child {
  margin-bottom: 0;
}

/* 右侧侧栏 */
.rail {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.rail-h {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

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

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

.rail-list li:last-child a {
  border-bottom: 0;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  padding-left: 6px;
  outline: none;
}

/* 页脚 */
.site-foot {
  margin-top: clamp(40px, 7vw, 84px);
  border-top: 1px solid var(--ink);
}

.cta {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding: clamp(38px, 7vw, 78px) var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.cta-word {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.55rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateX(5px);
  outline: none;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(32px, 5vw, 58px) var(--pad);
  border-top: 1px solid var(--paper);
}

.fb {
  margin: 0 0 10px;
  font-family: 'Righteous', 'Poppins', system-ui, sans-serif;
  font-size: 23px;
  line-height: 1.15;
}

.fd {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  color: var(--grey);
}

.fnav dl {
  margin: 0;
}

.fnav dt {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.22em;
}

.fnav dd {
  margin: 0;
}

.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s ease;
}

.fnav a:hover,
.fnav a:focus-visible {
  border-bottom-color: var(--ink);
  outline: none;
}

.foot-base {
  padding: 16px var(--pad) 20px;
  border-top: 1px solid var(--ink);
  text-align: center;
}

.copy {
  margin: 0;
  font-size: 16px;
}

/* 动效 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

html.js .menu a {
  opacity: 0;
  animation: menuIn 0.42s ease forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .rail {
    position: static;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }
}

@media (max-width: 620px) {
  .foot-cols {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - 130px);
    padding-top: 74px;
  }

  .menu {
    margin: 0 -6px;
  }

  .menu a {
    padding: 0 6px;
    gap: 7px;
  }

  .brand {
    font-size: 19px;
  }
}

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

  .menu a,
  .rail-list a,
  .cta-btn,
  .fnav a,
  .mi {
    transition: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .menu a {
    animation: none;
    opacity: 1;
  }
}

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