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

:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --ink: #192617;
  --bg: #0b130e;
  --fg: #eafbe5;
  --soft: #dcf2d6;
  --muted: #b3d0ac;
  --line: rgba(135, 255, 113, .28);
  --glass: rgba(255, 255, 255, .055);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(135, 255, 113, .13) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(11, 19, 14, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px dashed var(--line);
}

.bar .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar .left { justify-content: flex-end; }
.bar .right { justify-content: flex-start; padding-right: 108px; }

.bar .menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 113, .25);
  background: rgba(135, 255, 113, .06);
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.bar .menu a:hover,
.bar .menu a:focus-visible {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
  transform: rotate(-2deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand .mark { width: 22px; height: 22px; display: block; }

.cta {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--green);
}

.cta:hover { transform: translateY(-50%) rotate(-2deg); }

/* ---------- 骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 64px;
  align-items: start;
}

main { min-width: 0; }

/* ---------- 左侧栏 ---------- */
.rail {
  position: sticky;
  top: 86px;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--green);
}

.rail h2 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fg);
}

.subtitle {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--yellow);
  letter-spacing: .08em;
}

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

.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(135, 255, 113, .18);
}

.toc a:hover { color: var(--green); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: center;
  min-height: 45vh;
  padding: 16px 0 28px;
}

.hero-copy { text-align: right; }

h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1::after {
  content: "";
  display: block;
  width: 66px;
  height: 10px;
  margin: 14px 0 0 auto;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 14px);
  transform: rotate(-3deg);
}

.lead {
  margin: 0 0 0 auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
}

.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed var(--line);
  background:
    linear-gradient(140deg, rgba(135, 255, 113, .24), rgba(255, 206, 92, .16) 62%, rgba(135, 255, 113, .1));
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.frame::before {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 76px;
  height: 76px;
  z-index: 2;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(8deg);
  opacity: .9;
}

.frame::after {
  content: "";
  position: absolute;
  left: -16px;
  top: -16px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 6px solid var(--yellow);
  mix-blend-mode: screen;
  z-index: 2;
}

.chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 54px;
  height: 12px;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q5 0 10 6 T20 6 T30 6 T40 6' fill='none' stroke='%2387ff71' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ---------- 正文 ---------- */
.prose { max-width: 800px; }

.prose > section {
  scroll-margin-top: 96px;
  padding: 26px 0;
  border-top: 1px dashed var(--line);
}

.prose > section:first-child { border-top: 0; padding-top: 4px; }

.prose h2 {
  scroll-margin-top: 96px;
  margin: 0 0 8px;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.28;
  color: var(--green);
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  background: var(--yellow);
  transform: rotate(45deg);
  vertical-align: 1px;
}

.prose h2 + .subtitle,
.prose h2 + .subhead,
.prose h2 + .desc,
.prose h2 + .lead {
  margin: -2px 0 12px;
  color: var(--yellow);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: var(--yellow);
}

.prose p { margin: 0 0 14px; color: var(--soft); }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }

.prose li { margin: 6px 0; color: var(--soft); }

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

.prose img {
  height: auto;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 4px solid var(--yellow);
  background: var(--glass);
}

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

.prose strong { color: #fff; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  padding: 36px 24px 18px;
  background: #08100b;
  border-top: 3px solid var(--green);
  overflow: hidden;
}

.foot::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 14px dashed rgba(255, 206, 92, .22);
}

.foot-cta {
  position: relative;
  max-width: 1132px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--yellow);
  background: linear-gradient(120deg, rgba(255, 206, 92, .14), rgba(135, 255, 113, .12));
}

.foot-cta h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); }
.foot-cta .subtitle { margin: 4px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(255, 206, 92, .7);
}

.cols {
  position: relative;
  max-width: 1132px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cols dl { margin: 0; }

.cols dt {
  font-size: 16px;
  color: var(--yellow);
  letter-spacing: .1em;
}

.cols dd { margin: 4px 0 0; color: var(--muted); }

.cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

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

.bottom {
  max-width: 1132px;
  margin: 22px auto 0;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.bottom p { margin: 0; }

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

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(25, 38, 23, .92);
  color: var(--green);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- 动效 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .bar .menu a:hover, .cta, .btn { transform: none; }
  .cta:hover { transform: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px 18px 48px;
  }
  .rail { position: static; order: 3; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 18px; }
  .hero .frame { order: 3; }
  .lead { max-width: 100%; }
  .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 12px;
  }
  .brand { order: -1; justify-self: center; font-size: 18px; }
  .bar .left, .bar .right { justify-content: center; }
  .bar .right { padding-right: 0; }
  .bar .menu a { padding: 0 11px; font-size: 15px; }
  .cta {
    position: static;
    transform: none;
    justify-self: center;
    box-shadow: 2px 2px 0 var(--green);
    min-height: 40px;
  }
  .cta:hover { transform: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 16px; }
  .foot { padding: 26px 16px 14px; }
  .foot-cta { padding: 18px; }
  .prose h2 { scroll-margin-top: 130px; }
  .prose > section { scroll-margin-top: 130px; }
}

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