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

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

:root {
  --ink: #001e3c;
  --ink-deep: #00152b;
  --ink-soft: #02294b;
  --mint: #99ffcc;
  --neon: #00ff41;
  --text: #e2fff4;
  --muted: #8fb8b0;
  --line: rgba(153, 255, 204, .2);
  --line-soft: rgba(153, 255, 204, .1);
  --serif: "EB Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Lato", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 10% -4%, rgba(0, 255, 65, .12), transparent 68%),
    radial-gradient(720px 520px at 92% 6%, rgba(153, 255, 204, .11), transparent 70%),
    radial-gradient(820px 620px at 46% 108%, rgba(0, 255, 65, .07), transparent 72%);
  filter: blur(26px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.6%, 0) scale(1.06); }
}

img, svg { max-width: 100%; }

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 40;
  padding: 11px 18px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
  transition: top .18s ease;
}
.skip:focus { top: 12px; color: var(--ink); }

/* ---------- 页头 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand brand"
    "nav find";
  gap: 6px 26px;
  align-items: center;
  padding: 12px clamp(14px, 4vw, 40px) 10px;
  background: rgba(0, 21, 43, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.mast__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.mark__svg, .mark__img { width: 38px; height: 38px; display: block; }
.mark__svg { animation: breathe 6.5s ease-in-out infinite; }

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

.mast__id { min-width: 0; }
.mast__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  color: #f4fffa;
}
.mast__desc {
  margin: 2px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mast__nav { grid-area: nav; min-width: 0; }
.mast__nav p {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.mast__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  white-space: nowrap;
  font-size: .93rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.mast__nav a:hover,
.mast__nav a:focus-visible {
  color: var(--mint);
  border-bottom-color: var(--neon);
}
.mast__nav a:first-child { color: var(--mint); }

.finder { grid-area: find; position: relative; }
.finder input {
  width: clamp(150px, 22vw, 250px);
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
  background: rgba(153, 255, 204, .07);
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
}
.finder input::placeholder { color: rgba(143, 184, 176, .85); }
.finder input:focus { background: rgba(153, 255, 204, .13); outline: none; border-color: var(--neon); }
.finder__status {
  margin: 0;
  font-size: .78rem;
  color: var(--mint);
  line-height: 1.4;
}
.finder__status:empty { display: none; }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  min-height: 70vh;
  padding: clamp(38px, 8vw, 86px) clamp(16px, 5vw, 56px) clamp(38px, 6vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(153, 255, 204, .26) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(118deg, #000 8%, transparent 74%);
  mask-image: linear-gradient(118deg, #000 8%, transparent 74%);
}

.hero__text { position: relative; z-index: 1; min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: .78rem;
  letter-spacing: .3em;
  color: var(--mint);
  text-transform: none;
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(0, 255, 65, .16);
  animation: breathe 4.4s ease-in-out infinite;
}

h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6.2vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #f6fffb;
}

.lede {
  margin: 0 0 26px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
  color: #c5e6dc;
}

.cue { margin: 0; }
.cue a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 6%, 98% 100%, 2% 94%);
  transition: background .18s ease, transform .18s ease;
}
.cue a:hover { background: var(--neon); color: var(--ink); transform: translateY(-2px); }

.hero__fig {
  position: relative;
  margin: 0;
  z-index: 1;
  justify-self: center;
  width: min(320px, 78vw);
}
.cell {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(0, 255, 65, .22));
  animation: breathe 8s ease-in-out infinite;
}
.cell__membrane { transform-origin: 50% 50%; animation: morph 13s ease-in-out infinite; }
.cell__nucleus { transform-origin: 48% 48%; animation: spin 26s linear infinite; }
.cell__bubble { animation: breathe 5.5s ease-in-out infinite; }
.cell__bubble--b { animation-duration: 7.2s; animation-delay: -2s; }
.cell__bubble--c { animation-duration: 6.1s; animation-delay: -3.4s; }

@keyframes morph {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.04); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__fig figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ---------- 正文区 ---------- */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: clamp(28px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 62px) clamp(16px, 5vw, 56px) clamp(46px, 7vw, 86px);
}

.page__body { min-width: 0; }

.page__body > section {
  padding-top: clamp(26px, 4vw, 44px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 190px;
  transition: opacity .26s ease, box-shadow .26s ease, padding-left .26s ease;
}
.page__body > section:first-child { border-top-color: transparent; }

.page__body h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.26;
  letter-spacing: .005em;
  color: #f2fffa;
}
.page__body h2 > span,
.page__body h3 > span {
  background: linear-gradient(transparent 72%, rgba(0, 255, 65, .3) 72%);
  padding-bottom: 2px;
}
.page__body h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.4;
  color: #eafff5;
}

.page__body p { margin: 0 0 1.05em; max-width: 68ch; }
.page__body ul,
.page__body ol { margin: 0 0 1.2em; padding-left: 1.35em; max-width: 68ch; }
.page__body li { margin: .42em 0; }
.page__body strong { color: var(--mint); font-weight: 700; }
.page__body blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--neon);
  color: #cfeade;
  max-width: 66ch;
}

.page__body > section.is-dim { opacity: .42; }
.page__body > section.is-hit {
  box-shadow: inset 3px 0 0 var(--neon);
  padding-left: 16px;
}

/* ---------- 侧栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 154px;
  padding: 20px 18px 24px;
  background: rgba(153, 255, 204, .06);
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.rail__t {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--mint);
}
.rail__t + .rail__t,
.rail__list + .rail__t { margin-top: 26px; }

.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}
.rail__list li { counter-increment: rail; margin: 0; }
.rail__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  font-size: .92rem;
  color: #cbeade;
  border-bottom: 1px dashed var(--line-soft);
  transition: color .16s ease, padding-left .16s ease;
}
.rail__list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .8rem;
  color: var(--neon);
  opacity: .8;
}
.rail__list a:hover { color: var(--neon); padding-left: 5px; }

.rail__p {
  margin: 0 0 .9em;
  font-size: .85rem;
  line-height: 1.66;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 5vw, 58px) clamp(16px, 5vw, 56px) 24px;
}

.foot__brand { max-width: 1180px; margin: 0 auto 30px; }
.foot__brand h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f2fffa;
}
.foot__brand h2 > span {
  background: linear-gradient(transparent 72%, rgba(0, 255, 65, .28) 72%);
}
.foot__brand p {
  margin: 0;
  max-width: 62ch;
  font-size: .88rem;
  line-height: 1.68;
  color: var(--muted);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 30px;
  max-width: 1180px;
  margin: 0 auto 30px;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}
.foot__grid dl { margin: 0; }
.foot__grid dt {
  font-size: .76rem;
  letter-spacing: .24em;
  color: var(--mint);
  margin-bottom: 6px;
}
.foot__grid dd {
  margin: 0 0 2px;
  font-size: .88rem;
  color: var(--muted);
}
.foot__grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
}
.foot__grid dd a:hover { color: var(--neon); }

.foot__form {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}
.foot__ft {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #eafff5;
}
.foot__fp { margin: 0 0 12px; font-size: .85rem; color: var(--muted); max-width: 56ch; }

.signup__row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.signup input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 10px 13px;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: rgba(153, 255, 204, .07);
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
}
.signup input::placeholder { color: rgba(143, 184, 176, .8); }
.signup input:focus { outline: none; border-color: var(--neon); background: rgba(153, 255, 204, .13); }
.signup button {
  min-height: 44px;
  padding: 10px 24px;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--mint);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .16s ease;
}
.signup button:hover { background: var(--neon); }
.signup__note {
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--mint);
}
.signup__note:empty { display: none; }

.foot__base {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.foot__base p {
  margin: 0 0 4px;
  font-size: .8rem;
  line-height: 1.62;
  color: rgba(143, 184, 176, .85);
}

/* ---------- 滚动显现 ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .62s ease, transform .62s cubic-bezier(.22, .8, .28, 1);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .mast {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "find"
      "nav";
    gap: 4px;
    padding-top: 10px;
  }
  .mast__name { font-size: 1.2rem; }
  .finder input { width: 100%; max-width: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 30px;
    text-align: left;
  }
  .hero__fig { width: min(230px, 62vw); order: 2; }

  .page { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    order: -1;
    padding: 16px 14px 18px;
  }
  .page__body > section { scroll-margin-top: 210px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .mast__desc { display: none; }
  .mast__nav a { padding: 0 11px; font-size: .88rem; }
  .page__body > section { scroll-margin-top: 200px; }
  .signup__row { flex-direction: column; }
  .signup button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after,
  .mark__svg,
  .cell,
  .cell__membrane,
  .cell__nucleus,
  .cell__bubble,
  .eyebrow__dot { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .cue a:hover { transform: none; }
}

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