:root {
  --ink: #1f1726;
  --ink-2: #2a2036;
  --ink-3: #33263f;
  --plum: #56228b;
  --plum-soft: #8b5cc4;
  --clay: #8b4513;
  --clay-soft: #c58049;
  --paper: #f4edf7;
  --text: #ddd0e6;
  --muted: #b6a7c4;
  --line: rgba(244, 237, 247, 0.14);
  --soft: rgba(244, 237, 247, 0.06);
  --r-lg: 26px;
  --r-md: 18px;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(62vw 46vw at 6% -8%, rgba(86, 34, 139, 0.62), transparent 68%),
    radial-gradient(48vw 38vw at 104% 8%, rgba(139, 69, 19, 0.34), transparent 66%),
    radial-gradient(70vw 52vw at 48% 112%, rgba(86, 34, 139, 0.3), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

::selection {
  background: var(--clay);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--clay-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

a {
  color: var(--clay-soft);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0 10px;
  background: rgba(31, 23, 38, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brandRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark,
.dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
  background: linear-gradient(145deg, var(--plum) 10%, var(--clay) 92%);
  overflow: hidden;
}

.markImg {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.brand {
  padding: 9px 2px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.find {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 118px;
  max-width: 264px;
  margin-left: auto;
  min-width: 0;
  padding: 3px 8px 3px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.find:focus-within {
  border-color: rgba(197, 128, 73, 0.6);
  background: rgba(139, 69, 19, 0.16);
}

.findLabel {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.findInput {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.94rem;
}

.findInput:focus {
  outline: none;
}

.menu {
  margin-top: 8px;
}

.menuList {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.menuList::-webkit-scrollbar {
  display: none;
}

.menuList li {
  flex: 0 0 auto;
}

.menuList li[hidden] {
  display: none;
}

.menuList a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--soft);
  color: var(--paper);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.menuList a:hover {
  background: rgba(139, 69, 19, 0.32);
  border-color: rgba(197, 128, 73, 0.5);
  transform: translateY(-1px);
}

main {
  padding-bottom: 8px;
}

.doc {
  min-width: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 45vh;
  padding: clamp(26px, 5vw, 52px) 0 10px;
}

.heroTitle {
  margin: 0 0 14px;
  max-width: 22ch;
  color: var(--paper);
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.lede {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.heroArt {
  margin: 26px 0 0;
  border-radius: var(--r-lg) 20px var(--r-lg) 22px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--ink-2);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}

.heroPic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: 28px;
}

.prose {
  min-width: 0;
  max-width: 74ch;
  font-size: 1.02rem;
}

.prose section {
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 6px;
}

.prose section[id] {
  scroll-margin-top: 180px;
}

.prose h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 26px;
  color: var(--paper);
  font-size: clamp(1.3rem, 2.8vw, 1.78rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.006em;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 23px;
  border-radius: 52% 48% 44% 56% / 62% 54% 46% 38%;
  background: linear-gradient(160deg, var(--plum-soft), var(--clay));
}

.prose h3 {
  margin: 26px 0 10px;
  color: var(--clay-soft);
  font-family: var(--mono);
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.prose p {
  margin: 0 0 16px;
  line-height: 1.85;
  max-width: 68ch;
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

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

.prose li {
  margin: 0 0 8px;
}

.prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--clay);
  border-radius: 4px var(--r-md) var(--r-md) 4px;
  background: rgba(139, 69, 19, 0.16);
  color: var(--paper);
}

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

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: var(--r-md);
}

.prose figure {
  margin: 22px 0;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose table {
  display: block;
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose a {
  color: var(--clay-soft);
  text-underline-offset: 3px;
}

.rail {
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px 18px 26px 20px;
  background: rgba(42, 32, 54, 0.72);
}

.railTitle {
  margin: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.subtitle {
  margin: 5px 0 14px;
  color: var(--clay-soft);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

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

.railList a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.railList a:hover {
  border-left-color: var(--clay-soft);
  background: var(--soft);
  color: var(--paper);
}

.foot {
  margin-top: clamp(44px, 7vw, 78px);
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}

.footCta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4.6vw, 40px);
  border-radius: 28px 22px 28px 24px;
  background: linear-gradient(140deg, rgba(86, 34, 139, 0.9), rgba(139, 69, 19, 0.72));
}

.ctaLine {
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ctaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.ctaBtn:hover {
  background: #120c17;
  transform: translateY(-1px);
}

.footCols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.addr {
  margin: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.footList {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footList a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footList a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footWord {
  margin: 0;
  color: var(--clay-soft);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.copy {
  margin: 24px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

@media (min-width: 700px) {
  .footCols {
    grid-template-columns: 1.1fr 1.4fr 0.7fr;
    align-items: start;
    gap: 28px;
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 262px;
    gap: 46px;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 158px;
  }

  body {
    background-attachment: fixed;
  }

  .heroArt {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 0 16px;
  }

  .hero {
    min-height: 40vh;
    padding-top: 22px;
  }

  .find {
    max-width: 200px;
    padding-left: 10px;
  }

  .findLabel {
    display: none;
  }

  .heroArt {
    aspect-ratio: 4 / 3;
    margin-top: 20px;
  }

  .prose div[id] {
    scroll-margin-top: 168px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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