@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --ink: #0E0E12;
  --ink2: #14141b;
  --amber: #FFB020;
  --mint: #4DE1C1;
  --paper: #E9E5DC;
  --dim: rgba(233, 229, 220, .66);
  --line: rgba(255, 176, 32, .22);
  --soft: rgba(255, 255, 255, .08);
  --rail: 236px;
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "VT323", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.62;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(77, 225, 193, .17) 1px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: .5;
}

a { color: inherit; }
img { max-width: 100%; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; }
hr {
  border: 0;
  height: 8px;
  margin: 10px 0 20px;
  background-image: radial-gradient(var(--amber) 1.4px, transparent 1.6px);
  background-size: 10px 8px;
  opacity: .6;
}

/* 左竖栏 */
.rail {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 20px 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0E0E12 0%, #13131a 100%);
}

.brand {
  display: block;
  font-family: "Press Start 2P", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--amber);
  text-decoration: none;
  word-break: break-word;
  text-shadow: 0 0 18px rgba(255, 176, 32, .35);
}

.brand:hover { color: var(--mint); }

.sitenav { flex: 1 1 auto; }

.sitenav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sitenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 4px;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--dim);
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  transition: color .18s ease, transform .18s ease;
}

.sitenav a:hover,
.sitenav a:focus-visible {
  color: var(--paper);
  transform: translateX(4px);
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(77, 225, 193, .18);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sitenav a:hover .dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, .22);
  transform: rotate(45deg);
}

.rail-contact {
  display: block;
  padding: 13px 10px;
  min-height: 46px;
  text-align: center;
  font-size: 18px;
  letter-spacing: .18em;
  text-decoration: none;
  color: var(--mint);
  border: 1px solid rgba(77, 225, 193, .55);
  border-radius: var(--r);
  transition: background .2s ease, color .2s ease;
}

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

/* 主区 */
main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  padding: 0 32px 0 26px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

aside.toc {
  position: sticky;
  top: 26px;
  padding-top: 34px;
  align-self: start;
}

aside.toc h2 {
  margin: 0;
  font-family: "Press Start 2P", "PingFang SC", sans-serif;
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--mint);
}

aside.toc hr { margin: 10px 0 14px; height: 6px; opacity: .4; }

aside.toc ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

aside.toc a {
  display: block;
  padding: 9px 0 9px 11px;
  min-height: 40px;
  font-size: 17px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--dim);
  border-left: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease, padding-left .18s ease;
}

aside.toc a:hover,
aside.toc a:focus-visible {
  color: var(--amber);
  border-left-color: var(--amber);
  padding-left: 16px;
}

section { min-width: 0; padding: 0 0 56px; }

/* 首屏 */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 46px 0 34px;
  text-align: right;
  background-image:
    radial-gradient(circle at 82% 10%, rgba(255, 176, 32, .16), transparent 58%),
    radial-gradient(rgba(77, 225, 193, .22) 1px, transparent 1.5px);
  background-size: auto, 16px 16px;
  background-repeat: no-repeat, repeat;
}

.hero h1 {
  margin: 0;
  font-family: "Press Start 2P", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 5.2vw, 60px);
  line-height: 1.24;
  letter-spacing: .03em;
  color: var(--amber);
  text-shadow: 0 0 26px rgba(255, 176, 32, .28);
  word-break: break-word;
}

.hero-fig {
  margin: 0;
  position: relative;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 44vh;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid rgba(255, 176, 32, .32);
  filter: contrast(1.06) saturate(.92);
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(14, 14, 18, .34) 0 1px, transparent 1px 3px);
}

/* 正文分节 */
section > article {
  margin: 0 0 26px;
  padding: 26px 22px 22px;
  border: 1px solid var(--soft);
  border-bottom: 3px solid var(--amber);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 70%);
  scroll-margin-top: 22px;
  transition: border-color .25s ease, background .25s ease, opacity .5s ease, transform .5s ease;
}

section > article:hover { border-bottom-color: var(--mint); }

section > article h2 {
  margin: 0 0 10px;
  font-family: "Press Start 2P", "PingFang SC", sans-serif;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--amber);
}

section > article h3 {
  margin: 22px 0 8px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--mint);
}

section > article h2 + hr { margin-top: 0; }

section > article a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 2px 0;
}

section > article a:hover { color: var(--amber); }

section > article ul,
section > article ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

section > article li { margin: 0 0 8px; }

section > article strong { color: var(--amber); }

/* 动效 */
.js section > article { opacity: 0; transform: translateY(16px); }
.js section > article.in { opacity: 1; transform: none; }

.ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em) rotateX(-42deg);
  transition: opacity .36s ease, transform .5s cubic-bezier(.2, .72, .2, 1);
  transition-delay: calc(var(--i, 0) * 26ms);
}

.in .ch { opacity: 1; transform: none; }
.ch-sp { min-width: .38em; }

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  padding: 0 32px 26px 26px;
}

.cta {
  padding: 34px 0 24px;
  border-bottom: 1px dashed rgba(255, 176, 32, .28);
}

.cta a {
  display: inline-block;
  font-family: "Press Start 2P", "PingFang SC", sans-serif;
  font-size: clamp(24px, 6.2vw, 54px);
  line-height: 1.32;
  letter-spacing: .05em;
  text-decoration: none;
  background: linear-gradient(94deg, var(--amber) 10%, var(--mint) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: transform .25s ease;
}

.cta a:hover { transform: translateX(10px) skewX(-4deg); }

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .9fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--soft);
}

address {
  font-style: normal;
  font-family: "Press Start 2P", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--mint);
  word-break: break-word;
}

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

.fcol ul a {
  display: block;
  padding: 9px 0;
  min-height: 40px;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .18s ease, padding-left .18s ease;
}

.fcol ul a:hover { color: var(--amber); padding-left: 6px; }

.totop {
  display: inline-block;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 17px;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: background .2s ease, color .2s ease;
}

.totop:hover { background: var(--amber); color: var(--ink); }

.copy {
  margin: 16px 0 0;
  padding-top: 14px;
  font-size: 17px;
  letter-spacing: .06em;
  color: rgba(233, 229, 220, .55);
}

/* 窄屏 */
@media (max-width: 1080px) {
  main { grid-template-columns: 176px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 900px) {
  .rail {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brand { flex: 1 1 auto; font-size: 14px; }

  .sitenav { flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .sitenav ol { flex-direction: row; gap: 4px; }

  .sitenav a {
    white-space: nowrap;
    padding: 11px 10px;
    border-bottom: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
  }

  .sitenav a:hover { transform: none; }

  .rail-contact { order: -1; padding: 11px 12px; }

  main {
    margin-left: 0;
    padding: 0 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  aside.toc {
    position: static;
    order: 2;
    padding: 22px 0 10px;
    border-top: 1px solid var(--soft);
    margin-top: 20px;
  }

  section { order: 1; padding-bottom: 10px; }

  .hero {
    min-height: auto;
    padding: 26px 0 24px;
    gap: 20px;
    text-align: left;
  }

  .hero h1 { font-size: clamp(26px, 8.4vw, 40px); }

  section > article { padding: 20px 16px 18px; }

  footer { margin-left: 0; padding: 0 16px 22px; }

  .fgrid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 420px) {
  .fgrid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: 0; }
}

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

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

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

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