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

:root {
  --mint: #99ffcc;
  --lime: #00ff41;
  --deep: #001e3c;
  --fg: #e6fff6;
  --dim: rgba(230, 255, 246, .68);
  --line: rgba(153, 255, 204, .16);
  --rail: 92px;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--fg);
  background-color: var(--deep);
  background-image:
    radial-gradient(58vw 58vw at 88% -12%, rgba(0, 255, 65, .17), transparent 62%),
    radial-gradient(46vw 46vw at 3% 104%, rgba(153, 255, 204, .15), transparent 66%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(34px);
  opacity: .8;
}

body::before {
  top: -16vh;
  right: -12vw;
  width: 54vw;
  height: 54vw;
  border-radius: 46% 54% 62% 38% / 48% 44% 56% 52%;
  background: radial-gradient(circle at 42% 42%, rgba(0, 255, 65, .34), rgba(153, 255, 204, .08) 62%, transparent 74%);
  animation: breathe 15s ease-in-out infinite;
}

body::after {
  bottom: -20vh;
  left: 6vw;
  width: 40vw;
  height: 40vw;
  border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%;
  background: radial-gradient(circle at 55% 45%, rgba(153, 255, 204, .26), transparent 70%);
  animation: breathe 19s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); opacity: .68; }
  50% { transform: scale(1.14) translate3d(0, -16px, 0); opacity: 1; }
}

@keyframes slidein {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

h1, h2, h3, summary, .badge, .mark, .cta {
  font-family: 'Varela Round', 'Nunito Sans', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 8px;
}

img { max-width: 100%; }

/* 左侧竖导航 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0 22px;
  background: rgba(0, 18, 38, .76);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.mark {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
  font-size: 22px;
  color: var(--deep);
  background: linear-gradient(145deg, var(--mint), var(--lime));
  box-shadow: 0 10px 26px -12px rgba(0, 255, 65, .8), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.mark:hover { transform: scale(1.06) rotate(-3deg); }

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu { margin-top: auto; }

.menu summary {
  list-style: none;
  width: 62px;
  height: 62px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--deep);
  background: var(--mint);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 30px -14px rgba(0, 255, 65, .9);
  transition: transform .25s ease, background .25s ease;
}

.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { transform: scale(1.07); background: var(--lime); }
.menu[open] summary { background: var(--lime); }

.menu menu {
  list-style: none;
  margin: 0;
  padding: 16px 16px 26px;
  position: fixed;
  left: var(--rail);
  top: 0;
  bottom: 0;
  width: 306px;
  overflow: auto;
  background: rgba(0, 17, 36, .95);
  border-right: 1px solid rgba(153, 255, 204, .22);
  backdrop-filter: blur(18px);
}

.menu[open] menu { animation: slidein .32s cubic-bezier(.2, .8, .2, 1) both; }

.menu .grp {
  padding: 16px 14px 6px;
  font-size: 14px;
  letter-spacing: .2em;
  color: rgba(153, 255, 204, .62);
}

.menu li a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 17px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.menu li a:hover {
  background: rgba(153, 255, 204, .14);
  color: var(--mint);
  transform: translateX(4px);
}

/* 主体 */
main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 96px clamp(20px, 6vw, 84px) clamp(44px, 9vh, 96px);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 20% 20%, rgba(0, 255, 65, .3), transparent 62%),
    radial-gradient(70% 90% at 90% 90%, rgba(153, 255, 204, .22), transparent 66%),
    linear-gradient(160deg, #002a4f, #001629);
  border-radius: 0 0 34px 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 122%;
  object-fit: cover;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(0, 16, 34, .95) 6%, rgba(0, 30, 60, .74) 48%, rgba(0, 30, 60, .22) 82%),
    radial-gradient(65% 55% at 18% 92%, rgba(0, 255, 65, .22), transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slidein .7s ease both;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--mint);
  background: rgba(153, 255, 204, .16);
  border: 1px solid rgba(153, 255, 204, .52);
  backdrop-filter: blur(6px);
  animation: float 8s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  line-height: 1.1;
  color: #f2fffa;
  text-shadow: 0 18px 48px rgba(0, 20, 40, .7);
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgba(230, 255, 246, .82);
}

/* 内容区 */
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 5vw, 64px) clamp(20px, 6vw, 84px) 0;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 18px 18px 22px;
  border-radius: var(--radius);
  background: rgba(153, 255, 204, .06);
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, .95);
}

.toc h2 {
  margin: 0 0 .55em;
  font-size: 1.15rem;
  letter-spacing: .14em;
  color: var(--mint);
}

.toc hr {
  border: 0;
  height: 1px;
  margin: 0 0 .9em;
  background: linear-gradient(90deg, rgba(0, 255, 65, .7), rgba(153, 255, 204, .05));
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(230, 255, 246, .82);
  text-decoration: none;
  border-bottom: 1px dashed rgba(153, 255, 204, .16);
  transition: color .2s ease, padding-left .2s ease;
}

.toc li:last-child a { border-bottom: 0; }

.toc li a:hover {
  color: var(--lime);
  padding-left: 6px;
}

.prose {
  min-width: 0;
  max-width: 74ch;
  padding-bottom: 84px;
}

.prose section {
  scroll-margin-top: 96px;
  margin: 0 0 26px;
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid rgba(153, 255, 204, .14);
  background: linear-gradient(158deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
  box-shadow: 0 24px 52px -38px rgba(0, 0, 0, .95);
  transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease;
}

.prose section:hover {
  transform: translateY(-5px);
  border-color: rgba(153, 255, 204, .38);
  box-shadow: 0 30px 58px -32px rgba(0, 255, 65, .34);
}

.prose h2 {
  margin: 1.9em 0 .55em;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.26;
  color: #eafff5;
}

.prose h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--mint);
}

.prose > section > h2:first-child,
.prose > section > h3:first-child { margin-top: 0; }

.prose hr {
  border: 0;
  height: 1px;
  margin: 1em 0 1.5em;
  background: linear-gradient(90deg, rgba(0, 255, 65, .62), rgba(153, 255, 204, .04));
}

.prose p { margin: .88em 0; }

.prose a {
  color: var(--mint);
  text-underline-offset: .22em;
  text-decoration-color: rgba(0, 255, 65, .55);
}

.prose ul,
.prose ol {
  margin: .9em 0;
  padding-left: 1.3em;
}

.prose li { margin: .45em 0; }

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

.prose blockquote {
  margin: 1.2em 0;
  padding: .3em 0 .3em 1.1em;
  border-left: 3px solid rgba(0, 255, 65, .65);
  color: var(--dim);
}

.prose img {
  border-radius: var(--radius);
  height: auto;
}

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .94em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgba(153, 255, 204, .14);
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 38px clamp(20px, 6vw, 84px) 44px;
  border-top: 1px solid var(--line);
  background: rgba(0, 15, 32, .6);
}

.foot .cta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.2;
}

.foot .cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  color: var(--mint);
  text-decoration: none;
  transition: color .25s ease, letter-spacing .25s ease;
}

.foot .cta a::after {
  content: "\2191";
  margin-left: .45em;
  font-size: .8em;
  transition: transform .25s ease;
}

.foot .cta a:hover { color: var(--lime); }
.foot .cta a:hover::after { transform: translateY(-5px); }

.foot .copy {
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

.foot .note {
  justify-self: end;
  font-size: 16px;
  color: var(--dim);
}

.foot .note a {
  display: inline-block;
  padding: 11px 2px;
  min-height: 44px;
  color: rgba(230, 255, 246, .86);
  text-decoration: none;
  transition: color .2s ease;
}

.foot .note a:hover { color: var(--lime); }
.foot .note .dot { padding: 0 .4em; opacity: .5; }

/* 响应式 */
@media (max-width: 980px) {
  .doc {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .toc {
    position: static;
    max-width: none;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .toc li a { border-bottom: 1px dashed rgba(153, 255, 204, .16); }

  .prose { max-width: none; }
}

@media (max-width: 800px) {
  :root { --radius: 10px; }

  body { font-size: 17px; }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mark {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 13px;
    font-size: 20px;
  }

  .menu {
    margin: 0 0 0 auto;
  }

  .menu summary {
    width: auto;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
  }

  .menu menu {
    left: 0;
    right: 0;
    top: 64px;
    bottom: auto;
    width: auto;
    max-height: 76vh;
    border-right: 0;
    border-bottom: 1px solid rgba(153, 255, 204, .22);
    border-radius: 0 0 16px 16px;
  }

  main { margin-left: 0; padding-top: 64px; }

  .hero {
    min-height: 90svh;
    padding: 74px 20px 46px;
  }

  .hero-media { border-radius: 0 0 22px 0; }

  .doc { padding: 26px 18px 0; }

  .prose section {
    scroll-margin-top: 82px;
    padding: 20px;
  }

  .prose { padding-bottom: 54px; }

  .foot {
    margin-left: 0;
    padding: 30px 18px 38px;
  }

  .toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .foot { grid-template-columns: 1fr; }
  .foot .note { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hero-copy { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

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