:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --ink-2: #2b3520;
  --paper: #eaffd6;
  --line: rgba(128, 255, 0, 0.3);
  --glass: rgba(255, 255, 255, 0.06);
  --r: 18px;
  --head: 'Anton', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(circle at 12% 8%, rgba(0, 255, 0, 0.14), transparent 42%),
    radial-gradient(circle at 88% 32%, rgba(128, 255, 0, 0.12), transparent 46%);
  color: var(--paper);
  font-family: 'Epilogue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}

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

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

main [id] {
  scroll-margin-top: 118px;
}

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(31, 38, 23, 0.96);
  border-bottom: 2px solid var(--lime);
}

.logo {
  justify-self: center;
  font-family: var(--head);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
  background: var(--lime);
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  transform: rotate(-2.5deg);
  box-shadow: 3px 3px 0 var(--green);
}

.cta {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transform: rotate(1.5deg);
}

.cta:hover {
  background: var(--green);
  color: var(--ink);
}

/* ---------- 折叠全屏菜单 ---------- */
.menu summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

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

.burger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.menu menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  margin: 0;
  padding: 84px 22px 34px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(31, 38, 23, 0.97);
  background-image: radial-gradient(circle at 80% 90%, rgba(0, 255, 0, 0.16), transparent 55%);
  overflow-y: auto;
}

.menu menu li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 10px;
  font-family: var(--head);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.menu menu li:nth-child(odd) a {
  transform: rotate(-0.8deg);
}

.menu menu li a:hover {
  color: var(--ink);
  background: var(--lime);
}

/* ---------- 二级锚点条 ---------- */
.rail {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.rail-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px;
  scrollbar-width: none;
}

.rail-in::-webkit-scrollbar {
  display: none;
}

.rail-in a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(128, 255, 0, 0.07);
}

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

/* ---------- 主体骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 0;
  align-items: start;
}

.side {
  position: sticky;
  top: 118px;
  padding: 16px 14px;
  background: var(--glass);
  border: 2px dashed var(--green);
  border-radius: var(--r);
  transform: rotate(-1.1deg);
}

.side h2 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--green);
  line-height: 1.2;
}

hr {
  border: 0;
  height: 3px;
  width: 56px;
  margin: 0 0 14px;
  background: var(--lime);
}

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

.jump a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
}

.jump a:hover {
  background: var(--lime);
  color: var(--ink);
}

.num {
  font-family: var(--head);
  font-size: 0.9rem;
  color: var(--lime);
}

.jump a:hover .num {
  color: var(--ink);
}

/* ---------- 头图 ---------- */
.body {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 22px 34px;
  margin-bottom: 26px;
  border: 2px solid var(--lime);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(150deg, #2b3520, #1f2617 70%);
}

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

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(160%) contrast(108%);
  opacity: 0.9;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 38, 23, 0.95) 12%, rgba(31, 38, 23, 0.25) 70%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  top: 8px;
  left: -6px;
  right: 0;
  z-index: 1;
  font-family: var(--head);
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  opacity: 0.55;
  transform: rotate(-3deg);
  animation: jitter 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-txt {
  position: relative;
  z-index: 2;
  max-width: 46ch;
}

.hero-txt h1 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: clamp(2rem, 7.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--lime);
  text-shadow: 4px 4px 0 rgba(31, 38, 23, 0.85);
}

.lede {
  margin: 0;
  font-size: 1.02rem;
  color: var(--paper);
  text-wrap: pretty;
}

/* ---------- 正文 ---------- */
.prose {
  display: grid;
  gap: 22px;
  padding-bottom: 8px;
}

.prose > article {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 22px 20px;
  transform: rotate(-0.35deg);
}

.prose > article:nth-child(even) {
  transform: rotate(0.35deg);
  border-color: rgba(0, 255, 0, 0.3);
}

.prose h2 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.prose h3 {
  margin: 20px 0 8px;
  font-family: var(--head);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--green);
}

.prose p {
  margin: 0 0 14px;
  text-wrap: pretty;
}

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

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

.prose li {
  margin-bottom: 6px;
}

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

.prose strong {
  color: var(--lime);
}

.prose img {
  border: 2px solid var(--lime);
  border-radius: 12px;
  margin: 8px 0 16px;
  filter: saturate(140%);
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 5px solid var(--green);
  background: rgba(0, 255, 0, 0.09);
  border-radius: 0 12px 12px 0;
}

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

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

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 44px;
  padding: 30px 20px 20px;
  background: var(--ink-2);
  border-top: 3px solid var(--lime);
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 20px;
}

.foot-brand {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--lime);
  line-height: 1.15;
}

.foot-id address {
  font-style: normal;
  font-size: 16px;
  color: var(--green);
  word-break: break-all;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed rgba(128, 255, 0, 0.25);
}

.foot-nav a:hover {
  color: var(--ink);
  background: var(--lime);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 14px;
  border: 2px dashed var(--green);
  border-radius: var(--r);
}

.sub input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--line);
  border-radius: 999px;
}

.sub input::placeholder {
  color: rgba(234, 255, 214, 0.6);
}

.sub button {
  min-height: 44px;
  padding: 10px 26px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transform: rotate(-1.5deg);
}

.sub button:hover {
  background: var(--green);
}

.cr {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 12px;
  font-size: 16px;
  color: rgba(234, 255, 214, 0.72);
  border-top: 1px solid var(--line);
}

/* ---------- 动效 ---------- */
@keyframes jitter {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-5px);
  }
}

.prose > article {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.prose > article:hover {
  transform: rotate(0deg) scale(1.005);
  border-color: var(--lime);
}

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

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 14px 14px 0;
  }
  .body {
    order: 1;
  }
  .side {
    order: 2;
    position: static;
    width: 100%;
    transform: none;
  }
  .jump {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 62vh;
    padding: 78px 16px 26px;
  }
  .hero-bg {
    -webkit-text-stroke-width: 1.5px;
  }
  .foot-top {
    grid-template-columns: 1fr;
  }
  .foot-nav ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .jump {
    grid-template-columns: 1fr;
  }
  .logo {
    font-size: 0.95rem;
    padding: 9px 12px;
  }
  .cta {
    padding: 8px 12px;
  }
}

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