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

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

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

body {
  margin: 0;
  background: #fdfbf7;
  color: #1a1a1a;
  font-family: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  transition: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .38;
  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='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

a { color: #1a1a1a; }

img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 页头 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fdfbf7;
  border-bottom: 2px solid #1a1a1a;
}

.brandline {
  padding: 14px 20px 0;
}

.wordmark {
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .12em;
  text-decoration: none;
  color: #1a1a1a;
  display: inline-block;
  padding: 2px 0 4px;
  min-height: 30px;
}

.menuline {
  padding: 4px 20px 10px;
}

details.sheet > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid #1a1a1a;
  background: #fdfbf7;
  font-size: 16px;
  letter-spacing: .22em;
  cursor: pointer;
  user-select: none;
}

details.sheet > summary::-webkit-details-marker { display: none; }

details.sheet > summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: translateY(-2px) rotate(45deg);
}

details.sheet[open] > summary {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 75;
}

details.sheet[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

menu.sheet-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  margin: 0;
  padding: 84px 22px 40px;
  list-style: none;
  background: #1a1a1a;
  color: #fdfbf7;
  overflow-y: auto;
}

menu.sheet-menu li {
  border-bottom: 1px solid #4d4d4d;
}

menu.sheet-menu a {
  display: block;
  padding: 15px 2px;
  min-height: 44px;
  color: #fdfbf7;
  text-decoration: none;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: .02em;
}

menu.sheet-menu a:active { background: #2a2a2a; }

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

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #1a1a1a;
  align-items: stretch;
}

.hero-fig {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border-right: 2px solid #1a1a1a;
  display: flex;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  will-change: transform;
}

.sticker {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #1a1a1a;
  color: #fdfbf7;
  padding: 8px 14px;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .12em;
  line-height: 1.4;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 44px 26px;
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.01em;
  max-width: 14ch;
  overflow-wrap: break-word;
}

/* ---------- 侧栏 + 正文 ---------- */

.stage {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  border-bottom: 2px solid #1a1a1a;
}

.rail {
  border-right: 2px solid #1a1a1a;
  background: #f5f5f5;
  padding: 34px 20px 40px;
}

.rail h2 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: .01em;
}

.rail p.subtitle {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: #4a4a4a;
}

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

.rail-nav a {
  display: block;
  padding: 9px 0;
  min-height: 42px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border-top: 1px solid #d3cfc7;
  color: #1a1a1a;
}

.rail-nav li:last-child a { border-bottom: 1px solid #d3cfc7; }

.rail-nav a:active { background: #eae6de; }

.content {
  padding: 34px 26px 64px;
  min-width: 0;
}

.prose {
  max-width: 70ch;
  counter-reset: sec;
}

.prose > section {
  position: relative;
  border-top: 2px solid #1a1a1a;
  padding: 26px 0 40px;
  scroll-margin-top: 132px;
  animation: rise .3s linear both;
}

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

.prose > section:nth-child(2) { animation-delay: .05s; }
.prose > section:nth-child(3) { animation-delay: .1s; }
.prose > section:nth-child(4) { animation-delay: .15s; }
.prose > section:nth-child(5) { animation-delay: .2s; }
.prose > section:nth-child(6) { animation-delay: .25s; }
.prose > section:nth-child(7) { animation-delay: .3s; }

.prose > section::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .24em;
  color: #6f6b64;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.prose h2 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(23px, 3.4vw, 33px);
  line-height: 1.2;
  letter-spacing: -.005em;
}

p.subtitle {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: #4a4a4a;
}

.prose h3 {
  margin: 26px 0 8px;
  font-family: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
}

.prose p { margin: 0 0 18px; }

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

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

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 6px solid #1a1a1a;
  background: #f5f5f5;
}

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

.prose img {
  display: block;
  height: auto;
  border: 1px solid #dddad2;
  margin: 0 0 18px;
}

.prose figure { margin: 0 0 18px; }

.prose figcaption {
  font-size: 16px;
  color: #5b574f;
  margin-top: 6px;
}

.prose hr {
  border: 0;
  border-top: 1px solid #d3cfc7;
  margin: 26px 0;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  background: #f0eee8;
  padding: 1px 4px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

.prose th, .prose td {
  border: 1px solid #d3cfc7;
  padding: 8px 10px;
  text-align: left;
}

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

.colophon {
  border-top: 2px solid #1a1a1a;
  background: #f5f5f5;
  padding: 30px 20px 44px;
}

.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.fbrand .wordmark { margin-bottom: 14px; }

.signup {
  display: flex;
  gap: 8px;
  max-width: 260px;
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  background: #fdfbf7;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 16px;
}

.signup button {
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  background: #1a1a1a;
  color: #fdfbf7;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.flinks a {
  display: block;
  padding: 9px 0;
  min-height: 42px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid #d8d4cc;
}

.flinks a:active { background: #eae6de; }

.flegal { text-align: center; }

.flegal .copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .04em;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-fig {
    height: 44vh;
    min-height: 240px;
    border-right: 0;
    border-bottom: 2px solid #1a1a1a;
  }
  .hero-text {
    padding: 36px 22px 46px;
  }
  h1 { max-width: 18ch; }
  .stage { grid-template-columns: 1fr; }
  .rail {
    border-right: 0;
    border-bottom: 2px solid #1a1a1a;
    padding: 26px 20px 30px;
  }
  .content { padding: 26px 20px 48px; }
  .prose > section { scroll-margin-top: 118px; }
  .footgrid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fbrand { grid-column: 1 / -1; }
  .flegal { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footgrid { grid-template-columns: 1fr; }
  .flegal { text-align: left; }
  menu.sheet-menu a { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation: none !important;
    transition: none !important;
  }
  .hero-img { transform: none; }
}

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