/* ============================================================
   AI Canvas — 官网样式
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-soft: #0a0c1a;
  --fg: #eef1fa;
  --fg-dim: #9ba2bd;
  --fg-faint: #6a7093;
  --line: rgba(150, 175, 255, 0.11);
  --line-strong: rgba(150, 175, 255, 0.2);
  --card: rgba(140, 168, 255, 0.03);
  --card-hi: rgba(140, 168, 255, 0.06);

  --blue: #4196ff;
  --purple: #a259ff;
  --red: #ff5d70;

  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1140px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 组件上的 display 会盖掉 UA 的 [hidden]{display:none}，这里统一兜底 */
[hidden] { display: none !important; }

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

body {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #131a3d 0%, transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: #cfd2e0;
}
img { max-width: 100%; display: block; }
::selection { background: rgba(162, 89, 255, 0.4); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- background ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
}

/* 星空：两层不同密度的平铺星点，慢速呼吸 */
.bg-stars, .bg-stars::after {
  content: ""; position: absolute; inset: 0;
}
.bg-stars {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 68% 42%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 34% 76%, rgba(200, 216, 255, 0.7), transparent),
    radial-gradient(1px 1px at 88% 88%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(180, 205, 255, 0.7), transparent),
    radial-gradient(1px 1px at 6% 62%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 78% 66%, rgba(210, 224, 255, 0.7), transparent),
    radial-gradient(1px 1px at 44% 34%, rgba(255, 255, 255, 0.5), transparent);
  background-size: 340px 290px;
  opacity: 0.78;
  animation: twinkle 9s ease-in-out infinite alternate;
}
.bg-stars::after {
  background-image:
    radial-gradient(2px 2px at 78% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.6px 1.6px at 24% 58%, rgba(210, 224, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 58% 90%, rgba(255, 255, 255, 0.6), transparent);
  background-size: 830px 700px;
  opacity: 0.62;
  animation: twinkle 13s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { to { opacity: 0.45; } }

.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.4; }
.glow-1 {
  width: 780px; height: 640px; top: -320px; left: 50%; margin-left: -390px;
  background: radial-gradient(circle, rgba(65, 150, 255, 0.5), transparent 68%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.glow-2 {
  width: 640px; height: 560px; top: 120px; right: -180px;
  background: radial-gradient(circle, rgba(162, 89, 255, 0.42), transparent 68%);
  animation: drift2 27s ease-in-out infinite alternate;
}
.glow-3 {
  width: 560px; height: 480px; top: 620px; left: -180px;
  background: radial-gradient(circle, rgba(255, 93, 112, 0.24), transparent 68%);
  animation: drift1 31s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate3d(60px, 50px, 0) scale(1.14); } }
@keyframes drift2 { to { transform: translate3d(-70px, 70px, 0) scale(1.1); } }

.bg-noise {
  position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #fff, #dcdfeb);
  color: #0a0a10;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--fg);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); transform: translateY(-1px); }

.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 999px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 7px 13px; border-radius: 9px;
  font-size: 14.5px; color: var(--fg-dim);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-gh { height: 38px; padding: 0 14px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: var(--fg); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
.mobile-menu {
  display: flex; flex-direction: column; padding: 10px 24px 22px;
  background: rgba(8, 8, 13, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 13px 4px; color: var(--fg-dim); border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 15px; }
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 0; text-align: center; }
.hero > .wrap { position: relative; z-index: 1; }

/* 轨道环：标题背后的细线椭圆，整组极慢进动 */
.orbits {
  position: absolute; top: 96px; left: 50%; z-index: 0;
  width: 760px; height: 520px; margin-left: -380px;
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 45%, transparent 96%);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 96%);
  animation: precess 140s linear infinite;
}
.orbits i {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid rgba(160, 186, 255, 0.16);
  border-radius: 50%;
}
.orbits i:nth-child(1) { width: 700px; height: 268px; margin: -134px 0 0 -350px; transform: rotate(-16deg); }
.orbits i:nth-child(2) { width: 600px; height: 232px; margin: -116px 0 0 -300px; transform: rotate(38deg); }
.orbits i:nth-child(3) { width: 420px; height: 420px; margin: -210px 0 0 -210px; border-color: rgba(160, 186, 255, 0.1); }
@keyframes precess { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .orbits { display: none; } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 5px; margin-bottom: 30px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-size: 13px; color: var(--fg-dim);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.pill:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); color: var(--fg); transform: translateY(-1px); }
.pill-tag {
  padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(40px, 7.2vw, 78px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--purple) 48%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  max-width: 620px; margin: 0 auto 36px;
  font-size: clamp(15.5px, 2vw, 18.5px);
  color: var(--fg-dim); line-height: 1.75;
  text-wrap: pretty;
}
.sec-head h2, .hero-title { text-wrap: balance; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--fg-faint);
}
.meta-sep { font-style: normal; opacity: 0.4; }

/* screenshot */
.shot-wrap { position: relative; margin: 76px auto 0; max-width: 1200px; padding: 0 24px; perspective: 2000px; }
.shot-glow {
  position: absolute; inset: 8% 12% 30%;
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--red));
  filter: blur(90px); opacity: 0.32; border-radius: 50%;
}
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform: rotateX(var(--rx, 7deg)) translateZ(0);
  transform-origin: 50% 0%;
  transition: transform 0.7s var(--ease);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #ff5f57; } .d2 { background: #febc2e; } .d3 { background: #28c840; }
.shot-title { margin-left: 12px; font-size: 12.5px; color: var(--fg-faint); }
.shot img { width: 100%; height: auto; display: block; }

/* ---------- 浏览器试用 ---------- */
.shot-stage { position: relative; }
.shot-exit {
  margin-left: auto; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--fg-dim);
  font-family: inherit; font-size: 12px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.shot-exit:hover { background: rgba(255, 255, 255, 0.12); color: var(--fg); }

.try-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 20px 34px 18px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 18, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  color: var(--fg); font-family: inherit; cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.try-btn svg { color: var(--purple); }
.try-btn span { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.try-btn em { font-style: normal; font-size: 12.5px; color: var(--fg-faint); }
.try-btn:hover {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(162, 89, 255, 0.55);
  background: rgba(20, 16, 30, 0.82);
}
.try-btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: 22px; z-index: -1;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--red));
  opacity: 0; filter: blur(14px); transition: opacity 0.3s;
}
.try-btn:hover::after { opacity: 0.55; }

.try-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(8, 8, 13, 0.82); backdrop-filter: blur(6px);
  font-size: 14px; color: var(--fg-dim);
}
.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 演示态：画框换成固定高度的应用视口，并取消首屏那点倾斜 */
.shot.is-demo { transform: none; }
.shot.is-demo .shot-stage { height: min(72vh, 760px); }
.shot.is-demo .shot-stage > img { display: none; }
.demo-frame { width: 100%; height: 100%; border: 0; display: block; }

.demo-note {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(251, 191, 36, 0.05);
  font-size: 12.8px; color: var(--fg-faint); line-height: 1.7; text-align: left;
}
.demo-note b { color: #fbbf24; font-weight: 650; }

.stack-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  margin: 64px auto 0; padding: 0 24px;
  font-size: 13px; color: var(--fg-faint); letter-spacing: 0.04em;
}
.stack-strip i { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-faint); opacity: 0.5; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 110px;
}
.stat {
  text-align: center; padding: 26px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.stat b {
  display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(140deg, #fff, #9aa0b8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { font-size: 13.5px; color: var(--fg-faint); }

/* ---------- sections ---------- */
.section { padding: 130px 0 0; }
.sec-head { position: relative; max-width: 720px; margin: 0 auto 54px; padding-top: 44px; text-align: center; }
/* 章节脊线：一段细线 + 端点小方块，呼应星图的连线标注 */
.sec-head::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 30px;
  background: linear-gradient(rgba(160, 186, 255, 0), rgba(160, 186, 255, 0.42));
}
.sec-head::after {
  content: ""; position: absolute; top: 30px; left: 50%; width: 5px; height: 5px;
  margin-left: -2.5px; border: 1px solid rgba(160, 186, 255, 0.5);
  transform: rotate(45deg);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sec-head h2 {
  font-size: clamp(29px, 4.4vw, 46px);
  line-height: 1.22; font-weight: 800; letter-spacing: -0.032em;
  margin-bottom: 18px;
}
.lede { color: var(--fg-dim); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.75; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-wide { grid-column: span 2; }
@media (min-width: 861px) {
  .card-wide { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .card-wide .card-visual { padding: 26px 26px 26px 0; }
}

.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 62%);
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-strong); background: var(--card-hi); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-body { padding: 28px 28px 24px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 9px; }
.card p { color: var(--fg-dim); font-size: 14.6px; line-height: 1.72; }
.card-flat { padding: 28px 26px 26px; }
.card-flat h3 { font-size: 17.5px; margin-bottom: 8px; }

.ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid var(--line);
}
.ico-a { color: #7fb6ff; background: rgba(65, 150, 255, 0.11); }
.ico-b { color: #c194ff; background: rgba(162, 89, 255, 0.11); }
.ico-c { color: #ff92a1; background: rgba(255, 93, 112, 0.11); }

.card-visual { padding: 0 24px 26px; }

/* flow map */
.flowmap svg { width: 100%; height: auto; }
.flowmap .wire { fill: none; stroke: url(#wire); stroke-width: 1.4; opacity: 0.75; stroke-dasharray: 4 4; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.flowmap .nd rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.flowmap .nd text { fill: #cfd2e0; font-size: 11.5px; text-anchor: middle; font-family: var(--font); }
.flowmap .n-img rect { stroke: rgba(255, 93, 112, 0.45); fill: rgba(255, 93, 112, 0.08); }
.flowmap .n-vid rect { stroke: rgba(65, 150, 255, 0.45); fill: rgba(65, 150, 255, 0.08); }
.flowmap .n-aud rect { stroke: rgba(162, 89, 255, 0.45); fill: rgba(162, 89, 255, 0.08); }
.flowmap .n-out rect { stroke: rgba(255, 255, 255, 0.3); }

/* 历史 scrubber */
.scrub { display: flex; align-items: center; }
.sn {
  flex: none; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #14141c;
}
.sn.done { border-color: var(--blue); background: rgba(65, 150, 255, 0.5); }
.sn.now {
  border-color: var(--purple); background: var(--purple);
  box-shadow: 0 0 0 4px rgba(162, 89, 255, 0.18);
}
.sl { flex: 1; height: 1.5px; background: var(--blue); opacity: 0.5; }
.sl.dim { background: var(--line-strong); opacity: 1; }
.scrub-legend {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 13px; font-size: 12.4px; color: var(--fg-faint);
}
.undo {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}

/* 预设步骤链 */
.steps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steps li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  font-size: 13.2px; color: var(--fg-dim);
}
.steps span {
  flex: none; display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 11px; font-weight: 700; color: #fff;
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 13px; color: var(--fg-dim);
}

/* ---------- 权限矩阵 ---------- */
.matrix {
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.mx-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.mx-row:last-child { border-bottom: none; }
.mx-row:not(.mx-head):hover { background: rgba(255, 255, 255, 0.035); }

.mx-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 15px 12px; min-width: 0;
}
.mx-head { background: rgba(255, 255, 255, 0.045); }
.mx-head .mx-cell { padding: 17px 12px; }
.mx-corner {
  justify-content: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fg-faint); padding-left: 24px !important;
}
.mx-mode { flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.mx-mode b {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #fff, #b9bdd0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mx-mode span { font-size: 11.5px; color: var(--fg-faint); }
.mx-mode.is-hl { background: rgba(162, 89, 255, 0.1); box-shadow: inset 0 -2px 0 var(--purple); }

.mx-label {
  flex-direction: column; align-items: flex-start; gap: 3px;
  justify-content: center; padding-left: 24px !important;
}
.mx-label b { font-size: 14.8px; font-weight: 650; }
.mx-label code {
  background: none; border: none; padding: 0;
  font-size: 11.5px; color: var(--fg-faint); letter-spacing: 0.01em;
}
.mx-row .mx-cell + .mx-cell { border-left: 1px solid var(--line); }

/* 唯一一行会随模式变化的权限，用竖向渐变强调 */
.mx-pivot { background: linear-gradient(90deg, transparent, rgba(162, 89, 255, 0.07)); }

.v {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.8px; font-weight: 650; white-space: nowrap;
}
.v::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-auto { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.v-ask  { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.v-deny { color: #8a8d9e; background: rgba(255, 255, 255, 0.05); }

.mx-foot {
  margin-top: 18px; padding: 18px 24px;
  border-left: 2px solid var(--purple);
  background: linear-gradient(90deg, rgba(162, 89, 255, 0.08), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.mx-foot p { font-size: 14.6px; color: var(--fg-dim); line-height: 1.75; }
.mx-foot b { color: var(--fg); }

/* ---------- split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  margin-top: 76px;
}
.split-rev .split-text { order: 2; }
.split-text h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 750; letter-spacing: -0.025em; margin-bottom: 14px; }
.split-text p { color: var(--fg-dim); font-size: 15.4px; line-height: 1.78; margin-bottom: 20px; }

.dots { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.dots li { position: relative; padding-left: 20px; font-size: 14.6px; color: var(--fg-dim); }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.split-visual {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 24px;
}

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 3px; }
.tl-row { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 4px 11px 20px; }
.tl-row::after {
  content: ""; position: absolute; left: 5px; top: 26px; bottom: -3px;
  width: 1px; background: var(--line);
}
.tl-row:last-child::after { display: none; }
.tl-dot {
  position: absolute; left: 0; top: 17px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #16161f; border: 2px solid var(--purple);
}
.tl-tag {
  flex: none; padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--line);
}
.tl-plan { color: #7fb6ff; background: rgba(65, 150, 255, 0.12); }
.tl-tool { color: #c194ff; background: rgba(162, 89, 255, 0.12); }
.tl-sub  { color: #7ee0c0; background: rgba(52, 211, 153, 0.12); }
.tl-ask  { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.tl-done { color: #d5d8e4; background: rgba(255, 255, 255, 0.07); }
.tl-txt { font-size: 13.6px; color: var(--fg-dim); }
.tl-wait .tl-dot { border-color: #fbbf24; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
}

/* mcp card */
.mcp-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.live {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: pulse-g 2s ease-in-out infinite;
}
@keyframes pulse-g {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.04); }
}
.mcp-card > p { color: var(--fg-dim); font-size: 14.4px; line-height: 1.7; margin-bottom: 18px; }
.mono-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mono-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--mono); font-size: 12.8px; color: var(--fg-dim);
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
}
.mono-list span { flex: none; color: var(--fg-faint); min-width: 40px; }

/* ---------- 节点面板：做成画布上的节点，而不是营销卡片 ---------- */
.node-canvas {
  position: relative; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    rgba(0, 0, 0, 0.22);
}
.grid-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; }

.ncard {
  position: relative;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(18, 18, 26, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.ncard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

/* React Flow 风格的左右连接点 */
.ncard::before, .ncard::after {
  content: ""; position: absolute; top: 21px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #14141c; border: 1.5px solid var(--nc, #7fb6ff);
  transition: box-shadow 0.25s, background 0.25s;
}
.ncard::before { left: -5px; }
.ncard::after { right: -5px; }
.ncard:hover::before, .ncard:hover::after { background: var(--nc); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }

.nbar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 14%, transparent), transparent);
  border-radius: 11px 11px 0 0;
  font-size: 13.6px; font-weight: 650; letter-spacing: -0.01em;
}
.nbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nc); box-shadow: 0 0 8px var(--nc); }
.nbar code {
  margin-left: auto; padding: 0; border: none; background: none;
  font-size: 10.5px; color: var(--fg-faint); opacity: 0.75;
}
.ncard > p { padding: 13px; font-size: 13.2px; color: var(--fg-dim); line-height: 1.68; }
.ncard code.inl { font-size: 12px; padding: 0.05em 0.35em; }

.ncard[data-c="1"] { --nc: #7fb6ff; }
.ncard[data-c="2"] { --nc: #c194ff; }
.ncard[data-c="3"] { --nc: #ff92a1; }
.ncard[data-c="4"] { --nc: #7ee0c0; }

/* color-mix 不可用时的兜底 */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .nbar { background: rgba(255, 255, 255, 0.04); }
}

/* ---------- duo ---------- */
.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dcard {
  padding: 32px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color 0.25s, background 0.25s;
}
.dcard:hover { border-color: var(--line-strong); background: var(--card-hi); }
.dcard h3 { font-size: 20px; font-weight: 700; margin-bottom: 11px; letter-spacing: -0.02em; }
.dcard p { color: var(--fg-dim); font-size: 14.8px; line-height: 1.75; margin-bottom: 22px; }

.avatars { display: flex; align-items: center; }
.av {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid #0d0d14; margin-right: -12px;
}
.a1 { background: linear-gradient(135deg, #4196ff, #7bd8ff); }
.a2 { background: linear-gradient(135deg, #a259ff, #ff9ad4); }
.a3 { background: linear-gradient(135deg, #ff5d70, #ffb26b); }
.a4 { background: linear-gradient(135deg, #34d399, #4196ff); }
.more {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 2px solid #0d0d14;
  font-size: 12px; color: var(--fg-dim); font-weight: 600;
}

/* 剪辑轨道示意 */
.track { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.tr { display: flex; align-items: center; gap: 5px; }
.tr-lb { flex: none; width: 22px; font-family: var(--mono); font-size: 10px; color: var(--fg-faint); }
.clip { height: 18px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.14); }
.c-v { background: linear-gradient(90deg, rgba(65, 150, 255, 0.5), rgba(65, 150, 255, 0.25)); }
.c-t { background: linear-gradient(90deg, rgba(162, 89, 255, 0.5), rgba(162, 89, 255, 0.25)); }
.c-a { background: linear-gradient(90deg, rgba(52, 211, 153, 0.42), rgba(52, 211, 153, 0.2)); }
.playhead { position: absolute; top: 8px; bottom: 8px; left: 46%; width: 1.5px; background: var(--red); box-shadow: 0 0 8px rgba(255, 93, 112, 0.8); }
.dcard-foot { margin-top: 16px; margin-bottom: 0 !important; font-size: 13px !important; color: var(--fg-faint) !important; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud span {
  padding: 6px 12px; border-radius: 8px;
  font-family: var(--mono); font-size: 12.6px;
  color: #c194ff; background: rgba(162, 89, 255, 0.1);
  border: 1px solid rgba(162, 89, 255, 0.22);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 信任边界图 ---------- */
.boundary { display: flex; flex-direction: column; }
.bd-layer {
  padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.bd-rust { border-color: rgba(162, 89, 255, 0.3); background: rgba(162, 89, 255, 0.06); }
.bd-disk { border-color: rgba(52, 211, 153, 0.26); background: rgba(52, 211, 153, 0.05); }

.bd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.bd-tag {
  padding: 4px 11px; border-radius: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
}
.bd-tag-r { color: #7fb6ff; background: rgba(65, 150, 255, 0.14); border: 1px solid rgba(65, 150, 255, 0.3); }
.bd-tag-u { color: #c194ff; background: rgba(162, 89, 255, 0.16); border: 1px solid rgba(162, 89, 255, 0.34); }
.bd-tag-d { color: #7ee0c0; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.3); }
.bd-layer > p { font-size: 14.4px; color: var(--fg-dim); line-height: 1.72; }

.bd-has { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.has {
  padding: 5px 11px; border-radius: 7px;
  font-size: 12.4px; color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}

/* 两层之间的关卡：一条竖线穿过，被拦下的东西挂在旁边 */
.bd-gate { position: relative; padding: 22px 0 22px 28px; }
.bd-gate::before {
  content: ""; position: absolute; left: 60px; top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 11px);
}
.bd-gate-line { display: flex; align-items: center; gap: 12px; margin-left: 44px; }
.bd-gate-line::before {
  content: ""; flex: none; width: 17px; height: 1px; background: var(--line-strong);
}
.bd-gate-line span { font-size: 13px; color: var(--fg-faint); }
.bd-gate-line code { font-size: 11.8px; }

.bd-blocked { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 73px; }
.blk {
  padding: 5px 11px; border-radius: 7px;
  font-size: 12.2px; font-weight: 600; color: #ff92a1;
  background: rgba(255, 93, 112, 0.09); border: 1px solid rgba(255, 93, 112, 0.24);
}

/* 边界图下面的补充说明，刻意做得比卡片轻 */
.grid-3-tight { margin-top: 44px; gap: 34px; }
.mini { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.mini h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.mini p { font-size: 13.8px; color: var(--fg-dim); line-height: 1.72; }

/* ---------- download ---------- */
/* 这一段没有 sec-head，锚点若落在 section 顶部会空出 150px。
   把上边距从 padding 换成 margin，#download 的盒子顶就是面板顶，跳转位置才对。 */
#download { padding-top: 0; margin-top: 130px; }

.dl-panel {
  position: relative; overflow: hidden;
  margin-top: 20px; padding: 36px 40px 50px;
  text-align: center;
  border: 1px solid var(--line-strong); border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.dl-glow {
  position: absolute; top: -160px; left: 50%; margin-left: -280px;
  width: 560px; height: 280px; border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--red));
  filter: blur(90px); opacity: 0.3;
  pointer-events: none;
}
.dl-panel > * { position: relative; }
.dl-icon { display: block; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5); }
.dl-panel h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.dl-panel .lede { max-width: 520px; margin: 0 auto 32px; }

.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.dl-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 26px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.dl-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.dl-card.is-current { border-color: rgba(162, 89, 255, 0.5); background: rgba(162, 89, 255, 0.09); }
.dl-card.is-current::after {
  content: "推荐"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.6;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  box-shadow: 0 4px 14px rgba(102, 92, 255, 0.4);
}
.dl-card b { font-size: 15.5px; }
.dl-card span { font-size: 12.4px; color: var(--fg-faint); line-height: 1.6; }
.dl-card code { font-size: 11.5px; }

.dl-note { max-width: 660px; margin: 0 auto 26px; font-size: 13px; color: var(--fg-faint); line-height: 1.72; }
.dl-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13.8px; color: var(--fg-dim); }
.dl-links a { transition: color 0.2s; }
.dl-links a:hover { color: var(--fg); }

/* ---------- footer ---------- */
.footer { margin-top: 130px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.footer-inner { display: flex; gap: 60px; padding-top: 56px; padding-bottom: 44px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; min-width: 250px; flex: 1; }
.foot-brand img { border-radius: 8px; }
.foot-brand b { font-size: 15.5px; }
.foot-brand p { font-size: 13.2px; color: var(--fg-faint); margin-top: 3px; }

.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; }
.foot-cols h5 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 4px; }
.foot-cols a { font-size: 13.8px; color: var(--fg-dim); transition: color 0.2s; }
.foot-cols a:hover { color: var(--fg); }
.foot-plain { font-size: 13.8px; color: var(--fg-faint); }

.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 34px;
  border-top: 1px solid var(--line);
  font-size: 12.8px; color: var(--fg-faint);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-nodes { grid-template-columns: repeat(3, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-gh { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { gap: 12px; }
  .nav-actions { margin-left: auto; }

  .hero { padding-top: 130px; }
  .shot-wrap { margin-top: 54px; }
  .shot { transform: none; }
  /* 桌面级画布嵌在手机里体验很差，窄屏只给截图 */
  .try-btn { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 84px; }
  .section { padding-top: 96px; }
  #download { padding-top: 0; margin-top: 96px; }

  .bento, .grid-3, .duo { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .grid-nodes { grid-template-columns: repeat(2, 1fr); }
  .node-canvas { padding: 20px 18px; border-radius: var(--radius); }
  .grid-3-tight { margin-top: 32px; gap: 24px; }

  .bd-gate { padding-left: 0; }
  .bd-gate::before { left: 22px; }
  .bd-gate-line { margin-left: 6px; }
  .bd-blocked { margin-left: 35px; }

  .split { grid-template-columns: 1fr; gap: 26px; margin-top: 54px; }
  .split-rev .split-text { order: 0; }

  .dl-panel { padding: 48px 22px 40px; border-radius: 24px; }
  .dl-card.is-current::after { display: none; }

  .footer-inner { gap: 36px; }
  .foot-cols { gap: 40px; }
  .br-m { display: none; }
}

/* 矩阵在窄屏里自己横向滚动，页面本身不横滚 */
@media (max-width: 660px) {
  .matrix { overflow-x: auto; }
  .mx-row { min-width: 540px; }
  .mx-corner, .mx-label { padding-left: 16px !important; }
}

@media (max-width: 520px) {
  .grid-nodes, .dl-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .pill-more { display: none; }
  .pill { font-size: 12.5px; }
  .hero-meta { flex-direction: column; gap: 4px; }
  .meta-sep { display: none; }
  .card-body { padding: 24px 22px 20px; }
}

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