:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --mute: #666666;
  --soft: #d9d9d9;
  --r: 18px;
  --rail: 132px;
  --sans: 'Exo', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
menu, ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, summary { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.04em;
}

::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- 左侧竖栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1.1rem .85rem 1.4rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 900;
  font-size: 21px;
}
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark span { line-height: 1; }
.mark:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #000; }

.menu { position: relative; flex: 1 1 auto; }

.menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .06em;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: #000; color: #fff; }

.bars {
  display: block;
  width: 14px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu > menu { margin-top: .55rem; }
.menu li + li { margin-top: 2px; }

.menu a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .45rem .5rem;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.menu a .dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  transition: background .18s ease, transform .18s ease;
}
.menu a:hover,
.menu a:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}
.menu a:hover .dot,
.menu a:focus-visible .dot { background: #fff; transform: rotate(45deg); }

.rail-foot { display: flex; justify-content: center; }
.rail-foot a {
  writing-mode: vertical-rl;
  min-height: 60px;
  padding: .8rem .35rem;
  font-size: 16px;
  letter-spacing: .12em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.rail-foot a:hover { background: #000; color: #fff; }

/* ---------- 主体骨架 ---------- */
.shell {
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3.5rem);
}

.stage {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 4.5rem) 0 clamp(1.1rem, 2.5vw, 2rem);
  min-height: 45vh;
}
.stage::after {
  content: "01";
  position: absolute;
  top: -.06em;
  right: -.04em;
  z-index: 0;
  font-family: var(--mono);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  pointer-events: none;
  user-select: none;
}

.hero { position: relative; z-index: 1; }

.hero h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.045em;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: end;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.lede {
  margin: 0;
  max-width: 32em;
  font-size: 17px;
  color: #111;
  border-left: 2px solid var(--line);
  padding-left: .95rem;
}

.collage {
  position: relative;
  width: clamp(200px, 26vw, 310px);
  height: clamp(150px, 24vh, 190px);
  transform: translate3d(0, calc(var(--py, 0px) * -1), 0);
  will-change: transform;
}
.collage:empty { display: none; }
.collage img {
  position: absolute;
  display: block;
  object-fit: cover;
  background: #f2f2f2;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.collage img:nth-child(1) { left: 0; top: 0; width: 56%; height: 74%; }
.collage img:nth-child(2) { right: 0; bottom: 0; width: 48%; height: 78%; }

/* ---------- 正文 + 侧栏 ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.content { min-width: 0; }
.content > :first-child { margin-top: 0; }

.content div {
  padding: clamp(2rem, 5vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}
.content div:first-child { border-top: 0; padding-top: 0; }

.content h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.content h3 { font-size: 1.25rem; margin-top: 1.8em; }
.content h2 + p { margin-top: .2rem; }

.content p,
.content li { max-width: 60ch; }

.content ul,
.content ol { padding-left: 1.3rem; margin-bottom: 1em; }
.content ul { list-style: square; }
.content ol { list-style: decimal; }
.content li { margin-bottom: .4em; }

.content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.content a:hover { background: #000; color: #fff; text-decoration: none; }

.content img {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: .6rem 0 1.2rem;
}

.content blockquote {
  margin: 1.4rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 4px solid var(--line);
  font-weight: 600;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: 1.2rem;
}
.content th,
.content td {
  padding: .6rem .5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.content hr { border: 0; border-top: 1px solid var(--soft); margin: 2rem 0; }

.side {
  position: sticky;
  top: 1.4rem;
  display: grid;
  gap: .9rem;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1rem;
}
.side-card h2 { font-size: 1.35rem; margin-bottom: .1em; }
.side-card .subtitle {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .05em;
  color: var(--mute);
  margin-bottom: 1rem;
}

.side-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: none;
  border-top: 1px solid var(--soft);
}
.side-links li:first-child a { border-top: 0; }
.side-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
}
.to-top:hover { background: #000; color: #fff; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 3.5rem) 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.f-cta a {
  display: block;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.05em;
  text-decoration: none;
}
.f-cta a:hover { -webkit-text-stroke: 1px #000; color: transparent; }

.f-nav menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .9rem;
}
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: none;
}
.f-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .04em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}

@media (max-width: 900px) {
  .rail {
    position: sticky;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: .7rem;
    padding: .55rem .9rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .mark { margin: 0; width: 42px; height: 42px; }
  .menu { flex: 0 0 auto; margin-left: auto; position: static; }
  .menu > summary { padding: .45rem .85rem; font-size: 16px; }
  .menu > menu {
    position: absolute;
    z-index: 60;
    left: .9rem;
    right: .9rem;
    top: calc(100% + .45rem);
    margin-top: 0;
    padding: .55rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    max-height: 70vh;
    overflow: auto;
  }
  .rail-foot { margin: 0; }
  .rail-foot a {
    writing-mode: horizontal-tb;
    min-height: 44px;
    padding: .35rem .85rem;
    letter-spacing: 0;
  }
  .shell { margin-left: 0; }
  .stage::after { font-size: clamp(5rem, 22vw, 10rem); }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .collage { width: 100%; height: 180px; }
  .content div { scroll-margin-top: 5rem; }
  .content h1, .content h2 { letter-spacing: -.03em; }
  footer { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .collage { transform: none; }
}

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