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

:root {
  --ink: #192617;
  --ink-d: #0e1710;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --purple: #b967ff;
  --txt: #e4f4e0;
  --line: rgba(135, 255, 113, 0.22);
  --r: 28px;
  --font: 'Archivo', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  background: var(--ink-d);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--txt);
  background: var(--ink-d);
  overflow-x: hidden;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 113, 0.07) 1px, transparent 1px),
    radial-gradient(900px 460px at 50% -8%, rgba(255, 113, 206, 0.32), transparent 68%),
    radial-gradient(760px 420px at 94% 6%, rgba(1, 205, 254, 0.2), transparent 70%),
    radial-gradient(640px 440px at 2% 44%, rgba(185, 103, 255, 0.18), transparent 72%),
    linear-gradient(180deg, #17260f, var(--ink-d) 62%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}

a { color: var(--cyan); }
img { max-width: 100%; }

.mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 23, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.tick {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--neon);
  padding: 5px 0 6px;
  border-bottom: 1px solid rgba(1, 205, 254, 0.16);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.5);
}

.tick span {
  display: inline-block;
  padding-left: 12px;
  animation: slide 26s linear infinite;
}

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

.brandrow {
  display: flex;
  align-items: center;
  padding: 12px 18px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
  color: #f2ffe9;
}

.brandname {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.55), 0 0 34px rgba(1, 205, 254, 0.4);
}

.nav ol {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 2px 12px 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 113, 0.24);
  color: #d5f0cd;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: #10210f;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-color: transparent;
}

/* 布局 */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

main { min-width: 0; }

main > article { position: relative; }

main > article[id] {
  scroll-margin-top: 156px;
  margin-bottom: 24px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  box-shadow: 0 30px 66px -48px #000, inset 0 0 0 1px rgba(1, 205, 254, 0.06);
}

/* 主视觉 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 68vh;
  padding: 46px 4px 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-txt {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 16px;
  font-size: 16px;
  letter-spacing: 0.18em;
  border-radius: 999px;
  color: #0f1d0d;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 26px rgba(135, 255, 113, 0.45);
}

.glitch {
  position: relative;
  z-index: 0;
  margin: 0 0 14px;
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #f4ffe9;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55), 0 0 44px rgba(1, 205, 254, 0.38);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
}

.glitch::before {
  color: var(--cyan);
  transform: translate(-3px, -2px);
  clip-path: inset(0 0 58% 0);
  animation: gl-a 4.4s steps(2) infinite;
}

.glitch::after {
  color: var(--pink);
  transform: translate(3px, 2px);
  clip-path: inset(46% 0 0 0);
  animation: gl-b 3.6s steps(2) infinite;
}

@keyframes gl-a {
  0%, 90%, 100% { transform: translate(-3px, -2px); opacity: 0.9; }
  92% { transform: translate(-9px, 1px); opacity: 0.6; }
  96% { transform: translate(5px, -3px); opacity: 0.8; }
}

@keyframes gl-b {
  0%, 88%, 100% { transform: translate(3px, 2px); opacity: 0.9; }
  91% { transform: translate(8px, -1px); opacity: 0.6; }
  95% { transform: translate(-4px, 3px); opacity: 0.8; }
}

.lede {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 17px;
  color: #cbe6c6;
}

.collage {
  position: static;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 26px 0 0;
  pointer-events: none;
}

.shot {
  width: 34vw;
  max-width: 150px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(135, 255, 113, 0.34);
  box-shadow: 0 26px 56px -26px #000, 0 0 34px rgba(1, 205, 254, 0.22);
}

.shot--a { transform: rotate(-7deg) translateY(-6px); }
.shot--b { transform: rotate(6deg) translateY(10px); filter: hue-rotate(-22deg); }

/* 正文排版 */
main h2,
.toc h2 {
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.28;
  margin: 0 0 12px;
  font-weight: 600;
  color: #f2ffe9;
}

main h2 span,
.toc h2 span,
footer h2 span {
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main h3 {
  font-size: 20px;
  margin: 22px 0 8px;
  color: #e8ffdf;
  font-weight: 600;
}

main p { margin: 0 0 14px; }
main ul, main ol { margin: 0 0 16px; padding-left: 22px; }
main li { margin-bottom: 7px; }
main strong { color: var(--neon); }
main blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 16px 16px 0;
  background: rgba(135, 255, 113, 0.07);
}
main img { height: auto; border-radius: 18px; }
main table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 16px; }
main th, main td { border: 1px solid rgba(217, 255, 208, 0.18); padding: 10px; text-align: left; }

/* 右侧栏 */
.toc {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 58px -46px #000;
}

.toc h2 { font-size: 18px; letter-spacing: 0.16em; margin-bottom: 10px; }

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }

.toc a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 16px;
  color: #cbe6c6;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--neon);
  background: rgba(135, 255, 113, 0.12);
}

/* 页脚 */
footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 38, 23, 0.5), rgba(14, 23, 16, 0.96));
}

.foot-wrap { max-width: 1180px; margin: 0 auto; padding: 38px 18px 18px; }

.foot-top { display: grid; gap: 26px; }

.foot-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f2ffe9;
  text-shadow: 0 0 18px rgba(1, 205, 254, 0.4);
}

.foot-desc { margin: 0; color: #b9d6b4; font-size: 16px; }

footer h2 { font-size: 18px; letter-spacing: 0.18em; margin: 0 0 12px; font-weight: 500; }

.sub-form { display: grid; gap: 10px; max-width: 340px; }

.sub-form label { font-size: 16px; color: #b9d6b4; }

.sub-form input {
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
}

.sub-form input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.sub-form button {
  height: 46px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #10210f;
  cursor: pointer;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 26px rgba(135, 255, 113, 0.35);
}

.foot-cols {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(135, 255, 113, 0.14);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.foot-cols dd { margin: 0; }

.foot-cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #b9d6b4;
  text-decoration: none;
}

.foot-cols dd a:hover { color: var(--cyan); }

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(135, 255, 113, 0.14);
  font-size: 16px;
  color: #9dbb98;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  text-decoration: none;
}

/* 滚动揭示 */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick span, .glitch::before, .glitch::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 640px) {
  .shell { padding: 0 24px; }
  main > article[id] { padding: 34px 30px; margin-bottom: 28px; }
  .foot-wrap { padding: 44px 24px 20px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .shot { max-width: 210px; width: 26vw; }
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 30px;
    padding: 0 24px;
  }

  .hero {
    min-height: 70vh;
    padding: 60px 0 64px;
    overflow: hidden;
  }

  .collage {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .shot { position: absolute; width: 178px; }
  .shot--a { left: 1%; top: 14%; }
  .shot--b { right: 1%; bottom: 13%; }

  .toc { position: sticky; top: 140px; }

  .foot-top { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

@media (min-width: 1100px) {
  .shot { width: 208px; }
}

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