/* VYQON — 手工构建的站点样式
   深色 · 等宽点缀 · 无外部依赖 */

:root {
  --bg:        #07090c;
  --bg-alt:    #0a0d12;
  --panel:     #0f131a;
  --panel-2:   #131924;
  --line:      #1d2530;
  --line-soft: #151c26;
  --fg:        #e6edf3;
  --fg-dim:    #9aa7b4;
  --fg-mute:   #66727f;
  --acc:       #3ddc97;
  --acc-2:     #4d9fff;
  --warn:      #ffc857;
  --radius:    14px;
  --mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

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

a { color: inherit; text-decoration: none; }

code, pre, .mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acc); color: #04120c; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── 语言切换 ──────────────────────────────────────────── */
[data-lang="zh"] [data-en] { display: none; }
[data-lang="en"] [data-zh] { display: none; }

/* ── 导航 ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 12, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  display: flex; align-items: center; gap: 22px;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: .14em; font-size: 15px;
  flex: none;
}
.brand-mark { width: 22px; height: 22px; color: var(--acc); }
.brand-ver {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--fg-mute); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; font-weight: 500;
}
.nav-links {
  display: flex; gap: 4px; margin-left: auto; font-size: 14px;
}
.nav-links a {
  padding: 7px 11px; border-radius: 8px; color: var(--fg-dim);
  transition: color .16s, background .16s;
}
.nav-links a:hover { color: var(--fg); background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.ghost {
  background: transparent; color: var(--fg-dim); cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; padding: 6px 10px;
  transition: color .16s, border-color .16s;
}
.ghost:hover { color: var(--fg); border-color: var(--fg-mute); }

.cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 9px; font-size: 13.5px;
  transition: border-color .16s, transform .16s;
}
.cta:hover { border-color: var(--acc); transform: translateY(-1px); }
.cta svg { width: 15px; height: 15px; }
.stars {
  font-family: var(--mono); font-size: 11.5px; color: var(--warn);
  border-left: 1px solid var(--line); padding-left: 8px;
}

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 460px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(61,220,151,.13), transparent 66%);
  filter: blur(12px);
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--fg-dim); margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  background: rgba(15,19,26,.7);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,151,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.14; letter-spacing: -.024em; margin: 0 0 20px; font-weight: 700;
}
.lede { color: var(--fg-dim); font-size: 17px; margin: 0 0 30px; max-width: 34em; }
.lede strong { color: var(--fg); font-weight: 600; }

.install {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 12px 11px 16px;
  font-size: 13.5px; max-width: 520px;
}
.install.center { margin: 26px auto 0; }
.install code {
  flex: 1; color: var(--acc); overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.install code::-webkit-scrollbar { display: none; }
.copy {
  position: relative; flex: none; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--fg-dim);
  border-radius: 8px; padding: 6px 9px; display: inline-flex; align-items: center;
  gap: 6px; font-size: 12px; font-family: var(--sans);
  transition: color .16s, border-color .16s;
}
.copy:hover { color: var(--fg); border-color: var(--acc); }
.copy svg { width: 14px; height: 14px; }
.copy.small { padding: 3px 8px; font-size: 11.5px; }
.copy.done { color: var(--acc); border-color: var(--acc); }

.hero-cta { display: flex; gap: 12px; margin: 26px 0 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg);
  transition: transform .16s, border-color .16s, background .16s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--fg-mute); }
.btn.primary {
  background: var(--acc); border-color: var(--acc); color: #04120c;
}
.btn.primary:hover { background: #46e8a4; border-color: #46e8a4; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 0; padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats dt {
  font-family: var(--mono); font-size: 21px; letter-spacing: -.02em; color: var(--fg);
  font-weight: 600;
}
.stats dt span { font-size: 12px; color: var(--acc); margin-left: 2px; letter-spacing: 0; }
.stats dd { margin: 0; font-size: 12.5px; color: var(--fg-mute); }

/* ── 终端 ──────────────────────────────────────────────── */
.hero-term { position: relative; }
.term {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #0d1117, #0a0e14);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px -22px rgba(0,0,0,.85);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-bottom: 1px solid var(--line-soft);
  background: #0b0f15;
}
.term-bar i {
  width: 10px; height: 10px; border-radius: 50%; background: #2a3441; flex: none;
}
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span {
  margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-mute);
}
.term-body {
  margin: 0; padding: 16px 18px 20px; min-height: 306px;
  font-family: var(--mono); font-size: 12.6px; line-height: 1.85;
  color: var(--fg-dim); white-space: pre-wrap; word-break: break-word;
}
.term-body .g { color: var(--acc); }
.term-body .b { color: var(--acc-2); }
.term-body .y { color: var(--warn); }
.term-body .m { color: var(--fg-mute); }
.term-body .w { color: var(--fg); }
.cursor {
  display: inline-block; width: 8px; height: 15px; vertical-align: -2px;
  background: var(--acc); animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-glow {
  position: absolute; z-index: 0; inset: 12% -6% -8% -6%;
  background: radial-gradient(ellipse at center, rgba(77,159,255,.14), transparent 68%);
  filter: blur(26px); pointer-events: none;
}

/* ── section 通用 ──────────────────────────────────────── */
.sec { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.sec.alt { background: var(--bg-alt); }
.sec-no {
  font-family: var(--mono); font-size: 12px; color: var(--acc);
  letter-spacing: .1em; margin: 0 0 10px;
}
.sec h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.1rem); letter-spacing: -.018em;
  margin: 0 0 22px; font-weight: 700;
}
.sec-lede { color: var(--fg-dim); max-width: 46em; margin: 0 0 34px; }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; }
.prose p { color: var(--fg-dim); margin: 0 0 18px; }
.prose strong { color: var(--fg); font-weight: 600; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding-left: 30px; color: var(--fg-dim); font-size: 14.6px;
  line-height: 1.6;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(61,220,151,.13); border: 1px solid rgba(61,220,151,.42);
}
.checks li::after {
  content: ""; position: absolute; left: 4.6px; top: .72em;
  width: 5px; height: 8.5px; border: 1.6px solid var(--acc);
  border-top: 0; border-left: 0; transform: rotate(42deg);
}

/* ── 卡片 ──────────────────────────────────────────────── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 18px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover {
  transform: translateY(-3px); border-color: #26313f; background: var(--panel-2);
}
.ic { width: 26px; height: 26px; color: var(--acc); margin-bottom: 14px; }
.card h3 {
  margin: 0 0 9px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em;
}
.card p { margin: 0; color: var(--fg-dim); font-size: 14.4px; }

/* ── 架构流程 ──────────────────────────────────────────── */
.flow {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.flow li:not(.arrow) {
  flex: 1 1 150px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 15px; display: flex; flex-direction: column; gap: 4px;
}
.flow .n {
  font-family: var(--mono); font-size: 11px; color: var(--acc); letter-spacing: .08em;
}
.flow b { font-size: 14.4px; font-weight: 650; }
.flow i { font-style: normal; font-size: 12.4px; color: var(--fg-mute); }
.flow .arrow {
  display: flex; align-items: center; color: var(--fg-mute); font-size: 17px;
  flex: none;
}

.code-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute);
  background: #0b0f15;
}
.code-box pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-box code {
  font-size: 12.4px; line-height: 1.8; color: #b9c6d3; white-space: pre;
}

/* ── 基准条 ────────────────────────────────────────────── */
.bars { display: grid; gap: 14px; }
.bar-row {
  display: grid; grid-template-columns: 116px 1fr 78px; align-items: center; gap: 14px;
}
.bar-label { font-family: var(--mono); font-size: 12.6px; color: var(--fg-dim); }
.bar {
  height: 9px; background: var(--line-soft); border-radius: 999px; overflow: hidden;
}
.bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  border-radius: 999px; transition: width 1.1s cubic-bezier(.22,.8,.28,1);
}
.bar-row:first-child .bar i { background: linear-gradient(90deg, #3ddc97, #7ef0bd); }
.bar i[style*="--o"] { opacity: var(--o); }
.bar-num {
  font-family: var(--mono); font-size: 12.4px; color: var(--fg-dim); text-align: right;
}
.bars.in .bar i { width: var(--w); }
.note { color: var(--fg-mute); font-size: 13px; margin-top: 22px; }
.note code {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; font-size: 12px; color: var(--fg-dim);
}

/* ── tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: -1px; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1px solid var(--line); border-bottom: none;
  color: var(--fg-mute); cursor: pointer; font-family: var(--mono);
  font-size: 12.6px; padding: 9px 16px; border-radius: 9px 9px 0 0;
  transition: color .16s, background .16s;
}
.tab.active { color: var(--acc); background: var(--panel); border-color: var(--line); }
.tabpanes {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius); overflow: hidden;
}
.pane { display: none; }
.pane.active { display: block; }
.pane pre { margin: 0; padding: 20px; overflow-x: auto; }
.pane code {
  font-size: 12.8px; line-height: 1.85; color: #b9c6d3; white-space: pre;
}

/* ── 路线图 ────────────────────────────────────────────── */
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.road li {
  display: grid; grid-template-columns: 62px 1fr; align-items: baseline; gap: 16px;
  padding: 13px 18px; background: var(--panel);
  border: 1px solid var(--line); border-left: 2px solid var(--line);
  border-radius: 10px; color: var(--fg-dim); font-size: 14.4px;
}
.road li b { font-family: var(--mono); font-size: 13px; color: var(--fg-mute); }
.road li.done { border-left-color: rgba(61,220,151,.5); }
.road li.done b { color: var(--acc); }
.road li.now { border-left-color: var(--acc); background: var(--panel-2); color: var(--fg); }
.road li.now b { color: var(--acc); }

/* ── 结尾 CTA ──────────────────────────────────────────── */
.endcta {
  padding: 92px 0; text-align: center; border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(61,220,151,.085), transparent 70%),
    var(--bg);
}
.endcta h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; letter-spacing: -.018em; }
.endcta .install { display: inline-flex; text-align: left; }

/* ── 页脚 ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding: 54px 0 30px; background: var(--bg-alt); }
.foot-in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.foot-brand p { color: var(--fg-mute); font-size: 13.6px; margin: 10px 0 0; max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot-cols h4 {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-mute); font-weight: 600;
}
.foot-cols a {
  display: block; color: var(--fg-dim); font-size: 13.8px; padding: 3px 0;
  transition: color .16s;
}
.foot-cols a:hover { color: var(--acc); }
.foot-end {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 12.6px; color: var(--fg-mute); font-family: var(--mono);
}
.foot-end .dot { color: var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); }

/* ── 响应式 ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .code-row { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sec { padding: 62px 0; }
  .hero { padding: 60px 0 52px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .flow .arrow { display: none; }
  .bar-row { grid-template-columns: 92px 1fr 64px; }
  .install { flex-wrap: wrap; }
}

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