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

:root {
  --ink: #1f2617;
  --ink-deep: #10160c;
  --neon: #80ff00;
  --lime: #00ff00;
  --paper: #eaffd8;
  --glass: rgba(234, 255, 216, 0.07);
  --line: rgba(128, 255, 0, 0.4);
  --font: 'Outfit', system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(128, 255, 0, 0.24), transparent 62%),
    radial-gradient(760px 460px at 98% 4%, rgba(0, 255, 0, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 110%, rgba(128, 255, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #141a0f 0%, #1f2617 46%, #0d120a 100%);
  background-attachment: fixed;
}

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

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

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

/* ---------- 顶部 ---------- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 3px solid var(--neon);
  background: rgba(16, 22, 12, 0.72);
  backdrop-filter: blur(9px) saturate(150%);
}

.brandbox { display: flex; justify-content: center; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  border-radius: 4px;
}

.logo-img {
  border-radius: 4px;
  border: 2px solid var(--neon);
}

.logotext {
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  color: var(--neon);
  text-shadow: 2px 2px 0 rgba(31, 38, 23, 0.9);
}

.mast-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.mast-nav--b { justify-content: flex-end; }

.mast-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mast-nav a:hover {
  background: var(--neon);
  color: var(--ink);
  transform: rotate(-2.5deg);
}

/* ---------- 走马灯 ---------- */
.ticker {
  overflow: hidden;
  background: var(--neon);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  padding: 0.35rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 22s linear infinite;
}

.ticker-track span { padding: 0 0.7rem; white-space: nowrap; }
.ticker-track span::after { content: ' ·'; color: var(--ink); }

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

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 22, 12, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.rail-track {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rail-track a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: rgba(128, 255, 0, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rail-track a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* ---------- 头部主视觉 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 3.4rem 1.1rem 4.2rem;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px) saturate(150%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.blob--a {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 4%;
  background: radial-gradient(circle at 40% 35%, rgba(128, 255, 0, 0.55), rgba(0, 255, 0, 0.05) 70%);
}

.blob--b {
  width: 200px;
  height: 200px;
  right: -50px;
  bottom: 2%;
  background: radial-gradient(circle at 60% 60%, rgba(0, 255, 0, 0.4), rgba(128, 255, 0, 0.04) 70%);
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 18em;
  font-size: clamp(2.1rem, 7.2vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-shadow: 7px 7px 0 rgba(128, 255, 0, 0.22);
}

.sticker {
  position: absolute;
  z-index: 3;
  padding: 0.4rem 0.65rem;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 rgba(16, 22, 12, 0.85);
  transform: rotate(var(--tilt, -7deg));
  animation: jitter 3.6s ease-in-out infinite alternate;
}

.sticker--a { left: 6%; top: 22%; }
.sticker--b {
  right: 7%;
  bottom: 20%;
  background: var(--paper);
  animation-delay: 0.7s;
}

@keyframes jitter {
  from { translate: 0 0; }
  to { translate: 3px -4px; }
}

.hero-art {
  position: absolute;
  right: 5%;
  top: 8%;
  z-index: 3;
  margin: 0;
  transform: rotate(-11deg);
  text-align: center;
}

.disc {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(96deg, rgba(31, 38, 23, 0.85) 0 6px, rgba(128, 255, 0, 0.9) 6px 12px);
  box-shadow: 5px 5px 0 rgba(31, 38, 23, 0.7);
}

.hero-art figcaption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--neon);
}

/* ---------- 主体 ---------- */
.deck { display: block; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.1rem 3.2rem;
}

.side {
  position: sticky;
  top: 68px;
  padding: 0.95rem;
  background: var(--glass);
  backdrop-filter: blur(11px) saturate(150%);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.side-h {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--neon);
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(234, 255, 216, 0.76);
}

.side-nav { display: flex; flex-direction: column; }

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.15rem 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  border-top: 1px dashed rgba(128, 255, 0, 0.28);
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}

.side-nav a:hover {
  background: var(--neon);
  color: var(--ink);
  padding-left: 0.75rem;
}

/* ---------- 正文块 ---------- */
.stream > section {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.15rem 1.6rem;
  background: rgba(234, 255, 216, 0.055);
  backdrop-filter: blur(10px) saturate(140%);
  border: 2px solid rgba(128, 255, 0, 0.28);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  scroll-margin-top: 92px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stream > section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon), var(--lime));
  opacity: 0.55;
}

.stream > section:nth-child(odd) { transform: rotate(-0.32deg); }
.stream > section:nth-child(even) { transform: rotate(0.28deg); }

.stream > section:hover {
  transform: rotate(0deg) translateY(-2px);
  border-color: var(--neon);
}

.stream h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.34rem, 3.6vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  background: linear-gradient(transparent 64%, rgba(128, 255, 0, 0.42) 64%);
  display: inline;
}

.stream h2 + p.subtitle,
.stream h2 + p {
  margin-top: 0.55rem;
}

.stream h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: 0.02em;
}

.stream p { margin: 0 0 0.9rem; }

.stream a {
  color: var(--neon);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.stream a:hover {
  background: var(--neon);
  color: var(--ink);
  text-decoration: none;
}

.stream ul,
.stream ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.stream li { margin: 0 0 0.45rem; }

.stream li:nth-child(-n + 8) {
  animation: rise 0.5s ease both;
}

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

@keyframes rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

.stream figure { margin: 1rem 0; }
.stream figcaption { font-size: 0.85rem; color: rgba(234, 255, 216, 0.7); }

.stream blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 5px solid var(--lime);
  background: rgba(0, 255, 0, 0.07);
  border-radius: 0 4px 4px 0;
}

.stream table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.stream th,
.stream td {
  border: 1px solid rgba(128, 255, 0, 0.3);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.stream th { background: rgba(128, 255, 0, 0.14); font-weight: 900; }

.stream code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.92em;
  background: rgba(0, 255, 0, 0.12);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding: 1.3rem 1.1rem 1.9rem;
  border-top: 3px solid var(--neon);
  background: rgba(9, 13, 7, 0.72);
}

.f-brand { display: flex; }

.f-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
}

.f-logo span {
  font-size: clamp(1.3rem, 4.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--neon);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.f-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.35rem;
  margin: 0;
}

.f-nav dd { display: none; }

.f-nav dt { margin: 0; }

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.45rem;
  font-size: 0.9rem;
  color: rgba(234, 255, 216, 0.86);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.f-nav a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.f-fine p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: rgba(234, 255, 216, 0.62);
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.15rem;
    padding-bottom: 0.55rem;
  }

  .mast-nav { justify-content: center; }
  .mast-nav--b { justify-content: center; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.6rem;
  }

  .side { position: static; }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.35rem;
  }

  .stream > section:nth-child(odd),
  .stream > section:nth-child(even) { transform: rotate(0deg); }

  .hero { min-height: 0; padding-top: 2.6rem; padding-bottom: 3.4rem; }

  .hero-art { top: 4%; right: 5%; }

  .disc { width: 62px; height: 62px; }

  .sticker--a { left: 4%; top: 44%; }
  .sticker--b { right: 5%; bottom: 6%; }

  .foot { justify-content: center; text-align: center; }

  .f-nav dl { justify-content: center; }
}

@media (min-width: 881px) and (max-width: 1040px) {
  .stage { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .mast-nav a { font-size: 0.88rem; padding: 0.25rem 0.4rem; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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