:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #0e1520;
  --muted: #4f5b6b;
  --muted-2: #596576;
  --line: #e3e7ed;
  --line-strong: #d5dbe4;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eaf0ff;
  --dark: #0b111b;
  --dark-ink: #e8edf5;
  --dark-muted: #a9b6c8;
  --radius: 8px;
  --shadow-panel: 0 30px 70px -24px rgba(14, 21, 32, .28), 0 8px 24px -12px rgba(14, 21, 32, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

.mono, code, kbd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled {
  background: rgba(246, 247, 249, .9);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 7px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-github {
  color: var(--muted);
  font-size: 14px;
}
.nav-github:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14, 21, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  padding-left: 10px;
  padding-right: 10px;
}
.btn-quiet:hover { background: rgba(14, 21, 32, .05); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.hotkey {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.hotkey kbd, .inline-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(14, 21, 32, .04);
}
.hotkey { margin-left: 4px; }
.inline-keys { display: inline-flex; gap: 3px; vertical-align: 1px; }

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 88px;
}
.hero-inner { display: flex; flex-direction: column; }
.hero-copy { max-width: 860px; }
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.hero-figure {
  margin: 34px auto 0;
  width: 100%;
  max-width: 1000px;
}
.hero-shot-frame {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  line-height: 0;
}
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
}
.hero-media { position: relative; }
.hero-live { display: block; }
.hero-static { display: none; }
.hero-figure figcaption {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- sections ---------- */

.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: end;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- channels ---------- */

.channels-grid { display: block; }
.channel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.channel-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.channel-name {
  color: var(--muted-2);
  font-size: 13px;
}
.channel-sample {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.channel-tag {
  color: var(--muted);
  background: #edeff3;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.shot { margin: 0; }
.shot-multi { margin-top: 44px; }
.shot-frame {
  position: relative;
  overflow: visible;
  background: transparent;
  line-height: 0;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(14, 21, 32, .16));
}

.shot figcaption {
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- image search ---------- */

.image-search { padding-bottom: 0; }
.image-head { margin-bottom: 34px; }
.image-head p { max-width: 68ch; }

.image-stage {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
}
.image-stage-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 84px 24px 28px;
  position: relative;
}
.stage-copy { text-align: center; margin-bottom: 18px; flex: 0 0 auto; }
.stage-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-step {
  margin: 0;
  position: relative;
  height: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.stage-step span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.stage-step-mobile {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.stage-note {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.reference-media {
  position: relative;
  width: min(760px, 82vw);
  aspect-ratio: 1360 / 900;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 26px 60px -24px rgba(14, 21, 32, .4);
  border: 1px solid rgba(14, 21, 32, .1);
  flex: 0 0 auto;
}
.reference-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 46% 46%;
}
.crop-box {
  position: absolute;
  top: 30%;
  right: 24%;
  bottom: 34%;
  left: 22%;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 4px;
  box-shadow: 0 0 0 1600px rgba(11, 17, 27, .52);
  pointer-events: none;
}
.reference-chip {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translate(-50%, 16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(11, 17, 27, .22);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
.reference-chip img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.shot-image {
  position: relative;
  width: min(820px, 82vw);
  margin: 40px auto 0;
  z-index: 3;
}
.js .shot-image {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}
.shot-image .shot-frame img { filter: drop-shadow(0 26px 34px rgba(14, 21, 32, .24)); }

/* ---------- sources ---------- */

.source-stats {
  margin: 0 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.source-stats div { margin: 0; }
.source-stats dt {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.source-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.fine {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.fine a:hover { color: var(--accent); }
.shot-offline { margin: 0; }

/* ---------- people demo ---------- */

.people-demo { margin: 40px auto 0; max-width: 1000px; }
.people-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 26px 60px -34px rgba(14, 21, 32, .32), 0 6px 18px -14px rgba(14, 21, 32, .16);
  overflow: hidden;
}
.people-search {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.people-search-icon { width: 20px; height: 20px; color: var(--muted-2); flex: 0 0 auto; }
.people-ref-thumb {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  line-height: 0;
}
.people-ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.people-query { display: grid; gap: 1px; min-width: 0; }
.people-query strong { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.people-query > span { color: var(--muted-2); font-size: 11.5px; line-height: 1.4; }
.people-clear {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f3f7;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1;
}
.people-body {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 22px;
}
.people-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}
.people-photo > img { display: block; width: 100%; height: auto; }
.people-facebox {
  position: absolute;
  left: 41%;
  top: 26%;
  width: 18%;
  height: 31%;
  border: 2px solid var(--accent);
  border-radius: 7px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.people-facebox > span {
  position: absolute;
  left: -2px;
  top: -23px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.people-faces {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f3f5f8;
}
.people-faces-label {
  margin-right: auto;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.3;
}
.people-face {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("people/scene.svg");
  background-repeat: no-repeat;
  background-size: 128px auto;
  opacity: .65;
}
.people-face.face-a { background-position: -16px -26px; }
.people-face.face-b { background-position: -48px -26px; }
.people-face.face-c { background-position: -80px -26px; }
.people-face.is-selected {
  border: 2px solid var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}
.people-results {
  display: grid;
  grid-template-rows: auto repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.people-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.4;
}
.people-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.people-result:last-child { border-bottom: 0; }
.people-result.is-top { background: var(--accent-soft); }
.people-thumb {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}
.people-thumb img { width: 100%; height: 100%; object-fit: cover; }
.people-result:nth-child(3) .people-thumb img { object-position: 25% 45%; }
.people-result:nth-child(4) .people-thumb img { object-position: 75% 45%; }
.people-thumb i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 17, 27, .28);
  color: #fff;
  font-size: 13px;
  font-style: normal;
}
.people-result-copy { display: grid; gap: 2px; min-width: 0; }
.people-result-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-result-copy > span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-result em {
  align-self: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted-2);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
}
.people-demo + .fine {
  max-width: 1000px;
  margin-left: max(0px, calc((100% - 1000px) / 2));
}
.people-demo figcaption {
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .people-demo { margin-top: 30px; }
  .people-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .people-search { padding: 12px 14px; }
  .people-result-copy > span { font-size: 10.5px; }
}
@media (max-width: 560px) {
  .people .source-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
}
@media (max-width: 480px) {
  .people-faces-label { font-size: 10px; }
  .people-result { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; padding: 9px; }
  .people-thumb { width: 40px; height: 40px; }
  .people-result em { display: none; }
}

/* ---------- privacy ---------- */

.privacy {
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 0 !important;
  padding: 112px 0;
}
.privacy-head { max-width: 760px; }
.privacy h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
}
.privacy-head p {
  margin: 20px 0 0;
  color: var(--dark-muted);
  font-size: 17px;
  line-height: 1.8;
}
.privacy-points {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.privacy-points li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.p-num {
  color: #718096;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
}
.privacy-points h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.privacy-points p {
  margin: 6px 0 0;
  color: var(--dark-muted);
  font-size: 14px;
  line-height: 1.75;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 30px;
  color: #8bb0ff;
  font-size: 14px;
}
.text-link:hover { color: #b7ccff; }

/* ---------- benchmark ---------- */

.benchmark .section-head { margin-bottom: 26px; }
.benchmark-meta {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.benchmark-meta::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line-strong);
}
.benchmark-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.benchmark-table th,
.benchmark-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.benchmark-table thead th {
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 500;
}
.benchmark-table tbody th { font-weight: 500; }
.benchmark-table tbody td { font-variant-numeric: tabular-nums; color: #2b3646; }
.benchmark-table tbody td:first-of-type,
.benchmark-table tbody td:nth-of-type(2) { color: var(--ink); }
.benchmark-table .is-local { background: var(--accent-soft); }
.benchmark-table .is-local th,
.benchmark-table .is-local td { border-bottom-color: #d6e2ff; }
.row-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}
.table-hint { display: none; }

/* 人脸通道运行参数 */
.face-spec {
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.5fr);
  gap: 26px 44px;
  margin-top: 34px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.face-spec-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
}
.face-spec h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.face-spec-lede {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  text-wrap: pretty;
}
.face-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  align-content: start;
}
.face-spec-grid div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.face-spec-grid dt {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.4;
}
.face-spec-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.face-spec-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.7;
}
.face-spec-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.face-spec-note a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .face-spec { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
}
@media (max-width: 560px) {
  .face-spec { padding: 22px; }
  .face-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
}

/* ---------- install ---------- */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.install-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.install-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.install-card > .btn { margin-top: 20px; }
.command {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--dark-ink);
  border-radius: 9px;
  padding: 9px 9px 9px 13px;
  overflow-x: auto;
}
.command code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
  color: #e8edf5;
}
.copy {
  margin-left: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.copy:hover { background: rgba(255, 255, 255, .18); }
.copy:active { transform: scale(.97); }
.copy.is-done { background: var(--accent); border-color: var(--accent); }
.note {
  margin-top: 14px !important;
  color: var(--muted-2) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}
.brew-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- endcap + footer ---------- */

.endcap {
  padding: 132px 0 120px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.endcap-icon {
  display: inline-block;
  width: 128px;
  height: 128px;
  border-radius: 28px;
}
.endcap h2 {
  margin: 22px auto 28px;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.endcap .hero-actions { justify-content: center; }
.endcap .hotkey { margin-left: 0; margin-top: 18px; display: flex; justify-content: center; }

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 52px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.footer-brand img { border-radius: 8px; display: block; }
.footer-version {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}
.footer-fine p { margin: 0; max-width: 66ch; }
.footer-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a:hover { color: var(--accent); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 11px 15px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(14, 21, 32, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 80;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-live { display: none; }
  .hero-static { display: block; }
  .image-stage { height: auto; min-height: 0; overflow: visible; }
  .image-stage-inner { height: auto; padding: 24px; }
  .stage-media { flex: none; flex-direction: column; gap: 32px; }
  .js .shot-image {
    position: relative;
    left: auto; top: auto;
    transform: none;
    opacity: 1;
    margin: 0 auto;
  }
  .crop-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
  .reference-chip { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- static mode for screenshots / no-animation ---------- */

.no-anim .hero-live { display: none; }
.no-anim .hero-static { display: block; }
.no-anim .image-stage { height: auto; min-height: 0; overflow: visible; }
.no-anim .image-stage-inner { height: auto; padding: 24px; }
.no-anim .stage-media { flex: none; flex-direction: column; gap: 32px; }
.no-anim .shot-image {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  opacity: 1;
  margin: 0 auto;
}
.no-anim .reference-chip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .section-head { margin-bottom: 40px; }
  .privacy-points { column-gap: 36px; }
}

@media (max-width: 820px) {
  .endcap-icon { width: 96px; height: 96px; border-radius: 21px; }
  .nav-links { display: none; }
  .nav-inner { width: calc(100% - 32px); gap: 16px; }
  .nav-actions { gap: 12px; }
  .nav-github { display: none; }
  .container { width: calc(100% - 40px); }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(31px, 7.6vw, 48px); }
  .lede { font-size: 17px; }
  .section { padding: 84px 0; }
  .hero-shot-frame { overflow: hidden; }
  .hero-live, .hero-static { width: 200%; max-width: none; }
  .hero-shot-frame::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 26px;
    background: linear-gradient(to right, rgba(246, 247, 249, 0), var(--paper));
    pointer-events: none;
    z-index: 2;
  }
  .shot-frame { overflow: hidden; }
  .shot-frame img, .shot-image .shot-frame img { width: 200%; max-width: none; filter: none; }
  .shot-frame::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 26px;
    background: linear-gradient(to right, rgba(246, 247, 249, 0), var(--paper));
    pointer-events: none;
    z-index: 1;
  }
  .image-stage { height: auto; min-height: 0; overflow: visible; }
  .image-stage-inner { height: auto; padding: 28px 0 0; }
  .stage-media { flex: none; flex-direction: column; gap: 26px; }
  .stage-copy { margin-bottom: 18px; }
  .reference-media { width: 100%; }
  .shot-image, .js .shot-image {
    position: relative;
    left: auto; top: auto;
    transform: none;
    opacity: 1;
    width: calc(100vw - 32px);
    margin: 0 auto;
  }
  .stage-step-mobile { display: block; }
  .reference-chip { opacity: 1; transform: translate(-50%, 0); }
  .install-grid { grid-template-columns: 1fr; }
  .privacy-points { grid-template-columns: 1fr; }
  .privacy-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .table-hint { display: block; }
  .table-wrap { overflow: visible; }
  .benchmark-table { min-width: 0; font-size: 13px; }
  .benchmark-table th, .benchmark-table td { padding: 12px 8px; }
  .benchmark-table th:nth-child(4), .benchmark-table td:nth-child(4),
  .benchmark-table th:nth-child(5), .benchmark-table td:nth-child(5) { display: none; }
  .benchmark-table th:first-child, .benchmark-table td:first-child { white-space: normal; }
  .command { flex-wrap: wrap; }
  .command code { flex: 1 0 100%; }
  .copy { margin-left: auto; }
  .source-stats { gap: 24px; }
  .source-stats dt { font-size: 24px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero-actions { gap: 8px 12px; }
  .hotkey { margin-left: 0; flex-basis: 100%; margin-top: 4px; }
  .hero-figure { margin-top: 32px; }
  .hero-figure figcaption { font-size: 12px; }
  .channel-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 16px 0;
  }
  .channel-name { grid-column: 1 / -1; }
  .channel-sample { font-size: 15px; }
  .channel-tag { font-size: 11px; }
  .shot-multi { margin-top: 30px; }
  .stage-copy { margin-bottom: 16px; }
  .stage-step, .stage-step-mobile { font-size: 13px; }
  .stage-note { font-size: 12px; }
  .shot figcaption { font-size: 12px; }
  .privacy { padding: 84px 0; }
  .endcap { padding: 96px 0 84px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { gap: 14px 18px; }
}

/* ---------- hero feature constellation ---------- */

.hero-inner { position: relative; }
.hero-copy, .hero-figure { position: relative; z-index: 1; }
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: center;
  justify-items: center;
  pointer-events: none;
}
.hero-logo {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 12px;
}
.hero-logo::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, rgba(37, 99, 235, .04) 44%, transparent 70%);
}
.hero-logo img {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 24px 48px -26px rgba(14, 21, 32, .4), 0 2px 8px rgba(14, 21, 32, .08);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px -16px rgba(14, 21, 32, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: rotate(var(--tilt, 0deg));
}
.hero-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hero-tag.is-accent {
  color: var(--accent-strong);
  border-color: #cfdcff;
  background: rgba(234, 240, 255, .82);
}
.hero-tag.is-accent::before { background: var(--accent); }
.hero-tag.t1 { --tilt: -3deg; }
.hero-tag.t2 { --tilt: 2deg; }
.hero-tag.t3 { --tilt: -1.5deg; }
.hero-tag.t4 { --tilt: 2.5deg; }
.hero-tag.t5 { --tilt: -2deg; }
.hero-tag.t6 { --tilt: 1.5deg; }
.hero-tag.t7 { --tilt: 2deg; }
.hero-tag.t8 { --tilt: -1.5deg; }

@media (prefers-reduced-motion: no-preference) {
  .hero-tag { animation: hero-tag-float 7s ease-in-out infinite alternate; }
  .hero-tag.t2 { animation-delay: -2s; }
  .hero-tag.t3 { animation-delay: -4s; }
  .hero-tag.t4 { animation-delay: -1s; }
  .hero-tag.t5 { animation-delay: -3s; }
  .hero-tag.t6 { animation-delay: -5s; }
  .hero-tag.t7 { animation-delay: -2.5s; }
  .hero-tag.t8 { animation-delay: -4.5s; }
}
@keyframes hero-tag-float {
  from { transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)); }
  to { transform: translate3d(0, -5px, 0) rotate(var(--tilt, 0deg)); }
}

@media (max-width: 1100px) {
  .hero-visual { display: none; }
}

/* ---------- scenarios ---------- */

.scenario-explorer {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.scenario-tabs {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: #f1f4f8;
}
.scenario-tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.scenario-tab:last-child { border-bottom: 0; }
.scenario-tab:hover { background: rgba(255, 255, 255, .58); }
.scenario-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.scenario-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .26s ease;
}
.scenario-tab-num {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  transition: color .2s ease;
}
.scenario-tab-text { display: grid; gap: 3px; }
.scenario-tab-text strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.005em;
}
.scenario-tab-text span {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}
.scenario-tab[aria-selected="true"] { background: var(--surface); }
.scenario-tab[aria-selected="true"]::before { transform: scaleY(1); }
.scenario-tab[aria-selected="true"] .scenario-tab-num { color: var(--accent); }

.scenario-panels { display: grid; }
.scenario-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
}
.scenario-panel[hidden] { display: none; }
.scenario-panel.is-active { animation: scenario-in .38s ease-out both; }
@keyframes scenario-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.scenario-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}
.scenario-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.scenario-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .02em;
}
.scenario-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.scenario-body {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}
.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.scenario-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.2;
}

/* 马克笔高亮：斜切笔触 + 逐次划开 */
.marker {
  --marker-h: .58em;
  padding: 0 .06em;
  margin: 0 -.06em;
  background-image: linear-gradient(97deg, rgba(255, 203, 52, .82) 0%, rgba(255, 217, 100, .68) 48%, rgba(255, 203, 52, .78) 100%);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% var(--marker-h);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.marker-sm { --marker-h: .78em; }
.scenario-panel.is-active .marker {
  animation: marker-draw .68s cubic-bezier(.22, .68, .28, 1) .1s both;
}
@keyframes marker-draw {
  from { background-size: 0% var(--marker-h); }
  to { background-size: 100% var(--marker-h); }
}

@media (max-width: 980px) {
  .scenario-explorer { grid-template-columns: 1fr; }
  .scenario-tabs {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .scenario-tab {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 15px 16px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .scenario-tab:last-child { border-right: 0; }
  .scenario-tab::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
  }
  .scenario-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .scenario-panel { padding: 26px; }
}
@media (max-width: 700px) {
  .scenario-panel { grid-template-columns: 1fr; gap: 22px; padding: 20px; align-items: start; }
  .scenario-panel h3 { font-size: 22px; }
  .scenario-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scenario-tab {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
  }
  .scenario-tab:nth-child(2n) { border-right: 0; }
  .scenario-tab:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scenario-panel.is-active { animation: none; }
  .scenario-panel.is-active .marker {
    animation: none;
    background-size: 100% var(--marker-h);
  }
  .scenario-tab, .scenario-tab::before, .scenario-tab-num { transition: none; }
}

/* static preview (?noanim) */
.no-anim .scenario-panel.is-active { animation: none; }
.no-anim .scenario-panel.is-active .marker {
  animation: none;
  background-size: 100% var(--marker-h);
}
