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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body.chaos {
  margin: 0;
  background: #0b0f07;
  color: #e2f7c8;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

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

a { color: #00ff00; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: static;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px 8px;
  background: #0b0f07;
  border-bottom: 3px solid #80ff00;
}

.brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #80ff00;
  text-decoration: none;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #80ff00;
}

.nav { align-self: flex-start; width: 100%; }

.nav > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 15px;
  background: #80ff00;
  color: #0b0f07;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  border: 2px solid #0b0f07;
  cursor: pointer;
  user-select: none;
}

.nav > summary::-webkit-details-marker { display: none; }

.nav > summary::before {
  content: "";
  width: 15px;
  height: 2px;
  background: #0b0f07;
  box-shadow: 0 -5px 0 #0b0f07, 0 5px 0 #0b0f07;
}

.nav[open] > summary { background: #00ff00; }

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.nav-menu li { flex: 0 0 auto; }

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.25;
  color: #cdf2a4;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid rgba(128, 255, 0, .35);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: #80ff00;
  color: #0b0f07;
  border-color: #80ff00;
}

/* ---------- 跑马灯 ---------- */
.tape {
  overflow: hidden;
  background: #80ff00;
  border-bottom: 3px solid #0b0f07;
  color: #0b0f07;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .07em;
  padding: 4px 0;
  white-space: nowrap;
}

.tape-run {
  display: inline-block;
  animation: tape-move 26s linear infinite;
}

.tape-item { padding: 0 14px; }

.tape-item::after { content: "◆"; padding-left: 14px; font-size: 11px; }

@keyframes tape-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 64svh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 4px solid #80ff00;
  background: #141c0d;
}

.hero--blank {
  background: repeating-linear-gradient(135deg, #16200d 0 24px, #0b0f07 24px 48px);
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(165%) contrast(1.06);
  transform: scale(1.06);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(255deg, rgba(9, 13, 6, .95) 6%, rgba(9, 13, 6, .44) 48%, rgba(128, 255, 0, .34) 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  margin: 0 0 0 auto;
  max-width: 900px;
  padding: clamp(14px, 4vw, 40px);
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 6.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #80ff00;
  text-shadow: 4px 4px 0 #0b0f07;
}

/* ---------- 主体 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 15px;
}

.rail { padding: 20px 0 4px; }

.rail-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 11px;
  background: #00ff00;
  color: #0b0f07;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(var(--tilt, 0deg));
}

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

.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 11px;
  font-size: 16px;
  line-height: 1.3;
  color: #cdf2a4;
  text-decoration: none;
  background: #131b0c;
  border-left: 4px solid #80ff00;
}

.rail-list a:hover,
.rail-list a:focus-visible { background: #80ff00; color: #0b0f07; }

.sheet { padding: 24px 0 40px; min-width: 0; }

.sheet-head { margin: 0 0 8px; }

.sheet-head h2 {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  background: #80ff00;
  color: #0b0f07;
  font-size: clamp(19px, 3.2vw, 28px);
  line-height: 1.15;
  transform: rotate(var(--tilt, 0deg));
}

.subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #a4c882;
  letter-spacing: .02em;
}

.sheet section {
  padding: 24px 0;
  border-top: 3px dotted rgba(128, 255, 0, .3);
  scroll-margin-top: 92px;
}

.sheet section:first-of-type { border-top: 0; }

.sheet section h2 {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 10px solid #00ff00;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.18;
  color: #80ff00;
}

.sheet section h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: #b6ff5e;
}

.sheet p { margin: 0 0 14px; max-width: 70ch; color: #ddf2c2; }

.sheet ul, .sheet ol { margin: 0 0 16px; padding-left: 22px; max-width: 70ch; }

.sheet li { margin: 5px 0; }

.sheet blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #131b0c;
  border-left: 6px solid #00ff00;
  color: #cbe9aa;
}

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

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

.sheet th, .sheet td {
  padding: 9px 10px;
  border: 2px solid rgba(128, 255, 0, .3);
  text-align: left;
  vertical-align: top;
}

.sheet th { background: #80ff00; color: #0b0f07; }

.sheet figure { margin: 18px 0; }

.sheet figcaption { font-size: 16px; color: #9cbc7c; padding-top: 6px; }

.sheet code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: .95em;
  background: #1a2410;
  padding: 1px 5px;
}

.sheet-top { margin: 28px 0 0; }

.sheet-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0b0f07;
  background: #00ff00;
  text-decoration: none;
  transform: rotate(-1.2deg);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 46px;
  padding: 36px 15px 18px;
  background: #101a0a;
  border-top: 4px solid #80ff00;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
}

.foot address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot-brand {
  font-size: 22px;
  font-weight: 700;
  color: #80ff00;
  letter-spacing: -.01em;
}

.foot-host { font-size: 16px; color: #9cbc7c; word-break: break-all; }

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

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  color: #cdf2a4;
  text-decoration: none;
  border-bottom: 2px solid rgba(128, 255, 0, .22);
}

.foot-links a:hover,
.foot-links a:focus-visible { color: #00ff00; border-color: #00ff00; }

.sub { display: flex; flex-direction: column; gap: 8px; }

.sub label {
  font-size: 16px;
  font-weight: 700;
  color: #b6ff5e;
  letter-spacing: .06em;
}

.sub input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 16px;
  color: #0b0f07;
  background: #e2f7c8;
  border: 2px solid #80ff00;
  border-radius: 0;
}

.sub input::placeholder { color: #4a5c38; }

.sub button {
  min-height: 44px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #0b0f07;
  background: #80ff00;
  border: 2px solid #0b0f07;
  border-radius: 0;
  cursor: pointer;
}

.sub button:hover { background: #00ff00; }

.copy {
  max-width: 1160px;
  margin: 26px auto 0;
  padding-top: 14px;
  font-size: 16px;
  color: #86a468;
  border-top: 2px solid rgba(128, 255, 0, .28);
}

/* ---------- 滚动出场 ---------- */
.js .sheet section,
.js .foot-col {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.js .sheet section.in,
.js .foot-col.in { opacity: 1; transform: none; }

/* ---------- 动效 ---------- */
@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, -1px) rotate(.7deg); }
  50% { transform: translate(-1px, 1px) rotate(-.6deg); }
  75% { transform: translate(1px, 1px) rotate(.4deg); }
}

/* ---------- 宽屏 ---------- */
@media (min-width: 820px) {
  html { scroll-padding-top: 168px; }

  .topbar {
    position: sticky;
    top: 0;
    gap: 6px;
    padding: 10px 14px 12px;
    backdrop-filter: saturate(140%) blur(4px);
  }

  .brand { font-size: 28px; }

  .brand-logo {
    width: 34px;
    height: 34px;
    animation: jitter 3.4s steps(2) infinite;
  }

  .nav-menu {
    flex-wrap: wrap;
    overflow: visible;
    margin-top: 10px;
    padding-bottom: 0;
  }

  .nav-menu a { min-height: 44px; }

  .nav > summary { min-height: 44px; padding: 8px 15px; }

  .sheet section { scroll-margin-top: 160px; }

  .hero { min-height: calc(100svh - 160px); }

  main {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 168px;
    padding-top: 40px;
  }

  .rail-list { flex-direction: column; gap: 4px; }

  .rail-list a { width: 100%; }

  .sheet { padding-top: 40px; }

  .foot-grid { grid-template-columns: 1.1fr .9fr 1.2fr; gap: 34px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(40px, 5.4vw, 74px); }
}

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

  .tape-run,
  .brand-logo { animation: none; }

  .js .sheet section,
  .js .foot-col {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img { transform: scale(1); }
}
</style.css>

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