:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --bg: #000d18;
  --surf: #01213c;
  --surf2: #012b4c;
  --fg: #e2f8ef;
  --fg2: #9dc4d6;
  --line: rgba(153, 255, 204, 0.16);
  --r: 28px;
}

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

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

body {
  margin: 0;
  padding-bottom: 108px;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "PingFang SC", "Noto Sans SC", "Microsoft YaHei", monospace;
  font-size: 16px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 10% -12%, rgba(0, 255, 65, 0.11), transparent 70%),
    radial-gradient(52vw 52vw at 92% 6%, rgba(153, 255, 204, 0.09), transparent 70%),
    radial-gradient(80vw 55vw at 50% 112%, rgba(0, 30, 60, 0.9), transparent 72%);
}

header,
.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(0, 13, 24, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dock__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.dock__col {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.dock__col--l {
  flex: 1 1 0;
  justify-content: flex-start;
}

.dock__col--r {
  flex: 1 1 0;
  justify-content: flex-end;
}

.dock__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: 14px;
  white-space: nowrap;
  color: var(--fg2);
  font-size: 16px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.dock__col a:hover,
.dock__col a:focus-visible {
  color: var(--neon);
  background: rgba(0, 255, 65, 0.09);
  transform: translateY(-2px);
}

.dock__brand {
  flex: 0 0 auto;
  padding: 6px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--mint);
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(0, 255, 65, 0.4);
}

.dock__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--neon), var(--mint));
  color: #00200f;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 255, 65, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dock__cta:hover,
.dock__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.45);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: 104px 22px 128px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 74px), 0 100%);
  background: linear-gradient(158deg, #002039 0%, #001223 52%, #000d18 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero__media .hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) contrast(1.1);
}

.hero__aura {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero__aura i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.42;
  animation: breathe 11s ease-in-out infinite;
}

.hero__aura i:nth-child(1) {
  width: 40vw;
  height: 40vw;
  left: -8vw;
  top: -12vw;
  background: radial-gradient(circle, #00ff41, transparent 70%);
}

.hero__aura i:nth-child(2) {
  width: 34vw;
  height: 34vw;
  right: 4vw;
  bottom: -6vw;
  background: radial-gradient(circle, #99ffcc, transparent 70%);
  animation-delay: -3.5s;
}

.hero__aura i:nth-child(3) {
  width: 26vw;
  height: 26vw;
  left: 42%;
  top: 30%;
  background: radial-gradient(circle, #0d7f9c, transparent 70%);
  animation-delay: -7s;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.26) translateY(-10px);
    opacity: 0.6;
  }
}

.hero__big {
  position: absolute;
  right: -2vw;
  bottom: -1.2vh;
  margin: 0;
  font-size: clamp(72px, 17vw, 230px);
  line-height: 0.78;
  font-weight: 500;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: rgba(153, 255, 204, 0.08);
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

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

.hero__tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.12);
  color: var(--neon);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.hero__h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: #f2fffa;
  text-shadow: 0 0 60px rgba(0, 255, 65, 0.28);
}

.hero__h1 > span {
  background: linear-gradient(100deg, #ffffff 20%, var(--mint) 62%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 主体骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 30px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 22px 84px;
}

.prose {
  min-width: 0;
  overflow-wrap: break-word;
}

.prose > section {
  position: relative;
  margin: 0 0 26px;
  padding: 34px 30px 30px;
  border-radius: var(--r);
  background: var(--surf);
  scroll-margin-top: 26px;
  scroll-margin-bottom: 116px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.prose > section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--neon), rgba(153, 255, 204, 0.15));
}

.prose > section:hover {
  background: var(--surf2);
}

.prose h2 {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.42;
  font-weight: 500;
  color: var(--mint);
  letter-spacing: 0.005em;
}

.prose h2 > span {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.prose h2 > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.prose h3 {
  margin: 26px 0 12px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--mint);
}

.prose h3 > span {
  display: inline-block;
  border-bottom: 1px dashed rgba(0, 255, 65, 0.4);
}

.prose p {
  margin: 0 0 15px;
  color: #d3efe4;
}

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

.prose a {
  color: var(--mint);
  border-bottom: 1px solid rgba(0, 255, 65, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--neon);
  border-color: var(--neon);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.prose ol {
  counter-reset: n;
}

.prose ul > li,
.prose ol > li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
  color: #d3efe4;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

.prose ol > li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon);
  font-size: 15px;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: 18px 28px 28px 18px;
  background: rgba(0, 255, 65, 0.07);
  color: #d9f6ea;
}

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

.prose strong {
  color: var(--mint);
  font-weight: 500;
}

.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(153, 255, 204, 0.12);
  font-size: 15px;
}

/* ---------- 侧边 ---------- */
.side {
  position: sticky;
  top: 26px;
  padding: 24px 18px;
  border-radius: var(--r);
  background: var(--surf2);
}

.side__h {
  margin: 0 0 14px;
  padding: 0 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--mint);
  letter-spacing: 0.1em;
}

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

.side__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--fg2);
  font-size: 16px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.side__list a:hover,
.side__list a:focus-visible {
  background: rgba(153, 255, 204, 0.1);
  color: var(--mint);
  transform: translateX(3px);
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 44px;
  border-top: 1px solid var(--line);
  color: var(--fg2);
  font-size: 16px;
}

.foot__addr {
  font-style: normal;
  color: var(--mint);
  letter-spacing: 0.12em;
  padding: 8px 0;
}

.foot__links {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.foot__links a:hover,
.foot__links a:focus-visible {
  color: var(--neon);
  background: rgba(0, 255, 65, 0.08);
}

.foot__c {
  margin: 0;
  padding: 8px 0;
}

/* ---------- 滚动入场 ---------- */
.js .prose > section,
.js .side {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .prose > section.is-in,
.js .side.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .side {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 96px;
  }

  .dock__nav {
    padding: 8px 10px;
    gap: 2px;
  }

  .dock__brand {
    order: -1;
    padding: 6px 12px;
    letter-spacing: 0.06em;
  }

  .dock__col {
    flex: 0 0 auto;
  }

  .dock__col a {
    padding: 6px 10px;
  }

  .dock__cta {
    padding: 6px 14px;
  }

  .hero {
    min-height: 62vh;
    padding: 92px 20px 112px;
 F }
}

@media (max-width: 480px) {
  .prose > section {
    padding: 26px 20px 24px;
    border-radius: 24px;
  }

  .hero__h1 {
    max-width: none;
  }
}

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

  .hero__aura i,
  .hero__body {
    animation: none;
  }

  .js .prose > section,
  .js .side {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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