@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #1f2617;
  --lime: #80ff00;
  --green: #00ff00;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(128, 255, 0, 0.3);
  --radius: 28px;
  --font: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(128, 255, 0, 0.2), transparent 44%),
    radial-gradient(circle at 88% 24%, rgba(0, 255, 0, 0.14), transparent 40%),
    radial-gradient(circle at 46% 94%, rgba(128, 255, 0, 0.11), transparent 46%);
  background-attachment: fixed;
  color: #eef8e0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  overflow-wrap: break-word;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 90;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip:focus-visible {
  transform: translateY(0);
}

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

.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 6px 14px 8px;
  background: rgba(23, 29, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mast-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 0 4px;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 3px 10px 3px 6px;
  border-radius: 14px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f6ffea;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mark img {
  height: 32px;
  width: auto;
}

.mark:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(1deg);
}

.mast-nav {
  padding-bottom: 2px;
}

.nav-list {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) transparent;
}

.nav-list li {
  flex: 0 0 auto;
  animation: pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.nav-list li:nth-child(1) { animation-delay: 0.02s; }
.nav-list li:nth-child(2) { animation-delay: 0.06s; }
.nav-list li:nth-child(3) { animation-delay: 0.1s; }
.nav-list li:nth-child(4) { animation-delay: 0.14s; }
.nav-list li:nth-child(5) { animation-delay: 0.18s; }
.nav-list li:nth-child(6) { animation-delay: 0.22s; }
.nav-list li:nth-child(7) { animation-delay: 0.26s; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(128, 255, 0, 0.07);
  color: #e2f8c8;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav-list a:hover {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px) rotate(-1.6deg);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
}

/* ---------- 首屏 ---------- */

.wrap {
  display: block;
}

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 34px;
  padding: 84px 22px 60px;
  overflow: clip;
}

.hero--plain {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 44px 0 30px;
  text-align: left;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 6.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 800;
  color: #f7ffec;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.hero .lead {
  margin: 0 0 8px;
  max-width: 36ch;
  font-size: 1.02rem;
  color: #cfe3b8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(0, 255, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translate(-3px, -3px) rotate(-1.2deg);
  box-shadow: 10px 10px 0 rgba(0, 255, 0, 0.6);
}

.hero-art {
  position: relative;
  z-index: 2;
  margin: 0;
  border: 2px solid rgba(128, 255, 0, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
  transform: rotate(1.8deg);
  animation: sway 7s ease-in-out infinite;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(150%) contrast(1.05);
}

.hero-art figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  transform: rotate(-2deg);
}

.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  animation: jitter 3.6s ease-in-out infinite;
}

.sticker.st1 {
  top: 0;
  right: 10%;
  background: var(--green);
  transform: rotate(-7deg);
}

.sticker.st2 {
  bottom: -2px;
  right: 2%;
  background: var(--lime);
  transform: rotate(8deg);
  animation-delay: 1.1s;
}

/* ---------- 跑马灯 ---------- */

.tape {
  overflow: hidden;
  padding: 10px 0;
  border-block: 1px solid rgba(31, 38, 23, 0.4);
  background: var(--lime);
  color: var(--ink);
}

.tape-run {
  display: flex;
  width: max-content;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  animation: slide 34s linear infinite;
}

.tape-run span {
  padding-right: 26px;
  white-space: nowrap;
}

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

.stage {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 84px;
}

.rail {
  position: sticky;
  top: 150px;
  order: 1;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail-h {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--lime);
}

.rail-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 12px;
  color: #d8edbf;
  font-size: 0.93rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rail-list a:hover {
  background: rgba(128, 255, 0, 0.15);
  border-left-color: var(--lime);
  color: #ffffff;
}

.paper {
  order: 2;
  min-width: 0;
  padding: 4px 0 0;
}

.kicker {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  transform: rotate(-1.6deg);
}

.paper-h {
  margin: 12px 0 22px;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3ffe4;
}

.paper article {
  margin: 0 0 18px;
  padding: 22px clamp(15px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scroll-margin-top: 152px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.paper article:nth-of-type(odd) {
  transform: rotate(-0.25deg);
}

.paper article:nth-of-type(even) {
  transform: rotate(0.25deg);
}

.paper article:last-of-type {
  margin-bottom: 0;
}

.paper small {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.paper h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.6vw, 1.62rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #f4ffe6;
}

.paper h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #e8ffd0;
}

.paper p {
  margin: 0 0 14px;
  color: #dcebca;
}

.paper p:last-child,
.paper ul:last-child,
.paper ol:last-child {
  margin-bottom: 0;
}

.paper ul,
.paper ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #dcebca;
}

.paper li {
  margin: 6px 0;
}

.paper a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper a:hover {
  background: rgba(128, 255, 0, 0.2);
}

.paper blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--lime);
  border-radius: 0 18px 18px 0;
  background: rgba(128, 255, 0, 0.08);
  color: #e6f6d3;
}

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

.paper img {
  border-radius: 20px;
  border: 1px solid var(--line);
  margin: 14px 0;
}

.paper figure {
  margin: 16px 0;
}

.paper code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 255, 0, 0.16);
  font-size: 0.95em;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.97rem;
}

.paper th,
.paper td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

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

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot p {
  margin: 0 0 6px;
  font-weight: 700;
  color: #eaffd6;
}

.foot a {
  color: var(--lime);
  text-decoration: none;
  padding: 6px 2px;
  display: inline-block;
}

.foot a:hover {
  text-decoration: underline;
}

.foot small {
  display: block;
  color: #a3b98c;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------- 动效 ---------- */

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes jitter {
  0%, 100% { translate: 0 0; }
  35% { translate: 2px -3px; }
  70% { translate: -2px 2px; }
}

@keyframes sway {
  0%, 100% { transform: rotate(1.8deg); }
  50% { transform: rotate(-0.6deg); }
}

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

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

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 34px;
  }

  .rail {
    position: static;
    order: 1;
    padding: 12px;
  }

  .rail-h {
    margin-bottom: 8px;
  }

  .rail-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .rail-list li {
    flex: 0 0 auto;
  }

  .rail-list a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    white-space: nowrap;
  }

  .paper {
    order: 2;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 28px 18px 52px;
  }

  .hero-copy {
    padding-top: 46px;
    padding-bottom: 10px;
  }

  .hero .lead {
    max-width: none;
  }

  .hero-art {
    transform: rotate(1deg);
    animation: none;
  }

  .hero-art img {
    aspect-ratio: 16 / 12;
  }

  .sticker.st1 {
    right: auto;
    left: 0;
    top: 2px;
  }

  .sticker.st2 {
    bottom: auto;
    top: 2px;
    left: 50%;
    right: auto;
  }

  .paper article {
    scroll-margin-top: 168px;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 16px;
  }

  .mast {
    padding-inline: 10px;
  }

  .nav-list a {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .stage {
    padding-inline: 14px;
  }

  .paper article:nth-of-type(odd),
  .paper article:nth-of-type(even) {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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