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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --hair: #e4e4e4;
  --r: 28px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --sans: Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Newsreader, Georgia, "Songti SC", "SimSun", 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: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

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

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

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.24em;
}
.ticker p { margin: 0; }

/* ---------- 页头 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.mark:hover { transform: translateY(-2px); }
.mark img { width: 22px; height: 22px; object-fit: contain; }

.pills {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pills::-webkit-scrollbar { display: none; }
.pills ul {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  min-width: max-content;
}
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.pills a:hover,
.pills a:focus-visible,
.pills a.is-on {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 版心 ---------- */
.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-content: center;
  min-height: 100vh;
  margin-top: 1rem;
  padding: clamp(2.5rem, 9vw, 7rem) 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
}

.ghost {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  z-index: 0;
  margin: 0;
  font-size: clamp(3.5rem, 20vw, 16rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #171717;
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.hero-copy h1 {
  font-size: clamp(2.75rem, 8.5vw, 6.5rem);
  margin-bottom: 1.15rem;
}
.lede {
  max-width: 34ch;
  font-size: clamp(1.0625rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: #d9d9d9;
}
.cta { margin: 1.75rem 0 0; }
.pill-lg {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.pill-lg:hover { transform: translateX(5px); }

.collage {
  position: relative;
  z-index: 1;
  min-height: 21rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.shot {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: #121212;
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.shot-a { position: absolute; top: 0; left: clamp(1.25rem, 4vw, 3rem); width: min(64%, 20rem); }
.shot-b { position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 0; width: min(48%, 13rem); outline: 1px solid #2b2b2b; }

/* ---------- 正文 ---------- */
.stage { padding: clamp(1.5rem, 5vw, 4rem) 0 0; }

.doc { max-width: 46rem; }

.doc article {
  scroll-margin-top: 6.5rem;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--hair);
}
.doc article:first-child { border-top: 0; padding-top: clamp(0.5rem, 2vw, 1.5rem); }

.doc h2 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin: 0 0 1.15rem;
}
.doc h3 {
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  margin: 2.25rem 0 0.75rem;
}
.doc p { font-size: 1.0625rem; line-height: 1.78; }
.doc ul, .doc ol { margin: 0 0 1.4em; padding-left: 1.3rem; list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: 0.45em 0; font-size: 1.0625rem; line-height: 1.7; }
.doc a { text-decoration: underline; text-underline-offset: 0.22em; }
.doc strong { font-weight: 700; }
.doc blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
}
.doc blockquote p:last-child { margin: 0; }
.doc img, .doc figure img { border-radius: var(--r); width: 100%; }
.doc figure { margin: 2rem 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1.5rem 0; }
.doc th, .doc td { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--hair); text-align: left; }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.95em; }

/* ---------- 右侧索引 ---------- */
.rail { display: none; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r) var(--r) 0 0;
}

.foot-top {
  display: grid;
  gap: 1.75rem;
  align-items: end;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}
.foot-brand { font-size: clamp(2rem, 7vw, 4.5rem); letter-spacing: -0.05em; }

.sub { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sub input {
  flex: 1 1 12rem;
  min-height: 52px;
  padding: 0 1.2rem;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: #101010;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}
.sub input::placeholder { color: #9a9a9a; }
.sub button {
  min-height: 52px;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sub button:hover { transform: translateY(-2px); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid #262626;
}
.foot-grid dl { margin: 0; }
.foot-grid dt {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: #8d8d8d;
}
.foot-grid dd { margin: 0; font-size: 1rem; line-height: 1.6; color: #dcdcdc; }
.foot-grid dd p { margin: 0; }
.foot-grid ul li a {
  display: inline-block;
  padding: 0.55rem 0;
  min-height: 44px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-grid ul li a:hover { color: var(--paper); transform: translateX(3px); }

.foot-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
  text-align: center;
  font-size: 1rem;
  color: #9a9a9a;
}
.foot-base p { margin: 0; }
.to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: var(--paper);
}
.foot :focus-visible { outline-color: var(--paper); }

/* ---------- 动效 ---------- */
.js .doc article {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .doc article.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (min-width: 48rem) {
  .foot-top { grid-template-columns: 1.15fr 1fr; }
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .collage { min-height: 26rem; }
  .shot-a { width: min(70%, 22rem); }
}

@media (min-width: 85rem) {
  .rail {
    display: block;
    position: fixed;
    right: 1.25rem;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
  }
  .rail ul { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
  .rail a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px;
    font-size: 1rem;
    color: #6a6a6a;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .rail a:hover, .rail a.is-on { color: var(--ink); background: #f1f1f1; }
  .rail i { font-style: normal; font-size: 0.8rem; letter-spacing: 0.12em; color: #b6b6b6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .doc article { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

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