@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rule: rgba(0, 0, 0, 0.16);
  --rule-soft: rgba(0, 0, 0, 0.08);
  --rule-inv: rgba(255, 255, 255, 0.28);
  --u: 8px;
  --edge: clamp(16px, 4.4vw, 56px);
  --sans: 'Jost', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Bodoni Moda', 'Songti SC', 'Noto Serif SC', 'Times New Roman', Georgia, serif;
}

*,
*::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: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ---------- 顶部 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u);
  min-height: 64px;
  padding: 8px var(--edge);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.drawer {
  position: relative;
}

.drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.drawer-btn::-webkit-details-marker {
  display: none;
}

.drawer-btn::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.drawer[open] .drawer-btn {
  background: var(--ink);
  color: var(--paper);
}

.pills {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 10px;
  list-style: none;
  display: grid;
  gap: 6px;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--ink);
  max-height: 70vh;
  overflow: auto;
}

.pills a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--edge) 80px;
  overflow: hidden;
  background-color: #000;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.06);
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  color: var(--paper);
}

.hero-badge {
  position: absolute;
  right: 0;
  bottom: -3.2em;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid var(--rule-inv);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- 主体网格 ---------- */

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--edge) clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--u);
  align-items: start;
}

.rail {
  grid-column: 1 / span 3;
  position: sticky;
  top: 88px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.rail-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  line-height: 1.5;
}

.rail hr {
  width: 40px;
  margin: 12px 0 18px;
  border-top: 2px solid var(--ink);
}

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

.rail-list li + li {
  border-top: 1px solid var(--rule-soft);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-bottom-color: var(--ink);
}

.column {
  grid-column: 5 / span 8;
  min-width: 0;
}

.body {
  counter-reset: sec;
}

.body > section {
  counter-increment: sec;
  padding: clamp(28px, 4.4vw, 60px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}

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

.body > section:first-child > h2:first-child {
  margin-top: 0;
}

.body h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.body h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: rgba(0, 0, 0, 0.55);
}

.body h2 + hr {
  width: 64px;
  margin: 0 0 26px;
  border-top: 2px solid var(--ink);
}

.body h3 {
  margin: 34px 0 10px;
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.9vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.body h3 + hr {
  width: 32px;
  margin: 0 0 18px;
  border-top: 1px solid var(--ink);
}

.body p {
  margin: 0 0 1.15em;
  font-size: 18px;
  line-height: 1.8;
  max-width: 66ch;
}

.body a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

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

.body ul,
.body ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
  max-width: 64ch;
}

.body li {
  margin-bottom: 0.55em;
  line-height: 1.75;
}

.body blockquote {
  margin: 0 0 1.4em;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.15em;
  line-height: 1.6;
}

.body blockquote p {
  font-size: inherit;
  margin-bottom: 0.6em;
}

.body figure {
  margin: 0 0 1.6em;
}

.body figcaption {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.6);
}

.body img {
  width: 100%;
  border: 1px solid var(--rule);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: 16px;
}

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

.body th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}

.body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
}

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

.foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px var(--u);
  padding: clamp(36px, 5vw, 64px) var(--edge) 0;
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.foot p {
  margin: 0;
}

.foot-mark {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 15px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  border-bottom-color: var(--paper);
}

.foot-copy {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: clamp(20px, 4vw, 40px);
  padding: 18px var(--edge) 34px;
  border-top: 1px solid var(--rule-inv);
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  summary,
  .hero-media {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
      transform 0.18s ease;
  }
}

@media (max-width: 1000px) {
  .rail {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 8px;
  }

  .rail hr {
    margin: 10px 0 10px;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .rail-list li + li {
    border-top: 0;
  }

  .rail-list li {
    border-bottom: 1px solid var(--rule-soft);
  }

  .column {
    grid-column: 1 / -1;
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 96px;
    align-content: center;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 1.16;
  }

  .hero-badge {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -3.4em;
    white-space: nowrap;
  }

  .body p,
  .body ul,
  .body ol {
    font-size: 17px;
  }

  .foot {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .foot-copy {
    justify-self: stretch;
  }
}

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