@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --neon: #00ff80;
  --blue: #0000ff;
  --edge: #1c1c1c;
  --pad: clamp(16px, 4vw, 44px);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Merriweather, Georgia, "Songti SC", serif;
  --big: "Abril Fatface", Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--neon); }

h1, h2, h3 { font-family: var(--big); font-weight: 400; }

::selection { background: var(--neon); color: var(--ink); }

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--neon);
}
.skip:focus { top: 8px; }

/* ---------- 顶栏 ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px var(--pad);
  background: var(--ink);
  border-bottom: 3px solid var(--neon);
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-family: var(--big);
  font-size: clamp(20px, 4.6vw, 27px);
  letter-spacing: 0.02em;
  color: var(--neon);
  text-decoration: none;
  line-height: 1;
}
.mark img { display: block; width: auto; height: 34px; }

.barbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer summary {
  position: relative;
  z-index: 3;
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 14px;
  background: var(--neon);
  color: var(--ink);
  border: 3px solid var(--neon);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 16px;
  user-select: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer[open] summary { background: var(--ink); color: var(--neon); }

.drawer menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 96px var(--pad) 40px;
  list-style: none;
  background: var(--blue);
  border-bottom: 6px solid var(--neon);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer menu li { border-bottom: 2px solid rgba(255, 255, 255, 0.32); }

.drawer menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--big);
  font-size: clamp(22px, 5.6vw, 40px);
  line-height: 1.15;
}
.drawer menu a:hover,
.drawer menu a:focus-visible { color: var(--neon); }

body.nav-open { overflow: hidden; }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 14px;
  background: var(--blue);
  color: var(--paper);
  border: 3px solid var(--blue);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  max-width: 46vw;
}
.cta:hover,
.cta:focus-visible { background: var(--ink); color: var(--neon); border-color: var(--neon); }

/* ---------- 开场 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 88px var(--pad);
  border-bottom: 4px solid var(--neon);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, #101010 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, #101010 0 1px, transparent 1px 52px);
}
@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}

.collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collage figure {
  position: absolute;
  margin: 0;
  min-height: 72px;
  border: 4px solid var(--neon);
  background: var(--edge);
  overflow: hidden;
  will-change: transform;
}
.collage figure img { display: block; width: 100%; height: auto; }

.shot-a { top: 11%; left: 3%; width: 34%; transform: rotate(-4deg); }
.shot-b { bottom: 9%; right: 3%; width: 26%; transform: rotate(5deg); border-color: var(--blue); }

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.brandline {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.5em;
  text-transform: none;
  color: var(--neon);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 86px);
  line-height: 1.04;
  color: var(--paper);
  text-shadow: 5px 5px 0 var(--blue);
  word-break: break-word;
}

/* ---------- 主区 ---------- */

main {
  display: block;
  border-bottom: 4px solid var(--neon);
}

.wrap {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 46px);
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 60px) var(--pad);
}

.rail {
  position: sticky;
  top: 86px;
  align-self: start;
  background: var(--blue);
  border-radius: 10px;
  padding: 16px 16px 20px;
  min-width: 0;
}

.rail h2 {
  margin: 0;
  font-size: 22px;
  color: var(--paper);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.rail hr {
  border: 0;
  border-top: 3px solid var(--neon);
  margin: 10px 0 6px;
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.rail a:hover,
.rail a:focus-visible { color: var(--neon); }

.sheet {
  min-width: 0;
  border-left: 3px solid var(--neon);
  padding-left: clamp(16px, 3vw, 38px);
}

.sheet article { min-width: 0; }

.sheet article > section {
  padding: clamp(22px, 4vw, 46px) 0;
  border-top: 3px double var(--edge);
  scroll-margin-top: 96px;
}
.sheet article > section:first-child { border-top: 0; padding-top: 0; }
section[id] { scroll-margin-top: 96px; }

.sheet h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.12;
  color: var(--neon);
}

.sheet h3 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 3.3vw, 26px);
  line-height: 1.3;
  color: var(--paper);
}

.sheet hr {
  border: 0;
  border-top: 4px solid var(--blue);
  margin: 0 0 20px;
  width: 100%;
}

.sheet p { margin: 0 0 18px; }

.sheet a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.sheet a:hover { background: var(--neon); color: var(--ink); text-decoration: none; }

.sheet ul,
.sheet ol { margin: 0 0 20px; padding-left: 1.3em; }
.sheet li { margin-bottom: 8px; }
.sheet ul li::marker { color: var(--neon); }

.sheet strong { color: var(--neon); }
.sheet em { color: #cfcfcf; }

.sheet blockquote {
  margin: 0 0 22px;
  padding: 14px 18px;
  background: #0d0d0d;
  border-left: 6px solid var(--blue);
  border-radius: 10px;
  color: #e6e6e6;
}
.sheet blockquote p:last-child { margin-bottom: 0; }

.sheet figure { margin: 0 0 22px; }
.sheet figcaption {
  font-family: var(--sans);
  font-size: 15px;
  color: #9b9b9b;
  margin-top: 8px;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}
.sheet th,
.sheet td {
  border: 2px solid var(--neon);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.sheet th { background: var(--blue); color: var(--paper); font-family: var(--sans); }

.sheet code {
  font-family: var(--mono);
  background: #111;
  color: var(--neon);
  padding: 1px 5px;
}

/* ---------- 页脚 ---------- */

.foot {
  padding: clamp(30px, 5vw, 64px) var(--pad) 28px;
  background: var(--ink);
}

.shout h2 {
  margin: 0;
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.02;
  color: var(--neon);
  word-break: break-word;
}

.shout hr {
  border: 0;
  border-top: 5px solid var(--blue);
  margin: 14px 0 20px;
}

.shout-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 22px;
  background: var(--neon);
  color: var(--ink);
  border: 3px solid var(--neon);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.shout-link:hover,
.shout-link:focus-visible { background: var(--ink); color: var(--neon); }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 3px solid var(--neon);
}

.foot-row address {
  font-style: normal;
  font-family: var(--big);
  font-size: 21px;
  color: var(--paper);
  line-height: 1.2;
}

.foot-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.foot-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  border-bottom: 2px solid var(--blue);
}
.foot-row a:hover,
.foot-row a:focus-visible { color: var(--neon); border-color: var(--neon); }

.copy {
  margin: 24px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: #8f8f8f;
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .rail {
    position: static;
    top: auto;
  }
  .rail ul { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .rail li { flex: 0 0 auto; }
  .rail a { min-height: 42px; border-bottom: 0; padding: 6px 0; }
  .sheet {
    border-left: 0;
    padding-left: 0;
    border-top: 3px solid var(--neon);
    padding-top: 22px;
  }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .shot-a { width: 44%; top: 7%; left: 2%; }
  .shot-b { width: 36%; bottom: 6%; right: 2%; }
  .hero { padding: 76px var(--pad) 60px; }
  .hero h1 { text-shadow: 3px 3px 0 var(--blue); }
  .cta { padding: 8px 10px; font-size: 15px; }
  .brandline { letter-spacing: 0.32em; }
  .foot-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collage figure img { transform: none !important; }
}

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