:root {
  --ink: #161616;
  --muted: #5c5852;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #e7e2d6;
  --yellow: #f5c400;
  --blue: #2f6fed;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Fredoka", "Noto Sans SC", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
a { color: inherit; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: #fff6cc;
  padding: 0 0.28em;
  border-radius: 4px;
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -40px;
  background: var(--ink); color: white; padding: 8px 12px;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand img.baize { width: auto; height: 34px; max-width: 180px; border-radius: 0; object-fit: contain; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; font-size: 14px; }
.nav a:hover { color: #8a6a00; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 1px solid transparent;
}
.btn img { width: 22px; height: 22px; border-radius: 6px; }
.btn-download .dl-icon { width: 0; height: 18px; opacity: 0; overflow: hidden; transition: width .18s ease, opacity .18s ease; }
.btn-download:hover .dl-icon, .btn-download:focus-visible .dl-icon { width: 18px; opacity: 1; }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; border-color: var(--ink); }
.btn-line:hover { background: white; }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}

.hero { padding: 64px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { color: #8a6a00; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
h1 { font-size: clamp(36px, 4.2vw, 52px); max-width: none; }
.hero-agent { margin-top: 14px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.hero-aside { margin-top: 6px; color: #9a948a; font-size: 14px; }
.lede { margin-top: 18px; color: var(--muted); max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.stage { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.mascot-frame {
  width: min(360px, 86%);
  aspect-ratio: 1;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.08);
}
.mascot {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}
.window {
  width: min(360px, 100%);
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; box-shadow: 0 12px 30px rgba(22, 22, 22, 0.08);
}
.window-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.window-top i { width: 8px; height: 8px; border-radius: 50%; background: #e7e2d6; }
.window-top b { margin-left: 6px; font-size: 13px; }
.think { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.composer, .composer.demo {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 14px;
  background: #fffdf8;
}
.composer span { color: #8d877c; font-size: 14px; }
.composer em {
  font-style: normal; background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-row p { margin: 0; padding: 14px 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.doodle { width: 28px; height: 28px; flex: none; }
.trust-row p + p { border-left: 1px solid var(--line); }

.block { padding: 72px 0; }
.block.mist { background: #fff; }
.block-head { max-width: 40rem; margin-bottom: 28px; }
.block-head.wide { max-width: 46rem; }
.block-head.wide p:last-child { margin-top: 14px; color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.7; max-width: 38em; }
.edges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0 0 36px; padding: 0; list-style: none; }
.edges li { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--yellow); }
.edges b { display: block; font-size: 18px; margin-bottom: 4px; }
.edges span { color: var(--muted); }
.cards-kicker { margin: 0 0 12px; color: #8a6a00; font-size: 13px; font-weight: 700; }
.block-head h2, .split h2, .two h2, .faq h2 { font-size: clamp(28px, 3vw, 40px); text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards article, .compare article, .install li, .panel, .two article {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.cards code, .compare h3 code { font-size: 15px; }
.cards h3, .compare h3, .install h3 { font-size: 22px; margin: 10px 0 8px; }
.cards p, .compare p, .split p, .two p, .install p, .faq p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.split h2 code { font-family: var(--display); background: none; padding: 0; }
.examples { margin: 16px 0 0; padding: 0; list-style: none; }
.examples li { margin: 8px 0; }
.wont { margin-top: 14px; }
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #fff6cc; border-radius: 12px; padding: 12px 14px; color: var(--ink);
}
.panel { background: #fffdf6; }
.panel .ok { font-weight: 700; margin-bottom: 12px; }
.panel .ask { margin-top: 12px; }
.steps, .voice, .install { margin: 16px 0 0; padding-left: 1.2em; }
.steps li, .voice li { margin: 8px 0; color: var(--muted); }
.art { position: relative; min-height: 220px; overflow: hidden; background: #f3f7ff; }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  animation: drift 8s linear infinite;
  opacity: 0.85;
}
.art-meta {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end;
  height: 100%; min-height: 184px; padding: 8px;
}
.art-meta span { background: white; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.art-meta b { font-family: var(--display); font-size: 28px; }
@keyframes drift { to { background-position: 14px 0; } }
.compare, .two, .install { display: grid; gap: 14px; }
.compare, .two { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: 1fr 1fr; }
.install { grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.install.guide { grid-template-columns: 1fr; }
.install.guide li { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: center; }
.install.guide img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
#install, #skills, #faq, #wechat, #call, #img, #browser { scroll-margin-top: 84px; }
.composer.demo { margin-top: 18px; }
.file {
  margin-top: 18px; border: 1px dashed var(--line); border-radius: 14px; padding: 14px;
  display: flex; justify-content: space-between; gap: 12px; font-weight: 700;
}
.file span { color: var(--muted); font-weight: 500; }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; }

.site-footer { padding: 28px 0 40px; }
.foot { display: flex; gap: 24px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 18px; }
.foot p { color: var(--muted); font-size: 14px; max-width: 46em; }

@media (max-width: 860px) {
  h1 { font-size: 34px; max-width: none; }
  .nav { display: none; }
  .hero-grid, .split, .cards, .edges, .compare, .two, .install, .install.guide li, .trust-row, .foot {
    grid-template-columns: 1fr;
  }
  .trust-row p + p { border-left: 0; border-top: 1px solid var(--line); }
  .stage { align-items: center; }
  .window { width: 100%; }
  .mascot-frame { width: min(260px, 72%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dots { animation: none; }
}
