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

:root {
  --ink: #001e3c;
  --ink-2: #012b4f;
  --mint: #99ffcc;
  --neon: #00ff41;
  --fg: #e9fff6;
  --muted: #9ec4bb;
  --line: rgba(153, 255, 204, 0.22);
  --line-soft: rgba(153, 255, 204, 0.12);
  --r: 28px;
  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Noto Sans', 'Figtree', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.foot__big,
.mark__glyph {
  font-family: 'Figtree', 'Noto Sans', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

/* 有机流体背景 */
.aurora {
  position: fixed;
  inset: -22vmax;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(72px);
  background:
    radial-gradient(38vmax 30vmax at 16% 20%, rgba(0, 255, 65, 0.3), transparent 62%),
    radial-gradient(32vmax 26vmax at 84% 10%, rgba(153, 255, 204, 0.32), transparent 64%),
    radial-gradient(44vmax 36vmax at 60% 92%, rgba(0, 255, 65, 0.18), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.13) translate3d(-2%, 1.5%, 0);
  }
  100% {
    transform: scale(1.05) translate3d(2%, -1.5%, 0);
  }
}

/* 顶部 */
.top {
  padding-bottom: 6px;
}

.note {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--neon), var(--mint) 70%, rgba(153, 255, 204, 0.6));
}

.note__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: blip 2.6s ease-in-out infinite;
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.top__row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  position: relative;
  z-index: 70;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 32% 28%, rgba(0, 255, 65, 0.26), rgba(153, 255, 204, 0.08));
  text-decoration: none;
}

.mark__glyph {
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
}

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

/* 分组菜单 */
.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu__col {
  position: relative;
}

.menu__cap {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(153, 255, 204, 0.07);
  color: var(--mint);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 214px;
  display: none;
  background: rgba(0, 24, 46, 0.97);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.menu__col:hover .menu__list,
.menu__col:focus-within .menu__list {
  display: grid;
  gap: 4px;
}

.menu__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
}

.menu__list a:hover {
  background: rgba(0, 255, 65, 0.16);
  color: #fff;
}

.burger {
  display: none;
}

/* 粘性锚点条 */
.strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 26, 50, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.strip__list {
  list-style: none;
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip__list::-webkit-scrollbar {
  display: none;
}

.strip__a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  white-space: nowrap;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.strip__a:hover,
.strip__a.is-on {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

/* 头图 */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 68px 24px 62px;
  overflow: hidden;
}

.hero__in {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.hero__h1 {
  margin: 0;
  max-width: 15em;
  text-align: right;
  font-size: clamp(2.3rem, 7.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  background: linear-gradient(104deg, #ffffff 4%, var(--mint) 42%, var(--neon) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(90deg, var(--neon), var(--mint) 58%, rgba(153, 255, 204, 0.01));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* 主体：左侧栏 + 正文 */
.stage {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px 24px 88px;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 66px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, rgba(153, 255, 204, 0.1), rgba(0, 255, 65, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rail__sm {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.26em;
  color: var(--neon);
  opacity: 0.85;
}

.rail__h2 {
  margin: 2px 0 12px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--mint);
}

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

.rail__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.rail__list a:hover {
  background: rgba(0, 255, 65, 0.14);
  border-left-color: var(--neon);
  color: #fff;
}

.stage__body {
  min-width: 0;
}

.stage__body > article {
  position: relative;
  margin: 0 0 26px;
  padding: 30px 28px 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(0, 255, 65, 0.028));
  box-shadow: 0 18px 40px rgba(0, 12, 26, 0.35);
  scroll-margin-top: 110px;
}

.stage__body > article::after {
  content: '';
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--neon), var(--mint) 70%, transparent);
  opacity: 0.9;
}

.stage__body h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.5rem, 3.3vw, 2.05rem);
  line-height: 1.28;
  color: var(--mint);
}

.stage__body h3 {
  margin: 1.35em 0 0.4em;
  font-size: 1.16rem;
  line-height: 1.45;
  color: #dcfff0;
}

.stage__body p {
  margin: 0 0 1em;
}

.stage__body ul,
.stage__body ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.stage__body li {
  margin: 0.4em 0;
}

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

.stage__body strong {
  color: #ffffff;
}

.stage__body blockquote {
  margin: 1.2em 0;
  padding: 0.7em 1.1em;
  border-left: 3px solid var(--neon);
  border-radius: 0 16px 16px 0;
  background: rgba(0, 255, 65, 0.07);
}

.stage__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0 0 1.2em;
}

.stage__body th,
.stage__body td {
  padding: 0.55em 0.65em;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.stage__body figure {
  margin: 1.2em 0;
}

.stage__body img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.stage__body code {
  font-size: 0.95em;
  padding: 0.1em 0.4em;
  border-radius: 8px;
  background: rgba(0, 255, 65, 0.12);
}

/* 页脚 */
.foot {
  margin-top: 10px;
  padding: 54px 24px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.08), transparent 62%);
}

.foot__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.foot__big {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 6.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  word-break: break-word;
  background: linear-gradient(100deg, var(--mint), var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot__blurb {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  color: var(--muted);
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.foot__dl {
  margin: 0;
}

.foot__dl dt {
  margin: 0;
}

.foot__dl dd {
  margin: 0;
}

.foot__dl a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot__dl dt a {
  color: var(--mint);
  font-weight: 600;
}

.foot__dl a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.foot__base {
  max-width: var(--wrap);
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.foot__base p {
  margin: 0;
}

/* 滚动显现 */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
  }
  .aurora,
  .note__pip {
    animation: none;
  }
}

@media (max-width: 880px) {
  .burger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(153, 255, 204, 0.09);
    color: var(--mint);
    font-size: 16px;
    font-family: inherit;
    position: relative;
    z-index: 70;
    cursor: pointer;
  }

  .burger__bar {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 98px 20px 30px;
    overflow: auto;
    background: rgba(0, 20, 40, 0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease;
  }

  .menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .menu__cap {
    min-height: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    opacity: 0.7;
  }

  .menu__list {
    position: static;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 6px 0 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .menu__list a {
    min-height: 48px;
    border: 1px solid var(--line);
    background: rgba(153, 255, 204, 0.07);
    border-radius: 16px;
  }

  .hero {
    min-height: 40vh;
    padding: 44px 18px 48px;
  }

  .hero__h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 6px 16px 64px;
  }

  .rail {
    position: sticky;
    top: 58px;
    z-index: 12;
    padding: 12px 14px;
    border-radius: 22px;
    backdrop-filter: blur(12px);
    background: rgba(0, 30, 60, 0.92);
  }

  .rail__h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
  }

  .rail__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail__list::-webkit-scrollbar {
    display: none;
  }

  .rail__list a {
    min-height: 44px;
    padding: 4px 14px;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .stage__body > article {
    padding: 24px 20px 28px;
    border-radius: 24px;
    scroll-margin-top: 130px;
  }

  .stage__body > article::after {
    left: 20px;
    right: 20px;
  }

  .foot {
    padding: 40px 18px 22px;
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .top__row {
    padding: 12px 18px 6px;
  }
}

@media (max-width: 420px) {
  .foot__nav {
    gap: 10px;
  }

  .foot__dl a {
    font-size: 16px;
  }
}

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