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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --mute: #6b6b6b;
  --soft: #e6e6e6;
  --sans: 'Outfit', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Rubik', 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 4.2vw, 58px);
  --rule: 2px solid #000000;
}

*,
*::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(--text);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--ink); }

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--paper);
  border-top: var(--rule);
}

.dock nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 6px 8px;
}

.dock-wing {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-wing::-webkit-scrollbar { display: none; }
.dock-wing--end { justify-content: flex-end; }

.dock nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.dock nav a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border: 1.5px solid currentColor;
}

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

.dock-brand {
  border: var(--rule);
  padding: 0 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  font-size: 15px !important;
  white-space: nowrap;
}

.dock-brand::before { display: none; }

/* ---------- 头版 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 5vh, 60px) var(--pad) clamp(80px, 11vh, 120px);
  border-bottom: var(--rule);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 7.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-dek {
  max-width: 44ch;
  margin: 0 0 0 auto;
  padding-top: 14px;
  border-top: var(--rule);
  font-size: 17px;
  line-height: 1.6;
  color: #2a2a2a;
}

.hero-figure {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  height: clamp(280px, 62vh, 620px);
  overflow: hidden;
  border: var(--rule);
  background: var(--ink);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  will-change: transform;
}

.hero-plate {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #000 0 3px, #fff 3px 9px);
}

.hero-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 12px;
  background: var(--paper);
  border-top: var(--rule);
  border-right: var(--rule);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 正文区 + 右栏 ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 21vw, 296px);
  align-items: start;
  gap: clamp(24px, 4vw, 66px);
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 66px) var(--pad) 0;
}

.lead-main { min-width: 0; }

main section[id] { scroll-margin-bottom: 100px; }

.lead-main section {
  padding-bottom: clamp(28px, 4vw, 52px);
  margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--soft);
}

.lead-main section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lead-main h2 {
  margin: clamp(30px, 4vw, 52px) 0 0;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead-main h3 {
  margin: 30px 0 0;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead-main h2 + hr,
.lead-main h3 + hr {
  width: 68px;
  margin: 14px 0 0;
  border: 0;
  border-top: 4px solid var(--ink);
}

.lead-main hr {
  border: 0;
  border-top: 1px solid var(--soft);
  margin: 26px 0;
}

.lead-main p {
  margin: 0 0 20px;
  max-width: 68ch;
}

.lead-main section > p:first-of-type::first-letter {
  float: left;
  font-family: var(--sans);
  font-size: 3.9em;
  font-weight: 700;
  line-height: 0.78;
  padding: 6px 12px 0 0;
  color: var(--ink);
}

.lead-main ul,
.lead-main ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  max-width: 66ch;
}

.lead-main li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.lead-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 2px;
  background: var(--ink);
}

.lead-main blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.02em;
}

.lead-main blockquote p { margin: 0 0 8px; }
.lead-main blockquote p:last-child { margin-bottom: 0; }

.lead-main img {
  width: 100%;
  height: auto;
  margin: 26px 0;
  border: var(--rule);
  filter: grayscale(1);
}

.lead-main figure { margin: 26px 0; }

.lead-main figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  font-size: 16px;
  color: var(--mute);
}

.lead-main table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.lead-main th,
.lead-main td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft);
  text-align: left;
}

.lead-main th {
  font-family: var(--sans);
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

.lead-main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: #f2f2f2;
  padding: 1px 5px;
}

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 26px;
  border-top: 4px solid var(--ink);
  padding-top: 14px;
  counter-reset: rail;
}

.rail h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rail hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 10px 0 8px;
}

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

.rail li { counter-increment: rail; }

.rail li a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 42px;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
}

.rail li a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.rail li a:hover {
  padding-left: 6px;
  background: var(--ink);
  color: var(--paper);
}

.rail li a:hover::before { color: #bbb; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: clamp(16px, 3vw, 44px);
  margin-top: clamp(36px, 6vw, 84px);
  padding: clamp(34px, 6vw, 72px) var(--pad) clamp(92px, 12vw, 128px);
  border-top: var(--rule);
}

.foot-brand a {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(1.9rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 16px;
  max-width: 430px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.foot-legal {
  font-size: 16px;
  color: var(--mute);
  white-space: nowrap;
}

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .lead { grid-template-columns: minmax(0, 1fr); }

  .rail {
    position: static;
    order: 2;
    margin-top: 8px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .foot nav { justify-content: flex-start; }
  .foot-legal { white-space: normal; }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 22px;
    padding-top: 26px;
    padding-bottom: clamp(64px, 9vh, 90px);
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10.6vw, 3.3rem);
    line-height: 0.98;
    margin-bottom: 16px;
  }

  .hero-dek {
    max-width: none;
    font-size: 16px;
  }

  .hero-figure {
    grid-column: 1;
    grid-row: 2;
    height: 40vh;
    min-height: 190px;
  }

  .dock nav a {
    font-size: 16px;
    padding: 0 9px;
  }

  .dock-brand { padding: 0 10px !important; }

  .lead-main section > p:first-of-type::first-letter { font-size: 3.2em; }
}

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

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