/* ============================================================
   Omni Pai 派派 — ompai.org 官网样式
   shadcn/ui 风格 · 黑白 · 动态光效
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  color-scheme: dark;

  --bg: #09090b;
  --bg-2: #0c0c0f;
  --card: rgba(255, 255, 255, 0.03);
  --card-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;

  --accent: #fafafa;
  --accent-fg: #09090b;

  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #27272a #09090b;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  padding: 0.1em 0.42em;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.65); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 8px; border: 2px solid #09090b; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 背景氛围 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }

.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 1; will-change: transform; }
.bg-glow--a {
  width: 700px; height: 700px; top: -280px; left: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.085), transparent 65%);
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-glow--b {
  width: 640px; height: 640px; bottom: -300px; right: -200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 65%);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}

/* 缓慢扫过的光束 */
.bg-beam {
  position: absolute; top: -45%; left: -45%; width: 190%; height: 190%;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.03) 50%, transparent 55%);
  pointer-events: none;
  animation: beamSpin 26s linear infinite;
}
@keyframes beamSpin { to { transform: rotate(360deg); } }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  animation: gridPan 40s linear infinite;
}
@keyframes gridPan { from { background-position: 0 0; } to { background-position: 56px 56px; } }

.bg-noise {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* 浮动粒子（JS 生成） */
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particles span {
  position: absolute; bottom: -8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: var(--o, 0.4); }
  85%  { opacity: var(--o, 0.4); }
  100% { transform: translateY(-108vh); opacity: 0; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(70px, 50px, 0) scale(1.12); }
}

/* ---------- 鼠标跟随光效 ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  pointer-events: none; z-index: 3;
  mix-blend-mode: screen;
  will-change: transform;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022) 42%, transparent 70%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none; z-index: 150;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease, border-color 0.25s ease;
  will-change: transform;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow, .cursor-ring { display: none; }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { display: inline-flex; }
.nav__name {
  font-weight: 700; font-size: 18px; letter-spacing: 0.4px;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.nav__name em {
  font-style: normal; font-size: 12px; font-weight: 500;
  color: var(--text-dim);
  background: var(--card-strong); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 999px;
}

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 7px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--text-dim);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: var(--card-strong); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger { display: none; background: none; border: 0; padding: 8px; }
.nav__burger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4.5px 0; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 按钮（shadcn 风格） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.14);
}
.btn--primary:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: transparent; border-color: var(--border-strong); color: var(--text);
}
.btn--ghost:hover { background: var(--card-strong); transform: translateY(-2px); }

/* ---------- 卡片聚光（跟随鼠标） ---------- */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.09), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- 小节通用 ---------- */
.section { position: relative; padding: 110px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012));
  border-block: 1px solid var(--border);
}
.section--quote {
  padding: 150px 0 120px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% -10%, rgba(255, 255, 255, 0.03), transparent 60%);
}

.section__head { max-width: 760px; margin-bottom: 56px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 18px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.65; }
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800; line-height: 1.25; letter-spacing: 0.5px;
  color: var(--text);
}
.section__title em { font-style: normal; color: var(--text); text-shadow: 0 0 36px rgba(255, 255, 255, 0.22); }

.section__sub { margin: 0; color: var(--text-dim); font-size: 17px; }
.section__sub strong { color: var(--text); font-weight: 600; }
.section__sub code { font-size: 0.85em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 80px; overflow: hidden; }

.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(38px, 5.6vw, 60px);
  font-weight: 900; line-height: 1.18; letter-spacing: 0.5px;
}
.hero__title em {
  font-style: normal; color: var(--text);
  text-shadow: 0 0 46px rgba(255, 255, 255, 0.28);
}

.hero__sub {
  margin: 0 0 34px;
  color: var(--text-dim); font-size: 17.5px; max-width: 560px;
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 620px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.hero__stats li { padding: 0 20px 0 0; }
.hero__stats li + li { padding-left: 20px; border-left: 1px solid var(--border); }
.hero__stats li:last-child { padding-right: 0; }
.hero__stats strong {
  display: block; font-size: 24px; font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono); line-height: 1.2;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
}
.hero__stats span { font-size: 12.5px; color: var(--text-faint); }

/* Hero 视觉：心跳 + 终端 */
.hero__visual { position: relative; display: flex; justify-content: center; padding: 30px 10px; }

.pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 420px; height: 420px; display: grid; place-items: center; pointer-events: none; }
.pulse__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: pulseRing 4s var(--ease) infinite;
}
.pulse__ring--2 { animation-delay: 2s; border-color: rgba(255, 255, 255, 0.09); }
.pulse__core {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 34px 6px rgba(255, 255, 255, 0.45);
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  56% { transform: scale(1); }
}

.terminal {
  position: relative; z-index: 1;
  width: min(430px, 100%);
  background: rgba(12, 12, 15, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3f3f46; }
.terminal__title { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

.terminal__body { padding: 20px 22px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2; }
.terminal__body p { margin: 0; white-space: pre-wrap; word-break: break-word; }

.t-prompt { color: var(--text); font-weight: 600; }
.t-dim { color: var(--text-dim); }
.t-ok { color: #e4e4e7; }
.t-accent { color: #52525b; }
.t-num { color: #d4d4d8; }
.t-blink { animation: blinkSoft 2.8s ease-in-out infinite; }
@keyframes blinkSoft { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.t-cursor { margin-top: 6px; }
.caret {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  background: var(--accent); vertical-align: -2px;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; justify-content: center; width: 26px; height: 44px;
}
.hero__scroll-line {
  width: 1.5px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--text-faint));
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ---------- 理念：工具 ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.tool {
  position: relative;
  padding: 24px 18px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s;
  overflow: hidden;
}
.tool:hover { transform: translateY(-4px); background: var(--card); }

.tool__icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}
.tool:hover .tool__icon { background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 26px rgba(255, 255, 255, 0.1); }

.tool h3 { margin: 0 0 10px; font-size: 17px; position: relative; }
.tool h3 code {
  background: none; border: 0; padding: 0;
  font-size: 0.95em; color: var(--text);
  font-weight: 700;
}
.tool p { margin: 0; font-size: 14px; color: var(--text-dim); position: relative; }

.philosophy-quote {
  margin: 44px 0 0;
}
.philosophy-quote p { margin: 0; font-size: 18px; color: var(--text-dim); line-height: 1.9; }
.philosophy-quote em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- 双流 ---------- */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 34px; }

.stream {
  padding: 30px 28px 26px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.stream:hover { transform: translateY(-4px); background: var(--card); }

.stream__badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

.stream h3 { margin: 0 0 18px; font-size: 22px; display: flex; align-items: baseline; gap: 10px; }
.stream__en { font-size: 12.5px; font-weight: 500; color: var(--text-faint); letter-spacing: 1px; }

.stream__list { display: grid; gap: 11px; }
.stream__list li {
  position: relative; padding-left: 22px;
  color: var(--text-dim); font-size: 15px;
}
.stream__list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}

.stream__meta {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  font-size: 13px; color: var(--text-faint); letter-spacing: 0.4px;
}

/* 熵值 */
.entropy {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 40px 24px 8px;
  border-top: 1px solid var(--border);
}
.entropy__text h3 { margin: 0 0 10px; font-size: 20px; }
.entropy__text p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.entropy__text strong { color: var(--text); }
.entropy__text em { color: var(--text); font-style: normal; font-weight: 600; }

.entropy__labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-faint); margin-bottom: 10px; }
.entropy__val { font-family: var(--font-mono); color: var(--text); }
.entropy__track {
  position: relative; height: 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}
.entropy__fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f3f46, #fafafa);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  transition: width 1.6s var(--ease);
}
.entropy__threshold {
  position: absolute; top: -4px; bottom: -4px; width: 2px; right: 26%;
  background: var(--text); opacity: 0.8;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.entropy__hint { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); }

/* ---------- 能力 ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.feature {
  position: relative;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 20px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s;
  overflow: hidden;
}
.feature:hover { transform: translateY(-4px); background: var(--card); }

.feature--wide { grid-column: 1 / -1; align-items: center; }

.feature__emoji {
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  transition: background 0.3s, box-shadow 0.3s;
}
.feature__emoji svg { width: 26px; height: 26px; }
.feature:hover .feature__emoji { background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 28px rgba(255, 255, 255, 0.08); }

.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; max-width: 62ch; }

.feature__tag {
  flex: none; align-self: flex-start;
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.5px;
  padding: 3px 11px; border: 1px solid var(--border); border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 架构金字塔 ---------- */
.pyramid { display: flex; flex-direction: column; gap: 12px; }

.pyramid__layer {
  position: relative;
  display: flex; align-items: center; gap: 22px;
  padding: 22px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-inline: auto;
  transition: background 0.3s;
}
.pyramid__layer:hover { background: var(--card); }
.pyramid__layer:nth-child(1) { max-width: 46%; }
.pyramid__layer:nth-child(2) { max-width: 55%; }
.pyramid__layer:nth-child(3) { max-width: 64%; }
.pyramid__layer:nth-child(4) { max-width: 73%; }
.pyramid__layer:nth-child(5) { max-width: 82%; }
.pyramid__layer:nth-child(6) { max-width: 91%; }
.pyramid__layer:nth-child(7) { max-width: 100%; }

.pyramid__num {
  font-family: var(--font-mono);
  font-size: 13px; color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  padding: 3px 10px; border-radius: 8px;
  flex: none;
}

.pyramid__info { flex: 1; min-width: 0; }
.pyramid__info h3 { margin: 0 0 2px; font-size: 16.5px; display: flex; align-items: baseline; gap: 8px; }
.pyramid__info h3 em { font-style: normal; font-size: 12px; color: var(--text-faint); font-weight: 500; letter-spacing: 0.8px; }
.pyramid__info p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.pyramid__tags { display: flex; gap: 7px; flex-wrap: wrap; flex: none; }
.pyramid__tags span {
  font-size: 11.5px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 技术栈 ---------- */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.stack__group {
  padding: 26px 18px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.stack__group:hover { transform: translateY(-3px); background: var(--card); }
.stack__group h3 { margin: 0 0 16px; font-size: 14.5px; color: var(--text-faint); font-weight: 600; letter-spacing: 1.2px; }

.stack__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__chips span {
  font-size: 12.5px; color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 13px; border-radius: 999px;
  font-family: var(--font-mono);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.stack__chips span:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.32); color: #fff; }

/* ---------- 快速开始 ---------- */
.quickstart { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; margin-bottom: 34px; }

.quickstart__steps ol { display: grid; gap: 14px; }
.quickstart__steps li {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-dim);
}
.quickstart__steps li:last-child { border-bottom: 0; }
.quickstart__steps li > span {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
}
.quickstart__steps code { font-size: 0.85em; }

.codeblock {
  background: rgba(12, 12, 15, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.codeblock__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.codeblock__dots { display: inline-flex; gap: 6px; }
.codeblock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3f3f46; }
.codeblock__title { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }
.codeblock__copy {
  margin-left: auto;
  background: var(--card-strong); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 12.5px;
  padding: 5px 14px; border-radius: 8px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.codeblock__copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.codeblock__copy.copied { color: var(--text); border-color: rgba(255, 255, 255, 0.5); }

.codeblock pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.codeblock code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.95; color: #d9dcef; background: none; border: 0; }
.c-comment { color: #52525b; }
.c-ok { color: #e4e4e7; }

.genesis {
  display: flex; gap: 20px; align-items: center;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
}
.genesis__icon {
  flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.genesis__text h3 { margin: 0 0 6px; font-size: 18px; }
.genesis__text p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- 开源 ---------- */
.opensource { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.license, .contribute {
  padding: 34px 24px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  transition: background 0.3s;
}
.license:hover, .contribute:hover { background: var(--card); }
.license h3, .contribute h3 { margin: 0 0 20px; font-size: 19px; display: flex; align-items: center; gap: 12px; }

.license__badge {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 5px 13px; border-radius: 999px;
  letter-spacing: 0.5px;
}

.license__list { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 24px; }
.license__list li {
  padding: 0;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.license__list li svg { flex: none; }
.license__note { margin: 0; font-size: 13.5px; color: var(--text-faint); }

.contribute__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.contribute__chips span {
  font-size: 14px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  padding: 7px 15px; border-radius: 999px;
  transition: color 0.25s, border-color 0.25s;
}
.contribute__chips span svg { flex: none; }
.contribute__chips span:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- 结语 ---------- */
.quote { text-align: center; }
.quote p {
  margin: 0 0 34px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; line-height: 1.55;
  color: var(--text);
}
.quote em {
  font-style: normal; color: var(--text);
  text-shadow: 0 0 46px rgba(255, 255, 255, 0.3);
}
.quote footer {
  font-size: 15px; color: var(--text-dim); letter-spacing: 1px;
}
.quote footer::before {
  content: "—— "; color: var(--text);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 4, 6, 0.6);
  padding: 56px 0 40px;
}
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px;
  align-items: start;
}
.footer__brand p { margin: 16px 0 0; font-size: 14px; color: var(--text-faint); line-height: 1.8; }

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--text-dim); font-size: 14.5px; transition: color 0.25s, padding-left 0.25s; }
.footer__links a:hover { color: var(--text); padding-left: 4px; }

.footer__meta { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); }
.footer__meta a { transition: color 0.25s; }
.footer__meta a:hover { color: var(--text); }
.footer__meta span { color: var(--text-faint); font-size: 13.5px; }

/* ---------- 基础文本样式占位 ---------- */

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .bg-beam, .bg-grid { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { order: -1; transform: scale(0.92); margin-bottom: -10px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(9, 9, 11, 0.96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__burger { display: block; }
  .nav__actions .btn--ghost { display: none; }

  .section { padding: 84px 0; }
  .streams, .entropy, .quickstart, .opensource { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .feature__tag { display: none; }
  .pyramid__layer { max-width: 100% !important; }
  .pyramid__tags { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .license__list { grid-template-columns: 1fr; }
  .pulse { width: 340px; height: 340px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .tools { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .stream { padding: 24px 16px; }
  .terminal__body { font-size: 12.5px; }
}
