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

:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --pink: #ff71ce;
  --purple: #b967ff;
  --night: #0b1210;
  --night-2: #101a16;
  --paper: #e6fbe9;
  --muted: #a9c9b3;
  --line: rgba(135, 255, 113, 0.2);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 80% -8%, rgba(255, 113, 206, 0.22), transparent 70%),
    radial-gradient(700px 380px at 6% 4%, rgba(1, 205, 254, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--paper);
  font-family: 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.65;
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  line-height: 1.24;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- 顶部 ---- */
.top {
  position: relative;
  z-index: 20;
}

.strip {
  display: flex;
  justify-content: center;
  padding: 0.35rem 1rem;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 52%, var(--pink) 100%);
}

.strip span {
  font-weight: 600;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem clamp(0.75rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.burger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  color: var(--cyan);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: rgba(1, 205, 254, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.burger:hover {
  background: rgba(1, 205, 254, 0.16);
  box-shadow: 0 0 14px rgba(1, 205, 254, 0.45);
  transform: translateY(-1px);
}

.burger-box {
  display: grid;
  gap: 3px;
  width: 18px;
}

.burger-box i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.35rem;
  text-decoration: none;
  color: var(--paper);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.7), 0 0 22px rgba(1, 205, 254, 0.45);
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.totop {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--green);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  background: rgba(135, 255, 113, 0.06);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.totop:hover {
  background: rgba(135, 255, 113, 0.16);
  box-shadow: 0 0 14px rgba(135, 255, 113, 0.4);
}

.anchorbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 18, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.jump ol {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0.3rem clamp(0.5rem, 2vw, 1rem);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jump li {
  flex: 0 0 auto;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.jump a:hover {
  color: var(--ink);
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-color: var(--cyan);
}

/* ---- 全屏遮罩菜单 ---- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(160deg, rgba(25, 38, 23, 0.97), rgba(11, 18, 16, 0.98));
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.menu-toggle:checked ~ .veil {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.veil-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cyan);
  cursor: pointer;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

.veil-nav {
  align-self: center;
  overflow-y: auto;
}

.veil-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  max-width: 640px;
  margin-inline: auto;
}

.veil-nav a {
  display: block;
  padding: 0.7rem 0.4rem;
  min-height: 48px;
  text-decoration: none;
  color: var(--paper);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.1rem, 4.4vw, 1.6rem);
  border-bottom: 1px solid rgba(135, 255, 113, 0.14);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.veil-nav a:hover {
  color: var(--green);
  padding-left: 0.9rem;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.7);
}

.veil-brand {
  margin: 0;
  text-align: center;
  font-family: 'Poppins', system-ui, sans-serif;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- 主体 ---- */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(0.9rem, 3vw, 1.8rem) clamp(0.85rem, 3vw, 1.6rem) clamp(1.6rem, 5vw, 3rem);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: linear-gradient(165deg, var(--pink) 0%, var(--purple) 40%, var(--cyan) 72%, var(--green) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
}

.hero--img {
  background: linear-gradient(165deg, #3a1030, #062a35 60%, #0d2a1a);
}

.hero-img {
  position: absolute;
  inset: -14% 0 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 18, 16, 0.18) 0%, rgba(11, 18, 16, 0.86) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(1, 205, 254, 0.5) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(180deg, rgba(135, 255, 113, 0.42) 0 1px, transparent 1px 34px);
  transform: perspective(280px) rotateX(64deg);
  transform-origin: bottom center;
  opacity: 0.55;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  text-align: left;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 6.4vw, 3.3rem);
  font-weight: 700;
  color: #f4fff6;
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.85), 0 0 26px rgba(255, 113, 206, 0.7), 0 3px 0 rgba(25, 38, 23, 0.55);
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(24deg); }
}

.hero-desc {
  margin: 0;
  font-size: clamp(0.98rem, 2.6vw, 1.1rem);
  color: #dcf7e4;
  text-shadow: 0 1px 8px rgba(11, 18, 16, 0.95);
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
  margin-top: clamp(1.2rem, 4vw, 2.4rem);
}

/* ---- 正文 ---- */
.prose {
  min-width: 0;
}

.prose article {
  scroll-margin-top: 5.2rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(135, 255, 113, 0.13);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.prose h2 {
  font-size: clamp(1.32rem, 3.8vw, 1.75rem);
  color: var(--green);
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.45);
}

.prose h3 {
  font-size: clamp(1.1rem, 3vw, 1.28rem);
  color: var(--cyan);
  margin-top: 1.4rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

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

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

.prose strong {
  color: var(--green);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--pink);
  background: rgba(255, 113, 206, 0.08);
  border-radius: 0 4px 4px 0;
  color: #ecffe9;
}

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

.prose img {
  border-radius: 4px;
  margin: 0.6rem 0 1rem;
}

hr {
  height: 2px;
  width: 62px;
  margin: 0.35rem 0 1.15rem;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan) 60%, transparent);
}

/* ---- 侧栏 ---- */
.side {
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 1px solid var(--line);
}

.side h2 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.side hr {
  width: 34px;
  margin-bottom: 0.7rem;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}

.side-list li {
  counter-increment: s;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.45rem 0.15rem;
  text-decoration: none;
  color: #cfe8d6;
  font-size: 0.93rem;
  border-bottom: 1px dashed rgba(135, 255, 113, 0.14);
  transition: color 0.18s ease, transform 0.18s ease;
}

.side-list a::before {
  content: counter(s, decimal-leading-zero);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.74rem;
  color: var(--pink);
  letter-spacing: 0.1em;
}

.side-list a:hover {
  color: var(--green);
  transform: translateX(3px);
}

/* ---- 页脚 ---- */
.bot {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 2fr auto auto;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding: 1.1rem clamp(0.85rem, 3vw, 1.6rem) 1.6rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(135, 255, 113, 0.05), transparent 70%);
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--green);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.foot-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a,
.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}

.foot-nav a:hover,
.foot-top a:hover {
  color: var(--cyan);
}

.foot-copy {
  text-align: right;
  white-space: nowrap;
}

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

  .side {
    padding: 0.9rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .bot {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .foot-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .foot-copy {
    order: 2;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 46vh;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }

  .side-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }
}

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

  .hero h1 {
    animation: none;
  }

  .hero-img {
    transform: none !important;
  }

  .burger,
  .totop,
  .jump a,
  .veil-nav a,
  .side-list a {
    transition: none;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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