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

:root {
  --acid: #80ff00;
  --lime: #00ff00;
  --ink: #1f2617;
  --paper: #f4ffe0;
  --dim: #b7d499;
  --line: rgba(128, 255, 0, .3);
  --r: 28px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  background: var(--ink);
  color: #e8ffd6;
  font-family: 'Plus Jakarta Sans', "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -.015em;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.12; letter-spacing: -.035em; }
p { margin: 0 0 14px; }

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

article { scroll-margin-top: 132px; }

/* 顶部条 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 6px;
  background: #1b2114;
  border-bottom: 2px solid var(--acid);
  box-shadow: 0 6px 0 rgba(0, 255, 0, .14);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 10px;
  border: 2px solid var(--acid);
  border-radius: 14px;
  background: var(--acid);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 rgba(0, 255, 0, .5);
}

.mark-img { width: 32px; height: 32px; border-radius: 8px; }
.mark-txt { font-weight: 800; font-size: 16px; letter-spacing: -.03em; }

.find {
  display: flex;
  flex: 1 1 130px;
  min-width: 0;
  gap: 6px;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #131a0d;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.find input::placeholder { color: #8dab73; }

.find button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.find button:hover { background: var(--acid); color: var(--ink); }

.jump {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 -14px;
  padding: 6px 14px 8px;
  border-top: 1px dashed var(--line);
  background: #1b2114;
}

.jump p {
  margin: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump p::-webkit-scrollbar { display: none; }

.jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(128, 255, 0, .08);
  color: #d8ffb2;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.jump a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: rotate(-2deg);
}

/* 版心 */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow-x: clip;
}

.wrap main { min-width: 0; }

/* 左侧索引 */
.rail {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  background: rgba(128, 255, 0, .05);
  scrollbar-width: none;
}

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

.rail-tag {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  transform: rotate(-2deg);
}

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

.rail-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #d8ffb2;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.rail-list a:hover { background: rgba(0, 255, 0, .18); color: #fff; }
.rail-list span { font-size: 14px; font-weight: 800; color: var(--lime); }
.rail-brand { display: none; }

/* 头图区 */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0 6px;
}

.ghost {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  font-size: clamp(64px, 17vw, 158px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
  text-align: right;
  color: transparent;
  -webkit-text-stroke: 2px rgba(128, 255, 0, .28);
  white-space: nowrap;
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 14px 0 0;
  transform: rotate(-2deg);
}

.hero-art img {
  border-radius: var(--r);
  border: 4px solid var(--acid);
  box-shadow: 12px 14px 0 rgba(0, 255, 0, .18), 0 18px 40px rgba(0, 0, 0, .45);
}

.hero-sticker {
  position: absolute;
  right: 2px;
  bottom: -12px;
  width: 84px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  transform: rotate(8deg);
}

.hero-say { position: relative; z-index: 2; min-width: 0; text-align: right; }

.chip {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(31, 38, 23, .38);
  animation: jitter 6s ease-in-out infinite;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7.6vw, 58px);
  color: var(--acid);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.note {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--r);
  border: 2px dashed var(--line);
  background: rgba(128, 255, 0, .07);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
  transform: rotate(.6deg);
}

.note h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: .02em; color: var(--lime); }
.note .subtitle { margin: 0; font-size: 16px; line-height: 1.6; color: #cfe9b2; }

@keyframes jitter {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(1.5deg) translateY(-2px); }
}

/* 跑马条 */
.tape {
  overflow: hidden;
  margin: 22px -14px;
  border-block: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-1.2deg);
}

.tape-run {
  display: inline-block;
  margin: 0;
  padding: 7px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  animation: slide 26s linear infinite;
}

.tape-run span { padding: 0 10px; }

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

/* 正文 */
.ledger { display: block; min-width: 0; }

.ledger > article {
  position: relative;
  margin: 20px 0;
  padding: 24px 16px;
  border-radius: var(--r);
  border: 2px solid rgba(128, 255, 0, .18);
  background: rgba(255, 255, 255, .028);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .31);
  transform: rotate(var(--rot, -.2deg));
}

.ledger > article:nth-of-type(even) {
  --rot: .25deg;
  background: rgba(0, 255, 0, .05);
  border-color: rgba(0, 255, 0, .22);
}

.ledger > article:target {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(0, 255, 0, .22), 0 14px 30px rgba(0, 0, 0, .31);
}

.ledger h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: clamp(22px, 4.4vw, 30px);
  color: var(--acid);
  border-bottom: 2px solid rgba(128, 255, 0, .25);
}

.ledger h3 { margin: 22px 0 8px; font-size: 20px; color: var(--lime); }
.ledger p { margin: 0 0 14px; }
.ledger ul, .ledger ol { margin: 0 0 16px; padding-left: 22px; }
.ledger li { margin: 0 0 8px; }
.ledger li::marker { color: var(--lime); }
.ledger a { color: var(--lime); text-underline-offset: 3px; }
.ledger strong { color: #fff; }

.ledger blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--lime);
  border-radius: 0 18px 18px 0;
  background: rgba(0, 255, 0, .07);
}

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

.ledger code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  font-size: 15px;
}

.ledger pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .35);
}

.ledger table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 16px;
}

.ledger th, .ledger td { padding: 8px 10px; border: 1px solid rgba(128, 255, 0, .25); text-align: left; vertical-align: top; }
.ledger th { background: rgba(128, 255, 0, .12); color: var(--acid); }

.ledger figure { margin: 0 0 16px; }
.ledger img { margin: 6px 0; border: 3px solid rgba(128, 255, 0, .35); border-radius: 20px; }

.js .ledger > article {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .55s ease, translate .55s ease;
}

.js .ledger > article.in { opacity: 1; translate: 0 0; }

/* 页脚 */
footer {
  max-width: 1200px;
  margin: 44px auto 0;
  padding: 26px 16px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border-top: 3px solid var(--acid);
  overflow-x: clip;
}

footer p { margin: 0; }

.f-brand {
  font-size: clamp(34px, 10vw, 54px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--acid);
  transform: rotate(-2deg);
}

.f-col { display: flex; flex-direction: column; min-width: 0; }

.f-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #d8ffb2;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(128, 255, 0, .18);
}

.f-col a:hover { color: var(--acid); }
.f-note { font-size: 16px; color: var(--dim); }
.f-note a { color: var(--lime); font-weight: 700; white-space: nowrap; }

footer small {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: #93b078;
  font-size: 16px;
}

/* 断点 */
@media (min-width: 760px) {
  footer { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding: 34px 24px 40px; }
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    min-height: 70vh;
  }

  .hero-say { padding-right: 8px; }
}

@media (min-width: 860px) {
  .topbar { flex-wrap: nowrap; padding: 10px 24px; }
  .find { flex: 0 1 220px; }
  .jump {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: none;
  }
  .jump p { justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 900px) {
  .wrap { grid-template-columns: 210px minmax(0, 1fr); gap: 34px; padding: 34px 24px 0; }
  .rail {
    position: sticky;
    top: 106px;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 16px;
    border-radius: 22px;
  }
  .rail-tag { align-self: flex-start; }
  .rail-list { flex-direction: column; gap: 4px; }
  .rail-list a { width: 100%; justify-content: flex-start; padding: 0 10px; }
  .rail-brand {
    display: block;
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--acid);
    transform: rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .ledger > article { opacity: 1; translate: 0 0; }
}
</style>

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