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

:root {
  --acc: #00ff80;
  --blue: #0000ff;
  --ink: #000000;
  --paper: #000000;
  --fg: #ffffff;
  --line: #2b2b2b;
  --card: #0d0d0d;
  --gut: clamp(14px, 4vw, 48px);
  --head: 64px;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: "Space Grotesk", "Archivo", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Archivo", "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

p { margin: 0 0 16px; }

a { color: var(--acc); text-decoration: none; }

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

button { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
}

section[id] { scroll-margin-top: calc(var(--head) + 18px); }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  background: var(--ink);
  border-bottom: 3px solid var(--acc);
  z-index: 70;
}

.mark {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 4px;
}

.mark-img { width: 32px; height: 32px; object-fit: contain; }

.mark-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
}

.top-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--acc);
  color: var(--acc);
  font-size: 16px;
  font-weight: 700;
}

.contact:hover {
  background: var(--acc);
  color: var(--ink);
}

.burger {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: var(--acc);
  cursor: pointer;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
}

/* ---------- 全屏菜单 ---------- */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 60;
  padding: calc(var(--head) + 22px) var(--gut) var(--gut);
  overflow-y: auto;
  background: var(--ink);
  border-top: 0;
}

.menu.is-open { display: block; }

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  max-width: 1100px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border: 3px solid var(--acc);
  color: var(--acc);
  font-size: clamp(17px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

.menu a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--fg);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--acc);
}

/* ---------- 主体 ---------- */
main { padding-top: var(--head); }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 26px var(--gut) 44px;
  border-bottom: 4px solid var(--acc);
  align-items: center;
}

.hero-fig {
  order: 2;
  margin: 0;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 4px solid var(--fg);
  background: var(--card);
  box-shadow: 10px 10px 0 var(--blue);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glyph {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(52px, 12vw, 128px);
  font-weight: 700;
  line-height: 1;
  color: var(--acc);
}

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

.hero-txt h1 {
  font-size: clamp(32px, 8.4vw, 82px);
  text-wrap: balance;
}

.hero-lead {
  margin: 16px auto 0;
  max-width: 40ch;
  padding-top: 12px;
  border-top: 2px solid var(--blue);
  font-size: 16px;
  color: #cfcfcf;
}

.hero-bg {
  position: absolute;
  right: -3%;
  bottom: -8%;
  z-index: 1;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(90px, 26vw, 250px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(0, 0, 255, 0.45);
  -webkit-text-stroke: 2px var(--blue);
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- 侧栏 + 正文 ---------- */
.stage {
  display: grid;
  padding: 0 var(--gut);
}

.side {
  padding: 26px 0 18px;
  border-bottom: 3px solid var(--line);
}

.side h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--acc);
}

.side h2 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--blue);
}

.side-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.25;
}

.side-list a:hover {
  background: var(--acc);
  color: var(--ink);
  transform: translateX(4px);
}

.side-list em {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--acc);
  letter-spacing: 0.1em;
}

.side-list a:hover em { color: var(--ink); }

.to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--acc);
  font-size: 16px;
  font-weight: 700;
}

.to-top a:hover {
  background: var(--acc);
  color: var(--ink);
}

.content {
  padding: 8px 0 64px;
  max-width: 72ch;
  min-width: 0;
}

.content section {
  padding: 34px 0 40px;
  border-top: 3px solid var(--acc);
}

.content section:first-child {
  border-top: 0;
  padding-top: 10px;
}

.content h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 4.4vw, 40px);
  color: var(--fg);
}

.content h2 > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 6px solid var(--blue);
}

.content h3 {
  margin: 26px 0 12px;
  font-size: clamp(18px, 3vw, 24px);
}

.content p {
  margin: 0 0 18px;
  line-height: 1.85;
  color: #e8e8e8;
}

.content a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content a:hover { background: var(--acc); color: var(--ink); }

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.content li { margin-bottom: 8px; line-height: 1.75; }

.content li::marker { color: var(--acc); font-weight: 700; }

.content blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--card);
  border-left: 6px solid var(--acc);
  border-radius: 4px;
}

.content blockquote p:last-child { margin-bottom: 0; }

.content img {
  margin: 14px 0;
  border: 3px solid var(--fg);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--blue);
}

.content figure { margin: 18px 0; }

.content table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content th { background: #111; color: var(--acc); }

.content hr {
  margin: 26px 0;
  border: 0;
  border-top: 3px dashed var(--line);
}

.content code {
  padding: 1px 5px;
  background: #141414;
  border: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
}

.content pre {
  margin: 0 0 18px;
  padding: 14px;
  overflow-x: auto;
  background: #101010;
  border: 2px solid var(--line);
}

.content pre code { border: 0; padding: 0; background: none; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  gap: 16px;
  align-items: end;
  padding: 34px var(--gut) 28px;
  background: var(--ink);
  border-top: 6px solid var(--acc);
}

.f-brand {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 14vw, 110px);
  line-height: 0.84;
  letter-spacing: -0.05em;
  color: var(--acc);
}

.f-copy {
  margin: 0;
  font-size: 16px;
  color: #b6b6b6;
}

.f-note { font-size: 16px; color: #b6b6b6; }

.f-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--acc);
  font-weight: 700;
}

.f-note a:hover { background: var(--acc); color: var(--ink); }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .side-list li,
  .content > section {
    animation: rise 0.45s steps(5, end) both;
  }

  .side-list li:nth-child(2) { animation-delay: 0.05s; }
  .side-list li:nth-child(3) { animation-delay: 0.1s; }
  .side-list li:nth-child(4) { animation-delay: 0.15s; }
  .side-list li:nth-child(5) { animation-delay: 0.2s; }
  .side-list li:nth-child(6) { animation-delay: 0.25s; }
  .side-list li:nth-child(7) { animation-delay: 0.3s; }

  .content > section:nth-of-type(2) { animation-delay: 0.06s; }
  .content > section:nth-of-type(3) { animation-delay: 0.12s; }
  .content > section:nth-of-type(4) { animation-delay: 0.18s; }
  .content > section:nth-of-type(5) { animation-delay: 0.24s; }
  .content > section:nth-of-type(6) { animation-delay: 0.3s; }
  .content > section:nth-of-type(7) { animation-delay: 0.36s; }

  .hero-fig:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--blue); }
}

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

/* ---------- 平板 / 桌面 ---------- */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    gap: var(--gut);
    min-height: 70vh;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-fig { order: 1; aspect-ratio: 4 / 3; }

  .hero-txt { order: 2; }

  .hero-txt h1 { text-align: center; }

  .hero-bg { font-size: clamp(140px, 20vw, 260px); }
}

@media (min-width: 900px) {
  .stage {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: var(--gut);
    padding-top: 36px;
  }

  .side {
    position: sticky;
    top: calc(var(--head) + 26px);
    align-self: start;
    border-bottom: 0;
    border-right: 3px solid var(--line);
    padding: 0 18px 20px 0;
  }

  .side-list { grid-template-columns: 1fr; }

  .content { padding-top: 2px; }
}

@media (min-width: 820px) {
  .foot {
    grid-template-columns: 2fr 1fr 1fr;
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .f-copy { text-align: center; }
  .f-note { text-align: right; }
}

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