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

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

:root {
  --bg: #0d0d0d;
  --ink: #e9e5f4;
  --dim: #a79fbb;
  --pri: #8000ff;
  --sec: #ff00ff;
  --line: rgba(160, 110, 255, .24);
  --panel: rgba(24, 18, 38, .72);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Figtree", "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --rail: 272px;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(128, 0, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 0, 255, .06) 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  opacity: .5;
  mix-blend-mode: screen;
}

img { max-width: 100%; }
p, li, h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- 汉堡 ---------- */
.burger {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 70;
  min-height: 44px;
  min-width: 66px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .14em;
  color: #fff;
  background: rgba(13, 13, 13, .92);
  border: 1px solid var(--pri);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(128, 0, 255, .45);
}
.burger:hover { background: rgba(128, 0, 255, .24); }
.burger:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }

/* ---------- 左侧固定栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px 26px;
  background: linear-gradient(180deg, rgba(16, 11, 26, .98), rgba(9, 9, 11, .99));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: width .26s ease, transform .3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255, 0, 255, .65);
}
.brand-logo { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex: none; }
.brand-mark { display: inline-block; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color .18s, border-color .18s, background .2s, transform .18s;
}
.rail-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--pri);
  transform: rotate(45deg);
  box-shadow: 0 0 9px var(--sec);
  transition: background .18s;
}
.rail-nav a:hover,
.rail-nav a.is-on {
  color: #fff;
  background: rgba(128, 0, 255, .16);
  border-color: var(--line);
  transform: translateX(3px);
}
.rail-nav a.is-on::before { background: var(--sec); }

.cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .12em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--pri), var(--sec));
  box-shadow: 0 0 24px rgba(255, 0, 255, .42);
  transition: filter .2s, transform .2s;
}
.cta:hover { filter: brightness(1.14); transform: translateY(-1px); }

/* ---------- 主区 ---------- */
main { padding-left: var(--rail); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 48px;
  align-items: center;
  padding: 108px 0 64px;
}

.badge {
  display: inline-block;
  padding: 6px 13px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .22em;
  color: #fff;
  border: 1px solid var(--sec);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(255, 0, 255, .3), 0 0 14px rgba(255, 0, 255, .35);
  animation: flick 6s ease-in-out infinite;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.012em;
  background: linear-gradient(102deg, #ffffff 12%, var(--sec) 56%, var(--pri));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 38px rgba(128, 0, 255, .45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .12em;
  color: #150a22;
  text-decoration: none;
  background: linear-gradient(120deg, #ffffff, #ecdcff);
  box-shadow: 0 0 26px rgba(255, 0, 255, .38);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255, 0, 255, .55); }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(128, 0, 255, .38), transparent 62%),
    linear-gradient(160deg, #120a1f, #08080a);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 0, 255, .16);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 0, 255, .22);
  border-radius: 2px;
  pointer-events: none;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ring {
  position: absolute;
  top: -18%;
  right: -26%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 0, 255, .5);
  animation: spin 26s linear infinite;
}

/* ---------- 正文 ---------- */
.stage { padding: 18px 0 76px; }

.stage article { max-width: 820px; }

article > div {
  padding-block: 58px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
article > div:first-child { border-top: 0; padding-top: 18px; }

article h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 20px rgba(128, 0, 255, .6);
}
article h2 > span { position: relative; display: inline-block; }
article h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: linear-gradient(90deg, var(--sec), rgba(255, 0, 255, 0));
}

article h3 {
  margin: 26px 0 12px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: #f2e9ff;
  text-shadow: 0 0 12px rgba(255, 0, 255, .35);
}

article p { margin: 0 0 18px; max-width: 72ch; color: var(--ink); }
article a { color: #dcb3ff; text-decoration: underline; text-underline-offset: 3px; }
article a:hover { color: #fff; }

article ul, article ol { padding-left: 1.25em; max-width: 70ch; }
article li { margin: .42em 0; }

article blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--sec);
  background: rgba(128, 0, 255, .1);
  border-radius: 0 4px 4px 0;
  color: #e7ddff;
}

article code {
  font-family: var(--mono);
  font-size: .93em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(128, 0, 255, .18);
}
article img { height: auto; border-radius: 4px; border: 1px solid var(--line); }

article > div > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--rail);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 11, 30, .92), rgba(8, 8, 10, .99));
}

.f-cta,
.f-grid,
.f-base { max-width: 1120px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

.f-cta {
  padding-top: 62px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.f-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 0, 255, .55);
}

.f-grid {
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: .9fr 1fr 1fr 1fr;
  gap: 30px;
}
.f-col h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--sec);
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 0;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  transition: color .18s, transform .18s;
}
.f-col a:hover { color: #fff; transform: translateX(3px); }

.f-base {
  padding-top: 22px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--dim);
}
.f-base p { margin: 0; }
.f-base a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--dim);
  text-decoration: none;
}
.f-base a:hover { color: #fff; }

/* ---------- 动效 ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flick {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .45; }
  95% { opacity: 1; }
  97% { opacity: .6; }
}

/* ---------- 断点 ---------- */
@media (min-width: 901px) {
  .rail.open { width: min(420px, 46vw); }
}

@media (max-width: 900px) {
  .rail {
    width: 100%;
    transform: translateX(-100%);
    padding-top: 74px;
    border-right: 0;
  }
  .rail.open { transform: none; box-shadow: 0 0 80px rgba(128, 0, 255, .35); }
  main { padding-left: 0; }
  .wrap { padding: 0 20px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 86px 0 42px;
  }
  .hero-art { aspect-ratio: 16 / 12; }
  .stage article { max-width: none; }
  .foot { margin-left: 0; }
  .f-cta, .f-grid, .f-base { padding-left: 20px; padding-right: 20px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-cta { padding-top: 46px; }
  article > div { padding-block: 44px; }
  article > div > section { padding: 16px; }
}

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

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