@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --bg: #000000;
  --panel: #121212;
  --panel-2: #0a0a0b;
  --line: #242428;
  --fg: #EDEDF1;
  --dim: #8C8C97;
  --neon: #7CFFB2;
  --blue: #6E8BFF;
  --gold: #E9C97A;
  --r: 18px;
  --head: 'Lexend Mega', 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--neon); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px; }

.page { overflow-x: clip; }

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(12px, 3vw, 26px);
  background: rgba(0, 0, 0, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.burger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--head);
  font-size: .76rem;
  letter-spacing: .22em;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.burger::before {
  content: '';
  width: 15px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 5px 0 var(--neon), 0 -5px 0 var(--neon);
}
.burger:hover { border-color: var(--neon); color: var(--neon); }

.brand {
  justify-self: center;
  padding: 10px 6px;
  font-family: var(--head);
  font-size: 1.06rem;
  letter-spacing: .16em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(124, 255, 178, .38);
}
.brand:hover { color: #fff; text-shadow: 0 0 22px rgba(110, 139, 255, .6); }

.search { justify-self: end; margin: 0; }
.search input {
  width: clamp(88px, 26vw, 178px);
  min-height: 44px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--neon); outline: none; box-shadow: 0 0 0 1px var(--neon); }

/* ---------- 骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 0 clamp(20px, 3vw, 44px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 26px);
}
main { min-width: 0; }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 18vh 0 14vh;
}
.hero.slim { min-height: 0; padding: 14vh 0 9vh; }

.hero-fig {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
  margin: 0;
  overflow: hidden;
  border-bottom-left-radius: var(--r);
}
.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .74) 44%, rgba(0, 0, 0, .22) 100%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(1.08); }
.hero-void {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(58% 50% at 72% 18%, rgba(110, 139, 255, .34), transparent 72%),
    radial-gradient(52% 58% at 28% 82%, rgba(124, 255, 178, .22), transparent 72%),
    #0a0a0b;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 70px;
  background: linear-gradient(90deg, var(--neon), var(--blue) 55%, transparent);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: .62;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }

.kicker {
  margin: 0;
  font-family: var(--head);
  font-size: .78rem;
  letter-spacing: .34em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(124, 255, 178, .55);
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--head);
  font-size: clamp(2.1rem, 6.4vw, 4.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-shadow: 0 0 28px rgba(110, 139, 255, .3);
}

.lede { margin: 0; max-width: 44ch; color: #B6B6C1; font-size: 1.02rem; }

.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 28px;
  border: 1px solid var(--neon);
  border-radius: 999px;
  font-family: var(--head);
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--neon);
  transition: background .25s, color .25s, box-shadow .25s;
}
.cta:hover { background: var(--neon); color: #000; box-shadow: 0 0 26px rgba(124, 255, 178, .42); }

/* ---------- 正文 ---------- */
main > div:not(.hero) {
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
main > div[id] { scroll-margin-top: 86px; }
main > div.hit {
  background: linear-gradient(180deg, rgba(124, 255, 178, .07), transparent 62%);
  border-radius: var(--r);
}

main > div :where(p, ul, ol, h2, h3, h4, blockquote, table) { max-width: 70ch; }

main > div h2 {
  margin: 0 0 18px;
  font-family: var(--head);
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.012em;
}
main > div h2 > span {
  padding-bottom: 8px;
  background-image: linear-gradient(var(--neon), var(--neon));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
}

main > div h3 {
  margin: 28px 0 10px;
  font-family: var(--head);
  font-size: 1.08rem;
  line-height: 1.4;
  color: #fff;
}

main > div p { margin: 0 0 16px; color: #C6C6CF; }
main > div ul, main > div ol { margin: 0 0 18px; padding-left: 1.25em; }
main > div li { margin: 0 0 8px; color: #C6C6CF; }
main > div li::marker { color: var(--neon); }
main > div a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
main > div strong { color: #fff; }
main > div blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--blue);
  background: var(--panel-2);
  border-radius: 0 var(--r) var(--r) 0;
  color: #DADAE2;
}
main > div table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: .95rem; }
main > div th, main > div td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
main > div th { background: var(--panel); font-family: var(--head); font-size: .84rem; }
main > div code {
  padding: 1px 6px;
  background: var(--panel);
  border-radius: 6px;
  font-family: ui-monospace, 'SFMono-Regular', monospace;
  font-size: .9em;
}
main > div img { margin: 18px 0; border-radius: var(--r); }
main > div figure { margin: 22px 0; }

/* ---------- 侧栏 ---------- */
.dock {
  position: sticky;
  top: 88px;
  z-index: 30;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 28px 0 44px;
}

.dock h2 {
  margin: 0;
  font-family: var(--head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--dim);
}
.dock h2 span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon);
}

.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail li { margin: 0; }
.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .93rem;
  color: #B7B7C2;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rail a:hover, .rail a:focus-visible {
  background: var(--panel);
  border-color: var(--line);
  color: #fff;
  transform: translateX(2px);
}
.rail .n { font-family: var(--head); font-size: .67rem; letter-spacing: .1em; color: var(--neon); opacity: .75; }

/* ---------- 遮罩菜单 ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px clamp(16px, 5vw, 44px) 48px;
  background: #000;
  overflow-y: auto;
}
body[data-menu='open'] { overflow: hidden; }
body[data-menu='open'] .sheet { display: flex; }

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.close {
  min-height: 44px;
  padding: 0 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--head);
  font-size: .76rem;
  letter-spacing: .2em;
  cursor: pointer;
}
.close:hover { border-color: var(--neon); color: var(--neon); }

.sheet ul {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.sheet li { margin: 0; }
.sheet a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel-2);
  font-family: var(--head);
  font-size: clamp(1rem, 3.6vw, 1.22rem);
  color: #E6E6EC;
  transition: border-color .2s, background .2s, color .2s;
}
.sheet a:hover { border-color: var(--neon); background: #0e1410; color: #fff; }
.sheet .n { font-size: .7rem; letter-spacing: .14em; color: var(--neon); opacity: .8; }

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1240px;
  margin: 44px auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(14px, 3vw, 26px) 36px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
address {
  font-family: var(--head);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 0 14px rgba(110, 139, 255, .35);
}
.sub { display: flex; flex-wrap: wrap; gap: 8px; }
.sub input {
  width: min(58vw, 220px);
  min-height: 44px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
}
.sub input::placeholder { color: var(--dim); }
.sub input:focus { border-color: var(--blue); outline: none; }
.sub button {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-family: var(--head);
  font-size: .76rem;
  letter-spacing: .2em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.sub button:hover { background: var(--blue); color: #000; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.foot-links li { margin: 0; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .89rem;
  color: #BFBFC9;
  transition: border-color .2s, color .2s;
}
.foot-links a:hover { border-color: var(--neon); color: var(--neon); }

.cr { margin: 0; color: var(--dim); font-size: .84rem; letter-spacing: .06em; }

/* ---------- 动效 ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cta, .rail a, .sheet a, .foot-links a { transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .dock { position: static; z-index: 0; padding: 0; }
  .rail, .rail-h { display: none; }
  .hero { justify-content: flex-start; min-height: 88vh; min-height: 88svh; padding: 46px 0 92px; }
  .hero.slim { padding: 40px 0 70px; }
  .hero-fig { inset: 0 0 0 20%; }
  .hero::after { height: 54px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .burger { padding: 0 14px; font-size: .7rem; letter-spacing: .12em; }
  .brand { font-size: .95rem; letter-spacing: .1em; }
  .search input { width: 74px; padding: 0 12px; }
  .hero { min-height: 84vh; min-height: 84svh; }
  .hero-fig { inset: 0 0 0 12%; }
  .sub input { width: 100%; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .sub { width: 100%; }
}

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