@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --deep: #00243f;
  --text: #d5f6e7;
  --muted: #9ccfbc;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(153, 255, 204, 0.18);
  --r: 4px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Nunito', 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: var(--neon);
}

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

strong {
  color: #f2fffa;
}

/* ---------- 背景流质细胞 ---------- */
.fluid {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, calc(var(--py, 0px) * -1), 0);
}

.cell {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.3;
  animation: breathe 13s ease-in-out infinite;
}

.c1 {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -8vw;
  background: radial-gradient(circle at 35% 35%, #99ffcc, #00ff41 62%, transparent 74%);
}

.c2 {
  width: 38vw;
  height: 38vw;
  right: -12vw;
  top: 24vh;
  animation-delay: -4.5s;
  background: radial-gradient(circle at 60% 40%, #00ff41, #99ffcc 56%, transparent 76%);
}

.c3 {
  width: 54vw;
  height: 54vw;
  left: 22vw;
  bottom: -24vh;
  opacity: 0.18;
  animation-delay: -9s;
  background: radial-gradient(circle at 50% 50%, #0f7f7a, #00ff41 56%, transparent 78%);
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.24;
  }
  50% {
    transform: scale(1.12) translateY(-16px);
    opacity: 0.42;
  }
}

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

/* ---------- 左侧竖排固定栏 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 218px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 18px;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.94), rgba(0, 30, 60, 0.6));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px;
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--mint);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: linear-gradient(140deg, #99ffcc, #00ff41);
  color: #00243f;
  font-size: 1rem;
  font-weight: 900;
}

.brand-text {
  border-bottom: 1px solid transparent;
}

.brand:hover .brand-text {
  border-bottom-color: var(--neon);
  color: #ffffff;
}

.vnav {
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--r);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.25s, padding 0.25s, color 0.25s, border-color 0.25s;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  background: var(--glass);
  border-left-color: var(--neon);
  color: #ffffff;
  padding-left: 17px;
}

.nav-more-wrap {
  position: relative;
}

.nav-more summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  transition: background 0.25s, color 0.25s;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary:hover {
  background: var(--glass);
  color: #ffffff;
}

.nav-more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
}

.nav-more[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-more ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.nav-more ul a:hover {
  background: rgba(0, 255, 65, 0.12);
  color: #ffffff;
}

/* ---------- 主区域 ---------- */
.stage {
  position: relative;
  z-index: 1;
  margin-left: 218px;
  padding: 0 34px 56px;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0 18px;
}

section {
  min-width: 0;
  max-width: 740px;
}

/* ---------- 首屏 ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 46px);
  min-height: 45vh;
  padding: 10px 0 28px;
}

.hero-art {
  flex: 0 0 auto;
  width: clamp(118px, 19vw, 186px);
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 255, 65, 0.28));
  animation: breathe 8.5s ease-in-out infinite;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--mint);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  animation: floaty 6s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(118deg, #ffffff, #99ffcc 46%, #00ff41);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.32rem, 2.4vw, 1.7rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- 正文 ---------- */
section > article {
  padding: 30px 0 12px;
  border-top: 1px solid rgba(153, 255, 204, 0.12);
}

section > article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

section article[id] {
  scroll-margin-top: 96px;
}

section > article + article,
section > article + h2,
section > article + p {
  margin-top: 26px;
}

section p {
  margin: 0 0 16px;
}

section h2 + p,
section h3 + p {
  margin-top: 0;
}

section h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  color: #e8fff5;
}

section ul,
section ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

section li {
  margin: 7px 0;
}

section li::marker {
  color: var(--neon);
}

section a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, 0.45);
  text-underline-offset: 3px;
}

section a:hover {
  text-decoration-color: var(--neon);
}

section blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--neon);
  border-radius: var(--r);
  background: var(--glass);
  color: #e6fff6;
}

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

section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

section hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 26px 0;
}

section table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 1rem;
}

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

section code {
  padding: 2px 6px;
  border-radius: var(--r);
  background: rgba(0, 255, 65, 0.12);
  font-size: 0.95em;
}

@media (prefers-reduced-motion: no-preference) {
  section > article.will {
    opacity: 0;
    transform: translateY(20px);
  }

  section > article.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }

  section > article.in:nth-child(2n) {
    transition-delay: 0.09s;
  }
}

/* ---------- 右栏 ---------- */
.side {
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
}

.side-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.side-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: var(--r);
  border-bottom: 1px dashed rgba(153, 255, 204, 0.12);
  color: var(--text);
}

.side-list a:hover {
  background: rgba(0, 255, 65, 0.1);
  color: #ffffff;
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  color: var(--mint);
  font-weight: 800;
}

/* ---------- 页脚 ---------- */
footer {
  max-width: 1180px;
  margin: 38px auto 0;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.foot-cta {
  margin: 0;
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 36px;
  border-radius: var(--r);
  background: linear-gradient(120deg, #99ffcc, #00ff41);
  color: #00243f;
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: 0 18px 40px rgba(0, 255, 65, 0.24);
}

.foot-cta a:hover {
  color: #001e3c;
  filter: brightness(1.07);
}

.foot-cols {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  color: var(--muted);
}

.foot-brand {
  font-weight: 900;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
}

.foot-echo {
  letter-spacing: 0.14em;
}

footer small {
  font-size: 1rem;
  color: rgba(213, 246, 231, 0.6);
  letter-spacing: 0.1em;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .rail {
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    flex: 0 0 auto;
    font-size: 1rem;
    min-height: 44px;
  }

  .vnav {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .nav-list > li > a,
  .nav-more summary {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 11px 11px;
  }

  .nav-list > li > a:hover,
  .nav-list > li > a:focus-visible {
    padding-left: 11px;
    border-left-color: transparent;
    border-bottom-color: var(--neon);
  }

  .nav-more ul {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    min-width: 190px;
    padding: 10px;
    background: rgba(0, 36, 63, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
    z-index: 40;
  }

  .stage {
    margin-left: 0;
    padding: 82px 16px 46px;
  }

  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 0;
  }

  section {
    max-width: none;
  }

  .hero {
    flex-direction: column-reverse;
    align-items: flex-end;
    min-height: 45vh;
    gap: 14px;
    padding-top: 4px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-art {
    width: 100px;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  section article[id] {
    scroll-margin-top: 76px;
  }

  .side {
    position: static;
    margin-top: 4px;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }
}

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