@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

:root {
  --ink: #0d0d0d;
  --ink-2: #120d1a;
  --pur: #8000ff;
  --mag: #ff00ff;
  --txt: #e9e3f6;
  --dim: #a195bd;
  --line: rgba(128, 0, 255, .42);
  --line-2: rgba(255, 0, 255, .32);
  --glow-m: 0 0 10px rgba(255, 0, 255, .55);
  --glow-p: 0 0 12px rgba(128, 0, 255, .55);
  --cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 10% -12%, rgba(128, 0, 255, .22), transparent 68%),
    radial-gradient(700px 420px at 94% 4%, rgba(255, 0, 255, .13), transparent 68%);
  background-repeat: no-repeat;
  color: var(--txt);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}

a { color: var(--mag); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mag);
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ---------- 顶部两行 ---------- */
.hud-top {
  padding: 14px clamp(12px, 3vw, 26px) 0;
  background: rgba(13, 13, 13, .9);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
}

.mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: cover;
  background: linear-gradient(135deg, var(--mag), var(--pur));
  border: 1px solid var(--mag);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 72% 100%, 0 100%);
}

.brand-txt {
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .16em;
  text-shadow: var(--glow-m);
}

.deco-bar {
  flex: 1 1 auto;
  height: 1px;
  max-width: 240px;
  background: linear-gradient(90deg, var(--mag), rgba(128, 0, 255, 0));
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 0 12px;
  border-top: 1px dashed rgba(157, 147, 181, .25);
}

.grp { position: relative; }

.grp-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--txt);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  clip-path: var(--cut);
  transition: border-color .18s, color .18s, background .18s;
}

.grp-btn:hover { color: var(--mag); border-color: var(--mag); background: rgba(255, 0, 255, .07); }

.grp ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.grp ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--txt);
  border-left: 2px solid transparent;
  transition: border-color .18s, background .18s, color .18s;
}

.grp ul a:hover {
  color: var(--mag);
  background: rgba(255, 0, 255, .09);
  border-left-color: var(--mag);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: #0d0d0d;
  background: linear-gradient(120deg, var(--mag), var(--pur));
  border: 1px solid var(--mag);
  box-shadow: 0 0 16px rgba(255, 0, 255, .38);
  clip-path: var(--cut);
  transition: filter .18s, box-shadow .18s;
}

.cta:hover { color: #0d0d0d; filter: brightness(1.15); box-shadow: 0 0 24px rgba(255, 0, 255, .6); }
.cta--menu { margin-left: auto; }
.cta--wide { width: 100%; }
.cta--big {
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-size: 19px;
  letter-spacing: .12em;
  padding: 14px 36px;
  min-height: 54px;
}

/* ---------- 主体骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px) clamp(12px, 3vw, 26px) 64px;
}

.stage { min-width: 0; }

.panel {
  position: relative;
  background-color: var(--ink-2);
  background-image: linear-gradient(180deg, rgba(128, 0, 255, .12), rgba(13, 13, 13, 0) 260px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  padding: 0 clamp(16px, 3vw, 36px) 44px;
}

/* ---------- 头屏 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56vh;
  padding: 36px 4px 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
}

.glitch {
  position: relative;
  margin: 0;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-weight: 900;
  font-size: clamp(27px, 7vw, 58px);
  line-height: 1.16;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 255, .7), 0 0 40px rgba(128, 0, 255, .6);
}

.glitch::before,
.glitch::after {
  content: attr(data-txt);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

.glitch::before { color: var(--mag); clip-path: inset(0 0 58% 0); animation: gx-a 4.2s infinite steps(1, end); }
.glitch::after { color: var(--pur); clip-path: inset(56% 0 0 0); animation: gx-b 3.4s infinite steps(1, end); }

@keyframes gx-a {
  0%, 86%, 100% { transform: none; }
  88% { transform: translate(-3px, -2px); }
  92% { transform: translate(2px, 1px); }
}

@keyframes gx-b {
  0%, 80%, 100% { transform: none; }
  84% { transform: translate(3px, 2px); }
  90% { transform: translate(-2px, -1px); }
}

.lede {
  margin: 0;
  max-width: 60ch;
  padding-left: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dim);
}

.lede::before { display: none; }
.lede > span { display: block; border: 0; }

.hero-media {
  width: 100%;
  max-width: 620px;
}

.hero-media img,
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  filter: saturate(1.15) contrast(1.05);
}

/* ---------- 正文 ---------- */
section > div {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid rgba(128, 0, 255, .22);
  scroll-margin-top: 130px;
}

section p { margin: 0 0 16px; }
section ul, section ol { margin: 0 0 18px; padding-left: 1.25em; }
section li { margin-bottom: 8px; }
section li::marker { color: var(--mag); }
section strong { color: #fff; text-shadow: var(--glow-p); }
section div a { border-bottom: 1px solid var(--line-2); }

section h2,
section h3 {
  position: relative;
  margin: 34px 0 14px;
  padding-left: 16px;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: var(--glow-m);
}

section h2 { font-size: clamp(20px, 3.2vw, 26px); }
section h3 { font-size: clamp(18px, 2.6vw, 21px); }

section h2::before,
section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  bottom: .3em;
  width: 4px;
  background: linear-gradient(180deg, var(--mag), var(--pur));
  box-shadow: var(--glow-m);
}

section h2 > span,
section h3 > span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px dashed var(--line-2);
}

/* ---------- 右侧栏 ---------- */
.rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.rail-box {
  border: 1px solid var(--line);
  background: #110c19;
  clip-path: var(--cut);
  padding: 16px 14px 18px;
}

.rail-h {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--mag);
  border-bottom: 1px solid var(--line);
}

.rail-h > span { display: inline-block; text-shadow: var(--glow-m); }

.rail-nav ul { list-style: none; margin: 0; padding: 0; }

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--txt);
  font-size: 16px;
  border-left: 2px solid transparent;
  transition: border-color .18s, background .18s, color .18s;
}

.rail-nav a:hover {
  color: var(--mag);
  background: rgba(255, 0, 255, .09);
  border-left-color: var(--mag);
}

.rail-box--end { padding: 16px 14px; }

/* ---------- 页脚 ---------- */
.hud-foot {
  margin-top: 12px;
  padding: 30px clamp(12px, 3vw, 26px) 22px;
  background: #0a0810;
  border-top: 1px solid var(--line);
}

.foot-cta {
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.fb-name {
  display: block;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: var(--glow-p);
  margin-bottom: 8px;
}

.fb-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 34ch;
}

.foot-dls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}

.foot-dls dl { margin: 0; }

.foot-dls dt {
  font-size: 16px;
  letter-spacing: .16em;
  color: var(--mag);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(128, 0, 255, .28);
  margin-bottom: 4px;
}

.foot-dls dd { margin: 0; }

.foot-dls dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--txt);
  font-size: 16px;
}

.foot-dls dd a:hover { color: var(--mag); text-shadow: var(--glow-m); }

.copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 14px;
  color: var(--dim);
  font-size: 16px;
  border-top: 1px dashed rgba(157, 147, 181, .25);
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--mag);
}

/* ---------- 进入动画 ---------- */
.js section > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.js section > div.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 861px) {
  .hud-top {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(10px);
  }

  .grp ul.sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: block;
    min-width: 190px;
    padding: 6px;
    background: #140d1e;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 70;
  }

  .grp:hover ul.sub,
  .grp:focus-within ul.sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 860px) {
  .grp { flex: 1 1 100%; }

  .grp ul.sub {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .grp.open ul.sub { display: grid; }
  html:not(.js) .grp ul.sub { display: grid; }

  .cta--menu { flex: 1 1 100%; margin-left: 0; }
}

@media (min-width: 901px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 30px;
    align-items: start;
  }

  .rail { position: sticky; top: 116px; }
}

@media (min-width: 701px) {
  .foot-cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); }
  .foot-dls { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (min-width: 861px) {
  .hero { min-height: 70vh; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-txt { font-size: 16px; letter-spacing: .1em; }
  .panel { padding-bottom: 34px; }
  .foot-dls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }

  .js section > div { opacity: 1; transform: none; }
}

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