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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000;
  --paper: #fff8ec;
  --card: #ffffff;
  --bd: 3px solid #000;
  --sh: 6px 6px 0 #000;
  --sh-sm: 4px 4px 0 #000;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
}

/* ---------- 顶部细条 ---------- */
.hd { background: var(--paper); }

.hd__ticker {
  overflow: hidden;
  background: var(--blue);
  border-bottom: var(--bd);
  padding: 6px 0;
}

.hd__roll {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 18px;
  animation: roll 26s linear infinite;
}

.hd__word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hd__star { font-size: 12px; }

@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 主横条 ---------- */
.hd__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: var(--bd);
  flex-wrap: wrap;
}

.burger {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
  border: var(--bd);
  background: var(--red);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  flex: 0 0 auto;
}

.burger:active,
.menu__close:active,
.ft__btn:active { transform: translate(3px, 3px); box-shadow: none; }

.hd__brand {
  margin-inline: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: var(--bd);
  background: var(--card);
  box-shadow: var(--sh-sm);
  transform: rotate(-1.4deg);
}

.side {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.side__a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
}

.side__a:hover { border-color: #000; background: var(--blue); }

/* ---------- 全屏遮罩菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--blue);
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  transform: translateY(-102%);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  visibility: hidden;
}

body.menu-open .menu {
  transform: translateY(0);
  visibility: visible;
}

body.menu-open { overflow: hidden; }

.menu__top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: var(--bd);
}

.menu__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.menu__close {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  border: var(--bd);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  cursor: pointer;
}

.menu__nav {
  margin-top: 18px;
  overflow-y: auto;
}

.menu__a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 4.6vw, 30px);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: var(--bd);
}

.menu__a:hover { background: var(--red); }

.no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 2px solid #000;
  padding: 1px 6px;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* ---------- 粘性锚点条 ---------- */
.jump {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: var(--bd);
}

.jump__in {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump__in::-webkit-scrollbar { display: none; }

.jump__a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-right: 2px solid #3a3a3a;
  white-space: nowrap;
}

.jump__a:hover { background: var(--blue); color: #000; }
.jump__a.on { background: var(--red); color: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--blue);
  border-bottom: var(--bd);
}

.hero__fig {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
  z-index: 1;
}

.hero__ghost {
  position: absolute;
  z-index: 1;
  left: -1vw;
  top: 8vh;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 16vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  pointer-events: none;
}

.hero__txt {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 46px;
}

.hero__h1 {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 18px;
  background: var(--red);
  border: var(--bd);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: clamp(28px, 6.2vw, 62px);
  word-break: break-word;
}

.hero__lead {
  margin: 0;
  max-width: 620px;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
  font-size: 16px;
}

/* ---------- 主体：左侧栏 + 正文 ---------- */
.stage {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.rail {
  position: sticky;
  top: 70px;
  align-self: start;
  background: var(--card);
  border: var(--bd);
  box-shadow: var(--sh);
  padding: 14px 14px 18px;
  border-radius: 4px;
  border-bottom: 8px solid var(--red);
}

.rail__h2 {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}

.rail hr {
  border: 0;
  border-top: var(--bd);
  margin: 0 0 12px;
}

.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail__list li {
  animation: pop 0.45s ease both;
}

.rail__list li:nth-child(1) { animation-delay: 0.02s; }
.rail__list li:nth-child(2) { animation-delay: 0.07s; }
.rail__list li:nth-child(3) { animation-delay: 0.12s; }
.rail__list li:nth-child(4) { animation-delay: 0.17s; }
.rail__list li:nth-child(5) { animation-delay: 0.22s; }
.rail__list li:nth-child(6) { animation-delay: 0.27s; }
.rail__list li:nth-child(7) { animation-delay: 0.32s; }

@keyframes pop {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.rail__a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #000;
  border-radius: 4px;
}

.rail__list li:last-child .rail__a { border-bottom: 0; }
.rail__a:hover { background: var(--blue); }

.stage__body { min-width: 0; }

div[id] { scroll-margin-top: 78px; }

.stage__body > div {
  border-top: var(--bd);
  padding: 26px 0 30px;
}

.stage__body > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.stage__body h2 { font-size: clamp(23px, 3.4vw, 33px); }

.stage__body h3 { font-size: clamp(19px, 2.4vw, 24px); }

.stage__body p { margin: 0 0 1em; }

.stage__body ul,
.stage__body ol { padding-left: 1.35em; margin: 0 0 1em; }

.stage__body li { margin-bottom: 0.4em; }

.stage__body hr {
  border: 0;
  border-top: var(--bd);
  margin: 14px 0 22px;
}

.stage__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.stage__body a:hover { background: var(--blue); }

.stage__body strong { background: var(--blue); padding: 0 3px; }

.stage__body figure {
  margin: 22px 0;
  padding: 10px;
  background: var(--card);
  border: var(--bd);
  border-bottom: 8px solid var(--red);
  box-shadow: var(--sh);
  border-radius: 4px;
}

.stage__body figcaption {
  font-size: 15px;
  padding-top: 8px;
  font-weight: 600;
}

.stage__body blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  background: var(--card);
  border: var(--bd);
  box-shadow: var(--sh-sm);
  border-left: 10px solid var(--blue);
  border-radius: 4px;
}

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

.stage__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card);
  border: var(--bd);
  font-size: 16px;
}

.stage__body th,
.stage__body td {
  border: 2px solid #000;
  padding: 8px 10px;
  text-align: left;
}

.stage__body th { background: var(--blue); }

.stage__body code {
  background: #000;
  color: #fff;
  padding: 1px 5px;
  font-size: 15px;
  border-radius: 3px;
}

/* ---------- 页脚 ---------- */
.ft {
  border-top: var(--bd);
  background: var(--ink);
  color: #fff;
  padding: 30px 16px 18px;
}

.ft__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.ft__logo {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 3vw, 28px);
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 6px 12px;
  min-height: 44px;
  background: var(--blue);
  color: #000;
  border: var(--bd);
  box-shadow: 4px 4px 0 var(--red);
  border-radius: 4px;
}

.ft__note {
  margin: 14px 0 0;
  font-size: 15px;
  color: #e7e7e7;
}

.ft__lab {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}

.ft__row { display: flex; gap: 10px; flex-wrap: wrap; }

.ft__in {
  flex: 1 1 150px;
  min-height: 46px;
  font: inherit;
  padding: 0 12px;
  border: var(--bd);
  border-radius: 4px;
  background: var(--paper);
  color: #000;
}

.ft__btn {
  font: inherit;
  font-weight: 700;
  min-height: 46px;
  padding: 0 20px;
  border: var(--bd);
  border-radius: 4px;
  background: var(--red);
  color: #000;
  box-shadow: var(--sh-sm);
  cursor: pointer;
}

.ft__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 30px auto 22px;
  padding-top: 22px;
  border-top: 2px solid #4a4a4a;
}

.ft__dl { margin: 0; }

.ft__dt {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 6px;
}

.ft__dd { margin: 0; }

.ft__a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.ft__a:hover { border-bottom-color: var(--red); }

.ft__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 2px solid #4a4a4a;
  flex-wrap: wrap;
}

.ft__copy {
  margin: 0;
  font-size: 15px;
  color: #dcdcdc;
}

.ft__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  color: #000;
  border: var(--bd);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--red);
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 14px 52px; }
  .rail { position: static; }
  .rail__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .rail__a { border-bottom: 2px solid #000; }
  .side { display: none; }
  .hd__bar { padding: 10px 12px; }
  .ft__head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__txt { padding-bottom: 34px; }
  .hero__ghost { top: 6vh; }
  .ft { padding: 26px 14px 16px; }
  .ft__nav { gap: 12px; }
  .ft__a { font-size: 15px; }
  .jump__a { padding: 0 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hd__roll { animation: none; }
}

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