@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #001e3c;
  --deep: #00121f;
  --deep2: #001a2e;
  --mint: #99ffcc;
  --acid: #00ff41;
  --paper: #e9fff5;
  --soft: #a8c9bd;
  --line: rgba(153, 255, 204, 0.24);
  --line2: rgba(153, 255, 204, 0.12);
  --r: 28px;
  --hud: 'Share Tech Mono', 'Fira Code', ui-monospace, monospace;
  --body: 'Fira Code', ui-monospace, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font: 400 17px/1.78 var(--body);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  border-radius: 62% 38% 55% 45% / 45% 55% 42% 58%;
  animation: breathe 13s ease-in-out infinite;
}

body::before {
  width: 52vw;
  height: 52vw;
  left: -14vw;
  top: -10vw;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.20), rgba(0, 255, 65, 0) 68%);
}

body::after {
  width: 46vw;
  height: 46vw;
  right: -16vw;
  bottom: -12vw;
  background: radial-gradient(circle at 55% 45%, rgba(153, 255, 204, 0.16), rgba(153, 255, 204, 0) 70%);
  animation-delay: -6s;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.16) rotate(6deg); opacity: 0.95; }
}

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

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

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--hud);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.98), rgba(0, 18, 31, 0.9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.ticker {
  margin: 0;
  padding: 7px 18px;
  font-family: var(--hud);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--acid);
  border-bottom: 1px dashed var(--line2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandrow {
  padding: 10px 18px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--hud);
  font-size: 19px;
  letter-spacing: 0.06em;
}

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

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 42% 55% 45% / 48% 52% 46% 54%;
  background: linear-gradient(140deg, var(--acid), #0f9a4d);
  color: #002012;
  font-size: 18px;
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.4);
}

.menurow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 10px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(153, 255, 204, 0.06);
  color: var(--mint);
  font: 400 15px/1 var(--body);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.burger i,
.burger i::before,
.burger i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--acid);
  border-radius: 2px;
  content: "";
  position: relative;
}

.burger i::before { position: absolute; top: -6px; left: 0; }
.burger i::after { position: absolute; top: 6px; left: 0; }

.burger:hover { background: rgba(0, 255, 65, 0.14); border-color: var(--acid); }

.menu-dots {
  font-family: var(--hud);
  color: var(--line);
  letter-spacing: 0.3em;
}

/* ---------- 抽屉导航 ---------- */
.tray {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: min(88vw, 380px);
  padding: 20px 22px 40px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 255, 65, 0.16), transparent 60%),
    var(--deep2);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.24, 1);
}

body.tray-open .tray { transform: translateX(0); }

.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.tray-mark {
  margin: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 54% 46% 42% 58% / 46% 54% 46% 54%;
  background: var(--acid);
  color: #00210f;
  font-family: var(--hud);
  font-size: 22px;
}

.tray-close {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mint);
  font: 400 15px/1 var(--body);
  cursor: pointer;
}

.tray-close:hover { border-color: var(--acid); color: var(--acid); }

.side-h {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--acid);
  margin: 22px 0 10px;
}

.side-h span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.tray-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.tray-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  border-bottom: 1px solid var(--line2);
  color: var(--paper);
  font-size: 16px;
  transition: background 0.22s, transform 0.22s, color 0.22s;
  opacity: 0;
  transform: translateX(-10px);
}

body.tray-open .tray-nav a {
  animation: slideIn 0.45s cubic-bezier(0.22, 0.9, 0.24, 1) forwards;
  animation-delay: calc(var(--i) * 45ms + 90ms);
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.tray-nav a em {
  font-family: var(--hud);
  font-style: normal;
  font-size: 12px;
  color: var(--acid);
  opacity: 0.85;
}

.tray-nav a:hover,
.tray-nav a:focus-visible {
  background: rgba(0, 255, 65, 0.12);
  color: var(--mint);
  transform: translateX(4px);
}

.tray-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--mint);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 10, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

body.tray-open .scrim { opacity: 1; pointer-events: auto; }

body.tray-open { overflow: hidden; }

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

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px 60px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 46px 0 34px;
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  inset: auto -4% 6% auto;
  margin: 0;
  font-family: var(--hud);
  font-size: clamp(60px, 18vw, 190px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--mint);
  opacity: 0.085;
  pointer-events: none;
  white-space: nowrap;
  animation: breathe 11s ease-in-out infinite;
}

.hero-copy { position: relative; max-width: 22ch; }

.hero h1 {
  font-size: clamp(30px, 7.4vw, 58px);
  color: var(--paper);
  margin: 0 0 18px;
  text-shadow: 0 0 34px rgba(0, 255, 65, 0.28);
}

.hero-lead {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.hero-fig {
  position: relative;
  margin: 30px 0 0;
  width: min(100%, 520px);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--acid);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-img { width: 100%; }

/* ---------- 正文卡片 ---------- */
.prose {
  display: block;
}

.prose > article {
  position: relative;
  margin: 0 0 26px;
  padding: 30px 22px 34px;
  background: linear-gradient(165deg, rgba(0, 42, 74, 0.78), rgba(0, 24, 42, 0.7));
  border: 1px solid var(--line2);
  border-radius: var(--r);
  border-bottom: 3px solid rgba(0, 255, 65, 0.55);
  scroll-margin-top: 168px;
}

.prose > article::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -3px;
  width: 46px;
  height: 3px;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.prose h2 {
  font-size: clamp(21px, 4.2vw, 27px);
  color: var(--mint);
}

.prose h2 span {
  display: inline-block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.prose h3 {
  font-size: 19px;
  color: var(--paper);
  margin-top: 1.4em;
}

.prose p,
.prose li {
  color: #d8efe6;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li { margin-bottom: 0.45em; }

.prose a {
  color: var(--acid);
  border-bottom: 1px solid rgba(0, 255, 65, 0.4);
}

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

.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--acid);
  border-radius: 0 18px 18px 0;
  background: rgba(0, 255, 65, 0.07);
  color: var(--mint);
}

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

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

.prose img {
  border-radius: 20px;
  border-bottom: 3px solid var(--acid);
  margin: 1em 0;
}

.prose hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 1.6em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line2);
  padding: 10px 8px;
  text-align: left;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  padding: 40px 20px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.2), rgba(0, 12, 22, 0.9));
}

.fcta {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  font-family: var(--hud);
  font-size: clamp(34px, 11vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.fcta a {
  color: var(--mint);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--acid);
  min-height: 44px;
}

.fbrand {
  margin: 0;
  font-size: 15px;
  color: var(--soft);
  letter-spacing: 0.08em;
}

.flinks {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.flinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--soft);
  border-bottom: 1px solid transparent;
}

.flinks a:hover { color: var(--acid); border-bottom-color: var(--acid); }

.fcopy {
  grid-column: 1 / -1;
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(168, 201, 189, 0.7);
  border-top: 1px dashed var(--line2);
  padding-top: 14px;
}

/* ---------- 滚动渐显 ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  body { font-size: 18px; }
  .wrap { padding: 0 30px 80px; }
  .brandrow { padding: 12px 30px 4px; }
  .menurow { padding: 0 30px 12px; }
  .ticker { padding: 7px 30px; }
  .prose > article { padding: 40px 40px 44px; margin-bottom: 34px; }
  .prose > article::after { left: 40px; }
  .foot { padding: 56px 30px 34px; gap: 22px 40px; }
  .hero { padding: 70px 0 50px; }
}

@media (min-width: 1100px) {
  .wrap { max-width: 1060px; }
  .prose > article { padding: 46px 56px 50px; }
  .prose > article::after { left: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  body::after,
  .hero-ghost { animation: none; }
  .tray { transition: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  body.tray-open .tray-nav a { animation: none; opacity: 1; transform: none; }
}

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