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

:root {
  --ink: #0B0E14;
  --ink-2: #080A10;
  --ink-3: #12161f;
  --paper: #E9EEF5;
  --mint: #5AE0C8;
  --dim: #9AA7B8;
  --line: rgba(233, 238, 245, .12);
  --line-mint: rgba(90, 224, 200, .32);
  --top: 60px;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.75 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .01em;
}

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

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

p { margin: 0 0 1.1em; }

main article[id] { scroll-margin-top: 128px; }

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-mint);
  width: 84px;
  max-width: 100%;
  margin: .85rem 0 1.4rem;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: var(--top);
  padding: 0 .85rem;
  background: rgba(11, 14, 20, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-mint);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(90, 224, 200, .14);
  color: var(--mint);
  text-decoration: none;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}
.mark:hover { background: rgba(90, 224, 200, .26); transform: rotate(-6deg); }

.topbar nav { flex: 1 1 auto; min-width: 0; }

.topbar nav ul {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .62rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.topbar nav a:hover,
.topbar nav a:focus-visible { color: var(--mint); border-bottom-color: var(--mint); }

.sub {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 190px;
  padding: .35rem;
  margin: 0;
  list-style: none;
  background: var(--ink-3);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
}
.has-sub { position: relative; }
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex; }

.cta {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(90, 224, 200, .3); }

/* ---------- 锚点条 ---------- */
.anchorbar {
  position: sticky;
  top: var(--top);
  z-index: 50;
  background: rgba(8, 10, 16, .94);
  border-bottom: 1px solid var(--line);
}
.anchor-track {
  display: flex;
  gap: .1rem;
  overflow-x: auto;
  padding: 0 .55rem;
  scrollbar-width: none;
}
.anchor-track::-webkit-scrollbar { display: none; }
.anchor-track a {
  display: flex;
  align-items: center;
  gap: .38rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 .55rem;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.anchor-track a:hover { color: var(--mint); }
.anchor-track i {
  font-style: normal;
  font-size: 16px;
  color: var(--mint);
  opacity: .65;
}
.anchor-progress {
  display: block;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-content: center;
  min-height: calc(100vh - var(--top));
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .75;
  background-image: radial-gradient(rgba(90, 224, 200, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 28% 36%, #000 8%, transparent 72%);
  mask-image: radial-gradient(circle at 28% 36%, #000 8%, transparent 72%);
}
.hero > * { position: relative; }

.hero-kicker {
  margin: 0;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--mint);
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-right: .7rem;
  vertical-align: middle;
  background: var(--mint);
}

.hero-title {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.hero-title .ch {
  display: inline-block;
  animation: chIn .52s cubic-bezier(.2, .72, .2, 1) both;
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(.5em) rotate(5deg); }
  to { opacity: 1; transform: none; }
}

.hero-lede {
  margin: 0;
  max-width: 40ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.7;
}

.hero-figure {
  margin: .5rem 0 0;
  min-height: 230px;
  border-radius: 18px;
  background: var(--ink-3);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-glyph {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 20vw, 12rem);
  line-height: 1;
  background: linear-gradient(155deg, var(--mint), var(--paper) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 主体两栏 ---------- */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4.5rem;
  border-top: 1px solid var(--line);
}

.rail { display: none; }
.rail-title {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  letter-spacing: .22em;
  color: var(--mint);
}
.rail-list { margin: 0; padding: 0; list-style: none; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  padding: .3rem .55rem;
  border-radius: 10px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  transition: background .18s ease, color .18s ease;
}
.rail-list a:hover { background: var(--ink-3); color: var(--mint); }
.rail-list i {
  font-style: normal;
  color: var(--mint);
  opacity: .7;
  font-size: 16px;
}

/* ---------- 正文排版 ---------- */
.flow { min-width: 0; max-width: 74ch; }

.flow > article {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.flow > article:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.js .flow > article {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .flow > article.in { opacity: 1; transform: none; }

.flow h2, .flow h3 {
  font-family: 'Exo', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 2.2rem 0 .1rem;
}
.flow h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); font-weight: 600; }
.flow h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 500; color: var(--mint); }
.flow h2 + hr { margin-top: .7rem; }

.flow ul, .flow ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.flow li { margin-bottom: .5em; }
.flow li::marker { color: var(--mint); }

.flow strong { color: #fff; }
.flow a { text-decoration: underline; text-underline-offset: 3px; }

.flow blockquote {
  margin: 1.6em 0;
  padding: 1.15rem 1.3rem;
  border-radius: 18px;
  background: var(--ink-3);
  color: var(--paper);
}
.flow blockquote p:last-child { margin-bottom: 0; }

.flow figure { margin: 1.6em 0; }
.flow figure img { width: 100%; border-radius: 18px; }

.flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 16px;
}
.flow th, .flow td {
  padding: .6rem .7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.flow th { color: var(--mint); font-weight: 500; }

.flow code {
  background: var(--ink-3);
  padding: .1em .4em;
  border-radius: 6px;
  font-size: .95em;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
  padding: 3rem 1.25rem 2.2rem;
  background: var(--ink-2);
  border-top: 1px solid var(--line-mint);
}
.foot-word {
  display: block;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  word-break: break-word;
  background: linear-gradient(100deg, var(--mint), var(--paper) 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot h2 {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--mint);
}
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  transition: color .18s ease, padding-left .18s ease;
}
.foot li a:hover { color: var(--mint); padding-left: 6px; }
.foot-about p { color: var(--dim); font-size: 16px; margin: 0; }
.foot-legal {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.foot-legal p { margin: 0; color: var(--dim); font-size: 16px; }
.foot-legal span { color: var(--mint); }

/* ---------- 断点 ---------- */
@media (max-width: 899px) {
  .topbar nav { overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav ul { gap: .15rem; }
  .has-sub { display: flex; align-items: center; }
  .sub {
    position: static;
    display: flex;
    flex-direction: row;
    gap: .15rem;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .sub li::before {
    content: "";
    display: block;
    width: 1px;
    height: 16px;
    background: var(--line-mint);
  }
  .sub li { display: flex; align-items: center; }
}

@media (min-width: 600px) {
  .cta { display: inline-flex; }
}

@media (min-width: 900px) {
  .anchorbar { display: none; }
  .topbar { padding: 0 2rem; }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: auto auto 1fr;
    gap: .9rem 3.2rem;
    padding: 3rem 2rem 4rem;
  }
  .hero-kicker { grid-column: 1; grid-row: 1; }
  .hero-title { grid-column: 1; grid-row: 2; }
  .hero-lede { grid-column: 1; grid-row: 3; align-self: start; }
  .hero-figure { grid-column: 2; grid-row: 1 / 4; align-self: stretch; min-height: 0; margin: 0; }
  .stage {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 3.2rem;
    padding: 4.5rem 2rem 6rem;
  }
  .rail {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
  }
  .foot {
    grid-template-columns: 1.5fr .85fr 1.3fr;
    gap: 2.4rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 4rem 2rem 2.4rem;
    background: transparent;
    border-top: 0;
  }
  body { background: var(--ink); }
  .foot-wrap-bg { background: var(--ink-2); }
}

@media (min-width: 1200px) {
  .hero-lede { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .flow > article { opacity: 1; transform: none; }
}

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