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

:root {
  --mint: #99ffcc;
  --glow: #00ff41;
  --ink: #001e3c;
  --ink-deep: #001227;
  --line: rgba(153, 255, 204, 0.2);
  --line-soft: rgba(153, 255, 204, 0.1);
  --glass: rgba(153, 255, 204, 0.06);
  --text: #e8fff4;
  --dim: #a6c9c0;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wide: 'Syncopate', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --r: 28px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(900px 620px at 84% -8%, rgba(0, 255, 65, 0.16), transparent 62%),
    radial-gradient(760px 520px at 6% 10%, rgba(153, 255, 204, 0.13), transparent 64%),
    radial-gradient(700px 500px at 50% 108%, rgba(0, 255, 65, 0.1), transparent 62%),
    linear-gradient(180deg, #001e3c 0%, #001530 55%, #001227 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(153, 255, 204, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
}

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

a {
  color: var(--glow);
}

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

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  padding: 10px clamp(12px, 4vw, 40px) 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.94), rgba(0, 24, 48, 0.76));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand-row {
  display: flex;
  align-items: center;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}

.mark-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--glow), var(--mint), #0b7d63, var(--glow));
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.55);
  animation: breathe 7s ease-in-out infinite;
}

.mark-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 9px;
}

.brand-name {
  font-family: var(--wide);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(0, 255, 65, 0.4);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pills > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--mint);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
    box-shadow 0.22s ease, border-color 0.22s ease;
}

.pill:hover,
.pill:focus-visible {
  color: #00241a;
  background: linear-gradient(120deg, var(--mint), var(--glow));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 255, 65, 0.3);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #00211a;
  background: linear-gradient(120deg, var(--glow), var(--mint));
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 38px rgba(0, 255, 65, 0.42);
}

/* ---------- 主体网格 ---------- */
.deck {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  align-items: start;
  gap: clamp(18px, 2.4vw, 30px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px) clamp(12px, 4vw, 32px) 68px;
}

.sheet {
  min-width: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(153, 255, 204, 0.08), rgba(0, 30, 60, 0.34));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: clamp(16px, 3.2vw, 38px);
  overflow: clip;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 45vh;
  padding-bottom: clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
  text-align: center;
  min-width: 0;
}

h1 {
  margin: 0 0 14px;
  font-family: var(--wide);
  font-size: clamp(27px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.012em;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(0, 255, 65, 0.32);
  overflow-wrap: anywhere;
}

.lead {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--dim);
  font-size: 17px;
}

.hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 24%, rgba(0, 255, 65, 0.24), transparent 60%),
    radial-gradient(circle at 72% 74%, rgba(153, 255, 204, 0.2), transparent 62%),
    rgba(0, 20, 42, 0.6);
  box-shadow: inset 0 0 60px rgba(0, 255, 65, 0.14);
}

.hero-media .cell {
  position: absolute;
  border-radius: 50%;
  filter: blur(11px);
  mix-blend-mode: screen;
  animation: breathe 9s ease-in-out infinite;
}

.c1 {
  width: 54%;
  aspect-ratio: 1;
  left: -9%;
  top: 6%;
  background: radial-gradient(circle, #00ff41, rgba(0, 255, 65, 0) 70%);
}

.c2 {
  width: 66%;
  aspect-ratio: 1;
  right: -13%;
  bottom: -8%;
  background: radial-gradient(circle, #99ffcc, rgba(153, 255, 204, 0) 70%);
  animation-delay: -3s;
}

.c3 {
  width: 40%;
  aspect-ratio: 1;
  left: 34%;
  top: 46%;
  background: radial-gradient(circle, #0affc2, rgba(10, 255, 194, 0) 70%);
  animation-delay: -6s;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.13);
    opacity: 1;
  }
}

/* ---------- 正文 ---------- */
.prose {
  padding-top: clamp(16px, 2.8vw, 30px);
  min-width: 0;
}

.prose div {
  position: relative;
  padding: clamp(14px, 2.4vw, 24px) 0 clamp(14px, 2.4vw, 24px) clamp(14px, 2.4vw, 24px);
  border-left: 2px solid rgba(153, 255, 204, 0.22);
  overflow-wrap: anywhere;
}

.prose div + div {
  margin-top: 8px;
}

.prose div::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 16px var(--glow);
}

.prose div:last-child {
  padding-bottom: 6px;
}

.prose h2 {
  margin: 0 0 12px;
  font-family: var(--wide);
  font-size: clamp(19px, 2.5vw, 26px);
  line-height: 1.4;
  letter-spacing: 0.015em;
  color: #f4fffa;
}

.prose h2 > span,
.prose h3 > span {
  color: var(--mint);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--mint);
}

.prose p {
  margin: 0 0 14px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}

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

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

.prose strong {
  color: #ffffff;
}

.prose time,
.prose .num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--mint);
  letter-spacing: 0.02em;
}

.prose a {
  color: var(--glow);
  text-decoration-color: rgba(0, 255, 65, 0.45);
  text-underline-offset: 3px;
}

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

.prose blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 255, 65, 0.06);
  color: var(--dim);
}

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rail-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 14px 14px 16px;
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mint);
  text-transform: none;
}

.rail-h > span {
  border-bottom: 1px solid rgba(0, 255, 65, 0.5);
  padding-bottom: 2px;
}

.rail-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease,
    border-color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  padding-left: 15px;
  color: var(--mint);
  background: rgba(0, 255, 65, 0.12);
  border-color: var(--line-soft);
}

.rail-brand {
  margin: 0 0 12px;
  font-family: var(--wide);
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  font-size: 16px;
  color: var(--mint);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-top:hover {
  background: rgba(0, 255, 65, 0.14);
  color: #ffffff;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 30px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(14px, 4vw, 32px) 26px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  margin: 0;
  font-family: var(--wide);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.foot-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  font-size: 16px;
}

.foot-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-jump a:hover,
.foot-jump a:focus-visible {
  color: var(--mint);
  border-bottom-color: rgba(0, 255, 65, 0.6);
}

.foot-copy {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(166, 201, 192, 0.85);
  display: block;
}

/* ---------- 滚动显现 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .deck {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-copy {
    grid-column: 1 / -1;
  }

  .nav-row {
    justify-content: flex-start;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

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

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

  .mark-dot,
  .hero-media .cell {
    animation: none;
  }

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

  .pill,
  .cta,
  .rail-list a,
  .rail-top {
    transition: none;
  }
}

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