@charset "utf-8";

:root {
  --neon: #80ff00;
  --lime: #00ff00;
  --ink: #1f2617;
  --ink-deep: #131a0d;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(128, 255, 0, 0.32);
  --text: #e9ffd4;
  --dim: #a8c98a;
  --r: 10px;
  --pad: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Didact Gothic", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(0, 255, 0, 0.20), transparent 44%),
    radial-gradient(circle at 88% 26%, rgba(128, 255, 0, 0.16), transparent 42%),
    repeating-linear-gradient(0deg, rgba(128, 255, 0, 0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(128, 255, 0, 0.06) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, var(--ink-deep), var(--ink) 55%, #26301b);
  background-attachment: fixed;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* ---------- 顶部两行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(19, 26, 13, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.row-brand {
  display: flex;
  align-items: center;
  padding: 9px var(--pad) 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--neon);
}

.brand-name {
  font-family: "Poiret One", "Didact Gothic", system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 16px rgba(128, 255, 0, 0.55), 2px 2px 0 rgba(0, 255, 0, 0.25);
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  object-fit: cover;
  filter: saturate(160%);
}

.row-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad) 11px;
}

.drop { flex: 1 1 100%; min-width: 0; }
.drop[open] { flex: 1 1 100%; }

.drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--neon);
  background: rgba(128, 255, 0, 0.14);
  color: var(--neon);
  font-size: 16px;
  letter-spacing: 0.18em;
}

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

.drop > summary::after {
  content: "✳";
  font-size: 16px;
  transform: rotate(0deg);
  transition: transform 0.25s ease;
}

.drop[open] > summary::after { transform: rotate(180deg); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pills a:hover,
.pills a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  transform: translateY(-2px) rotate(-1.6deg);
}

.search {
  display: flex;
  flex: 1 1 200px;
  gap: 6px;
  min-width: 0;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 9px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search input::placeholder { color: var(--dim); }

.search button {
  flex: 0 0 auto;
  min-height: 42px;
  min-width: 64px;
  padding: 9px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }

/* ---------- 走马灯 ---------- */
.ticker {
  display: flex;
  overflow: hidden;
  background: var(--neon);
  color: var(--ink);
  border-bottom: 2px solid var(--ink-deep);
  padding: 7px 0;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: 16px;
  letter-spacing: 0.3em;
}

.run {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  animation: slide 24s linear infinite;
}

.run .gap { padding: 0 14px; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  padding: 26px var(--pad) 40px;
  overflow: hidden;
  border-bottom: 2px dashed rgba(128, 255, 0, 0.4);
  background-image: radial-gradient(rgba(128, 255, 0, 0.36) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
}

.hero-art { position: absolute; inset: 0; pointer-events: none; }

.cut {
  position: absolute;
  width: min(36vw, 250px);
  border: 3px solid var(--neon);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  filter: saturate(155%);
}

.cut-a { top: 5%; left: 1%; transform: rotate(-8deg); }
.cut-b { bottom: 3%; right: 1%; transform: rotate(7deg); }

.hero-in {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 880px;
}

.sticker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 14px;
  background: var(--lime);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  animation: jitter 3.6s ease-in-out infinite;
}

@keyframes jitter {
  0%, 100% { transform: rotate(-5deg) translate(0, 0); }
  35% { transform: rotate(-8deg) translate(-2px, 1px); }
  70% { transform: rotate(-3deg) translate(2px, -1px); }
}

h1 {
  margin: 0;
  font-family: "Poiret One", "Didact Gothic", system-ui, sans-serif;
  font-size: clamp(28px, 7.2vw, 58px);
  line-height: 1.16;
  letter-spacing: 0.05em;
  color: #f3ffe0;
  overflow-wrap: break-word;
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.45), 3px 3px 0 rgba(128, 255, 0, 0.28);
}

/* ---------- 主体：左栏 + 正文 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px var(--pad) 42px;
}

.rail {
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  transform: rotate(-0.7deg);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.35);
}

.rail h2 {
  margin: 0;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: 21px;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.subtitle {
  margin: 2px 0 12px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--lime);
  padding-left: 8px;
}

.paper { min-width: 0; }

.paper > .body {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.paper section {
  position: relative;
  margin: 0 0 20px;
  padding: 18px 15px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.paper section:nth-child(even) { transform: rotate(-0.25deg); }
.paper section:nth-child(odd) { transform: rotate(0.2deg); }

.paper section[id] { scroll-margin-top: 168px; }

.paper h2 {
  margin: 0 0 10px;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.24;
  letter-spacing: 0.06em;
  color: var(--neon);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.paper h3 {
  margin: 20px 0 8px;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #f0ffd9;
}

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

.paper ul,
.paper ol { margin: 0 0 14px; padding-left: 1.3em; }
.paper li { margin-bottom: 6px; }

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

.paper strong { color: #f6ffe4; }

.paper blockquote {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 5px solid var(--neon);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 8px 8px 0;
  color: var(--dim);
}

.paper code {
  font-size: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 5px;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 16px;
}

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

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px var(--pad) 38px;
  border-top: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-family: "Poiret One", "Didact Gothic", sans-serif;
  font-size: clamp(30px, 9vw, 62px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--neon);
  transform: rotate(-1.6deg);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.foot-col {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--dim);
}

.foot-col a {
  display: inline-block;
  min-height: 40px;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}

.foot-col a:hover,
.foot-col a:focus-visible { color: var(--lime); }

.foot-copy {
  grid-row: 3;
  grid-column: 1 / 2;
  align-self: center;
  font-size: 16px;
  color: var(--dim);
}

.foot-links {
  grid-row: 3;
  grid-column: 3 / 4;
  justify-self: end;
  align-self: center;
  font-size: 16px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--neon);
  text-decoration: none;
}

.foot-links a:hover { background: var(--neon); color: var(--ink); }

.to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transform: rotate(-4deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.to-top:hover { transform: rotate(0deg) translateY(-2px); }

/* ---------- 滚动浮现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in { opacity: 1; }

.paper section.reveal.in:nth-child(even) { transform: rotate(-0.25deg); }
.paper section.reveal.in:nth-child(odd) { transform: rotate(0.2deg); }
.paper section.reveal.in { transform: none; }

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .row-menu { flex-wrap: nowrap; }
  .drop, .drop[open] { flex: 1 1 auto; }
  .search { flex: 0 1 260px; }
}

@media (min-width: 900px) {
  :root { --pad: 22px; }
  .drop > summary { display: none; }
  .pills { margin-top: 0; }
  .stage {
    grid-template-columns: 252px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 34px var(--pad) 62px;
  }
  .rail { position: sticky; top: 158px; }
  .paper section { padding: 24px 22px; }
  .to-top { right: 26px; bottom: 26px; }
}

@media (max-width: 640px) {
  .cut { width: 40vw; opacity: 0.55; }
  .cut-a { top: 3%; left: -4%; }
  .cut-b { bottom: 2%; right: -4%; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-cta,
  .foot-col,
  .foot-copy,
  .foot-links {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }
  .foot-col { line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .run,
  .sticker { animation: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .pills a:hover,
  .search button:hover,
  .to-top:hover { transform: none; }
}

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