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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --txt: #ddf6e3;
  --dim: #9cc4a8;
  --line: rgba(105, 255, 105, .26);
  --line2: rgba(0, 255, 255, .24);
  --r: 28px;
  --dock: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 calc(var(--dock) + 26px);
  background:
    radial-gradient(58vw 42vw at 84% -10%, rgba(0, 255, 255, .18), transparent 62%),
    radial-gradient(52vw 40vw at 6% 14%, rgba(105, 255, 105, .16), transparent 60%),
    radial-gradient(90vw 55vw at 50% 112%, rgba(0, 255, 255, .13), transparent 64%),
    linear-gradient(180deg, #0a130d 0%, #172617 46%, #0b1710 100%);
  background-attachment: fixed;
  color: var(--txt);
  font-family: "JetBrains Mono", "IBM Plex Sans", ui-monospace, "Courier New", monospace;
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 255, 255, .45);
}
a:hover { color: var(--neon); }

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

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--dock);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(23, 38, 23, .82), rgba(9, 18, 11, .95));
  backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(0, 255, 255, .32);
  box-shadow: 0 -20px 46px -30px rgba(0, 255, 255, .6);
}
.dock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 6px;
  color: #eaffef;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #ffffff, #69ff69 34%, #00ffff 66%, #ffffff);
  box-shadow: 0 0 14px rgba(105, 255, 105, .85), inset 0 0 6px #fff;
  animation: spin 9s linear infinite;
}

.menu-wrap { position: relative; flex: none; }
.menu-wrap > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(0, 255, 255, .16), rgba(105, 255, 105, .08));
  color: #dcfaff;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.menu-wrap > summary::-webkit-details-marker { display: none; }
.menu-wrap > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.menu-wrap[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.menu-list {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(78vw, 312px);
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 9px;
  list-style: none;
  display: grid;
  gap: 2px;
  border-radius: 22px;
  border: 1px solid rgba(105, 255, 105, .34);
  background: linear-gradient(160deg, rgba(18, 34, 22, .97), rgba(9, 19, 13, .98));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -34px #000, inset 0 0 0 1px rgba(0, 255, 255, .12);
}
.menu-list li {
  opacity: 0;
  transform: translateY(7px);
  animation: rise .36s cubic-bezier(.2, .7, .3, 1) forwards;
}
.menu-list li:nth-child(1) { animation-delay: .02s; }
.menu-list li:nth-child(2) { animation-delay: .05s; }
.menu-list li:nth-child(3) { animation-delay: .08s; }
.menu-list li:nth-child(4) { animation-delay: .11s; }
.menu-list li:nth-child(5) { animation-delay: .14s; }
.menu-list li:nth-child(6) { animation-delay: .17s; }
.menu-list li:nth-child(7) { animation-delay: .2s; }
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 16px;
  color: #d6f2dc;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu-list a:hover,
.menu-list a[aria-current="true"] {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(105, 255, 105, .24), rgba(0, 255, 255, .12));
  transform: translateX(3px);
}

.cta {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #08150b;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #69ff69, #00ffff 72%, #c8ffe6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 12px 26px -15px rgba(105, 255, 105, .95);
  transition: transform .2s ease, filter .2s ease;
}
.cta:hover { color: #08150b; filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- 版心 ---------- */
.stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 14px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.col { min-width: 0; order: 1; }
.rail { order: 2; }

@media (min-width: 900px) {
  .stage {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 32px;
    padding: 40px 24px 60px;
  }
  .rail { grid-column: 1; grid-row: 1; }
  .col { grid-column: 2; grid-row: 1; }
}

/* ---------- 侧栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 20px 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line2);
  background: linear-gradient(165deg, rgba(0, 255, 255, .1), rgba(105, 255, 105, .05));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 26px 60px -48px #000;
}
.rail-h {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: .22em;
  color: #e9fff0;
  text-shadow: 0 0 12px rgba(0, 255, 255, .5);
}
.subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dim);
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #cfeeda;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.rail-list a:hover {
  color: #ffffff;
  background: rgba(105, 255, 105, .14);
  border-left-color: var(--neon);
}

/* ---------- 头部 ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
  min-height: clamp(184px, 45vh, 330px);
  padding: 18px 4px 26px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(27px, 6.6vw, 50px);
  line-height: 1.16;
  letter-spacing: .01em;
  background: linear-gradient(135deg, #ffffff 4%, #69ff69 46%, #00ffff 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(105, 255, 105, .5));
  word-break: break-word;
}
.hero-art {
  position: relative;
  flex: none;
  width: 92px;
  height: 92px;
}
.hero-art .bub {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff, #a8ffcf 26%, #00ffff 60%, #0c3a2b 100%);
  box-shadow: 0 0 26px rgba(0, 255, 255, .55), inset 0 -6px 14px rgba(0, 0, 0, .35);
  animation: bob 6s ease-in-out infinite;
}
.bub-1 { width: 54px; height: 54px; left: 0; top: 4px; }
.bub-2 {
  width: 30px; height: 30px; right: 4px; bottom: 8px; animation-delay: -2.4s;
  background: radial-gradient(circle at 32% 26%, #ffffff, #eaffb2 28%, #69ff69 62%, #0d3a1c 100%);
}
.bub-3 {
  width: 16px; height: 16px; right: 22px; top: 0; animation-delay: -4.1s;
  background: radial-gradient(circle at 34% 30%, #ffffff, #ccffd8 40%, #69ff69 100%);
}
.hero-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 0 30px rgba(0, 255, 255, .5);
}

/* ---------- 正文区块 ---------- */
.col > section {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  padding: 26px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(184, 255, 219, .086), rgba(0, 255, 255, .048));
  backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 64px -50px #000;
  scroll-margin-top: 18px;
}
.col > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(105, 255, 105, .85), rgba(0, 255, 255, .85), transparent);
}
.col > section::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 66%);
  pointer-events: none;
}
.col > section:last-child { margin-bottom: 0; }

.col h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3.5vw, 28px);
  line-height: 1.32;
  letter-spacing: .01em;
  color: #effff4;
  text-shadow: 0 0 16px rgba(0, 255, 255, .42);
}
.col h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.45;
  color: #ddfbe6;
}
.col p { margin: 0 0 14px; }
.col ul, .col ol { margin: 0 0 16px; padding-left: 1.25em; }
.col li { margin: 0 0 8px; }
.col strong { color: #ffffff; }
.col a { text-decoration-thickness: 2px; }
.col blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--neon);
  border-radius: 0 16px 16px 0;
  background: rgba(105, 255, 105, .1);
  color: #e6ffee;
}
.col code, .col pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15.5px;
}
.col pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: rgba(6, 14, 9, .72);
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border-top: 1px solid rgba(0, 255, 255, .22);
  color: var(--dim);
}
.foot address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  color: #e6fff0;
  text-shadow: 0 0 12px rgba(105, 255, 105, .45);
}
.sub {
  flex: 1 1 210px;
  min-width: 0;
  display: flex;
  gap: 8px;
}
.sub input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0, 255, 255, .07);
  color: #eaffef;
  font: inherit;
  font-size: 16px;
}
.sub input::placeholder { color: #8fb89c; }
.sub button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #08150b;
  cursor: pointer;
  background: linear-gradient(135deg, #69ff69, #00ffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.sub button:hover { filter: brightness(1.08); }

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 16px;
  color: #c0e6cb;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.foot-links a:hover { color: #ffffff; background: rgba(105, 255, 105, .16); }

.copy {
  flex: 1 0 100%;
  margin: 0;
  padding-bottom: 4px;
  font-size: 16px;
  color: #8fb89c;
}

/* ---------- 动效 ---------- */
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -9px, 0) scale(1.04); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .menu-list li { opacity: 1; transform: none; }
}

@media (max-width: 359px) {
  .brand-name { display: none; }
  .hero-art { width: 68px; height: 68px; }
  .hero-img { width: 68px; height: 68px; }
}

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