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

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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --navy: #001e3c;
  --ink: #e7fff4;
  --line: rgba(153, 255, 204, .28);
  --soft: rgba(153, 255, 204, .14);
  --r: 18px;
  --head: Outfit, Rubik, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: Rubik, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(72px);
  border-radius: 52% 48% 61% 39% / 45% 55% 45% 55%;
}

body::before {
  width: 52vmax;
  height: 52vmax;
  left: -18vmax;
  top: -16vmax;
  background: radial-gradient(circle at 42% 42%, #00ff41, transparent 68%);
  opacity: .26;
  animation: breathe 16s ease-in-out infinite alternate;
}

body::after {
  width: 44vmax;
  height: 44vmax;
  right: -16vmax;
  bottom: -20vmax;
  background: radial-gradient(circle at 58% 50%, #99ffcc, transparent 70%);
  opacity: .2;
  animation: breathe 21s ease-in-out infinite alternate-reverse;
}

@keyframes breathe {
  from { transform: scale(.9); opacity: .16; }
  to { transform: scale(1.14) translate3d(2vmax, -2vmax, 0); opacity: .34; }
}

@keyframes morph {
  0% { border-radius: 52% 48% 61% 39% / 45% 55% 45% 55%; }
  50% { border-radius: 39% 61% 45% 55% / 58% 42% 58% 42%; }
  100% { border-radius: 52% 48% 61% 39% / 45% 55% 45% 55%; }
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mint); }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[id] { scroll-margin-top: 18px; }

/* ---------- 顶部 ---------- */

.top {
  position: relative;
  z-index: 5;
  background: rgba(0, 30, 60, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 42px;
  border-bottom: 1px solid var(--soft);
}

.ticker .t {
  font-size: .74rem;
  letter-spacing: .16em;
  color: rgba(231, 255, 244, .58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px 0;
}

.tick-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--mint);
  text-decoration: none;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}

.tick-back:hover { background: rgba(0, 255, 65, .16); color: #fff; }

.brandrow {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px 6px;
  display: flex;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  color: var(--mint);
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.6vw, 1.5rem);
  letter-spacing: -.01em;
}

.brandname { line-height: 1.2; }

.mark {
  flex: none;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
  border-radius: 52% 48% 61% 39% / 45% 55% 45% 55%;
  background: conic-gradient(from 200deg, #00ff41, #99ffcc, #00ff41);
  box-shadow: 0 0 18px rgba(0, 255, 65, .45);
  animation: morph 13s ease-in-out infinite;
}

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 12px;
  counter-reset: mi;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(231, 255, 244, .84);
  text-decoration: none;
  font-size: .9rem;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.menu a::before {
  counter-increment: mi;
  content: counter(mi, decimal-leading-zero);
  font-family: var(--head);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--neon);
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(0, 255, 65, .13);
  border-color: rgba(0, 255, 65, .48);
  color: var(--mint);
  transform: translateY(-2px);
}

/* ---------- 主视觉 ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 45vh;
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 20px 26px;
  text-align: right;
}

.hero-in { max-width: min(100%, 760px); margin-left: auto; }

.hero h1 {
  margin: 0;
  color: var(--mint);
  font-size: clamp(2.05rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-shadow: 0 0 34px rgba(0, 255, 65, .22);
  will-change: transform;
}

.lede {
  margin: 16px 0 0;
  margin-left: auto;
  max-width: 46ch;
  font-size: .96rem;
  color: rgba(231, 255, 244, .68);
}

/* ---------- 外壳与侧栏 ---------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }

.rail {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 10px;
  background: rgba(0, 30, 60, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rail h2 {
  margin: 0 0 8px;
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--neon);
  font-weight: 600;
}

.rail hr { margin: 0 0 8px; }

.rail-nav { counter-reset: ri; display: flex; flex-direction: column; }

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 2px;
  color: rgba(231, 255, 244, .82);
  text-decoration: none;
  font-size: .93rem;
  border-bottom: 1px dashed rgba(153, 255, 204, .2);
  transition: color .2s ease, padding-left .2s ease;
}

.rail-nav a:last-child { border-bottom: 0; }

.rail-nav a::before {
  counter-increment: ri;
  content: counter(ri, decimal-leading-zero);
  font-family: var(--head);
  font-size: .62rem;
  letter-spacing: .08em;
  color: rgba(0, 255, 65, .78);
}

.rail-nav a:hover { color: var(--mint); padding-left: 6px; }

/* ---------- 正文 ---------- */

.body { min-width: 0; }

.prose { counter-reset: sec; }

.prose > section {
  position: relative;
  overflow: hidden;
  counter-increment: sec;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 21px;
  margin: 0 0 22px;
  background: linear-gradient(158deg, rgba(0, 255, 65, .07), rgba(0, 30, 60, .58));
}

.prose > section::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  border-radius: 0 var(--r) 0 100%;
  background: linear-gradient(205deg, rgba(153, 255, 204, .55), transparent);
  pointer-events: none;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.7vw, 1.92rem);
  color: var(--mint);
}

.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-right: .55em;
  font-size: .58em;
  vertical-align: .24em;
  letter-spacing: .1em;
  color: var(--neon);
}

.prose h3 {
  margin: 1.4em 0 .5em;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--mint);
}

.prose p { margin: 0 0 1em; }

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

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

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

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-left: 2px solid var(--neon);
  background: rgba(0, 255, 65, .07);
  border-radius: 0 var(--r) var(--r) 0;
  color: rgba(231, 255, 244, .85);
}

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

.prose img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin: 6px 0 14px;
}

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

.prose a:hover { color: #fff; }

hr {
  border: 0;
  height: 1px;
  margin: 14px 0 18px;
  background: linear-gradient(90deg, var(--neon), rgba(153, 255, 204, .12) 72%, transparent);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: .95rem;
}

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

.prose th { background: rgba(0, 255, 65, .1); color: var(--mint); }

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: rgba(0, 20, 42, .78);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.foot-cols { display: contents; }

.foot dl { margin: 0; }

.foot dt {
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--neon);
  margin-bottom: 8px;
  font-weight: 600;
}

.foot dd {
  margin: 0;
  font-size: .93rem;
  color: rgba(231, 255, 244, .7);
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(231, 255, 244, .8);
  text-decoration: none;
  transition: color .2s ease;
}

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

.foot-brand .brand { font-size: 1.1rem; }

.sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.sub input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 30, 60, .72);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
}

.sub input::placeholder { color: rgba(231, 255, 244, .45); }

.sub button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(0, 255, 65, .5);
  border-radius: 999px;
  background: rgba(0, 255, 65, .14);
  color: var(--mint);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.sub button:hover { background: var(--neon); border-color: var(--neon); color: var(--navy); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px 28px;
  border-top: 1px solid var(--soft);
  font-size: .84rem;
  color: rgba(231, 255, 244, .58);
}

.foot-base p { margin: 0; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mint);
  text-decoration: none;
}

/* ---------- 进场 ---------- */

.anim .prose > section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.anim .prose > section.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */

@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
}

@media (min-width: 900px) {
  .top { position: sticky; top: 0; z-index: 60; }
  [id] { scroll-margin-top: 156px; }
  .menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .wrap { grid-template-columns: 236px minmax(0, 1fr); gap: 46px; align-items: start; }
  .rail {
    position: sticky;
    top: 162px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 2px 0 2px 16px;
  }
  .rail-nav a:last-child { border-bottom: 0; }
  .hero { padding-top: 48px; padding-bottom: 34px; }
  .prose > section { padding: 32px 34px; }
}

@media (min-width: 1000px) {
  .hero h1 { font-size: clamp(3rem, 5.4vw, 4.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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