/* ============================================================
   AperturePrism — Product Website
   Dark "prism glass" aesthetic: deep navy + teal/cyan/indigo.
   Self-hosted fonts: Cabinet Grotesk (display), Geist (body), Geist Mono (code).
   ============================================================ */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --prism-1: #5eead4;      /* teal-300 */
  --prism-2: #22d3ee;      /* cyan-400 */
  --prism-3: #818cf8;      /* indigo-400 */
  --violet: #a78bfa;

  --bg: #05080f;
  --bg-2: #0a101d;
  --panel: #0d1626;
  --panel-2: #111c30;
  --border: rgba(148, 166, 194, 0.14);
  --border-2: rgba(148, 166, 194, 0.26);

  --text: #e8eef7;
  --muted: #9db0cc;
  --faint: #6b7d99;

  --font-display: "Cabinet Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 16px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --grad: linear-gradient(100deg, var(--prism-1), var(--prism-2) 55%, var(--prism-3));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- light theme (prefers-color-scheme) ----------  */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --bg-2: #eef2f8;
    --panel: #ffffff;
    --panel-2: #f3f6fb;
    --border: rgba(15, 30, 60, 0.10);
    --border-2: rgba(15, 30, 60, 0.18);
    --text: #101a2c;
    --muted: #516179;
    --faint: #8393ab;
    --shadow-lg: 0 30px 80px -30px rgba(35, 55, 95, 0.25);
  }
  ::selection { color: #05251f; }
  .nav.is-scrolled { background: rgba(246, 248, 252, 0.82); }
  .drawer { background: rgba(255, 255, 255, 0.98); }
  .code { background: #fbfdff; color: #24344d; }
  .code::before { color: #0ea5a0; }
  .code__copy { border-color: rgba(13, 148, 136, 0.4); background: rgba(13, 148, 136, 0.08); color: #0f766e; }
  .code__copy:hover { background: rgba(13, 148, 136, 0.16); border-color: #14b8a6; color: #0f5f58; box-shadow: 0 0 14px rgba(13, 148, 136, 0.25); }
  .gsec code, .gtable code, .setup__step code { background: rgba(15, 30, 60, 0.06); color: #24344d; }
  .callout { background: rgba(20, 184, 166, 0.06); }
  .callout--warn { background: rgba(245, 158, 11, 0.07); }
  .hero__prism { opacity: 0.32; }
  .arch-frame, .shot__frame { background: #fbfdff; }
  .apx-toolbar { background: rgba(255, 255, 255, 0.88); border-color: rgba(15, 30, 60, 0.12); box-shadow: 0 10px 26px -16px rgba(35, 55, 95, 0.45); }
  .apx-overlay { background: rgba(246, 248, 252, 0.92); }
  .apx-overlay-topbar { background: rgba(246, 248, 252, 0.88); }
  .apx-overlay-tools { background: rgba(15, 30, 60, 0.05); }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(94, 234, 212, 0.28); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--prism-1); color: #06201a;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary {
  background: var(--grad); color: #05251f;
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(129, 140, 248, 0.6); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text); border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--prism-2); transform: translateY(-2px); background: rgba(34, 211, 238, 0.06); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn__arrow { width: 16px; height: 16px; }
.btn__arrow path { stroke-dasharray: 20 20; transition: stroke-dashoffset 0.4s var(--ease); }
.btn--primary:hover .btn__arrow path { stroke-dashoffset: -20; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { height: 40px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  position: relative; transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.3s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--prism-1); }
.nav__links a.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw); z-index: 99;
  background: rgba(7, 12, 22, 0.98); backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  padding: 96px 32px 32px;
}
.drawer.open { transform: translateX(0); }
.drawer__links { display: flex; flex-direction: column; gap: 6px; }
.drawer__links a { text-decoration: none; color: var(--muted); padding: 12px 4px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border); transition: color 0.25s var(--ease), padding-left 0.25s var(--ease); }
.drawer__links a:hover { color: var(--prism-1); padding-left: 10px; }
.drawer__scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 98; }
.drawer__scrim.show { opacity: 1; pointer-events: auto; }
body.no-scroll { overflow: hidden; }
body.no-scroll::after { content: ""; position: fixed; inset: 0; background: rgba(3,5,10,0.55); z-index: 97; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 150px 0 90px; }
.hero__prism { position: absolute; inset: 0; opacity: 0.5; }
.hero__rays rect { transform-origin: center; }
.hero__inner { position: relative; text-align: center; z-index: 2; }
.hero__mark { width: 150px; height: auto; margin: 0 auto 26px; display: block; border-radius: 8px; filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.4)); }
.hero__eyebrow { color: var(--prism-1); font-size: 13px; letter-spacing: 0.32em; margin-bottom: 22px; }
.hero__title { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; max-width: 900px; margin: 0 auto 24px; }
.hero__lead { color: var(--muted); font-size: 18px; max-width: 660px; margin: 0 auto 38px; }
.hero__lead strong { color: var(--text); }
.hero__cta { display: flex; justify-content: center; gap: 16px; margin-bottom: 46px; flex-wrap: wrap; }
.hero__meta { display: inline-flex; align-items: center; gap: 16px; color: var(--faint); font-size: 13px; flex-wrap: wrap; justify-content: center; padding: 12px 22px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02); }
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--prism-2); }

/* ---------- section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.section__title::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 12px; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='9' r='5' fill='%23000'/%3E%3Cpath d='M11 3 L17 15 L12 15 Z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='9' r='5' fill='%23000'/%3E%3Cpath d='M11 3 L17 15 L12 15 Z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat; vertical-align: -2px; }
.section__desc { color: var(--muted); font-size: 17px; }

/* ---------- manifesto ---------- */
.manifesto { padding: 60px 0 30px; text-align: center; }
.manifesto__line { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.manifesto__sub { color: var(--muted); max-width: 720px; margin: 18px auto 0; font-size: 17px; }

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 28px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--grad); opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { transform: translateY(-2px) scale(1.05); }
.card__icon[data-c="issue"] { color: var(--prism-1); }
.card__icon[data-c="pr"] { color: var(--prism-2); }
.card__icon[data-c="dup"] { color: var(--prism-3); }
.card__icon[data-c="mem"] { color: var(--violet); }
.card__icon[data-c="agents"] { color: #67e8f9; }
.card__icon[data-c="qq"] { color: var(--prism-1); }
.card__icon[data-c="console"] { color: var(--prism-3); }
.card__icon[data-c="multi"] { color: var(--prism-2); }
.card__icon[data-c="deploy"] { color: #c4b5fd; }
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- pipeline ---------- */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pipe__item {
  position: relative; padding: 26px 28px 26px 96px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pipe__item:hover { border-color: var(--border-2); background: rgba(255, 255, 255, 0.035); }
.pipe__num {
  position: absolute; left: 28px; top: 26px;
  font-size: 26px; font-weight: 600; color: transparent;
  -webkit-text-stroke: 1px var(--prism-2);
}
.pipe__item h3 { font-size: 19px; margin-bottom: 8px; }
.pipe__item p { color: var(--muted); font-size: 15px; }

/* ---------- architecture ---------- */
.arch { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), rgba(13, 22, 38, 0.4)); }
.arch__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-block; padding: 12px 18px; border-radius: 12px; text-align: center;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font-size: 14px; line-height: 1.4;
}
.chip small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.chip--core {
  background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.35); color: var(--prism-2);
  font-weight: 500;
}
.chip--store { background: rgba(129, 140, 248, 0.08); border-color: rgba(129, 140, 248, 0.32); color: #a5b4fc; }
.chip--w { background: rgba(94, 234, 212, 0.06); border-color: rgba(94, 234, 212, 0.28); color: var(--prism-1); }
.arch__vert { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; position: relative; }
.arch__vert::before { content: ""; width: 1px; height: 26px; background: var(--border-2); }

.stackrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.stack { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.stack__label { display: inline-block; font-size: 12px; color: var(--prism-2); margin-bottom: 10px; letter-spacing: 0.14em; }
.stack strong { display: block; font-size: 17px; margin-bottom: 8px; }
.stack p { color: var(--muted); font-size: 14.5px; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot { margin: 0; }
.shot__frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
  box-shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.shot:hover .shot__frame { transform: translateY(-4px); border-color: var(--border-2); }
.shot__frame img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; letter-spacing: 0.02em; }

/* ---------- quickstart ---------- */
.quick { display: grid; gap: 18px; }
.quick__block { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.quick__title { font-size: 16px; margin-bottom: 14px; color: var(--text); }
.quick__title::before { content: "▸ "; color: var(--prism-2); }
.quick__hint { color: var(--faint); font-size: 13px; }

.code {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 72px 16px 18px;
  border-radius: 12px;
  background: #070c16; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 13.5px; color: #c9d6e8; word-break: break-all;
}
.code::before { content: "$"; color: var(--prism-1); flex-shrink: 0; }
.code a { color: var(--prism-2); }
.code__copy {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  flex-shrink: 0; padding: 5px 12px; border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1); color: #7ce7f8;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.code__copy:hover { background: rgba(34, 211, 238, 0.22); border-color: var(--prism-2); color: #c9f5fd; box-shadow: 0 0 14px rgba(34, 211, 238, 0.35); }

/* ---------- CTA ---------- */
.cta { padding-bottom: 0; }
.cta__panel {
  text-align: center; padding: 70px 30px; border-radius: 26px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
}
.cta__panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(94, 234, 212, 0.18) 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 59.7%, rgba(129, 140, 248, 0.14) 60%, transparent 60.3%);
}
.cta__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; position: relative; }
.cta__sub { color: var(--muted); font-size: 17px; margin-bottom: 34px; position: relative; }
.cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; align-items: start; }
.footer__brand .footer__mark { width: 120px; height: auto; display: block; border-radius: 6px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--prism-1); }
.footer__copy { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; margin-top: 26px; }

/* ---------- inline link ---------- */
.ilink { color: var(--prism-2); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, 0.4); transition: border-color 0.25s var(--ease); }
.ilink:hover { border-color: var(--prism-2); }

/* ---------- setup steps (index, 三步跑通配置) ---------- */
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.setup__step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--panel-2)); overflow: hidden; }
.setup__step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--grad); opacity: 0; transition: opacity 0.35s var(--ease); }
.setup__step:hover::before { opacity: 1; }
.setup__num { display: inline-block; font-size: 24px; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--prism-2); margin-bottom: 14px; }
.setup__step h3 { font-size: 17px; margin-bottom: 8px; }
.setup__step p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.setup__step code { font-family: var(--font-mono); font-size: 12.5px; color: #c9d6e8; background: rgba(255,255,255,0.04); padding: 1px 6px; border-radius: 5px; }

/* ---------- guide page ---------- */
.guide-hero { padding: 150px 0 56px; text-align: center; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.guide-hero__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.01em; margin: 0 auto 16px; max-width: 760px; }
.guide-hero__sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 56px 0 90px; align-items: start; }
.guide__toc { position: sticky; top: 96px; }
.toc__label { color: var(--faint); font-size: 12px; letter-spacing: 0.18em; margin-bottom: 12px; }
.toc__inner { display: flex; flex-direction: column; gap: 2px; }
.toc__inner a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.toc__inner a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.toc__inner a.active { color: var(--prism-1); border-left-color: var(--prism-1); background: rgba(94,234,212,0.06); }

.guide__body { min-width: 0; }
.gsec { margin-bottom: 72px; }
.gsec > h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.gsec > h3 { font-size: 19px; margin: 26px 0 10px; color: var(--prism-2); }
.gsec p { color: var(--muted); font-size: 15.5px; margin: 12px 0; }
.gsec ul, .gsec ol { color: var(--muted); font-size: 15.5px; padding-left: 22px; margin: 12px 0; }
.gsec li { margin: 6px 0; }
.gsec li strong { color: var(--text); }
.gsec code { font-family: var(--font-mono); font-size: 13px; color: #c9d6e8; background: rgba(255,255,255,0.05); padding: 1px 6px; border-radius: 5px; }
.gsec .code { margin: 12px 0; white-space: pre-wrap; display: block; font-size: 13px; }
.gsec .code::before { display: none; }

.gtable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gtable th, .gtable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gtable th { background: rgba(255,255,255,0.03); color: var(--text); font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
.gtable tr:last-child td { border-bottom: none; }
.gtable td { color: var(--muted); }
.gtable code { font-family: var(--font-mono); font-size: 12.5px; background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 5px; color: #c9d6e8; }

.callout { border: 1px solid rgba(94, 234, 212, 0.3); border-left: 3px solid var(--prism-1); background: rgba(94, 234, 212, 0.06); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.callout__label { color: var(--prism-1) !important; font-size: 12px; letter-spacing: 0.14em; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 14.5px; margin: 0; }
.callout--warn { border-color: rgba(245, 158, 11, 0.35); border-left-color: var(--warn); background: rgba(245, 158, 11, 0.07); }
.callout--warn .callout__label { color: var(--warn) !important; }

.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; background: rgba(255,255,255,0.02); }
.faq summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: 15px; padding: 15px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--prism-2); font-size: 20px; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

.gsec__end { padding: 24px; border-radius: 12px; border: 1px dashed var(--border-2); text-align: center; color: var(--muted); font-size: 15px; }
.gsec__end a { color: var(--prism-2); text-decoration: none; }

/* ---------- changelog page ---------- */
.chlog__meta { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--faint); font-size: 13px; flex-wrap: wrap; width: fit-content; margin: 32px auto 44px; padding: 12px 22px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02); }
.chlog__meta strong { color: var(--prism-1); }
.chlog__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--prism-2); }
.timeline { display: grid; gap: 14px; padding-bottom: 90px; }
.ver { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); overflow: hidden; transition: border-color 0.25s var(--ease); }
.ver:hover { border-color: var(--border-2); }
.ver[data-latest] { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 30px -12px rgba(34, 211, 238, 0.35); }
.ver summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.ver summary::-webkit-details-marker { display: none; }
.ver summary::after { content: "+"; margin-left: auto; color: var(--prism-2); font-size: 20px; line-height: 1; transition: transform 0.25s var(--ease); }
.ver[open] summary::after { transform: rotate(45deg); }
.ver__tag { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }
.ver[data-latest] .ver__tag::after { content: "最新"; margin-left: 8px; font-size: 11px; font-weight: 700; color: #05251f; background: var(--grad); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.ver__date { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.ver__count { color: var(--faint); font-size: 12px; }
.ver__items { list-style: none; margin: 0; padding: 4px 20px 18px; display: grid; gap: 8px; border-top: 1px dashed var(--border); }
.ver__items li { display: flex; gap: 10px; align-items: baseline; padding-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cl-tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; padding: 1px 7px; border-radius: 999px; text-transform: uppercase; align-self: center; }
.cl-feat .cl-tag { color: var(--prism-1); background: rgba(94, 234, 212, 0.12); border: 1px solid rgba(94, 234, 212, 0.3); }
.cl-fix .cl-tag { color: #fca5a5; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.cl-docs .cl-tag { color: #a5b4fc; background: rgba(129, 140, 248, 0.12); border: 1px solid rgba(129, 140, 248, 0.3); }
.cl-test .cl-tag { color: #fdba74; background: rgba(251, 146, 60, 0.1); border: 1px solid rgba(251, 146, 60, 0.3); }
.cl-misc .cl-tag { color: var(--faint); background: rgba(148, 166, 194, 0.1); border: 1px solid rgba(148, 166, 194, 0.25); }

/* ---------- apx architecture diagrams (官网设计风) ---------- */
.arch-view { padding: 56px 0 90px; max-width: 1400px; margin: 0 auto; }
.apx-block { margin-bottom: 90px; }
.apx-cap { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.apx-cap h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.apx-cap p { color: var(--muted); font-size: 15.5px; }
.apx-frame {
  position: relative;
  border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px 20px;
  background:
    radial-gradient(1000px 300px at 50% 0%, rgba(34, 211, 238, 0.05), transparent 60%),
    var(--panel);
  overflow: hidden;
}
.apx-frame:hover { border-color: var(--border-2); }
.apx-diagram { width: 100%; height: auto; display: block; }
.apx-diagram text { font-family: var(--font-body); }
/* 节点：玻璃卡片 + 入场浮现 */
.apx-node rect.bg {
  fill: var(--panel); stroke: var(--border-2); stroke-width: 1.2;
  transition: stroke 0.25s var(--ease), fill 0.25s var(--ease), transform 0.25s var(--ease);
}
.apx-node {
  opacity: 0;
  animation: apx-node-in 0.55s var(--ease) forwards;
  animation-delay: calc(var(--step, 0) * 90ms);
}
.apx-node:hover rect.bg {
  stroke: var(--prism-2); fill: rgba(34, 211, 238, 0.07);
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.28));
}
.apx-node { cursor: pointer; }
.apx-node:focus-visible rect.bg { stroke: var(--prism-2); outline: none; }
.apx-node .t { font-family: var(--font-display); font-weight: 700; fill: var(--text); }
.apx-node .s { fill: var(--muted); }
.apx-node .k { fill: var(--faint); font-family: var(--font-mono); letter-spacing: 0.04em; }
/* 节点聚焦（点击）状态：本体提亮 + 辉光 */
.apx-node.is-focused rect.bg { stroke: var(--prism-2); stroke-width: 1.8; fill: rgba(34, 211, 238, 0.09); filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.4)); }
/* 聚焦时非关联元素淡出 */
.apx-diagram.apx-focus-on .apx-node:not(.is-focused) rect.bg,
.apx-diagram.apx-focus-on .apx-edge:not(.is-related) path,
.apx-diagram.apx-focus-on .apx-group rect.bg { opacity: 0.28; }
.apx-diagram.apx-focus-on .apx-node:not(.is-focused) text,
.apx-diagram.apx-focus-on .apx-edge:not(.is-related) text { opacity: 0.28; }
@keyframes apx-node-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 类型色点 */
.apx-dot { r: 5.5; }
.apx-dot.frontend { fill: var(--prism-2); }
.apx-dot.backend  { fill: var(--prism-1); }
.apx-dot.database { fill: var(--prism-3); }
.apx-dot.cloud    { fill: #f59e0b; }
.apx-dot.external { fill: var(--muted); }
.apx-dot.bus      { fill: #22d3ee; }
/* 分组容器 + 分组标题入场 */
.apx-group rect.bg { fill: rgba(255, 255, 255, 0.018); stroke: var(--border); stroke-dasharray: 7 6; }
.apx-group rect.bg--solid { stroke-dasharray: none; stroke: var(--border); fill: rgba(255, 255, 255, 0.012); }
.apx-group .gt {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; fill: var(--faint); text-transform: uppercase;
  opacity: 0; animation: apx-node-in 0.55s var(--ease) forwards; animation-delay: calc(var(--step, 0) * 90ms + 0.15s);
}
/* 连线：底层淡线 + 上层渐变电流（主链路）/ 虚线（次要） */
.apx-edge path { fill: none; stroke: var(--border-2); stroke-width: 1.5; }
.apx-edge path.flow {
  stroke: url(#apx-grad); stroke-width: 1.6;
  stroke-dasharray: 3 11; stroke-linecap: round;
  animation: apx-edge-flow 1.7s linear infinite;
  animation-delay: calc(var(--step, 0) * 260ms);
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.55));
}
.apx-edge path.soft { stroke: var(--border-2); stroke-dasharray: 3 5; }
.apx-edge .p { fill: var(--border-2); }
.apx-edge .el { fill: var(--faint); font-size: 14px; }
.apx-edge:hover path { stroke: var(--prism-2); }
.apx-edge:hover .el { fill: var(--prism-1); }
@keyframes apx-edge-flow { to { stroke-dashoffset: -28; } }
/* 数据包光点：沿主链路路径行走 */
.apx-token circle { filter: drop-shadow(0 0 5px var(--prism-2)); }
/* 关键节点呼吸光圈（入口） */
.apx-live { animation: apx-live 2.4s ease-out infinite; }
@keyframes apx-live {
  0%   { opacity: 0.85; r: 8; }
  60%, 100% { opacity: 0; r: 20; }
}
/* 强调连线（flow）的端点辉光 */
.apx-edge path.flow + .p { fill: var(--prism-2); }
/* ============================================================
   进阶交互细节：hover 联动 / 聚焦脉冲 / tooltip 信息浮层
   ============================================================ */
/* 节点 hover 微上浮 */
.apx-node rect.bg {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.28s var(--ease), stroke 0.28s var(--ease), fill 0.28s var(--ease);
}
.apx-node:hover rect.bg {
  transform: translateY(-3px);
  stroke: var(--prism-2); fill: rgba(34, 211, 238, 0.08);
  filter: drop-shadow(0 10px 16px rgba(34, 211, 238, 0.24));
}
/* 连线端点 hover 发光（r / filter 过渡） */
.apx-edge .p { transition: r 0.24s var(--ease), filter 0.24s var(--ease); }
.apx-edge:hover .p { r: 6.5; filter: drop-shadow(0 0 7px var(--prism-2)); }
.apx-edge:hover path.soft { stroke: var(--prism-3); }
/* hover 关系联动：悬停节点时，关联连线/两端节点提亮，其余淡出 */
.apx-diagram.apx-hover-on .apx-node:not(.is-hvr):not(.is-hvr-peer) rect.bg,
.apx-diagram.apx-hover-on .apx-edge:not(.is-hvr) path,
.apx-diagram.apx-hover-on .apx-group rect.bg { opacity: 0.32; }
.apx-diagram.apx-hover-on .apx-node:not(.is-hvr):not(.is-hvr-peer) text,
.apx-diagram.apx-hover-on .apx-edge:not(.is-hvr) text,
.apx-diagram.apx-hover-on .apx-group .gt { opacity: 0.32; }
.apx-node.is-hvr rect.bg {
  stroke: var(--prism-2); stroke-width: 1.6; fill: rgba(34, 211, 238, 0.09);
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.5));
}
.apx-node.is-hvr .t { fill: var(--prism-1); }
.apx-node.is-hvr-peer rect.bg {
  stroke: var(--prism-3); stroke-width: 1.4;
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.4));
}
.apx-node.is-hvr-peer .t { fill: var(--prism-3); }
.apx-edge.is-hvr path { stroke: var(--prism-2); stroke-width: 2; }
.apx-edge.is-hvr path.soft { stroke: var(--prism-3); }
.apx-edge.is-hvr .el { fill: var(--prism-1); }
/* 聚焦节点脉冲光环（点击后持续呼吸） */
.apx-node.is-focused rect.bg { animation: apx-focus-pulse 2.2s var(--ease) infinite; }
@keyframes apx-focus-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45)); }
  50%      { filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.85)); }
}
/* tooltip 信息浮层（HTML，跟随光标） */
.apx-tip {
  position: fixed; z-index: 140; pointer-events: none;
  min-width: 190px; max-width: 320px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(7, 12, 22, 0.92); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(6px) scale(0.97);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.apx-tip.show { opacity: 1; transform: translateY(0) scale(1); }
.apx-tip__t {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.apx-tip__t .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.apx-tip__d { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-bottom: 8px; }
.apx-tip__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 4px; }
.apx-tip__rels { display: flex; flex-wrap: wrap; gap: 5px; }
.apx-tip__rel {
  font-size: 11px; padding: 2.5px 8px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--prism-1); white-space: nowrap;
}
.apx-tip__rel--peer { background: rgba(129, 140, 248, 0.1); border-color: rgba(129, 140, 248, 0.24); color: var(--prism-3); }
@media (prefers-color-scheme: light) {
  .apx-tip { background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 44px -18px rgba(35, 55, 95, 0.35); }
  .apx-tip__t { color: #101a2c; }
}
@media (max-width: 720px) {
  .apx-tip { display: none; }
}
/* ============================================================
   架构图查看器：缩放 / 平移 / 导出 / 全屏
   ============================================================ */
.apx-toolbar {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 12px;
  background: rgba(7, 12, 22, 0.72); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.7);
  opacity: 0.88; transition: opacity 0.25s var(--ease);
}
.apx-frame:hover .apx-toolbar, .apx-toolbar:focus-within { opacity: 1; }
.apx-tbtn {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.apx-tbtn:hover { background: rgba(34, 211, 238, 0.12); color: var(--prism-1); }
.apx-tbtn:active { transform: scale(0.92); }
.apx-tbtn:focus-visible { outline: 2px solid var(--prism-2); outline-offset: 1px; }
.apx-tbtn svg { width: 15px; height: 15px; display: block; }
.apx-tsep { width: 1px; height: 18px; background: var(--border-2); margin: 0 3px; }
.apx-zoom {
  min-width: 46px; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.02em; user-select: none;
}
/* 泳道竖线（时序图） */
.apx-lane path {
  fill: none; stroke: rgba(148, 166, 194, 0.22); stroke-width: 1.5;
  stroke-dasharray: 2 6; stroke-linecap: round;
}
.apx-frame { cursor: default; }
.apx-diagram.apx-zoomable { cursor: grab; }
.apx-diagram.apx-zoomable.apx-dragging { cursor: grabbing; }
/* 全屏查看 */
.apx-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(4, 7, 14, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center;
  padding: 74px 26px 28px;
}
.apx-overlay.open { display: flex; animation: apx-fade 0.3s var(--ease); }
@keyframes apx-fade { from { opacity: 0; } to { opacity: 1; } }
.apx-overlay-stage { width: 100%; height: 100%; display: flex; align-items: center; }
.apx-overlay-stage .apx-diagram { width: 100%; height: 100%; }
.apx-overlay-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 131;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: rgba(5, 8, 15, 0.74);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.apx-overlay-title {
  font-weight: 700; font-size: 15px; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.apx-overlay-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.apx-overlay-tools {
  margin-left: auto; margin-right: auto;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.apx-tbtn--close { margin-left: 10px; }
.apx-overlay-hint {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--faint); pointer-events: none;
}
@media (max-width: 720px) {
  .apx-overlay-title { display: none; }
  .apx-overlay-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .apx-node, .apx-group .gt { opacity: 1; transform: none; animation: none; }
  .apx-edge path.flow { animation: none; stroke-dasharray: none; }
  .apx-token, .apx-live { animation: none; opacity: 0; }
  .apx-overlay.open { animation: none; }
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .stackrow { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost, .nav__actions .btn--primary { display: none; }
  .shots { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .pipe__item { padding-left: 84px; }
  .setup { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .guide__toc { position: static; max-height: none; }
  .guide__toc .toc__inner { flex-direction: row; flex-wrap: wrap; }
  .toc__inner a { border-left: none; border-bottom: 2px solid transparent; border-radius: 0; }
  .toc__inner a.active { border-bottom-color: var(--prism-1); }
}
@media (max-width: 600px) {
  .grid--3, .grid--2, .stackrow { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .arch { padding: 24px; }
  .pipe__item { padding: 22px; }
  .pipe__num { position: static; display: block; margin-bottom: 10px; -webkit-text-stroke: 0; color: var(--prism-2); }
  .section { padding: 80px 0; }
}