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

:root {
  --ink: #0d0d0d;
  --ink2: #120b1a;
  --vio: #8000ff;
  --mag: #ff00ff;
  --txt: #ece5f4;
  --dim: #a99cbb;
  --line: rgba(255, 0, 255, .26);
  --hair: rgba(128, 0, 255, .28);
  --mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --sans: "Barlow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --cond: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 104px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(128, 0, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 0, 255, .11) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px;
  color: var(--txt);
  font: 400 16.5px/1.68 var(--sans);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-areas:
    "rail main"
    "rail foot";
  align-items: start;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .042) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; }

a { color: #e9c8ff; text-decoration-color: rgba(255, 0, 255, .5); }
a:hover { color: #fff; }

::selection { background: var(--mag); color: #0d0d0d; }

:focus-visible {
  outline: 2px solid var(--mag);
  outline-offset: 2px;
}

h1 {
  font: 700 clamp(38px, 6.2vw, 72px)/1.04 var(--cond);
  letter-spacing: .012em;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 0 26px rgba(128, 0, 255, .8), 0 0 4px rgba(255, 0, 255, .7);
  animation: jitter 6s infinite steps(1);
}

@keyframes jitter {
  0%, 95% { transform: none; }
  96% { transform: translate(-2px, 1px) skewX(-1.6deg); }
  97% { transform: translate(2px, -1px) skewX(1.5deg); }
  98% { transform: none; }
}

h2 {
  font: 600 clamp(23px, 3vw, 32px)/1.22 var(--cond);
  letter-spacing: .02em;
  margin: 36px 0 12px;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, .38);
}

h3 {
  font: 600 19px/1.4 var(--cond);
  letter-spacing: .04em;
  margin: 26px 0 8px;
  color: #f4dcff;
}

p { margin: 0 0 16px; }

small {
  display: block;
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: .24em;
  color: var(--mag);
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(255, 0, 255, .6);
}

small + h2 { margin-top: 0; }

ul, ol { padding-left: 1.2em; }
li { margin: 6px 0; }

hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 28px 0;
}

/* ============ 左栏 ============ */
.rail {
  grid-area: rail;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 16px 30px;
  border-right: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(13, 13, 13, .97), rgba(13, 13, 13, .88));
}

.rail .kick { margin-bottom: 10px; }

.rail-h {
  font: 600 15px/1.3 var(--mono);
  letter-spacing: .2em;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 0 12px rgba(128, 0, 255, .9);
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav li { margin: 0; animation: rise .5s both; }
.rail-nav li:nth-child(2) { animation-delay: .04s; }
.rail-nav li:nth-child(3) { animation-delay: .08s; }
.rail-nav li:nth-child(4) { animation-delay: .12s; }
.rail-nav li:nth-child(5) { animation-delay: .16s; }
.rail-nav li:nth-child(6) { animation-delay: .2s; }
.rail-nav li:nth-child(7) { animation-delay: .24s; }

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

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-left: 2px solid var(--hair);
  color: var(--dim);
  text-decoration: none;
  font-size: 15.5px;
  transition: color .18s, background .18s, border-color .18s;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #fff;
  border-left-color: var(--mag);
  background: rgba(255, 0, 255, .1);
  text-shadow: 0 0 12px rgba(255, 0, 255, .8);
}

/* ============ 正文骨架 ============ */
main { grid-area: main; min-width: 0; }

.doc { display: block; }

.doc > section {
  max-width: 74ch;
  margin: 0 auto;
  padding: 40px 28px;
}

.doc > section + section { border-top: 1px dashed var(--hair); }

.doc > section > :first-child { margin-top: 0; }

.doc ul li::marker { color: var(--mag); }

.doc img {
  border: 1px solid var(--line);
  border-radius: 10px;
  height: auto;
}

.doc a { text-underline-offset: 3px; }

/* ============ 首屏 ============ */
.doc > .hero {
  max-width: none;
  margin: 0;
  padding: 72px 32px 132px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: 34px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  background:
    radial-gradient(ellipse 62% 52% at 22% 38%, rgba(128, 0, 255, .22), transparent 70%),
    radial-gradient(ellipse 46% 44% at 84% 72%, rgba(255, 0, 255, .16), transparent 72%);
}

.doc > .hero + section { border-top: 0; }

.hero-txt { position: relative; z-index: 2; text-align: center; }

.kw {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: .22em;
  color: var(--mag);
  text-shadow: 0 0 12px rgba(255, 0, 255, .7);
}

.lede {
  max-width: 44ch;
  margin: 0 auto 26px;
  color: var(--dim);
  font-size: 17px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 26px;
  border: 1px solid var(--mag);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font: 600 16px/1 var(--sans);
  letter-spacing: .1em;
  background: rgba(255, 0, 255, .1);
  box-shadow: 0 0 20px rgba(255, 0, 255, .28) inset;
  transition: background .2s, box-shadow .2s, transform .2s;
}

.cta:hover,
.cta:focus-visible {
  background: var(--mag);
  color: #0d0d0d;
  box-shadow: 0 0 26px rgba(255, 0, 255, .7);
  transform: translateY(-2px);
}

.hero-fig { position: relative; z-index: 1; }

.hero-img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  filter: saturate(1.15) contrast(1.05);
  box-shadow: 0 0 0 1px rgba(128, 0, 255, .3), 0 0 42px rgba(128, 0, 255, .28);
}

.wire {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 0, 255, .18), transparent 62%),
    repeating-linear-gradient(45deg, rgba(128, 0, 255, .18) 0 2px, transparent 2px 15px);
}

.hero-big {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.12em;
  margin: 0;
  font: 700 clamp(64px, 16vw, 210px)/.8 var(--cond);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 255, .3);
  pointer-events: none;
  user-select: none;
}

/* ============ 页脚 ============ */
footer {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--hair);
  font-size: 14.5px;
  color: var(--dim);
}

footer p { margin: 0; }

footer small {
  margin: 0;
  font: 400 14.5px/1.5 var(--sans);
  letter-spacing: 0;
  color: var(--dim);
  text-shadow: none;
}

footer a { color: var(--mag); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============ 底部固定条 ============ */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(13, 13, 13, .95);
  border-top: 1px solid var(--mag);
  box-shadow: 0 -14px 44px rgba(128, 0, 255, .24);
}

.brand { display: flex; align-items: center; flex: none; }

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 10px 2px 0;
  font: 700 19px/1 var(--cond);
  letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 0, 255, .8);
}

.brand-logo { display: block; height: 28px; width: auto; }

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

.dock-nav ul {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-nav ul::-webkit-scrollbar { display: none; }

.dock-nav li { margin: 0; flex: none; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s, text-shadow .18s;
}

.dock-nav a:hover,
.dock-nav a:focus-visible {
  color: #fff;
  border-color: var(--mag);
  background: rgba(255, 0, 255, .12);
  text-shadow: 0 0 12px rgba(255, 0, 255, .8);
}

.find {
  display: flex;
  gap: 6px;
  flex: none;
  margin-left: auto;
}

.find input {
  width: 148px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--ink2);
  color: var(--txt);
  font: 400 15px/1.4 var(--sans);
}

.find input::placeholder { color: #7d6f90; }

.find input.miss {
  border-color: var(--mag);
  animation: shake .26s 2;
}

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.find button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--mag);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 0, 255, .95), rgba(128, 0, 255, .95));
  color: #fff;
  font: 600 15px/1.4 var(--sans);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}

.find button:hover { box-shadow: 0 0 20px rgba(255, 0, 255, .7); transform: translateY(-1px); }

/* ============ 移动端 ============ */
@media (max-width: 900px) {
  body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "rail" "main" "foot";
    padding-bottom: 128px;
    background-size: 48px 48px, 48px 48px;
  }

  .rail {
    position: static;
    height: auto;
    overflow: visible;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .rail .kick { margin-bottom: 6px; }

  .rail-h { margin-bottom: 8px; }

  .rail-nav ul {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rail-nav ul::-webkit-scrollbar { display: none; }

  .rail-nav li { flex: none; animation: none; }

  .rail-nav a {
    border-left: 0;
    border: 1px solid var(--hair);
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
    color: var(--txt);
  }

  .doc > section { padding: 30px 17px; }

  .doc > .hero {
    padding: 34px 17px 78px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }

  .hero-big { font-size: clamp(52px, 21vw, 130px); bottom: -.1em; }

  .hero-fig { max-width: 460px; margin: 0 auto; width: 100%; }

  .lede { font-size: 16.5px; }

  .dock {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .brand-link { font-size: 17px; }

  .dock-nav { order: 3; flex: 1 1 100%; }

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

  .find input { width: 100%; min-width: 0; }

  .find button { flex: none; }

  footer { padding: 18px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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