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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --mute: #555555;
  --soft: #d8d8d8;
  --r: 18px;
  --wrap: 1180px;
  --bar: 6.2rem;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

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

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.strip {
  margin: 0;
  padding: 0.4rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
}

.dock { position: relative; justify-self: start; }

.dock summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  background: var(--paper);
}

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

.dock summary:hover,
.dock[open] summary {
  background: var(--ink);
  color: var(--paper);
}

.grip {
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.dock-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.55rem);
  min-width: 258px;
  max-width: calc(100vw - 1.6rem);
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
}

.dock-menu li { margin: 0; }

.dock-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}

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

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.wordmark {
  justify-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.jump {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

/* ---------- 头条 ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 12vw, 8.5rem) 1.25rem;
  overflow: hidden;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--paper);
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(3rem, 9vw, 10rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
}

.lede {
  margin: 1.9rem auto 0;
  max-width: 44ch;
  font-size: 1.12rem;
  line-height: 1.66;
  font-weight: 400;
  color: var(--paper);
}

.lede::before {
  content: "";
  display: block;
  width: 66px;
  height: 3px;
  margin: 0 auto 1.3rem;
  background: var(--paper);
}

.collage { position: absolute; inset: 0; z-index: 1; }

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: var(--r);
  background: #111111;
}

.shot img { display: block; width: 100%; height: auto; }

.shot-a {
  left: clamp(1rem, 4vw, 4rem);
  top: clamp(3rem, 11vh, 6rem);
  width: clamp(98px, 14vw, 208px);
  transform: rotate(-5deg);
}

.shot-b {
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 9vh, 4.5rem);
  width: clamp(88px, 12vw, 186px);
  transform: rotate(4deg);
}

/* ---------- 主体 ---------- */

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5.5rem) 1.25rem;
}

.body { min-width: 0; }

.content {
  display: grid;
  gap: 1.4rem;
}

.content > section {
  scroll-margin-top: 8rem;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}

.content small {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.content h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.content h3 {
  margin: 1.7rem 0 0.7rem;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.content p {
  margin: 0 0 1rem;
  max-width: 66ch;
}

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

.content ul,
.content ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
  max-width: 66ch;
}

.content li { padding-left: 0.15rem; }

.content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.content blockquote {
  margin: 1.4rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 4px solid var(--ink);
  font-size: 1.08rem;
}

.content img {
  display: block;
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--ink);
}

.content figure { margin: 1.3rem 0; }

.content table { width: 100%; border-collapse: collapse; }

.content th,
.content td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--soft);
}

/* ---------- 侧栏 ---------- */

.rail {
  position: sticky;
  top: 7.4rem;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}

.rail small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.rail h2 {
  margin: 0.35rem 0 1rem;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
  display: grid;
  gap: 0.1rem;
}

.rail li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0;
  border-top: 1px solid var(--soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.rail li:first-child a { border-top: 0; }

.rail li a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  color: var(--mute);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

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

.rail li a:hover::before { color: var(--paper); }

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

.foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  padding: clamp(2.8rem, 9vw, 6rem) clamp(1.25rem, 6vw, 5rem) 2rem;
  background: var(--ink);
  color: var(--paper);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 2.2rem;
  font-size: clamp(2rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.foot-cta a {
  color: var(--paper);
  text-decoration: none;
}

.foot-col {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 2px solid var(--paper);
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
}

.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot small {
  display: block;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid #3a3a3a;
  font-size: 1rem;
  color: #bdbdbd;
}

.foot-legal { grid-column: 1 / 3; margin-bottom: 0; }

.foot-top { grid-column: 3 / -1; text-align: right; }

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  color: var(--paper);
  text-decoration: none;
}

.foot-top a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 动效 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .content { gap: 1.1rem; }
}

@media (max-width: 760px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { grid-column: 1 / 2; }
  .foot-top { grid-column: 2 / 3; }
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 3.2rem 1.15rem 3.4rem;
  }
  .hero h1 { max-width: 100%; font-size: clamp(2.6rem, 13vw, 4.6rem); }
  .lede { font-size: 1.04rem; margin-top: 1.4rem; }
  .collage {
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    width: 100%;
    max-width: 380px;
    margin: 2.2rem auto 0;
  }
  .shot { position: static; width: auto; transform: none; }
  .shot-a { transform: rotate(-2.5deg); }
  .shot-b { transform: rotate(2deg); }
}

@media (max-width: 400px) {
  .bar { padding: 0.6rem 0.7rem; gap: 0.4rem; }
  .dock summary { padding: 0.45rem 0.65rem; }
  .wordmark { font-size: 1rem; padding: 0.35rem 0.25rem; }
  .jump { padding: 0.35rem 0.2rem; font-size: 0.98rem; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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