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

:root {
  --g: #00ff80;
  --b: #0000ff;
  --k: #000000;
  --w: #ffffff;
  --pad: 1.1rem;
}

* { box-sizing: border-box; }

html {
  background: var(--k);
  color: var(--w);
  font: 17px/1.65 Merriweather, Georgia, "Songti SC", "SimSun", serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 84px;
  overflow-x: hidden;
  background: var(--k);
}

h1, h2, h3 { font-family: "Abril Fatface", Georgia, "Songti SC", serif; font-weight: 400; }
a { color: var(--g); }
img { max-width: 100%; height: auto; display: block; border: 3px solid var(--w); }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: .6rem; top: .6rem; z-index: 99;
  background: var(--g); color: var(--k);
  padding: .65rem .9rem; border: 3px solid var(--b);
  text-decoration: none; font-weight: 700;
}

/* 顶部主标题区 */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 2.2rem var(--pad) 2.6rem;
  border-bottom: 4px solid var(--b);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -34px;
  width: 78%;
  height: 88px;
  background: var(--b);
  transform: rotate(-4deg);
}
.hero h1 {
  position: relative;
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.3rem, 10.5vw, 5.6rem);
  line-height: .98;
  letter-spacing: .005em;
  color: var(--g);
  overflow-wrap: break-word;
  text-shadow: 5px 5px 0 var(--b);
}

/* 底部固定条 */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  gap: .3rem;
  padding: .35rem .5rem;
  background: var(--k);
  border-top: 3px solid var(--g);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .55rem;
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1rem;
  color: var(--g);
  text-decoration: none;
  white-space: nowrap;
  border-right: 3px solid var(--b);
}
.bar nav { flex: 1; min-width: 0; overflow-x: auto; }
.bar nav p { display: flex; gap: .25rem; margin: 0; white-space: nowrap; }
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .7rem;
  font-size: .86rem;
  color: var(--w);
  text-decoration: none;
  border: 2px solid #202020;
  transition: none;
}
.bar nav a:hover, .bar nav a:focus-visible {
  background: var(--b);
  border-color: var(--g);
  color: var(--w);
  outline: none;
}
.bar nav a.on { border-color: var(--g); color: var(--g); }
.bar nav a.cta { background: var(--g); color: var(--k); border-color: var(--g); font-weight: 700; }
.bar nav a.cta.on, .bar nav a.cta:hover { color: var(--k); background: var(--g); }

/* 主体网格 */
main { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 1.7rem var(--pad) 3rem; }
.col { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }

aside {
  border: 3px solid var(--g);
  padding: 1rem .9rem;
  background: #050505;
}
aside h2 { margin: 0 0 .15rem; font-size: 1.12rem; line-height: 1.2; color: var(--g); }
aside .subtitle {
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--b);
  font-size: .8rem;
  letter-spacing: .05em;
  color: #9d9d9d;
}
aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
aside li { opacity: 0; animation: rise .26s steps(2, end) forwards; }
aside li:nth-child(1) { animation-delay: .02s; }
aside li:nth-child(2) { animation-delay: .06s; }
aside li:nth-child(3) { animation-delay: .1s; }
aside li:nth-child(4) { animation-delay: .14s; }
aside li:nth-child(5) { animation-delay: .18s; }
aside li:nth-child(6) { animation-delay: .22s; }
aside li:nth-child(7) { animation-delay: .26s; }
aside a {
  display: block;
  padding: .55rem .45rem;
  min-height: 40px;
  font-size: .88rem;
  color: #e6e6e6;
  text-decoration: none;
  border-left: 3px solid #1c1c1c;
  transition: none;
}
aside a:hover, aside a:focus-visible {
  background: var(--b);
  border-left-color: var(--g);
  color: var(--w);
  outline: none;
}
aside a.on { border-left-color: var(--g); color: var(--g); }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 正文 */
article { min-width: 0; }
article section { padding-bottom: 1.1rem; }
article section:not(:last-child) { border-bottom: 3px solid #141414; }
article h2 {
  margin: 2rem 0 .7rem;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.1;
  color: var(--g);
  overflow-wrap: break-word;
}
article section > h2:first-child { margin-top: 0; }
article h2 + .subtitle, article h2 + .lead, article h2 + .desc, article h2 + .subhead {
  margin: -.35rem 0 1.1rem;
  font-size: .92rem;
  color: #a8a8a8;
  border-left: 5px solid var(--b);
  padding-left: .6rem;
}
article h3 {
  margin: 1.5rem 0 .5rem;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--w);
  border-left: 6px solid var(--b);
  padding-left: .6rem;
}
article p { max-width: 70ch; color: #e9e9e9; }
article ul, article ol { margin: 0 0 1rem; padding-left: 1.35rem; color: #e9e9e9; }
article li { margin-bottom: .4rem; }
article strong { color: var(--g); }
article a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
article a:hover { background: var(--g); color: var(--k); text-decoration: none; }
article blockquote {
  margin: 0 0 1.2rem;
  padding: .85rem 1rem;
  border-left: 8px solid var(--g);
  background: #080808;
  color: #dcdcdc;
}
article blockquote p:last-child { margin: 0; }
article figure { margin: 0 0 1.2rem; }
article figcaption { padding-top: .35rem; font-size: .82rem; color: #9d9d9d; }
article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: .95rem;
}
article th, article td { border: 2px solid #2a2a2a; padding: .5rem .6rem; text-align: left; }
article th { background: var(--b); color: var(--w); }
article hr { border: 0; border-top: 3px solid var(--b); margin: 1.6rem 0; }
article code { font-family: ui-monospace, "Courier New", monospace; background: #111; padding: .1rem .3rem; }

.card {
  background: #0b0b0b;
  border: 3px solid #1f1f1f;
  border-radius: 4px;
  box-shadow: 0 6px 0 rgba(0, 255, 128, .16);
}

section[id] { scroll-margin-top: 1.2rem; }

/* 页脚 */
footer {
  margin-top: 1.4rem;
  padding: 1.6rem var(--pad) 2.2rem;
  border-top: 4px solid var(--g);
  background: var(--k);
}
.f-top { display: grid; grid-template-columns: 1fr; gap: 1.2rem; max-width: 1160px; margin: 0 auto; }
.f-cta {
  display: block;
  padding: .7rem 1rem;
  border: 4px solid var(--b);
  font-family: "Abril Fatface", Georgia, serif;
  font-size: clamp(1.9rem, 9vw, 4.2rem);
  line-height: 1;
  text-align: center;
  color: var(--g);
  text-decoration: none;
}
.f-cta:hover { background: var(--b); color: var(--w); }
.f-info { display: grid; gap: .8rem; }
address {
  font-style: normal;
  font-weight: 700;
  color: var(--w);
  border-left: 6px solid var(--g);
  padding-left: .65rem;
}
.f-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.f-info a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .4rem .7rem;
  font-size: .85rem;
  color: #e6e6e6;
  text-decoration: none;
  border: 2px solid #232323;
}
.f-info a:hover { background: var(--g); border-color: var(--g); color: var(--k); }
.f-copy {
  max-width: 1160px;
  margin: 1.5rem auto 0;
  padding-top: .9rem;
  border-top: 2px solid #1e1e1e;
  text-align: center;
  font-size: .82rem;
  color: #9d9d9d;
}

@media (min-width: 820px) {
  body { padding-bottom: 92px; }
  .col { grid-template-columns: 236px minmax(0, 1fr); gap: 1.9rem; }
  aside { position: sticky; top: 1rem; }
  .hero { padding: 3rem 2rem 3.4rem; }
  .wrap { padding: 2.2rem 2rem 4rem; }
  .f-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .f-cta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  aside li { animation: none; opacity: 1; }
  * { transition: none; }
}

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