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

:root {
  --ink: #172617;
  --ink-deep: #0e1a10;
  --ink-soft: #1f3320;
  --ink-soft2: #26402a;
  --neon: #69ff69;
  --cyan: #00ffff;
  --mint: #b9ffd0;
  --paper: #dcf4e5;
  --muted: #94b8a2;
  --chrome: linear-gradient(118deg, #ffffff 0%, #cad9d0 17%, #8ea79a 33%, #ffffff 47%, #7d998a 62%, #e8fff2 80%, #a8bfb2 100%);
  --r: 4px;
  --mono: 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Fira Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(0, 255, 255, .16), transparent 62%),
    radial-gradient(900px 480px at 102% 2%, rgba(105, 255, 105, .17), transparent 58%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  background: var(--neon);
  color: #0b1a0d;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶部：细条 + 品牌行 + 菜单行 ---------- */
.mast {
  position: relative;
  z-index: 20;
  background: rgba(14, 26, 16, .92);
}

.tick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(105, 255, 105, .13) 0 9px, transparent 9px 18px),
    var(--ink-deep);
  border-bottom: 1px solid rgba(105, 255, 105, .28);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--neon);
}
.tick-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
.tick-brand { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick-jump {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r);
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: .14em;
}
.tick-jump:hover { background: rgba(0, 255, 255, .14); }

.brandbar {
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(105, 255, 105, .16);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}
.brand-star {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, .85));
}
.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 6.4vw, 2.2rem);
  letter-spacing: .06em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, .55));
}

.menu {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }

.menu-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 2px;
  list-style: none;
}
.menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(105, 255, 105, .09);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.menu-list a:hover,
.menu-list a:focus-visible,
.menu-list a.is-on {
  background: var(--neon);
  color: #10210f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(105, 255, 105, .35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 66px 20px 96px;
  min-height: calc(100vh - 172px);
  min-height: calc(100svh - 172px);
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-fallback {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 200deg at 26% 18%, rgba(0, 255, 255, .5), rgba(105, 255, 105, .38), rgba(23, 38, 23, .95) 68%);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(23, 38, 23, .70), rgba(23, 38, 23, .88) 62%, var(--ink));
}
.hero-inner { position: relative; z-index: 3; max-width: 22ch; text-align: center; }
.hero-h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 8.8vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(105, 255, 105, .6)) drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero-bubble-a {
  width: 140px;
  height: 140px;
  right: -32px;
  top: 12%;
  border: 2px solid rgba(0, 255, 255, .42);
  box-shadow: inset 0 0 30px rgba(0, 255, 255, .28), 0 0 26px rgba(0, 255, 255, .3);
  animation: float 9s ease-in-out infinite;
}
.hero-bubble-b {
  width: 84px;
  height: 84px;
  left: 6%;
  bottom: 18%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .8), rgba(105, 255, 105, .28) 52%, rgba(105, 255, 105, .05));
  box-shadow: 0 0 22px rgba(105, 255, 105, .45);
  animation: float 7s ease-in-out infinite reverse;
}
.hero-word {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 1;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 17vw, 10rem);
  line-height: .84;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: rgba(0, 255, 255, .14);
  pointer-events: none;
  user-select: none;
}

/* ---------- 主体布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 46px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px 74px;
}

.prose {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.85;
  color: #d9f0e0;
}
.prose section[id] { scroll-margin-top: 155px; }
.prose section + section {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px dashed rgba(105, 255, 105, .24);
}
.prose h2 {
  margin: 1.5em 0 .55em;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(105, 255, 105, .45);
}
.prose h2::before {
  content: "\2726";
  margin-right: .42em;
  font-size: .72em;
  color: var(--cyan);
  vertical-align: .12em;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, .8));
}
.prose h2 > span,
.prose h3 > span {
  background: linear-gradient(transparent 64%, rgba(0, 255, 255, .3) 64%);
  padding-right: .08em;
}
.prose h3 {
  margin: 1.35em 0 .5em;
  font-family: var(--mono);
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--mint);
}
.prose p { margin: 0 0 1.05em; }
.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose a:hover { color: var(--neon); }
.prose strong { color: var(--neon); }
.prose figure { margin: 1.4em 0; }
.prose figure img { width: 100%; border-radius: var(--r); display: block; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: .5em; }
.prose blockquote {
  margin: 1.3em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: var(--r);
  background: rgba(0, 255, 255, .08);
  color: #cfeee0;
}
.prose code {
  font-family: var(--mono);
  font-size: .94em;
  background: rgba(105, 255, 105, .14);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--neon);
}
.prose pre {
  overflow-x: auto;
  padding: 14px;
  border-radius: var(--r);
  background: var(--ink-deep);
}
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.prose th,
.prose td { padding: 8px 10px; border-bottom: 1px solid rgba(105, 255, 105, .2); text-align: left; }
.prose th { color: var(--neon); font-family: var(--mono); font-weight: 500; }
.prose hr { border: 0; border-top: 1px dashed rgba(105, 255, 105, .3); margin: 1.6em 0; }

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}
.rail-box {
  background: var(--ink-soft);
  border-radius: var(--r);
  padding: 16px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(105, 255, 105, .16);
}
.rail-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--neon);
}
.rail-h::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rl;
  display: grid;
  gap: 2px;
}
.rail-list li { counter-increment: rl; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.rail-list a::before {
  content: counter(rl, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  flex: none;
}
.rail-list a:hover,
.rail-list a.is-on { background: rgba(105, 255, 105, .16); color: var(--neon); }
.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  color: #0d1c10;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 255, 255, .28);
}
.rail-top:hover { filter: brightness(1.1); }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  margin-top: 30px;
  padding: 44px clamp(18px, 5vw, 64px) 22px;
  border-top: 2px solid rgba(105, 255, 105, .35);
  background:
    linear-gradient(180deg, rgba(105, 255, 105, .08), transparent 46%),
    var(--ink-deep);
}
.foot-sec { min-width: 0; }
.foot-h {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--neon);
}
.foot-h span {
  background: linear-gradient(transparent 62%, rgba(0, 255, 255, .32) 62%);
  padding: 0 .1em;
}
.foot-name {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.foot-desc { margin: 0; max-width: 42ch; color: #b3d3bf; font-size: 16px; line-height: 1.7; }
.foot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(0, 255, 255, .1);
  color: var(--mint);
  font-size: 16px;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.foot-list a:hover { background: var(--cyan); color: #06222a; }
.copy {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(105, 255, 105, .16);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--muted);
}
.copy-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--neon);
  text-decoration: none;
}
.copy-top:hover { background: rgba(105, 255, 105, .14); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .28; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- 断点 ---------- */
@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 18px 56px;
  }
  .rail { position: static; }
  .rail-box-go { display: none; }
  .prose section[id] { scroll-margin-top: 178px; }
}

@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; gap: 26px; padding-bottom: 18px; }
  .hero { min-height: calc(100svh - 210px); padding: 48px 18px 84px; }
  .hero-bubble-a { width: 96px; height: 96px; right: -26px; }
  .hero-bubble-b { display: none; }
}

@media (max-width: 420px) {
  .tick { font-size: 12px; letter-spacing: .12em; }
  .menu-list a { padding: 0 12px; font-size: 16px; }
  .hero-h1 { font-size: clamp(1.85rem, 9.4vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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