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

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

html {
  background: #001e3c;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: #e6fff4;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: 128px;
}

body::before {
  content: "";
  position: fixed;
  inset: -22% -12%;
  z-index: -2;
  background:
    radial-gradient(38vw 38vw at 12% 16%, rgba(0, 255, 65, .17), transparent 62%),
    radial-gradient(46vw 46vw at 88% 28%, rgba(153, 255, 204, .15), transparent 64%),
    radial-gradient(56vw 56vw at 50% 98%, rgba(0, 255, 65, .11), transparent 68%);
  filter: blur(8px);
  animation: drift 28s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(153, 255, 204, .055) 1px, transparent 1px);
  background-size: 100% 46px;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.07); }
}

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

@keyframes sway {
  0%, 100% { border-radius: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(2deg); }
}

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

a { color: #99ffcc; }
a:hover { color: #00ff41; }

h1, h2, h3, h4 {
  font-family: Syncopate, "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  margin: 0;
}

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

.shell { display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 30px);
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  min-height: 70vh;
  padding: clamp(24px, 6vh, 60px) 0 clamp(20px, 4vh, 44px);
}

.hero-copy { text-align: right; }

.hero-title {
  font-size: clamp(1.85rem, 5.2vw, 3.9rem);
  letter-spacing: -.015em;
  color: #99ffcc;
  text-shadow: 0 0 38px rgba(0, 255, 65, .3);
  margin: 0 0 18px;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 0 0 0 auto;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  color: rgba(230, 255, 244, .82);
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 62vh;
  width: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(52% 2%, 78% 14%, 96% 44%, 88% 72%, 63% 97%, 33% 92%, 9% 70%, 3% 37%, 23% 11%);
  animation: breathe 9s ease-in-out infinite;
  filter: saturate(1.1) contrast(1.05);
}

.blob {
  position: absolute;
  mix-blend-mode: screen;
  opacity: .9;
  animation: breathe 11s ease-in-out infinite;
}

.b1 {
  width: 66%; height: 66%; left: 3%; top: 5%;
  background: radial-gradient(circle at 35% 30%, #00ff41, rgba(0, 255, 65, .14) 72%);
  clip-path: polygon(52% 2%, 78% 14%, 96% 44%, 88% 72%, 63% 97%, 33% 92%, 9% 70%, 3% 37%, 23% 11%);
}

.b2 {
  width: 40%; height: 40%; right: 1%; bottom: 6%;
  background: radial-gradient(circle at 60% 40%, #99ffcc, rgba(153, 255, 204, .1) 74%);
  clip-path: polygon(50% 0, 82% 20%, 100% 54%, 72% 86%, 38% 100%, 8% 70%, 0 34%, 26% 8%);
  animation-duration: 8s;
  animation-direction: alternate-reverse;
}

.b3 {
  width: 26%; height: 26%; left: 38%; top: 46%;
  background: radial-gradient(circle at 50% 50%, #00ff41, rgba(0, 255, 65, 0) 72%);
  clip-path: polygon(50% 0, 88% 30%, 100% 68%, 62% 98%, 22% 86%, 2% 48%, 18% 10%);
  animation-duration: 14s;
}

/* 正文区 */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding-bottom: 54px;
}

.body { min-width: 0; }

.body > article {
  position: relative;
  background: rgba(0, 42, 74, .52);
  border: 1px solid rgba(153, 255, 204, .16);
  box-shadow: 0 24px 46px -30px rgba(0, 0, 0, .95);
  padding: clamp(20px, 3.2vw, 36px);
  margin: 0 0 22px;
  scroll-margin-top: 16px;
  transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease, background .45s ease;
}

.body > article:nth-of-type(even) {
  background: rgba(0, 54, 90, .44);
  border-color: rgba(0, 255, 65, .18);
}

.body > article::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 2px;
  background: #00ff41;
}

.body > article.rv.in:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 65, .5);
  box-shadow: 0 32px 60px -32px rgba(0, 255, 65, .4);
}

.body h2 {
  font-size: clamp(1.12rem, 2.4vw, 1.5rem);
  letter-spacing: .03em;
  color: #00ff41;
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 3px solid #99ffcc;
}

.body h3 {
  font-size: 1.06rem;
  letter-spacing: .04em;
  color: #99ffcc;
  margin: 26px 0 8px;
}

.body p { margin: 0 0 14px; }
.body p:last-child { margin-bottom: 0; }

.body .subtitle,
.body p.subtitle,
.body p.subhead,
.body p.lead,
.body p.desc {
  font-size: 17px;
  letter-spacing: .05em;
  color: #8fe8c2;
  margin: 0 0 16px;
  padding-left: 17px;
}

.body ul, .body ol { margin: 0 0 16px; padding-left: 22px; }
.body li { margin-bottom: 8px; }
.body li::marker { color: #00ff41; }

.body strong { color: #99ffcc; }
.body em { color: #b6ffe0; font-style: normal; border-bottom: 1px dashed rgba(0, 255, 65, .5); }

.body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 2px solid #00ff41;
  background: rgba(0, 255, 65, .06);
  color: #d8ffef;
}

.body a {
  color: #00ff41;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 65, .45);
}
.body a:hover { background: #00ff41; color: #001e3c; border-bottom-color: #00ff41; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 22px;
  border: 1px solid rgba(153, 255, 204, .24);
  background: rgba(0, 20, 42, .75);
  backdrop-filter: blur(10px);
  padding: 18px 14px;
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .9);
}

.rail h2 {
  font-size: .86rem;
  letter-spacing: .3em;
  color: #99ffcc;
  margin: 0 0 4px;
}

.rail .subtitle {
  margin: 0 0 14px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .74rem;
  letter-spacing: .14em;
  color: rgba(0, 255, 65, .85);
  overflow-wrap: break-word;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 7px;
  font-size: 16px;
  line-height: 1.4;
  color: #cdeee0;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 255, 204, .12);
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}

.rail-list a:hover {
  background: #99ffcc;
  color: #001e3c;
  padding-left: 12px;
}

.num {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .78rem;
  color: #00ff41;
  flex: none;
}

.rail-list a:hover .num { color: #001e3c; }

/* 页脚 */
footer {
  margin-top: 24px;
  border-top: 1px solid rgba(153, 255, 204, .26);
  background: rgba(0, 14, 30, .66);
  padding-bottom: 26px;
}

footer > article {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(14px, 4vw, 30px);
  padding-right: clamp(14px, 4vw, 30px);
}

.fcta {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-top: clamp(34px, 7vw, 66px);
  padding-bottom: clamp(30px, 6vw, 54px);
  border-bottom: 1px solid rgba(153, 255, 204, .16);
}

.fcta h2 {
  font-size: clamp(1.35rem, 4.2vw, 2.5rem);
  letter-spacing: -.005em;
  color: #99ffcc;
  line-height: 1.16;
  overflow-wrap: break-word;
}

.fcta .subtitle {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .82rem;
  letter-spacing: .26em;
  color: rgba(0, 255, 65, .9);
}

.totop {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 24px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 15px;
  letter-spacing: .16em;
  color: #00ff41;
  background: transparent;
  border: 1px solid #00ff41;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.totop:hover { background: #00ff41; color: #001e3c; transform: translateY(-2px); }
.totop:focus-visible { outline: 2px solid #99ffcc; outline-offset: 3px; }

.fcols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .9fr;
  gap: 26px;
  padding-top: 38px;
  padding-bottom: 34px;
}

.fbrand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  font-family: Syncopate, "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .05em;
  color: #99ffcc;
  text-decoration: none;
}

.fbrand a:hover { color: #00ff41; }

.fnav dl { margin: 0; }

.fnav dt {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .26em;
  color: #00ff41;
  margin-bottom: 8px;
}

.fnav dd { margin: 0; }

.fnav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #cfe9dd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}

.fnav a:hover { color: #99ffcc; border-bottom-color: #99ffcc; padding-left: 5px; }

.fback { display: flex; align-items: flex-start; }
.fback .totop-sm { margin-top: 22px; padding: 9px 16px; font-size: 15px; }

.fbase {
  padding-top: 20px;
  text-align: center;
}

.fbase p {
  margin: 0;
  font-size: 16px;
  letter-spacing: .08em;
  color: rgba(214, 245, 231, .62);
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(0, 18, 36, .93);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(153, 255, 204, .34);
  box-shadow: 0 -18px 44px -30px rgba(0, 255, 65, .5);
}

.dock-d {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px clamp(10px, 3vw, 26px) calc(7px + env(safe-area-inset-bottom));
}

.dock-side {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.dock-side.right { justify-content: flex-end; }

.dock-side a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1.3;
  color: #d6f5e7;
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}

.dock-side a:hover,
.dock-side a:focus-visible { background: #99ffcc; color: #001e3c; outline: 0; }

.ic {
  display: block;
  flex: none;
  width: 11px;
  height: 11px;
  background: #00ff41;
  clip-path: polygon(50% 0, 78% 18%, 100% 50%, 74% 82%, 44% 100%, 12% 74%, 0 42%, 26% 12%);
  animation: breathe 7s ease-in-out infinite;
}

.dock-side li:nth-child(2) .ic { clip-path: polygon(50% 0, 92% 30%, 82% 76%, 40% 100%, 6% 64%, 14% 20%); }
.dock-side li:nth-child(3) .ic { clip-path: polygon(30% 0, 88% 12%, 100% 60%, 62% 96%, 18% 84%, 0 40%); }
.dock-side li:nth-child(4) .ic { clip-path: polygon(50% 4%, 96% 36%, 76% 88%, 24% 96%, 2% 52%, 20% 10%); }

.dock-side a:hover .ic { background: #001e3c; animation-play-state: paused; }

.dock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px;
  font-family: Syncopate, "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .07em;
  color: #99ffcc;
  text-decoration: none;
  white-space: nowrap;
  justify-self: center;
}

.dock-brand:hover { color: #00ff41; }

.mark {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  background: #99ffcc;
  clip-path: polygon(52% 0, 84% 18%, 100% 56%, 68% 92%, 30% 100%, 4% 66%, 12% 22%);
  animation: breathe 6s ease-in-out infinite;
}

.dock-brand:hover .mark { background: #00ff41; }

.dock-search {
  display: flex;
  align-items: center;
  margin-left: 8px;
  border: 1px solid rgba(153, 255, 204, .42);
  background: rgba(0, 0, 0, .3);
}

.dock-search input {
  width: 104px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e6fff4;
  font: inherit;
  font-size: 16px;
}

.dock-search input::placeholder { color: rgba(214, 245, 231, .55); }
.dock-search input:focus { outline: 0; background: rgba(153, 255, 204, .14); }

.dock-search button {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #00ff41;
  color: #001e3c;
  cursor: pointer;
  transition: background .2s ease;
}

.dock-search button:hover { background: #99ffcc; }

.dock-m { display: none; padding: 5px 10px calc(6px + env(safe-area-inset-bottom)); }

.dockm-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.dockm-top .dock-brand { position: absolute; left: 50%; transform: translateX(-50%); padding: 6px 8px; }

.dockm-top .dock-search {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  background: rgba(0, 18, 36, .99);
}

.dockm-top .dock-search input { width: 0; padding: 0; transition: width .26s ease, padding .26s ease; }
.dockm-top .dock-search.open { left: 0; right: 0; justify-content: flex-end; z-index: 2; border-color: #99ffcc; }
.dockm-top .dock-search.open input { width: 100%; padding: 0 9px; }

.dockm-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dockm-scroll::-webkit-scrollbar { display: none; }

.dockm-scroll ul {
  display: flex;
  gap: 1px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dockm-scroll a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  font-size: 16px;
  color: #d6f5e7;
  text-decoration: none;
  white-space: nowrap;
}

.dockm-scroll a:active { background: #99ffcc; color: #001e3c; }

/* 入场动画 */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}

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

html:not(.js) .rv { opacity: 1; transform: none; }

/* 桌面断点 */
@media (min-width: 861px) {
  .dock-m { display: none; }
}

@media (max-width: 1024px) {
  .fcols { grid-template-columns: 1.3fr 1fr 1fr; }
  .fback { grid-column: 1 / -1; }
  .fback .totop-sm { margin-top: 0; }
}

/* 移动端 */
@media (max-width: 860px) {
  body { padding-bottom: 138px; }

  .dock-d { display: none; }
  .dock-m { display: block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 18px;
    gap: 14px;
  }

  .hero-copy { order: 1; text-align: left; }
  .hero-lead { margin-left: 0; }
  .hero-art { order: 2; max-height: 34vh; aspect-ratio: 16 / 10; }

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

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

  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .fbrand { grid-column: 1 / -1; }
  .fback { grid-column: 1 / -1; }

  .fcta { justify-items: start; }
}

@media (max-width: 460px) {
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .fcols { grid-template-columns: minmax(0, 1fr); }
  .fbrand, .fback { grid-column: auto; }
  .dock-brand { font-size: 14px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv { opacity: 1; transform: none; }
}

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