/* =========================================================
   XMind 自动保存 · 官网
   纯静态：无构建步骤、无外部依赖
   ========================================================= */

:root {
  --bg: #f5f8f6;
  --bg-elev: #ffffff;
  --bg-tint: #ecf2ee;
  --ink: #0f1c16;
  --ink-2: #4a5a52;
  --ink-3: #7b8982;
  --line: rgba(16, 40, 30, 0.1);
  --line-strong: rgba(16, 40, 30, 0.17);

  --brand: #618f7a;           /* 与 App 内开关同色 */
  --brand-strong: #3d6a56;
  --brand-ink: #2b5041;
  --brand-soft: #e1ede7;
  --brand-glow: rgba(97, 143, 122, 0.38);
  --switch-on: #618f7a;
  --switch-off: rgba(120, 128, 124, 0.45);
  --warn: #c48a3a;

  --grad-a: #2f5d4a;
  --grad-b: #6fae92;
  --grad-c: #3f7b62;

  --btn-bg: linear-gradient(180deg, #4b7d67 0%, #365f4d 100%);
  --btn-ink: #ffffff;
  --btn-shadow: 0 10px 24px -10px rgba(38, 84, 64, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);

  --deep: #0b1712;
  --deep-2: #10201a;

  --win-bg: #ffffff;
  --win-bar: #f2f4f3;
  --win-canvas: #fbfcfb;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(0, 0, 0, 0.1);

  --mm-center: #24453a;
  --mm-center-ink: #ffffff;
  --mm-c1: #618f7a;
  --mm-c2: #6784a8;
  --mm-c3: #c1965d;
  --mm-c4: #b57b89;
  --mm-sub-ink: #1d2a24;

  --shadow-sm: 0 1px 2px rgba(16, 40, 30, 0.06), 0 2px 8px -2px rgba(16, 40, 30, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(16, 40, 30, 0.18), 0 2px 6px -2px rgba(16, 40, 30, 0.06);
  --shadow-lg: 0 50px 100px -30px rgba(18, 52, 38, 0.32), 0 18px 36px -18px rgba(18, 52, 38, 0.2);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a110e;
    --bg-elev: #111a16;
    --bg-tint: #0e1713;
    --ink: #e8f0eb;
    --ink-2: #a6b5ad;
    --ink-3: #718078;
    --line: rgba(220, 240, 230, 0.09);
    --line-strong: rgba(220, 240, 230, 0.16);

    --brand: #6ba38a;
    --brand-strong: #8cc4aa;
    --brand-ink: #b9dccb;
    --brand-soft: #16271f;
    --brand-glow: rgba(107, 163, 138, 0.35);
    --switch-on: #6ba38a;
    --switch-off: rgba(150, 160, 155, 0.35);
    --warn: #d9a45a;

    --grad-a: #a9dcc3;
    --grad-b: #6ba38a;
    --grad-c: #c8ecd9;

    --btn-bg: linear-gradient(180deg, #7ab69a 0%, #5d9780 100%);
    --btn-ink: #06120d;
    --btn-shadow: 0 10px 28px -10px rgba(107, 163, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);

    --deep: #060d0a;
    --deep-2: #0b1511;

    --win-bg: #1a201d;
    --win-bar: #232a27;
    --win-canvas: #171c1a;
    --glass: rgba(44, 52, 48, 0.78);
    --glass-line: rgba(255, 255, 255, 0.12);

    --mm-center: #d3e7dc;
    --mm-center-ink: #0f1c16;
    --mm-c1: #6ba38a;
    --mm-c2: #7892b5;
    --mm-c3: #c9a066;
    --mm-c4: #c08896;
    --mm-sub-ink: #dfe8e3;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 50px 100px -30px rgba(0, 0, 0, 0.75), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-glow); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.4em;
  margin: 0 0.12em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1;
  vertical-align: 0.08em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.42em;
  border-radius: 6px;
  background: var(--bg-tint);
  color: var(--ink);
  word-break: break-word;
}

.grad-text {
  background: linear-gradient(115deg, var(--grad-a) 5%, var(--grad-b) 50%, var(--grad-c) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { flex: none; }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--btn-shadow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow), 0 16px 32px -14px var(--brand-glow); }

.btn--ghost {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-1px); border-color: var(--ink-3); }

.btn--light { background: #ffffff; color: #0b1712; }
.btn--light:hover { transform: translateY(-1px); background: #eef6f1; }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.2); color: #ffffff; }
.btn--outline-light:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); }

.btn.is-disabled {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  color: var(--ink-3);
  cursor: default;
}
.btn.is-disabled:hover { transform: none; border-color: var(--line-strong); }

.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn__meta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.btn--block .btn__meta { padding-left: 12px; }


.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--bg-tint); color: var(--ink); }

/* ---------- 开关 ---------- */
.switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 42px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--switch-off);
  transition: background-color 0.28s var(--ease);
}
.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s var(--ease);
}
.switch.is-on { background: var(--switch-on); }
.switch.is-on i { transform: translateX(20px); }
button.switch { cursor: pointer; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a { position: relative; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 1100px;
  z-index: -1;
  background:
    radial-gradient(40% 36% at 50% 30%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(30% 30% at 18% 52%, color-mix(in srgb, var(--mm-c2) 14%, transparent), transparent 70%),
    radial-gradient(30% 30% at 84% 50%, color-mix(in srgb, var(--mm-c3) 12%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 22%, #000 10%, transparent 75%);
  mask-image: radial-gradient(60% 50% at 50% 22%, #000 10%, transparent 75%);
  opacity: 0.7;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(46px, 8.4vw, 104px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.75;
  color: var(--ink-2);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.hero__meta li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 0 -12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  vertical-align: middle;
}

/* ---------- 演示窗口 ---------- */
.showcase {
  --s: 1;
  position: relative;
  margin-top: 72px;
  height: calc(620px * var(--s));
}
.scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1040px;
  height: 620px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
}
.window {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: var(--win-bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--line);
}
.traffic { display: flex; gap: 8px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.traffic--sm { gap: 6px; }
.traffic--sm i { width: 10px; height: 10px; }
.win-tools { display: flex; gap: 10px; }
.win-tools i { width: 22px; height: 16px; border-radius: 5px; background: var(--line); }
.win-tools--right { margin-left: auto; }
.win-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.win-title svg { color: var(--ink-3); }
.win-edited {
  font-weight: 500;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.win-edited.is-on { opacity: 1; transform: none; }

.pill {
  position: absolute;
  top: 11px;
  left: 218px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 132px;
  height: 30px;
  padding: 0 8px 0 10px;
  border-radius: 9px;
  border: 0.5px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.pill .switch { transition: background-color 0.28s var(--ease), box-shadow 0.4s; }
.pill.is-saving .switch { box-shadow: 0 0 0 4px color-mix(in srgb, var(--switch-on) 28%, transparent); }

.win-canvas {
  position: absolute;
  inset: 52px 0 0 0;
  background:
    radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--win-canvas);
}
.mindmap { width: 100%; height: 100%; }
.mindmap text { font-family: var(--font); dominant-baseline: central; }
.mm-line { fill: none; stroke-linecap: round; }
.mm-center rect { fill: var(--mm-center); }
.mm-center text { fill: var(--mm-center-ink); font-size: 21px; font-weight: 700; }
.mm-main text { fill: #ffffff; font-size: 16px; font-weight: 600; }
.mm-sub text { fill: var(--mm-sub-ink); font-size: 14px; font-weight: 500; }
.mm-focus { fill: none; stroke: var(--brand); stroke-width: 2; }
.mm-caret { fill: var(--brand); animation: caret 1s steps(1) infinite; }
.mm-caret.is-typing { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

.save-toast {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: 14px;
  background: rgba(22, 32, 27, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}
.save-toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.save-toast__keys { display: flex; gap: 4px; }
.save-toast kbd {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
}

.hud {
  position: absolute;
  right: max(10px, calc(50% - 520px * var(--s) - 44px));
  bottom: -40px;
  z-index: 5;
  width: 268px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hud__row { display: flex; align-items: center; gap: 10px; }
.hud__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  transition: background-color 0.25s, color 0.25s;
}
.hud__icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.hud__icon[data-state="editing"] { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.hud__icon[data-state="editing"]::before { animation: pulse 1s ease-in-out infinite; }
.hud__icon[data-state="saved"]::before {
  width: 12px;
  height: 7px;
  border-radius: 0;
  background: none;
  border: solid currentColor;
  border-width: 0 0 2.4px 2.4px;
  transform: translateY(-2px) rotate(-45deg);
}
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.6; } }
.hud__text { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hud .meter { margin-top: 14px; }
.hud__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 60%, transparent), var(--brand));
  transform-origin: left center;
  transform: scaleX(0);
}
.meter.is-full i { background: var(--brand); }

/* ---------- 通用分区 ---------- */
.section { padding: 140px 0; }
.section--tinted {
  background:
    linear-gradient(180deg, var(--bg) 0, transparent 120px),
    var(--bg-tint);
}
.section__head { max-width: 720px; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
@media (min-width: 1000px) {
  .section__head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 72px;
    max-width: none;
    align-items: end;
  }
  .section__head--split .kicker { grid-column: 1; }
  .section__head--split h2 { grid-column: 1; }
  .section__head--split .section__lead { grid-column: 2; grid-row: 2; margin-top: 0; padding-bottom: 8px; }
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--brand-strong);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section__head--center .kicker::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section__head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.section__lead {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
}
.section__lead a { color: var(--brand-strong); border-bottom: 1px solid currentColor; }

.card {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
}

/* ---------- 交互演示 ---------- */
.demo { margin-top: 64px; padding: 32px; }
.demo__top { display: flex; align-items: flex-end; gap: 28px; }
.demo__field { flex: 1; min-width: 0; }
.demo__field-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.demo__field input {
  width: 100%;
  height: 64px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 21px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo__field input::placeholder { color: var(--ink-3); }
.demo__field input:focus { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.demo__stats { display: flex; gap: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 112px;
  height: 64px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--bg-tint);
}
.stat__num { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12.5px; color: var(--ink-3); }
.stat--accent { background: var(--brand-soft); }
.stat--accent .stat__num { color: var(--brand-strong); }
.stat__num.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.demo__status { display: flex; align-items: center; gap: 18px; margin: 26px 0 16px; }
.demo__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 9.5em;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.demo__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.demo__state[data-state="editing"]::before { background: var(--warn); animation: pulse 1s ease-in-out infinite; }
.demo__state[data-state="saved"] { color: var(--brand-strong); }
.demo__state[data-state="saved"]::before { background: var(--brand); }
.meter--wide { flex: 1; height: 8px; }
.demo__time { min-width: 7.5em; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.demo__canvas { display: block; width: 100%; height: 150px; border-radius: 16px; background: var(--bg-tint); }
.demo__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.demo__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; }
.dot--key { width: 3px; height: 14px; border-radius: 2px; background: var(--ink-3); }
.dot--save { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.demo__axis { margin-left: auto; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.steps3 li { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.steps3__num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand-strong); }
.steps3 h3 { margin-top: 10px; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
.steps3 p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- 功能 ---------- */
.features {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  margin-top: 64px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.tile h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.tile p { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.tile__visual {
  border-radius: 18px;
  background: var(--bg-tint);
  padding: 22px;
}

.files { display: grid; gap: 10px; }
.files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  font-weight: 500;
}
.files li svg { color: var(--ink-3); flex: none; }
.files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feature-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.feature-list li { display: flex; gap: 18px; padding: 24px 0; }
.feature-list li + li { border-top: 1px solid var(--line); }
.feature-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.feature-list h3 { font-size: 18px; font-weight: 700; }
.feature-list p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 安装 ---------- */
.install {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  counter-reset: step;
}
.install li {
  position: relative;
  padding: 30px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.install__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 700;
}
.install h3 { margin-top: 22px; font-size: 19px; font-weight: 700; }
.install p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.install kbd { font-size: 0.78em; }
.note {
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.note strong { font-size: 15.5px; }
.note p { margin-top: 6px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.dl-card { display: flex; flex-direction: column; padding: 38px; border-radius: 30px; }
.dl-card--primary { background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dl-card--code {
  position: relative;
  background: linear-gradient(160deg, #13261e 0%, #0b1712 60%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eaf3ee;
  overflow: hidden;
}
.dl-card--code::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(107, 163, 138, 0.25), transparent 65%);
  pointer-events: none;
}
.dl-card__head { position: relative; display: flex; align-items: center; gap: 18px; }
.dl-card__head img { border-radius: 16px; filter: drop-shadow(0 8px 16px rgba(20, 50, 38, 0.18)); }
.dl-card__head h3 { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; }
.dl-card__head p { margin-top: 2px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dl-card--code .dl-card__head p { color: rgba(234, 243, 238, 0.55); font-family: var(--mono); font-size: 13px; }
.dl-card__gh {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dl-card__req { display: grid; gap: 10px; margin: 30px 0; }
.dl-card__req li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.dl-card__req svg { color: var(--brand); flex: none; }
.dl-card__actions { display: grid; gap: 12px; margin-top: auto; }
.dl-card__desc { position: relative; margin: 24px 0; font-size: 15px; line-height: 1.8; color: rgba(234, 243, 238, 0.68); }
.dl-card__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

.terminal {
  position: relative;
  border-radius: 16px;
  background: rgba(3, 9, 6, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(234, 243, 238, 0.5);
}
.terminal__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(234, 243, 238, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.terminal__copy:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.25); }
.terminal pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; }
.terminal code { display: block; padding: 0; background: none; color: #d4e8dd; font-size: 13px; line-height: 1.9; }
.t-line { display: block; padding-left: 1.3em; text-indent: -1.3em; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-p { color: #6ba38a; user-select: none; }

.changelog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding: 24px 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.changelog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.changelog__head h3 { font-size: 17px; font-weight: 700; }
.changelog__head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-strong); }
.changelog__body { display: flex; align-items: flex-start; gap: 16px; }
.changelog__tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}
.changelog__body ul { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 44px 24px 0;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-strong); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq details p { padding: 0 44px 26px 0; font-size: 16px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer__brand p { max-width: 520px; margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-top: 36px; font-size: 13px; color: var(--ink-3); }

/* ---------- 复制提示 ---------- */
.copied {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  pointer-events: none;
}
.copied.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
.br-md { display: none; }
@media (min-width: 760px) { .br-md { display: inline; } }

@media (max-width: 1080px) {
  .install { grid-template-columns: repeat(2, 1fr); }
  .faq { gap: 48px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }

  .showcase { margin-top: 56px; height: auto; padding-top: calc(620px * var(--s)); }
  .hud {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 340px);
    margin: 20px auto 0;
  }

  .demo__top { flex-direction: column; align-items: stretch; }
  .demo__stats .stat { flex: 1; }
  .steps3 { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .steps3 li { padding: 22px 0; }

  .features { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 36px; }
  .faq .section__head { position: static; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding: 116px 0 40px; }
  .hero__meta { gap: 4px 16px; }
  .hero__meta li + li::before { display: none; }
  .hero__cta { flex-direction: column; align-self: stretch; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 96px 0; }
  .demo { padding: 20px; border-radius: 22px; }
  .demo__field input { height: 56px; font-size: 18px; }
  .demo__status { flex-wrap: wrap; gap: 10px 14px; }
  .demo__status .meter--wide { order: 3; flex-basis: 100%; }
  .demo__state { min-width: 0; }
  .demo__time { margin-left: auto; min-width: 0; }
  .demo__axis { margin-left: 0; }
  .demo__canvas { height: 132px; }
  .install { grid-template-columns: 1fr; }
  .tile { padding: 22px; border-radius: 22px; }
  .tile__visual { padding: 16px; }
  .feature-list { padding: 4px 22px; border-radius: 22px; }
  .feature-list li { gap: 14px; padding: 20px 0; }
  .terminal code { font-size: 12px; }
  .dl-card { padding: 26px 22px; border-radius: 24px; }
  .dl-card__links { grid-template-columns: 1fr; }
  .dl-card__head img { width: 60px; height: 60px; }
  .dl-card__gh { width: 60px; height: 60px; }
  .changelog { padding: 22px; }
  .changelog__body { flex-direction: column; gap: 10px; }
  .faq summary { font-size: 16.5px; padding: 20px 36px 20px 0; }
  .faq details p { padding-right: 0; font-size: 15px; }
}

@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; }
  .js .reveal { opacity: 1; transform: none; }
}
