@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Russo+One&display=swap');

:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --bg: #12180f;
  --fg: #e7ffd8;
  --glass: rgba(128, 255, 0, .07);
  --line: rgba(128, 255, 0, .34);
  --head: 'Russo One', 'Chakra Petch', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 104px;
  font-family: 'Chakra Petch', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(128, 255, 0, .16) 1px, transparent 1.7px),
    linear-gradient(180deg, #141b11 0%, #0d120c 70%);
  background-size: 9px 9px, 100% 100%;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: .015em;
}

/* ---------- 跑马灯 ---------- */
.ticker {
  position: relative;
  z-index: 6;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 9px 0;
}
.tick-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  white-space: nowrap;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: .16em;
  animation: slide 26s linear infinite;
}
.tick-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
  flex: 0 0 auto;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 20%, #2c3a20 0%, #0b1009 70%);
  border-bottom: 5px solid var(--lime);
}
.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(155%) contrast(108%);
  mix-blend-mode: screen;
}
.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 16, 9, .93) 6%, rgba(11, 16, 9, .34) 52%, rgba(31, 38, 23, .88) 96%),
    repeating-linear-gradient(45deg, rgba(128, 255, 0, .07) 0 2px, transparent 2px 7px);
}

.hero-ghost {
  position: absolute;
  left: -.08em;
  bottom: 8vh;
  margin: 0;
  z-index: 1;
  font-family: var(--head);
  font-size: clamp(58px, 15vw, 200px);
  line-height: .8;
  color: rgba(128, 255, 0, .15);
  -webkit-text-stroke: 1px rgba(128, 255, 0, .45);
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 0 6vw 108px;
  text-align: right;
}
.hero-copy h1 {
  margin: 0 0 26px;
  font-size: clamp(34px, 7.4vw, 78px);
  color: #fff;
  text-shadow: 0 0 26px rgba(0, 0, 0, .72), 3px 3px 0 rgba(128, 255, 0, .45);
}
.hero-cta {
  display: inline-block;
  padding: 12px 26px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--head);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(128, 255, 0, .5);
  transform: rotate(-2deg);
}
.hero-cta:hover,
.hero-cta:focus-visible { background: var(--green); transform: rotate(0deg); }

/* ---------- 贴纸 ---------- */
.stk {
  position: absolute;
  display: block;
  z-index: 4;
  pointer-events: none;
  border-radius: 4px;
  animation: jitter 4.5s ease-in-out infinite;
}
.stk-a {
  top: 16%;
  right: 8%;
  width: 66px;
  height: 66px;
  background: var(--green);
  transform: rotate(-11deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.stk-b {
  top: 30%;
  right: 20%;
  width: 34px;
  height: 34px;
  background: var(--lime);
  border-radius: 50%;
  transform: rotate(9deg);
  animation-delay: 1.1s;
}
.stk-c {
  top: 12%;
  right: 27%;
  width: 88px;
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 8px, var(--ink) 8px 16px);
  transform: rotate(6deg);
  animation-delay: .6s;
}
.stk-d {
  top: -14px;
  right: 12px;
  width: 46px;
  height: 46px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  animation-delay: .4s;
}
@keyframes jitter {
  0%, 100% { translate: 0 0; rotate: -6deg; }
  50% { translate: 3px -4px; rotate: 5deg; }
}

/* ---------- 正文区 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px 72px;
}
.body { min-width: 0; }

main > div[id] {
  position: relative;
  margin-bottom: 22px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(9px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 16px 34px rgba(0, 0, 0, .34);
  scroll-margin-top: 18px;
}
main > div[id]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  width: 54px;
  height: 5px;
  background: var(--lime);
  border-radius: 0 0 4px 4px;
}

.content h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 31px);
  color: #fff;
}
.content h2 + p,
.content .subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--green);
}
.content h3 {
  margin: 26px 0 8px;
  font-size: 19px;
  color: var(--lime);
}
.content p { margin: 0 0 14px; }
.content ul,
.content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content strong { color: #fff; }
.content blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--lime);
  background: rgba(128, 255, 0, .08);
  border-radius: 0 10px 10px 0;
}
.content img { max-width: 100%; height: auto; border-radius: 10px; }
.content figure { margin: 0 0 16px; }
.content figcaption { font-size: 14px; color: #a9c79a; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 22px;
  display: block;
}
.side-card {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(31, 38, 23, .62);
  backdrop-filter: blur(11px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .38);
}
.side-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #fff;
}
.side-card .subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--green);
  letter-spacing: .05em;
}
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  counter-reset: t;
}
.toc li { counter-increment: t; }
.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  font-size: 15px;
  color: #d8ffc0;
  text-decoration: none;
  border: 1px solid rgba(128, 255, 0, .22);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  transition: background .18s, color .18s;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--head);
  font-size: 12px;
  color: var(--lime);
}
.toc a:hover,
.toc a:focus-visible,
.toc a.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.toc a:hover::before,
.toc a.active::before { color: var(--ink); }

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 46px 24px 22px;
  background: #0b1009;
  border-top: 5px solid var(--lime);
}
footer div { min-width: 0; }
footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--lime);
  text-transform: uppercase;
}
footer p {
  margin: 0;
  font-size: 15px;
  color: #b6d4a5;
  overflow-wrap: break-word;
}
footer .foot-brand {
  font-family: var(--head);
  font-size: 20px;
  color: #fff;
}
footer ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
footer ol a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #d8ffc0;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
footer ol a:hover,
footer ol a:focus-visible { background: var(--lime); color: var(--ink); }
footer .copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 16px;
  border-top: 1px dashed rgba(128, 255, 0, .3);
}
footer .copy p { font-size: 14px; color: #8fae7f; }

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(13, 18, 12, .94);
  backdrop-filter: blur(14px);
  border-top: 3px solid var(--lime);
}
.brand {
  flex: 0 0 auto;
  padding: 11px 4px;
  font-family: var(--head);
  font-size: 15px;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(128, 255, 0, .6);
}
.bar nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar nav::-webkit-scrollbar { display: none; }
.bar ol {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 2px;
  list-style: none;
}
.bar ol a {
  display: block;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(128, 255, 0, .06);
  color: #d6ffbc;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.bar ol a:hover,
.bar ol a:focus-visible,
.bar ol a.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.find {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.find input {
  width: 92px;
  height: 42px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
}
.find input::placeholder { color: #86a377; }
.find button {
  height: 42px;
  padding: 0 14px;
  font-family: var(--head);
  font-size: 14px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  cursor: pointer;
}
.find button:hover { background: var(--green); }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 16px 60px;
  }
  .side { position: static; }
  .hero-ghost { bottom: 22vh; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 116px; }
  .hero-copy { padding: 0 20px 120px; }
  .hero-ghost { font-size: clamp(46px, 20vw, 90px); bottom: 34vh; }
  .stk-a { top: 10%; right: 6%; }
  .stk-c { display: none; }
  main > div[id] { padding: 22px 16px; }
  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 36px 18px 20px;
  }
  .find input { width: 74px; }
  .find button { padding: 0 11px; }
  .brand { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .tick-track { transform: none; }
}

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