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

:root {
  --red: #ff0000;
  --pur: #8b00ff;
  --ink: #261717;
  --bg: #120a0e;
  --txt: #f5eaee;
  --dim: #cbb4bd;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.2);
  --card: rgba(38, 23, 23, 0.78);
  --r: 28px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --disp: Orbitron, "JetBrains Mono", ui-monospace, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  background:
    radial-gradient(62vw 58vw at 88% -8%, rgba(255, 0, 0, 0.3), transparent 62%),
    radial-gradient(56vw 56vw at 2% 18%, rgba(139, 0, 255, 0.32), transparent 64%),
    radial-gradient(56vw 44vw at 55% 108%, rgba(255, 0, 0, 0.18), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

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

h1, h2, h3 {
  font-family: var(--disp);
  line-height: 1.28;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  font-weight: 900;
}

p { margin: 0 0 14px; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 130;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: top 0.22s ease;
}

.skip:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.hud {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(18, 10, 14, 0.88), rgba(18, 10, 14, 0.52));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hud-brand { padding: 12px 18px 2px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.45);
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.hud-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s ease, color 0.2s ease;
}

.hud-contact:hover,
.hud-contact:focus-visible { background: var(--red); color: #fff; }

.burger {
  width: 48px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--txt);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span:nth-child(2) { width: 70%; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 全屏菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 20px 22px 28px;
  overflow-y: auto;
  background:
    radial-gradient(70vw 60vw at 85% 8%, rgba(255, 0, 0, 0.32), transparent 60%),
    radial-gradient(60vw 60vw at 5% 88%, rgba(139, 0, 255, 0.34), transparent 62%),
    rgba(14, 8, 11, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.menu[hidden] { display: none; }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-lbl {
  font-size: 16px;
  letter-spacing: 0.34em;
  color: var(--dim);
}

.menu-x {
  width: 48px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.menu-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 6px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--disp);
  font-size: clamp(20px, 5vw, 30px);
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line);
  transform: translateX(4px);
}

.mi {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--red);
  min-width: 26px;
}

.menu-foot address {
  font-style: normal;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- 主区 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.rail {
  padding: 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rail h2 {
  font-size: 16px;
  letter-spacing: 0.3em;
  margin: 0 0 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-weight: 500;
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--red), var(--pur), transparent);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible { background: var(--pur); color: #fff; }

/* ---------- 正文 ---------- */
.doc { min-width: 0; }

.doc > section {
  position: relative;
  margin-block: 16px;
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--r);
  background: var(--card);
  scroll-margin-top: 118px;
}

.doc h2 { font-size: clamp(22px, 4vw, 32px); }

.doc h3 { font-size: clamp(19px, 3vw, 23px); color: #ffd9de; }

.doc hr {
  border: 0;
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--red), var(--pur) 55%, transparent);
}

.doc p { color: var(--txt); }

.doc ul,
.doc ol { padding-left: 1.25em; margin: 0 0 16px; }

.doc li { margin-bottom: 8px; }

.doc strong { color: #fff; }

.doc a {
  color: #ff9aa2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 0, 0, 0.08);
}

.doc code,
.doc pre {
  font-family: var(--mono);
  font-size: 16px;
}

/* ---------- 首屏 ---------- */
.doc > .hero {
  margin: 0 0 10px;
  padding: 10px 4px 26px;
  background: none;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: calc(100svh - 140px);
  isolation: isolate;
}

.hero-ghost {
  position: absolute;
  left: -0.03em;
  top: 0.1em;
  z-index: -1;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(54px, 17vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 0, 0.26);
  white-space: nowrap;
  pointer-events: none;
}

.hero-txt { position: relative; }

.hero-kick {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: #ff7c8a;
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.5);
}

.hero h1 {
  font-size: clamp(30px, 6.4vw, 58px);
  margin: 0 0 16px;
  text-shadow: 0 0 26px rgba(139, 0, 255, 0.45);
}

.hero-sub {
  max-width: 46ch;
  color: var(--dim);
  font-size: 17px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 26px;
  border-radius: 16px;
  text-decoration: none;
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(120deg, var(--red), var(--pur));
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.28);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 0, 255, 0.4);
}

.hero-fig {
  margin: 0;
  min-height: 250px;
  align-self: stretch;
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 255, 0.3));
  border-radius: var(--r);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.hero-fig img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 60px;
  padding: 34px 18px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.3));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.foot-top { margin-bottom: 20px; }

.foot-brand {
  display: block;
  font-style: normal;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(34px, 11.5vw, 118px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 96, 96, 0.8);
}

.foot-mid { margin-bottom: 20px; }

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  margin: 0;
}

.foot-nav dt {
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-right: 8px;
}

.foot-nav dd { margin: 0; }

.foot-nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, color 0.2s ease;
}

.foot-nav dd a:hover,
.foot-nav dd a:focus-visible { background: var(--red); color: #fff; }

.foot-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-copy {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.foot-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
}

.foot-links a:hover,
.foot-links a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.1); }

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

/* ---------- 断点 ---------- */
@media (min-width: 880px) {
  .doc > .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 38px;
    padding-top: 24px;
  }
  .hero-fig { min-height: 380px; }
  .hero-fig img { min-height: 380px; }
}

@media (min-width: 960px) {
  main {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 30px;
  }
  .rail { position: sticky; top: 120px; }
  .rail-list { display: grid; gap: 4px; }
  .rail-list a { min-height: 40px; }
  .hud-brand { padding-left: 30px; }
  .hud-bar { padding-right: 30px; }
}

@media (max-width: 400px) {
  .doc > section { padding: 19px 16px; }
  .hero-ghost { font-size: 52px; }
  .foot-links { flex-wrap: wrap; }
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .menu-nav a,
  .hero-cta,
  .hud-contact { transition: none; }
}

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