@font-face {
  font-family: Inter;
  src: url("assets/reference/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --raised: #f7f8f8;
  --fg: #0a0a0b;
  --muted: #5f6570;
  --line: #e5e7ea;
  --accent: #009957;
  --ink: #007242;
  --soft: #e9f8ee;
  --shadow: 0 20px 65px #12251a12, 0 3px 12px #14251d0b;
  --font-zh: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101211;
  --raised: #171b19;
  --fg: #f0f4f2;
  --muted: #a6afa9;
  --line: #303831;
  --accent: #3ad58a;
  --ink: #62dc9e;
  --soft: #19392a;
  --shadow: 0 20px 65px #0005;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 86px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font-zh); }
:where(body:not(.reference-home), .reference-home .hero, .reference-home .foot) a { color: var(--ink); text-underline-offset: .22em; }
:where(body:not(.reference-home), .reference-home .hero, .reference-home .foot) a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
:where(body:not(.reference-home), .reference-home .hero) button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; z-index: 9; left: 12px; top: -60px; padding: 8px 16px; background: var(--bg); }
.skip:focus { top: 10px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav { min-height: 64px; display: flex; gap: 22px; align-items: center; }
.brand { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-family: Inter, var(--font-zh); font-size: 18px; font-weight: 760; }
.reference-home .brand { color: var(--fg); }
.brand img { display: block; flex: none; }
.navlinks { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.navlinks a, .foot a { color: var(--muted); text-decoration: none; font-size: 14px; }
.navlinks a { white-space: nowrap; }
.navlinks a:hover, .navlinks a[aria-current], .foot a:hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-icon,.demo-tool { display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 50%; width: 36px; height: 36px; flex: none; }
.nav-icon { padding: 0; appearance: none; }
.nav-icon:hover,.demo-tool:hover { color: var(--ink); background: var(--raised); }
.nav-icon svg { display: block; width: 17px; height: 17px; }
.nav-icon .theme-sun,.dark .nav-icon .theme-moon { display: none; }
.dark .nav-icon .theme-sun { display: block; }
.nav-icon.nav-toggle,.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { position: absolute; top: 100%; inset-inline: 0; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); padding-block: 6px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--fg); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--ink); }
.mobile-nav a + a { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .nav { justify-content: space-between; }
  .navlinks { display: none; }
  .nav-icon.nav-toggle { display: inline-grid; }
  .mobile-nav:not([hidden]) { display: block; }
}
:where(body:not(.reference-home), .reference-home .hero, .reference-home .foot) :is(h1,h2,h3,p,figure) { margin: 0; }
:where(body:not(.reference-home), .reference-home .hero) :is(h1,h2,h3) { line-height: 1.2; }
:where(body:not(.reference-home), .reference-home .hero) h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 700; letter-spacing: 0; text-wrap: balance; }
body:not(.reference-home) h2 { font-size: clamp(27px, 4vw, 40px); letter-spacing: 0; }
body:not(.reference-home) h3 { font-size: 19px; letter-spacing: 0; }
.reference-home main :is(h2,h3) { letter-spacing: 0; }
.hero { text-align: center; padding-bottom: 54px; }
.hero-stage { --word: clamp(54px, 15vw, 184px); position: relative; aspect-ratio: 4; display: grid; place-items: center; overflow: hidden; isolation: isolate; user-select: none; }
.echoes { position: absolute; inset: 0; mask-image: radial-gradient(ellipse at center, black 35%, transparent 73%); }
.echo { position: absolute; top: calc(50% + var(--row) * var(--word) * .84); left: 0; transform: translateY(-50%); font-family: Inter, sans-serif; font-size: var(--word); font-weight: 900; letter-spacing: -.065em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.6px var(--accent); opacity: .24; }
.echo-track { display: flex; width: max-content; animation: hero-marquee 80s linear infinite; }
.echo:nth-child(odd) .echo-track { animation: hero-marquee 100s linear -55s infinite reverse; }
.word { position: relative; z-index: 1; color: var(--accent); font-family: Inter, sans-serif; font-size: var(--word); font-weight: 900; letter-spacing: -.065em; line-height: 1; }
.letter-drop { animation: hero-drop .9s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(.12s + var(--i) * 70ms); }
.word span { display: inline-block; transition: transform .25s; }
.letter-drop > span:hover { transform: translateY(-.12em) rotate(-6deg); }
.flyer { position: absolute; z-index: var(--layer, 2); left: var(--x); top: var(--y); width: clamp(19px, 4.6vw, 48px); transform: translate(-50%, -50%) scale(var(--scale, 1)); }
.flyer-pop { position: relative; animation: hero-pop .7s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(.65s + var(--i) * 90ms); }
.flyer svg { display: block; position: relative; width: 100%; aspect-ratio: 350/405; overflow: visible; pointer-events: none; }
.flyer.is-hovered { z-index: 3; }
.flyer.is-hovered svg { animation: hero-greet .66s ease-in-out infinite; }
.flyer-hint { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); font-size: 11px; font-weight: 650; white-space: nowrap; visibility: hidden; pointer-events: none; }
.flyer.is-hovered .flyer-hint { visibility: visible; }
.flyer.hint-above .flyer-hint { top: auto; bottom: calc(100% + 5px); }
.flyer[data-hint-side="left"] .flyer-hint { left: 0; transform: none; }
.flyer[data-hint-side="right"] .flyer-hint { left: auto; right: 0; transform: none; }
.ringed .flyer-pop::before,.ringed .flyer-pop::after { content: ""; position: absolute; inset: -9% -15%; border: 2px solid #32cdb2; border-right-color: #8a67f4; border-bottom-color: #f78a57; border-radius: 50%; animation: hero-orbit 3.1s linear infinite; }
.ringed .flyer-pop::after { inset: -11% -13%; border-color: #8075ff #37baf1 #db70e6 transparent; opacity: .68; animation-direction: reverse; animation-duration: 2.4s; }
.hero-swap { display: inline-block; color: var(--accent); animation: hero-swap-in .52s cubic-bezier(.2,.9,.25,1) both; }
@keyframes hero-marquee { to { transform: translateX(-50%); } }
@keyframes hero-drop { from { opacity: 0; transform: translateY(-70%) rotate(calc(var(--i) * 6deg - 18deg)) scale(1.2); } }
@keyframes hero-pop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } }
@keyframes hero-greet {
  0%, 100% { transform: translateY(-3%) rotate(-6deg) scale(1.09); }
  50% { transform: translateY(-15%) rotate(9deg) scale(1.16); }
}
@keyframes hero-orbit { from { transform: rotate(0deg) scaleY(.77); } to { transform: rotate(360deg) scaleY(.77); } }
@keyframes hero-swap-in { from { opacity: 0; transform: translateY(.45em); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.center { justify-content: center; }
.hero .actions { margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 17px; border-radius: 100px; border: 1px solid transparent; font-size: 14px; font-weight: 680; text-decoration: none; }
.primary { color: var(--bg); background: var(--fg); }
.primary:hover { opacity: .86; }
.secondary { color: var(--fg); background: var(--bg); border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.hero-desc { max-width: 650px; margin: 15px auto 0; color: var(--muted); font-size: 14px; }
.preview { margin: 35px auto 0; max-width: 960px; }
.window { text-align: left; display: grid; grid-template-columns: 230px minmax(0,1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.bots { background: var(--raised); border-right: 1px solid var(--line); padding: 13px 12px 18px; }
.window-title, .bot-list-label { color: var(--muted); font-size: 12px; padding: 4px 8px 12px; }
.dots { display: inline-flex; gap: 4px; margin-right: 10px; }
.dots i { border-radius: 50%; width: 7px; height: 7px; background: #ff655d; }
.dots i:nth-child(2) { background: #f0b43b; }
.dots i:nth-child(3) { background: #35ba63; }
.bot-list-label { border-top: 1px solid var(--line); padding-top: 10px; }
.bot { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13px; }
.bot small { display: block; color: var(--muted); font-size: 11px; }
.selected { background: var(--soft); }
.avatar { display: grid; place-items: center; border-radius: 10px; width: 33px; height: 33px; }
.green { background: #d5f4de; color: #14613a; }
.blue { background: #e1eeff; color: #1a53a1; }
.purple { background: #ece6ff; color: #594394; }
.amber { background: #fff0d0; color: #845206; }
.rose { background: #fce6ec; color: #9c2b52; }
.chat { display: flex; flex-direction: column; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 16px; font-size: 14px; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 100px; padding: 3px 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.messages { display: flex; flex-direction: column; gap: 9px; padding: 12px 16px; }
.timestamp { align-self: center; color: var(--muted); font-size: 10px; }
.message { align-self: flex-start; background: var(--raised); border-radius: 11px; padding: 8px 11px; font-size: 13px; max-width: 92%; }
.approval { border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.approval i, .pill i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; background: var(--accent); border-radius: 50%; }
.user-message { align-self: flex-end; background: var(--soft); }
.composer { margin: auto 16px 13px; display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
:where(body:not(.reference-home)) figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }
.band { padding: 70px 0; border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 740; letter-spacing: .1em; color: var(--ink); margin-bottom: 12px; }
.four,.feature-grid,.use-grid { display: grid; gap: 13px; margin-top: 24px; }
.four { grid-template-columns: repeat(4, 1fr); }
.feature-grid,.use-grid { grid-template-columns: repeat(2, 1fr); }
.card,.use-grid > div { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--raised); color: var(--fg); text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.number { display: inline-block; font: 600 13px ui-monospace, monospace; color: var(--ink); padding: 6px 9px; border-radius: 7px; background: var(--soft); margin-bottom: 15px; }
.card p,.use-grid p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 24px; }
.faq .actions { margin-top: 24px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; gap: 16px 22px; flex-wrap: wrap; padding-block: 24px; font-size: 14px; }
.footer-inner span { margin-right: auto; }
.guide { display: grid; grid-template-columns: 192px minmax(0, 800px); justify-content: center; gap: 46px; padding-block: 50px 76px; }
.toc { align-self: start; position: sticky; top: 91px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 8px 10px; border-left: 1px solid var(--line); font-size: 14px; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); background: var(--soft); border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 720; }
.guide h1 { margin-top: 18px; font-size: clamp(35px, 5vw, 54px); }
.guide h2 { margin-bottom: 18px; }
.lead { margin-top: 12px; font-size: 18px; color: var(--muted); }
.note { margin-top: 22px; padding: 16px 19px; background: var(--soft); border-radius: 12px; }
.note p { margin-top: 3px; }
.chapter { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.chapter p + p, .chapter h3 + p, .chapter .muted { margin-top: 10px; }
.chapter h3 { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { border: 1px solid var(--line); border-radius: 8px; text-decoration: none; padding: 4px 12px; font-size: 14px; }
.install-card { margin-top: 13px; border: 1px solid var(--line); background: var(--raised); padding: 20px; border-radius: 14px; }
.install-card .actions,.install-card > .button { margin-top: 12px; }
.guide ol { padding-left: 1.5em; }
.guide li + li { margin-top: 6px; }
.steps { margin-block: 16px; }
code,kbd { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: .08em .3em; font: .88em ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
pre { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; }
pre code { border: 0; padding: 0; }
.copy-panel { background: var(--soft); border-radius: 12px; padding: 16px; }
.copy-panel button { margin-top: 12px; }
.use-grid { margin-bottom: 24px; }
.guide details { border-bottom: 1px solid var(--line); }
.guide details p { padding: 0 0 12px; color: var(--muted); }
.guide details a { display: inline-block; margin-bottom: 10px; }
.guide summary { cursor: pointer; padding: 13px 0; font-weight: 650; }
@media (max-width: 760px) {
  .hero-stage { aspect-ratio: 5/2; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 28px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .toc nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .toc a { padding: 4px 7px; }
  .four { grid-template-columns: repeat(2, 1fr); }
  .window { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .nav { gap: 9px; min-height: 60px; }
  .brand { font-size: 16px; gap: 5px; }
  .nav-icon { width: 34px; height: 34px; }
  .hero-stage { aspect-ratio: 16/9; }
  .hero h1 { font-size: clamp(24px, 7.5vw, 34px); }
  .window { grid-template-columns: minmax(0, 1fr); }
  .bots { display: none; }
  .band { padding: 45px 0; }
  .card,.use-grid > div { padding: 14px; }
  .use-grid { grid-template-columns: 1fr; }
  .footer-inner span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .word span { transition: none; }
  .echo-track,.letter-drop,.flyer-pop,.flyer.is-hovered svg,.ringed .flyer-pop::before,.ringed .flyer-pop::after,.hero-swap { animation: none !important; }
}
.reference-home [hidden] { display: none !important; }
.reference-home .app-preview-figure { margin: 32px auto 0; }
.reference-home .app-preview-figure figcaption { margin-top: 14px; }
.reference-home .platform-list {
  position: absolute;
  z-index: 4;
  top: calc(100% + 5px);
  left: 0;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  text-align: left;
}
.reference-home :has(> [data-platforms]) { position: relative; }
.reference-home .platform-list a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--fg); font-size: 13px; }
.reference-home .platform-list a:hover { background: var(--raised); }
.reference-home .bot-jobs-details dl > div { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
.reference-home .bot-jobs-details dt { white-space: nowrap; }
.reference-home .bot-jobs-details dd { min-width: 0; overflow-wrap: anywhere; }
.reference-home .how-mono { font-family: ui-monospace, Consolas, var(--font-zh); }
.reference-home main > section:last-child .platform-list { top: auto; bottom: calc(100% + 5px); }
.reference-home #languages { overflow: clip; }
@media (max-width: 480px) {
  .reference-home .hello-stage { font-size: clamp(38px, 13vw, 60px); }
}
.scene-app-active { outline: 2px solid var(--accent); outline-offset: -2px; }
.reference-home .quickstart-scene { position: relative; }
.scene-replay { position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--fg); opacity: 0; transition: opacity .18s; }
.quickstart-scene:hover .scene-replay,.scene-replay:focus-visible { opacity: 1; }
.how-scene[data-task-done="true"] .how-bot { transform: translateY(-10%) rotate(-8deg); }
@media (hover: none) { .scene-replay { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scene-replay { display: none; }
  #quickstart .how-scene * { transition: none !important; }
}
.demo { max-width: 980px; padding-block: 52px 64px; }
.demo .lead { max-width: 650px; }
.demo .window { margin-top: 25px; }
.demo .bot { width: 100%; border: 0; background: transparent; color: var(--fg); text-align: left; }
.demo .bot[aria-pressed="true"] { background: var(--soft); }
.demo .messages { min-height: 230px; }
.demo .chat-head { flex-wrap: wrap; }
.demo .chat-head .tag { margin-left: auto; }
.demo-form { display: flex; gap: 8px; margin: 0 16px 14px; }
.demo-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; background: var(--raised); color: var(--fg); font: inherit; }
.demo .use-grid { margin-top: 20px; }
.demo .use-grid h3 { margin-bottom: 8px; }
.demo dialog { max-width: min(100% - 24px, 520px); border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); }
.demo dialog::backdrop { background: #07130ab0; }
.demo dialog p { margin: 10px 0; }
@media (max-width: 480px) {
  .demo .bots { display: flex; gap: 5px; flex-wrap: wrap; border: 0; border-bottom: 1px solid var(--line); }
  .demo .bots .bot { width: auto; }
  .demo .bots .avatar { display: none; }
}
