:root {
  --ink: #192617;
  --void: #0a130e;
  --neo: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --paper: #e6f7ea;
  --mute: #a9c3b1;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(135, 255, 113, 0.26);
  --r: 28px;
}

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

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

body {
  margin: 0;
  padding-bottom: 158px;
  background-color: var(--void);
  background-image:
    radial-gradient(120% 55% at 50% -8%, rgba(255, 113, 206, 0.34), transparent 62%),
    radial-gradient(90% 46% at 88% 2%, rgba(1, 205, 254, 0.30), transparent 60%),
    radial-gradient(80% 55% at 6% 8%, rgba(185, 103, 255, 0.22), transparent 65%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: "Exo", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 66%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 66%);
}

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

main,
.foot { position: relative; z-index: 1; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 10px;
  top: -80px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--neo);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip:focus { top: 10px; }

.wrap {
  width: min(100% - 28px, 1080px);
  margin: 0 auto;
}

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 62svh;
  margin: 14px 0 30px;
  padding: clamp(22px, 5vw, 46px);
  padding-bottom: clamp(56px, 9vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r) var(--r) 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
  background: linear-gradient(142deg, #ff71ce 0%, #b967ff 32%, #01cdfe 70%, #192617 100%);
}

.hero-fig {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.2) contrast(1.05) hue-rotate(-6deg);
  mix-blend-mode: screen;
}

.ghost {
  position: absolute;
  z-index: 1;
  left: -0.06em;
  top: -0.12em;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: clamp(3rem, 15vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.34);
  text-shadow: 3px 0 0 rgba(1, 205, 254, 0.55), -3px 0 0 rgba(255, 113, 206, 0.55);
  pointer-events: none;
  animation: drift 7s ease-in-out infinite alternate;
}

.hero-body { position: relative; z-index: 2; width: 100%; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 7.2vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.6), 0 0 48px rgba(1, 205, 254, 0.45);
  animation: rise 0.7s ease both;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(8px, 10px, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 版心：左栏 + 正文 ---------- */
.deck { display: grid; gap: 22px; }

.rail {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.rail h2 {
  margin: 0;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.6);
}

.rail hr {
  border: 0;
  height: 2px;
  width: 92px;
  margin: 10px 0 14px;
  background: linear-gradient(90deg, var(--neo), var(--cyan), rgba(1, 205, 254, 0));
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-color: var(--neo);
  color: var(--neo);
  background: rgba(135, 255, 113, 0.09);
}

[data-hit] {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(1, 205, 254, 0.5);
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; font-size: 17px; }

.prose > article {
  margin: 0 0 26px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 22px 60px -34px rgba(1, 205, 254, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scroll-margin-top: 24px;
}

.js .prose > article {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .prose > article.in { opacity: 1; transform: none; }

.prose h2 {
  margin: 0 0 8px;
  font-size: clamp(1.38rem, 3.4vw, 1.85rem);
  line-height: 1.26;
  color: #fff;
  text-shadow: 0 0 16px rgba(1, 205, 254, 0.45);
}

.prose h2 + hr {
  border: 0;
  height: 2px;
  width: 112px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--neo), var(--cyan), rgba(1, 205, 254, 0));
  box-shadow: 0 0 12px rgba(135, 255, 113, 0.55);
}

.prose h3 {
  margin: 26px 0 6px;
  font-size: 1.16rem;
  color: var(--neo);
}

.prose h3 + hr {
  border: 0;
  height: 1px;
  width: 72px;
  margin: 0 0 14px;
  background: rgba(135, 255, 113, 0.55);
}

.prose p { margin: 0 0 15px; }

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

.prose li { margin: 6px 0; }

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

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

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--violet);
  border-radius: 0 18px 18px 0;
  background: rgba(185, 103, 255, 0.12);
}

.prose time {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 16px;
  color: var(--cyan);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 18px;
}

.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }

.prose th,
.prose td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.prose hr { border: 0; height: 1px; background: var(--line); margin: 22px 0; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  gap: 26px;
  margin-top: 54px;
  padding: 44px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 38, 23, 0.35), rgba(10, 19, 14, 0.94));
}

.foot > article { width: min(100% - 28px, 1080px); margin: 0 auto; }

.mega {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--neo), var(--cyan) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-word;
}

.f-menu nav dl { margin: 0; display: grid; gap: 2px; }

.f-menu dt {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-top: 10px;
}

.f-menu dd { margin: 0; }

.f-menu dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

.f-menu dd a:hover,
.f-menu dd a:focus-visible { color: var(--neo); background: rgba(135, 255, 113, 0.1); }

.f-note { text-align: center; }

.copy {
  margin: 0;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 16px;
  color: var(--mute);
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(calc(100% - 16px), 880px);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "mark find"
    "left right";
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(14, 26, 18, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 70px -28px rgba(1, 205, 254, 0.6);
}

.side { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.s-left { grid-area: left; justify-content: flex-start; }
.s-right { grid-area: right; justify-content: flex-end; }

.nope { grid-area: none; }

.mark {
  grid-area: mark;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: none;
  color: var(--neo);
  font-weight: 700;
  font-size: 16px;
}

.mark-txt { letter-spacing: 0.04em; }

.mark .mark-img,
.mark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
}

.side a,
.more summary,
.find button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.side a:hover,
.side a:focus-visible,
.more summary:hover,
.find button:hover {
  border-color: var(--neo);
  color: var(--neo);
}

.more { position: relative; grid-area: none; }

.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-2px) rotate(-135deg);
}

.more[open] summary { color: var(--cyan); border-color: var(--cyan); }

.more-box {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(14, 26, 18, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.more-box a { justify-content: flex-start; }

.find {
  grid-area: find;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.find input {
  width: 100%;
  min-width: 0;
  max-width: 132px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
}

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

.find button {
  border-color: var(--line);
  color: var(--cyan);
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 116px; }

  .hero { min-height: 70svh; }

  .foot {
    grid-template-columns: 1.3fr 1fr auto;
    align-items: start;
    padding-top: 56px;
  }

  .foot > article { width: auto; margin: 0; }
  .foot > article:first-child { padding-left: max(14px, calc((100vw - 1080px) / 2)); }
  .foot > article:last-child { padding-right: max(14px, calc((100vw - 1080px) / 2)); }

  .dock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .s-left { flex: 1 1 0; justify-content: flex-end; }
  .s-right { flex: 1 1 0; justify-content: flex-start; }
  .mark { flex: 0 0 auto; }

  .foot .f-note { align-self: center; }
}

@media (min-width: 900px) {
  .deck {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .rail { position: sticky; top: 22px; }
  .rail-list { display: grid; gap: 2px; }
  .rail-list a { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ghost { animation: none; }
  .js .prose > article { opacity: 1; transform: none; transition: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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