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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --night: #09120c;
  --night-2: #102017;
  --text: #e7f7ea;
  --muted: #a9c6b1;
  --serif: "Libre Bodoni", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --chrome: linear-gradient(135deg, #ffffff 0%, #c8d6da 17%, #f6fcff 33%, #8ea4a9 53%, #e8f4f8 71%, #9db2b7 87%, #ffffff 100%);
  --radius: 28px;
  --pad: clamp(1rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--night);
  background-image:
    radial-gradient(46rem 28rem at 88% -6%, rgba(0, 255, 255, 0.16), transparent 68%),
    radial-gradient(38rem 24rem at 4% 6%, rgba(105, 255, 105, 0.14), transparent 70%),
    linear-gradient(168deg, #0c1710 0%, #09120c 46%, #101d15 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.masthead,
.quickbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- 头部 ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem var(--pad);
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #f2fff4;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.6);
}

.brand span {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(105, 255, 105, 0.65));
}

.burger {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: rgba(105, 255, 105, 0.12);
  border: 1px solid rgba(105, 255, 105, 0.45);
  color: var(--neon);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.burger:hover {
  background: var(--neon);
  color: #06160c;
  box-shadow: 0 0 22px rgba(105, 255, 105, 0.6);
}

body.menu-open .burger {
  position: fixed;
  top: 0.8rem;
  left: 1rem;
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06181a;
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.55);
}

.pill-nav {
  display: none;
}

.pill-nav p {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.pill-nav p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  color: #d9f6e0;
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
}

.pill-nav p a:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.8);
}

.finder {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.finder input {
  width: 4.6rem;
  min-width: 0;
  min-height: 40px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(9, 24, 18, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: width 0.3s, border-color 0.3s;
}

.finder input::placeholder {
  color: #7ea78a;
}

.finder input:focus {
  width: 9rem;
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.35);
}

.finder button {
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 255, 105, 0.45);
  background: transparent;
  color: var(--neon);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.finder button:hover {
  background: var(--neon);
  color: #06160c;
}

/* 全屏遮罩菜单 */
body.menu-open {
  overflow: hidden;
}

body.menu-open .pill-nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 5.6rem 1.4rem 2rem;
  overflow-y: auto;
  background:
    radial-gradient(30rem 22rem at 85% 8%, rgba(0, 255, 255, 0.2), transparent 70%),
    radial-gradient(28rem 20rem at 10% 90%, rgba(105, 255, 105, 0.18), transparent 72%),
    #06110b;
}

body.menu-open .pill-nav p {
  flex-direction: column;
  gap: 0;
  padding: 0;
}

body.menu-open .pill-nav p a {
  min-height: 58px;
  padding: 0.3rem 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(105, 255, 105, 0.18);
}

@media (min-width: 1024px) {
  .masthead {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
  }

  .pill-nav {
    display: block;
  }

  .pill-nav p {
    justify-content: space-between;
    padding: 0 8.5rem;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.35rem;
  }

  .finder {
    margin-left: 0;
  }

  .finder input {
    width: 7rem;
  }
}

/* ---------- 粘性锚点条 ---------- */
.quickbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem var(--pad);
  background: rgba(8, 18, 12, 0.88);
  border-bottom: 1px solid rgba(105, 255, 105, 0.2);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

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

.quickbar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  color: #cfefdb;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}

.quickbar a:hover,
.quickbar a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: #06160c;
  transform: translateY(-2px);
}

/* ---------- 主栅格 ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad) 4.5rem;
  align-items: start;
}

main > article {
  grid-column: 1;
  padding-block: clamp(1.9rem, 4.2vw, 3.2rem);
  border-top: 1px solid rgba(105, 255, 105, 0.16);
}

main > article[id] {
  scroll-margin-top: 5.8rem;
}

main > article h2,
main > article h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #f0fff3;
  text-shadow: 0 0 26px rgba(105, 255, 105, 0.28);
}

main > article h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  margin: 0 0 0.7rem;
}

main > article h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 1.9rem 0 0.7rem;
  color: #d8ffe2;
}

main > article hr {
  height: 1px;
  border: 0;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 42%, rgba(0, 255, 255, 0));
}

main > article p {
  margin: 0 0 1.1em;
}

main > article a {
  color: #a5ffb8;
  text-decoration: underline;
  text-decoration-color: rgba(165, 255, 184, 0.45);
  text-underline-offset: 3px;
}

main > article a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

main > article ul,
main > article ol {
  padding-left: 1.35em;
  margin: 0 0 1.15em;
}

main > article li {
  margin-bottom: 0.4em;
}

main > article blockquote {
  margin: 1.6em 0;
  padding: 0.85em 1.15em;
  border-left: 3px solid var(--cyan);
  border-radius: 0 20px 20px 0;
  background: rgba(0, 255, 255, 0.07);
  color: #dcfbe6;
}

main > article figure,
main > article aside {
  margin: 1.6em 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(16, 32, 23, 0.92);
}

main > article img,
main > article figure img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

main > article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.98rem;
}

main > article th,
main > article td {
  padding: 0.6em 0.7em;
  text-align: left;
  border-bottom: 1px solid rgba(105, 255, 105, 0.18);
}

main > article th {
  color: var(--neon);
}

main > article code {
  font-size: 0.94em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.12);
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  border-top: 0;
  min-height: 62vh;
  padding-block: clamp(1.4rem, 4vw, 2.6rem);
}

.hero-copy {
  text-align: right;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
  color: #f4fff6;
  text-shadow: 0 0 30px rgba(105, 255, 105, 0.45), 0 0 70px rgba(0, 255, 255, 0.22);
}

.lede {
  margin: 0 0 1.3rem;
  color: #c4e5cd;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  color: #06160c;
  background: linear-gradient(180deg, #d9ffdd 0%, #69ff69 55%, #3ee06a 100%);
  box-shadow: 0 0 0 1px rgba(105, 255, 105, 0.6), 0 14px 30px -16px rgba(105, 255, 105, 0.95);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(105, 255, 105, 0.65);
}

.btn-ghost {
  background: rgba(0, 255, 255, 0.09);
  color: #b6fdff;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #eafeff;
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 24px rgba(0, 255, 255, 0.4);
}

.hero-plate {
  position: relative;
  margin: 0;
  min-height: 15rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(155deg, #16321f 0%, #0d1f16 58%, #123127 100%);
  display: grid;
  place-items: center;
  isolation: isolate;
}

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

.orb {
  width: min(58%, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 55px rgba(105, 255, 105, 0.6),
    inset -18px -22px 45px rgba(0, 90, 120, 0.55), inset 16px 18px 40px rgba(255, 255, 255, 0.9);
  animation: float 7s ease-in-out infinite;
}

.spark {
  position: absolute;
  top: 14%;
  left: 16%;
  width: 42px;
  height: 42px;
  background: #f4ffef;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 12px var(--neon));
  animation: twinkle 4.5s ease-in-out infinite;
}

.spark-b {
  top: auto;
  bottom: 16%;
  left: auto;
  right: 14%;
  width: 28px;
  height: 28px;
  background: #d6feff;
  filter: drop-shadow(0 0 12px var(--cyan));
  animation-delay: 1.6s;
}

.badge {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(6, 18, 12, 0.78);
  border: 1px solid rgba(105, 255, 105, 0.55);
  color: var(--neon);
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s;
}

.badge:hover {
  background: var(--neon);
  color: #06160c;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(18deg); }
}

/* ---------- 侧栏 ---------- */
.rail {
  grid-column: 1;
  margin: 1.5rem 0 0;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: #102019;
  align-self: start;
}

.rail h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: #f0fff3;
}

.rail hr {
  height: 1px;
  border: 0;
  margin: 0 0 0.7rem;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 255, 0));
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail li {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.rail li:nth-child(1) { animation-delay: 0.02s; }
.rail li:nth-child(2) { animation-delay: 0.06s; }
.rail li:nth-child(3) { animation-delay: 0.1s; }
.rail li:nth-child(4) { animation-delay: 0.14s; }
.rail li:nth-child(5) { animation-delay: 0.18s; }
.rail li:nth-child(6) { animation-delay: 0.22s; }
.rail li:nth-child(7) { animation-delay: 0.26s; }

.rail li + li {
  border-top: 1px solid rgba(105, 255, 105, 0.14);
}

.rail li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.25rem 0;
  color: #cfeede;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.rail li a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 961px) {
  main {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: 0 3.4rem;
  }

  main > aside {
    grid-column: 2;
    grid-row: 1 / span 60;
    position: sticky;
    top: 5.2rem;
    margin-top: clamp(1.5rem, 4vw, 2.6rem);
  }

  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 2.4rem;
    min-height: 70vh;
  }

  .hero-plate {
    min-height: 21rem;
  }
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 0 var(--pad) 3rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(2.2rem, 8vw, 4.4rem) 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(20rem 12rem at 20% 0%, rgba(0, 255, 255, 0.35), transparent 70%),
    linear-gradient(122deg, rgba(105, 255, 105, 0.26), rgba(0, 255, 255, 0.16) 60%, rgba(105, 255, 105, 0.1));
}

.cta-link {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  letter-spacing: 0.02em;
  color: #f6fff8;
  text-decoration: none;
  text-shadow: 0 0 26px rgba(105, 255, 105, 0.7);
  transition: transform 0.3s, text-shadow 0.3s;
}

.cta-link:hover {
  transform: scale(1.035);
  text-shadow: 0 0 34px var(--cyan);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  margin-top: 1.4rem;
}

.foot-brand a {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #e9fff0;
}

.foot-brand a:hover {
  color: var(--cyan);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.5rem;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.foot-copy {
  color: #7f9b88;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .masthead {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    text-align: left;
  }

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

  .brand {
    font-size: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

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