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

:root {
  --ink: #001e3c;
  --ink-2: #012a52;
  --mint: #99ffcc;
  --acid: #00ff41;
  --paper: #e9fff7;
  --line: rgba(153, 255, 204, .22);
  --line-soft: rgba(153, 255, 204, .12);
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 6%, rgba(0, 255, 65, .17), transparent 42%),
    radial-gradient(circle at 88% 3%, rgba(153, 255, 204, .14), transparent 40%),
    radial-gradient(circle at 68% 94%, rgba(0, 255, 65, .11), transparent 46%),
    var(--ink);
  background-attachment: fixed;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(circle, rgba(153, 255, 204, .2) 1px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 26%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 28%, #000 26%, transparent 76%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--acid);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: .6rem 1rem;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .2s ease;
}

.skip:focus {
  top: 0;
}

/* 顶部细条 */
.strip {
  background: linear-gradient(90deg, var(--acid), var(--mint) 65%, #d8fff0);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .2em;
  font-size: .92rem;
}

.strip-in {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: .42rem 1rem;
}

.pulse {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--ink);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.55); opacity: .45; }
}

/* 站头 */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 30, 60, .93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brandline {
  display: flex;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .55rem 1rem .1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 12%;
  background: linear-gradient(135deg, var(--acid), var(--mint));
  box-shadow: 0 0 0 6px rgba(0, 255, 65, .14);
  animation: breathe 4.4s ease-in-out infinite;
}

.logo-txt {
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: .02em;
}

.tabs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem .5rem;
  min-width: 0;
}

.tabs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .3rem;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .82rem;
  border-radius: 999px;
  color: #cdeee0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.tabs a:hover,
.tabs a:focus-visible {
  background: var(--mint);
  color: var(--ink);
  outline: none;
}

.tabs a[aria-current="true"] {
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
}

.tabs .grp {
  position: relative;
}

.tabs .grp > a::after {
  content: "";
  width: .44em;
  height: .44em;
  margin-left: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.tabs .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: .4rem;
  list-style: none;
  display: grid;
  gap: .15rem;
  background: #012b54;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.tabs .grp:hover .sub,
.tabs .grp:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 主体 */
main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 2rem 2.4rem;
}

.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 1.4rem;
  min-height: 70vh;
  padding: 2rem 0 2.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.hero-txt {
  min-width: 0;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: 1.06rem;
  color: #bfe6d8;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 255, 65, .22)) blur(.2px);
}

.cell {
  transform-origin: center;
}

.c1 { animation: breathe 7s ease-in-out infinite; }
.c2 { animation: breathe 5.2s ease-in-out infinite .3s; }
.c3 { animation: breathe 6.1s ease-in-out infinite .8s; }
.c4 { animation: breathe 4.3s ease-in-out infinite .5s; }
.c5 { animation: breathe 3.6s ease-in-out infinite 1s; }

/* 左栏 */
.rail {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: 168px;
  padding: .95rem .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(153, 255, 204, .06);
}

.rail h2 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--mint);
}

.rail hr {
  width: 44px;
  height: 3px;
  border: 0;
  margin: 0 0 .55rem;
  border-radius: 2px;
  background: var(--acid);
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .18rem .45rem;
  color: #cdeee0;
  text-decoration: none;
  font-size: 1rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background .16s ease, color .16s ease;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--mint);
  color: var(--ink);
  border-left-color: var(--ink);
}

/* 正文容器 */
.wrap {
  grid-column: 2;
  min-width: 0;
}

.sheet {
  min-width: 0;
}

.prose > article {
  position: relative;
  margin: 0 0 1.3rem;
  padding: 1.5rem 1.25rem 1.7rem;
  border-radius: 10px;
  border-bottom: 3px solid var(--acid);
  background: linear-gradient(180deg, rgba(153, 255, 204, .09), rgba(153, 255, 204, .02));
  scroll-margin-top: 158px;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, background .3s ease;
}

.prose > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
  background: linear-gradient(180deg, rgba(153, 255, 204, .14), rgba(153, 255, 204, .03));
}

.prose > article:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 2.9vw, 1.85rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--mint);
}

.prose h3 {
  margin: 1.5rem 0 .4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d7fff0;
}

.prose hr {
  width: 96px;
  height: 4px;
  border: 0;
  margin: 0 0 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acid), var(--mint));
}

.prose p {
  margin: 0 0 1rem;
  font-size: 1.06rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: .45rem;
}

.prose strong {
  color: #ffffff;
}

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

.prose a:hover {
  color: var(--mint);
}

.prose blockquote {
  margin: 1rem 0;
  padding: .3rem 0 .3rem 1rem;
  border-left: 3px solid var(--mint);
  color: #c6eddf;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2.6rem;
  padding: 2.2rem max(1rem, calc((100% - var(--maxw)) / 2)) 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .6rem 2.4rem;
  background: #00152b;
  border-top: 1px solid var(--line);
}

.foot-brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.foot-brand strong {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.foot-brand span {
  color: #9ec9bb;
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  align-content: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #cdeee0;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.foot-form {
  grid-column: 1 / -1;
  margin: .8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(153, 255, 204, .05);
}

.foot-form label {
  color: var(--mint);
  font-weight: 700;
}

.foot-form input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.foot-form input::placeholder {
  color: #8fb6a8;
}

.foot-form input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
}

.foot-form button {
  min-height: 44px;
  padding: .45rem 1.2rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.foot-form button:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

footer small {
  grid-column: 1 / -1;
  padding-top: .7rem;
  border-top: 1px solid var(--line-soft);
  color: #8fb6a8;
  font-size: .98rem;
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  min-height: 44px;
  padding: .45rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--mint);
  background: var(--ink-2);
  border: 1px solid var(--acid);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.totop.on {
  opacity: 1;
  pointer-events: auto;
}

.totop:hover {
  transform: translateY(-2px);
  background: var(--acid);
  color: var(--ink);
}

/* 入场 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
}

.js .prose > article:nth-child(2).in { transition-delay: .05s; }
.js .prose > article:nth-child(3).in { transition-delay: .1s; }
.js .prose > article:nth-child(4).in { transition-delay: .15s; }
.js .prose > article:nth-child(5).in { transition-delay: .2s; }
.js .prose > article:nth-child(6).in { transition-delay: .25s; }
.js .prose > article:nth-child(7).in { transition-delay: .3s; }

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding-bottom: 2.2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 1.6rem 0 1.8rem;
  }

  .hero-art {
    justify-content: flex-start;
  }

  .hero-art svg {
    max-width: 168px;
  }

  .rail {
    position: static;
    grid-column: 1;
  }

  .wrap {
    grid-column: 1;
  }

  .tabs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .15rem;
    min-width: 0;
  }

  .tabs ol::-webkit-scrollbar {
    display: none;
  }

  .tabs .grp {
    display: contents;
  }

  .tabs .sub {
    display: contents;
  }

  .prose > article {
    scroll-margin-top: 152px;
    padding: 1.25rem 1rem 1.4rem;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .rail ol {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .1rem .5rem;
  }

  .prose > article:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse,
  .mark,
  .cell {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .prose > article,
  .totop,
  .foot-form button {
    transition: none;
  }
}

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