:root {
  --ink: #000000;
  --paper: #ffffff;
  --mute: rgba(0, 0, 0, 0.62);
  --soft: rgba(0, 0, 0, 0.16);
  --rail: 236px;
  --pad: clamp(16px, 4vw, 44px);
  --r: 18px;
  --display: "Amatic SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", cursive, sans-serif;
  --body: Cabin, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-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(--body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  padding-left: var(--rail);
}

a { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--body); font-weight: 800; line-height: 1.25; }

/* ---------- 顶部细条 ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.ticker p {
  margin: 0;
  padding: 5px var(--pad);
  font-size: 16px;
  letter-spacing: 0.42em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 左侧固定栏 ---------- */
.mast {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 18px 24px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.logo {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
}

.mast nav { flex: 0 0 auto; }
.mast nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mast nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.mast nav a:hover,
.mast nav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(3px);
}

/* ---------- 主区骨架 ---------- */
main { display: block; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px) var(--pad) 0;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 52px);
  align-items: start;
}

.col { min-width: 0; }
.sheet { display: block; }

/* ---------- 左侧目录 ---------- */
.rail {
  position: sticky;
  top: 22px;
  border-top: 4px solid var(--ink);
  padding-top: 12px;
}
.rail h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.rail ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: 2px;
}
.rail li { counter-increment: toc; }
.rail li a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px dashed var(--soft);
}
.rail li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.rail li a:hover { border-bottom-style: solid; }
.rail-top { margin: 0; }
.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* ---------- 头部拼贴 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.5fr) 1fr;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  min-height: 45vh;
  padding: 10px 0 18px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.26) 1px, transparent 1.2px);
  background-size: 15px 15px;
  background-position: center;
}

.hero .ph {
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
}
.ph-a { transform: rotate(-3.5deg) translateY(-12px); }
.ph-b { transform: rotate(2.5deg) translateY(14px); }
.hero .ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}

.hero-t { min-width: 0; }
.hero-t h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 5.4vw, 56px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* ---------- 导读 / 引文 ---------- */
.dek { margin: 34px 0 34px; }

.kicker {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.32em;
  border-bottom: 1px solid var(--ink);
}
.kicker span { display: inline-block; }

.pull { margin: 0; }
.pull blockquote {
  margin: 0;
  padding: 2px 0 4px 22px;
  border-left: 6px solid var(--ink);
}
.pull blockquote p {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- 正文 ---------- */
.prose { font-size: 17px; line-height: 1.85; }
.prose div {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  margin-top: 48px;
  scroll-margin-top: 20px;
}
.prose div:first-child { margin-top: 8px; }
.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: 0.015em;
}
.prose h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.prose h2 span,
.prose h3 span {
  background-image: linear-gradient(transparent 68%, rgba(0, 0, 0, 0.16) 68%);
}
.prose p { margin: 0 0 16px; }
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 800; }
.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--ink);
  font-size: 19px;
  line-height: 1.6;
}
.prose blockquote p:last-child { margin: 0; }
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px 0;
  border: 2px solid var(--ink);
  border-radius: var(--r);
}
.prose figure { margin: 22px 0; }
.prose figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--mute);
}
.prose div:first-of-type > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.4em;
  font-weight: 700;
  line-height: 0.84;
  padding: 8px 10px 0 0;
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 60px;
  padding: clamp(30px, 6vw, 66px) var(--pad) clamp(26px, 4vw, 40px);
  border-top: 4px solid var(--ink);
  text-align: center;
}
footer .cta { margin: 0 0 16px; }
footer .cta a {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(42px, 10vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 6px;
}
footer .copy {
  margin: 0;
  font-size: 16px;
  color: var(--mute);
  letter-spacing: 0.08em;
}

/* ---------- 动效 ---------- */
.js .rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .rev.in {
  opacity: 1;
  transform: none;
}

/* ---------- 宽屏多栏 ---------- */
@media (min-width: 1080px) {
  .prose div {
    column-count: 2;
    column-gap: 44px;
    column-rule: 1px solid var(--soft);
  }
  .prose div > h2,
  .prose div > h3 { column-span: all; }
  .prose div > p:first-of-type { margin-top: 0; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  body { padding-left: 0; }

  .mast {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px var(--pad);
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    overflow: visible;
  }
  .logo {
    flex: 0 0 auto;
    font-size: 25px;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .mast nav {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mast nav p {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }
  .mast nav p::-webkit-scrollbar { display: none; }
  .mast nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    white-space: nowrap;
  }
  .mast nav a:hover { transform: none; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 22px;
  }
  .col { order: 1; }
  .rail { order: 2; position: static; }

  .hero {
    grid-template-columns: 1fr minmax(0, 1.9fr) 1fr;
    min-height: 40vh;
  }
  .ph-a { transform: rotate(-3deg) translateY(-6px); }
  .ph-b { transform: rotate(2deg) translateY(8px); }

  .dek { margin: 28px 0 26px; }
  .prose div { margin-top: 38px; }
  .prose div:first-of-type > p:first-of-type::first-letter { font-size: 3em; }
}

@media (max-width: 420px) {
  .hero { min-height: 34vh; }
  .hero-t h1 { font-size: clamp(24px, 7.2vw, 34px); }
}

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

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