@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --paper: #fdfbf7;
  --paper-2: #f5f5f5;
  --paper-3: #efece4;
  --ink: #1a1a1a;
  --ink-2: #454340;
  --ink-3: #6f6a62;
  --line: #e4e1da;
  --line-2: #cfcac1;
  --radius: 10px;
  --sans: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.45'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 1.2em 0;
}

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

/* ---------- 页头 ---------- */
.strip {
  margin: 0;
  padding: 9px 20px;
  font-size: 14px;
  letter-spacing: .2em;
  text-align: center;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mast {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mast-brand {
  display: flex;
  justify-content: center;
  padding: 18px 20px 8px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .01em;
}

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

.brand-dots {
  width: 22px;
  height: 22px;
  background-image: radial-gradient(var(--ink) 1.6px, transparent 1.7px);
  background-size: 8px 8px;
}

.mast-nav {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

.nav-a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-a:hover {
  color: var(--ink);
  background: var(--paper-2);
  border-bottom-color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 80px 22px;
  overflow: hidden;
  text-align: center;
  color: var(--paper);
  background-color: #191919;
  background-image: radial-gradient(#313131 1px, transparent 1px);
  background-size: 15px 15px;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

.hero.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, .56);
}

.hero-ink { position: relative; z-index: 1; max-width: 15em; }

.hero-h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

/* ---------- 正文骨架 ---------- */
.main {
  padding: 54px 0 76px;
  border-bottom: 1px solid var(--line);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  padding: 18px 18px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rail-h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--ink-3);
}

.rail hr { margin: 9px 0 12px; }

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

.rail-list li {
  counter-increment: rail;
  border-bottom: 1px dotted var(--line-2);
}

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

.rail-list a {
  position: relative;
  display: block;
  min-height: 40px;
  padding: 10px 0 10px 27px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.rail-list a:hover { color: var(--ink); background: var(--paper-3); }

.paper { min-width: 0; }

section[id] { scroll-margin-top: 84px; }

.prose {
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.prose > section + section {
  margin-top: 3.2em;
  padding-top: 2.4em;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 2.4em 0 .25em;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
}

.prose h3 {
  margin: 2em 0 .2em;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
}

.prose h2 + hr,
.prose h3 + hr { margin: .1em 0 1.25em; }

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose p { margin: 0 0 1.15em; }

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

.prose li { margin: .4em 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  background: var(--paper-3);
  text-decoration-color: var(--ink);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 1.1em;
  border-left: 2px solid var(--ink);
  color: var(--ink-2);
}

.prose code {
  font-size: 15px;
  padding: 1px 5px;
  background: var(--paper-3);
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose pre code { padding: 0; background: none; }

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 16px;
}

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

.prose th { background: var(--paper-2); font-weight: 700; }

.prose img { margin: 1.2em 0; border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.foot {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.cta {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 64px 24px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}

.cta-brand {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.cta-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid #6d6d6d;
  border-radius: var(--radius);
}

.cta-go:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.foot-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-3);
}

.foot-cols dd {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink-2);
}

.foot-cols ul { margin: 0; padding: 0; list-style: none; }

.foot-cols ul a,
.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-cols ul a:hover,
.foot-cols dd a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.foot-base {
  padding: 20px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.foot-base p { margin: 0; }

/* ---------- 显现 ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .18s linear, transform .18s linear;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 18px;
  }
  .rail { position: static; padding: 14px 14px 16px; }
  .rail-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .rail-list li { border: 1px solid var(--line-2); border-radius: 8px; }
  .rail-list li:last-child { border: 1px solid var(--line-2); }
  .rail-list a { padding: 9px 12px 9px 30px; min-height: 40px; }
  .rail-list a::before { top: 11px; left: 10px; }
  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 6px;
    -webkit-overflow-scrolling: touch;
  }
  .mast-brand { padding: 14px 18px 6px; }
  .main { padding: 36px 0 56px; }
  .hero { min-height: 92svh; padding: 64px 20px; }
  section[id] { scroll-margin-top: 24px; }
  .cta { padding: 52px 20px; }
  .foot-cols { padding: 36px 18px; }
}

@media (max-width: 420px) {
  .hero-h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .prose { font-size: 17px; }
}

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