:root {
  --ink: #1f2617;
  --ink-deep: #11160c;
  --neon: #80ff00;
  --neon2: #00ff00;
  --paper: #e8f6d6;
  --mut: #a8c194;
  --glass: rgba(128, 255, 0, 0.08);
  --line: rgba(128, 255, 0, 0.28);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Libre Baskerville", "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background:
    radial-gradient(60vw 50vh at 88% -6%, rgba(128, 255, 0, 0.2), transparent 62%),
    radial-gradient(52vw 44vh at -8% 34%, rgba(0, 255, 0, 0.13), transparent 60%),
    radial-gradient(70vw 60vh at 50% 112%, rgba(128, 255, 0, 0.1), transparent 65%),
    var(--ink-deep);
  padding-bottom: 104px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

[id] {
  scroll-margin-top: 26px;
  scroll-margin-bottom: 116px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 42px);
}

/* 顶部跑马灯 */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--neon);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.tick-in {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  white-space: nowrap;
  animation: slide 26s linear infinite;
  will-change: transform;
}

.tick-in b {
  font-weight: 700;
}

.tick-in i {
  font-style: normal;
  color: var(--ink);
}

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

/* 底部胶囊条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  background: rgba(17, 22, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.brand-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(128, 255, 0, 0.14);
  text-decoration: none;
  transform: rotate(-4deg);
}

.brand-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.brand-glyph {
  font-size: 20px;
  font-weight: 700;
  color: var(--neon);
}

.dock nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock nav::-webkit-scrollbar {
  display: none;
}

.dock nav p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
}

.dock nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
  font-size: 15px;
  color: var(--neon);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(128, 255, 0, 0.07);
}

.dock nav a:first-child {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  font-weight: 700;
}

.dock nav a:hover {
  background: var(--neon2);
  color: var(--ink);
  border-color: var(--neon2);
}

.top-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--neon2);
  border-radius: 999px;
  font-weight: 700;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 18px;
  padding: clamp(34px, 8vw, 76px) 0 clamp(26px, 6vw, 56px);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.9rem, 13vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--neon);
  transform: rotate(-1.4deg);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55), 11px 11px 0 rgba(0, 255, 0, 0.2);
  mix-blend-mode: screen;
  word-break: break-word;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  --r: -2.5deg;
  transform: rotate(var(--r));
  animation: jit 5s ease-in-out infinite;
}

.chip-1 { --r: -3deg; }
.chip-2 { --r: 2.2deg; animation-delay: -1.7s; background: rgba(0, 255, 0, 0.16); }
.chip-3 { --r: -5deg; animation-delay: -3.2s; }

.chip:hover {
  color: var(--ink);
  background: var(--neon);
}

@keyframes jit {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) * -0.6)) translateY(-7px); }
}

.tape {
  position: absolute;
  top: clamp(18px, 6vw, 54px);
  left: 0;
  margin: 0;
  padding: 9px 24px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ink);
  background: var(--neon2);
  border-radius: var(--radius);
  transform: rotate(-6deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  clip-path: polygon(2% 0, 98% 4%, 100% 96%, 0 100%);
}

.arrow {
  align-self: flex-end;
  font-size: 22px;
  color: var(--neon2);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(9px); }
}

/* 主体：左栏 + 正文 */
.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 40px);
  align-items: start;
  padding-bottom: 48px;
}

.rail {
  position: sticky;
  top: 22px;
  padding: 16px 16px 12px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(-1.3deg);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.35);
}

.rail small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--neon2);
}

.rail h2 {
  margin: 4px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--neon);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed rgba(128, 255, 0, 0.22);
}

.rail a:hover {
  color: var(--neon2);
}

/* 正文 */
.prose {
  min-width: 0;
}

.prose > article {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.prose > article:nth-of-type(even) {
  border-style: dashed;
  background: rgba(128, 255, 0, 0.06);
  transform: rotate(-0.4deg);
}

.prose > article:nth-of-type(3n) {
  transform: rotate(0.45deg);
}

.prose > article::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--neon);
}

.prose small {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--neon2);
  margin-bottom: 2px;
}

.prose h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.15em 0 0.5em;
  color: var(--neon);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.4em 0 0.4em;
  color: var(--neon2);
}

.prose p {
  margin: 0 0 1em;
  max-width: 64ch;
}

.prose h2 + p {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--neon2);
}

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

.prose strong {
  color: #ffffff;
}

.prose blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(128, 255, 0, 0.07);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose figure {
  margin: 1em 0;
}

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px 22px;
  padding: 46px clamp(16px, 4vw, 42px) 30px;
  margin-top: 12px;
  border-top: 2px dashed var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 9vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.foot-cta a {
  color: var(--neon);
  text-decoration: none;
}

.foot-cta a:hover {
  color: var(--neon2);
}

.foot-col {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--mut);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--neon2);
}

.foot-copy {
  grid-column: 1 / 3;
  font-size: 14px;
  color: var(--mut);
}

.foot-links {
  grid-column: 3 / 5;
  justify-self: end;
  font-size: 14px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--neon2);
  text-decoration: none;
}

@media (max-width: 880px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rail {
    position: static;
    transform: rotate(-1deg);
  }

  .rail ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  .rail a {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-copy {
    grid-column: 1 / -1;
  }

  .foot-links {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

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

  .dock {
    gap: 8px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .dock nav p {
    gap: 6px;
  }

  .dock nav a {
    font-size: 14px;
    padding: 9px 11px;
  }

  .top-btn {
    font-size: 13px;
    padding: 9px 11px;
  }

  .hero {
    min-height: 66vh;
  }

  .tape {
    font-size: 12px;
    padding: 8px 18px;
  }

  .prose > article {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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