@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --deep: #001e3c;
  --deep-2: #00152b;
  --abyss: #001226;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #e8fff6;
  --dim: rgba(232, 255, 246, 0.74);
  --faint: rgba(232, 255, 246, 0.46);
  --line: rgba(153, 255, 204, 0.2);
  --dock: 72px;
  --radius: 18px;
}

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

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

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 640px at 88% -12%, rgba(0, 255, 65, 0.15), transparent 62%),
    radial-gradient(880px 560px at 4% 16%, rgba(153, 255, 204, 0.12), transparent 66%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 46%, var(--deep-2) 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(153, 255, 204, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 255, 204, 0.055) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(circle at 72% 0%, #000 0%, rgba(0, 0, 0, 0.4) 46%, transparent 74%);
  mask-image: radial-gradient(circle at 72% 0%, #000 0%, rgba(0, 0, 0, 0.4) 46%, transparent 74%);
  animation: gridPulse 10s ease-in-out infinite;
}

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

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--dock);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(0, 18, 38, 0.84);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dock__burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(153, 255, 204, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dock__burger:hover {
  border-color: var(--mint);
  background: rgba(0, 255, 65, 0.12);
}

.dock__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.dock__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.dock.is-open .dock__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.dock.is-open .dock__bars i:nth-child(2) {
  opacity: 0;
}

.dock.is-open .dock__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.dock__btxt {
  line-height: 1;
}

.dock__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-decoration: none;
  white-space: nowrap;
}

.dock__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(118deg, var(--neon), var(--mint) 78%);
  color: #00210f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.24);
}

/* ---------- 全屏遮罩菜单 ---------- */
.dock__nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-content: center;
  padding: calc(var(--dock) + 28px) 7vw;
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 255, 65, 0.18), transparent 56%),
    linear-gradient(180deg, var(--abyss), #001b33 70%, var(--deep));
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.34s ease, transform 0.46s ease, visibility 0.34s;
}

.dock.is-open .dock__nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dock__col {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock__col:first-child {
  align-items: flex-end;
  text-align: right;
}

.dock__col--r {
  align-items: flex-start;
  text-align: left;
}

.dock__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.dock__col a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
  transform: translateY(-1px);
}

.dock__col a[aria-current='true'] {
  color: var(--neon);
}

/* ---------- 主区 ---------- */
main {
  position: relative;
  z-index: 1;
}

main article {
  scroll-margin-top: 26px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 12vh 6vw 16vh;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  right: -10vw;
  top: 6vh;
  width: min(560px, 82vw);
  aspect-ratio: 1;
  margin: 0;
  pointer-events: none;
}

.hero__orb span {
  position: absolute;
  inset: 0;
  border-radius: 58% 42% 54% 46% / 48% 58% 42% 52%;
  background: radial-gradient(circle at 32% 32%, rgba(0, 255, 65, 0.55), rgba(153, 255, 204, 0.16) 56%, transparent 74%);
  filter: blur(20px);
  animation: breathe 11s ease-in-out infinite;
}

.hero__orb span:nth-child(2) {
  inset: 16%;
  border-radius: 44% 56% 38% 62% / 56% 44% 62% 38%;
  background: radial-gradient(circle at 62% 42%, rgba(153, 255, 204, 0.48), transparent 66%);
  animation-duration: 7.5s;
  animation-direction: reverse;
}

.hero__kicker {
  position: relative;
  margin: 0 0 16px;
  font-size: 12.5px;
  letter-spacing: 0.42em;
  color: var(--mint);
  opacity: 0.86;
}

.hero__title {
  position: relative;
  margin: 0;
  max-width: 20ch;
  font-family: 'Space Grotesk', 'Inter', 'PingFang SC', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 7.4vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  background: linear-gradient(102deg, var(--mint) 8%, var(--neon) 62%, #d9fff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  position: relative;
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1rem;
  color: var(--dim);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  background: linear-gradient(90deg, var(--neon), var(--mint) 58%, rgba(153, 255, 204, 0.08));
  clip-path: polygon(0 100%, 0 64%, 100% 0, 100% 100%);
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- 双栏 ---------- */
.deck {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 6vw 20px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.side {
  position: sticky;
  top: 30px;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(0, 30, 60, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.side__title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--mint);
}

.side__sub {
  margin: 6px 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

.side__links {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side__links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.side__links a:hover,
.side__links a[aria-current='true'] {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(0, 255, 65, 0.08);
}

/* ---------- 正文卡片 ---------- */
.deck__main {
  min-width: 0;
}

.deck__main > article {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 24px 30px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--mint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.62), rgba(0, 21, 43, 0.48));
  overflow: hidden;
  transition: border-bottom-color 0.3s ease, transform 0.3s ease;
}

.deck__main > article:hover {
  border-bottom-color: var(--neon);
}

.deck__main > article::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: breathe 13s ease-in-out infinite;
}

.deck__main h2 {
  position: relative;
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Inter', 'PingFang SC', sans-serif;
  font-size: clamp(1.28rem, 2.9vw, 1.7rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.deck__main h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.deck__main p {
  margin: 0 0 14px;
  color: var(--dim);
}

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

.deck__main ul,
.deck__main ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: var(--dim);
}

.deck__main li {
  margin: 0 0 7px;
}

.deck__main li::marker {
  color: var(--neon);
}

.deck__main a {
  color: var(--neon);
  text-underline-offset: 3px;
}

.deck__main strong,
.deck__main b {
  color: #ffffff;
}

.deck__main blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: rgba(153, 255, 204, 0.07);
}

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

.deck__main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--dim);
}

.deck__main th,
.deck__main td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.deck__main th {
  color: var(--mint);
  font-weight: 600;
}

.deck__main figure {
  margin: 18px 0;
}

.deck__main figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--faint);
}

.deck__main time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  padding: 26px 6vw calc(var(--dock) + 34px);
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 255, 65, 0.06));
}

.foot p {
  margin: 0 0 5px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--mint);
}

.foot small {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---------- 动效 ---------- */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08) rotate(4deg);
    opacity: 1;
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  body {
    font-size: 16.5px;
  }

  .deck {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 36px 5vw 14px;
  }

  .side {
    position: static;
    order: -1;
    padding: 16px 14px;
  }

  .side__sub {
    margin-bottom: 10px;
  }

  .side__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .side__links a {
    min-height: 40px;
    padding: 6px 11px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
  }

  .side__links a:hover,
  .side__links a[aria-current='true'] {
    border-left-color: transparent;
    border-bottom-color: var(--neon);
  }

  .hero {
    min-height: 62vh;
    padding: 15vh 6vw 13vh;
  }

  .hero__orb {
    right: -22vw;
    top: 4vh;
    width: 88vw;
    opacity: 0.9;
  }

  .hero__title {
    font-size: clamp(2rem, 9.4vw, 3rem);
  }

  .hero__lead {
    font-size: 0.97rem;
  }

  .deck__main > article {
    padding: 22px 18px 26px;
  }

  .deck__main table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .dock__btxt {
    display: none;
  }

  .dock__burger {
    padding: 0 12px;
  }

  .dock__cta {
    padding: 0 13px;
    font-size: 13.5px;
  }

  .dock__col a {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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