@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

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

:root {
  --ink: #001e3c;
  --ink2: #012a4f;
  --ink3: #02305c;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #eafff3;
  --dim: rgba(153, 255, 204, .64);
  --line: rgba(153, 255, 204, .22);
  --r: 10px;
  --rail: 214px;
  --f: "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --d: "Anton", "Epilogue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44vw 44vw at 78% 6%, rgba(0, 255, 65, .12), transparent 62%),
    radial-gradient(40vw 40vw at 10% 74%, rgba(153, 255, 204, .11), transparent 60%),
    radial-gradient(28vw 28vw at 94% 92%, rgba(0, 255, 65, .07), transparent 62%);
  filter: blur(8px);
  animation: breathe 17s ease-in-out infinite;
}

img { max-width: 100%; height: auto; }
menu, ul, ol { margin: 0; padding: 0; }
a { color: var(--neon); }
a:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell { position: relative; z-index: 1; }

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  background: rgba(0, 30, 60, .74);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--mint);
  text-decoration: none;
  font-family: var(--d);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: .01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50% 46% 54% 50%;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--d);
  font-size: 1rem;
  animation: breathe 8s ease-in-out infinite;
}
.brand-text { display: block; }

.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--mint);
  font-weight: 600;
  font-size: 1rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: "＋";
  color: var(--neon);
  font-weight: 700;
}
.menu[open] > summary::after { content: "－"; }

.menu menu {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: .97rem;
  line-height: 1.4;
  border-radius: var(--r);
  transition: background .18s, color .18s, padding-left .18s;
}
.menu a:hover,
.menu a:focus-visible {
  color: var(--mint);
  background: var(--ink3);
  padding-left: 16px;
}

/* ---------- 主区 ---------- */
main { margin-left: var(--rail); }
main article { scroll-margin-top: 84px; }

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 46px clamp(18px, 5vw, 64px) 34px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-num {
  position: absolute;
  right: clamp(4px, 2vw, 26px);
  top: 1.5vh;
  z-index: 0;
  font-family: var(--d);
  font-size: clamp(7rem, 25vw, 19rem);
  line-height: .78;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(153, 255, 204, .24);
  pointer-events: none;
  user-select: none;
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--d);
  font-weight: 700;
  font-size: clamp(2.3rem, 8vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.01em;
  color: var(--mint);
  text-shadow: 0 0 46px rgba(0, 255, 65, .22);
}

.blob {
  position: absolute;
  left: clamp(8px, 5vw, 74px);
  bottom: 6%;
  width: clamp(150px, 23vw, 300px);
  aspect-ratio: 1 / 1;
  margin: 0;
  z-index: 1;
  opacity: .85;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
.blob svg { display: block; width: 100%; height: auto; filter: blur(1px); will-change: transform; }

/* ---------- 正文 + 右侧 aside ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: clamp(26px, 4.5vw, 60px) clamp(18px, 5vw, 64px) 58px;
}

.prose { min-width: 0; max-width: 70ch; }

.prose article {
  padding: 24px 0 26px;
  border-bottom: 1px solid rgba(153, 255, 204, .13);
}
.prose article:first-child { padding-top: 4px; }
.prose article:last-child { border-bottom: 0; padding-bottom: 6px; }

.prose h2 {
  margin: .1em 0 .55em;
  font-size: clamp(1.42rem, 3vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--mint);
}
.prose h3 {
  margin: 1.4em 0 .5em;
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--neon);
}
.prose p { margin: 0 0 1em; color: rgba(234, 255, 243, .84); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin: .4em 0; color: rgba(234, 255, 243, .84); }
.prose li::marker { color: var(--neon); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(0, 255, 65, .07);
  color: var(--paper);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.3em 0; }
.prose figcaption { margin-top: .5em; font-size: .9rem; color: var(--dim); }
.prose img { border-radius: var(--r); display: block; }
.prose strong { color: var(--paper); }

hr {
  border: 0;
  height: 1px;
  margin: 12px 0 16px;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
  opacity: .65;
}

.side {
  position: sticky;
  top: 24px;
  padding: 18px 16px;
  background: var(--ink2);
  border-radius: var(--r);
}
.side h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--mint);
}
.side hr { margin: 10px 0 12px; }
.side menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.4;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.side a:hover,
.side a:focus-visible { color: var(--mint); background: rgba(153, 255, 204, .1); }

/* ---------- 页脚 ---------- */
.base {
  margin-left: var(--rail);
  padding: clamp(28px, 4.5vw, 56px) clamp(18px, 5vw, 64px) 38px;
  border-top: 1px solid var(--line);
}

.cta a {
  display: block;
  padding: 16px 20px 20px;
  background: var(--neon);
  color: var(--ink);
  border-radius: var(--r);
  text-align: center;
  text-decoration: none;
  font-family: var(--d);
  font-size: clamp(1.9rem, 6.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: .02em;
  transition: background .2s, transform .2s;
}
.cta a:hover { background: var(--mint); transform: translateY(-2px); }

.base-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.base-left { display: flex; flex-direction: column; gap: 4px; }
.base address {
  font-style: normal;
  font-weight: 600;
  color: var(--mint);
  line-height: 1.5;
}
.base .host {
  display: block;
  font-weight: 400;
  font-size: .86rem;
  color: var(--dim);
  word-break: break-all;
}
.copy { margin: 0; font-size: .86rem; color: var(--dim); }

.base-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.base-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  color: var(--dim);
  text-decoration: none;
  font-size: .9rem;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.base-links a:hover,
.base-links a:focus-visible { color: var(--mint); background: var(--ink2); }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.07); opacity: 1; }
}

@media (min-width: 841px) {
  main article { scroll-margin-top: 20px; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 840px) {
  body { font-size: 16.5px; }
  .rail {
    inset: 0 0 auto 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail .menu { position: relative; }
  .menu menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 196px;
    margin-top: 0;
    padding: 8px;
    background: var(--ink2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    z-index: 40;
  }
  main, .base { margin-left: 0; }
  .hero { min-height: 44vh; padding-top: 62px; }
  .hero-num { font-size: clamp(6rem, 38vw, 11rem); top: 5vh; }
  .blob { width: 122px; top: 4%; bottom: auto; left: -22px; opacity: .62; }
  .stage { grid-template-columns: 1fr; padding-top: 20px; }
  .side { position: static; margin-top: 10px; }
  .prose article { padding: 20px 0 22px; }
  .base-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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