/* ==================================================================
   bingbingbing.top — 主站落地页样式
   ------------------------------------------------------------------
   设计令牌与 ai-call/pages/css/theme.css 保持一致，是**逐字抄写**而不是
   引用：两站各自独立部署，任何一个站的令牌改动都不应该悄悄影响另一个。
   改动这里时请同步另一站的同名区块，保持「同一家产品」的观感。
   ================================================================== */

:root {
  /* 表面 */
  --bg: #ffffff;
  --bg-tint: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f2f4f9;
  --overlay: rgba(255, 255, 255, 0.72);

  /* 墨色 */
  --text: #0d1117;
  --text-2: #4a5163;
  --text-3: #8b91a3;
  --text-inverse: #ffffff;

  /* 线条 */
  --border: #e9ebf2;
  --border-strong: #dcdfea;
  --border-focus: #9ca3af;

  /* 强调色：近黑。整个站点只有这一支冷色，彩色一律留给状态与代码高亮 */
  --accent: #111827;
  --accent-hover: #000000;
  --accent-2: #6b7280;
  --accent-soft: #f3f4f6;
  --accent-ring: rgba(17, 24, 39, 0.16);
  --gradient: linear-gradient(135deg, #111827 0%, #374151 45%, #6b7280 100%);

  /* 状态 */
  --ok: #10b981;
  --ok-soft: #ecfdf5;
  --warn: #f59e0b;
  --warn-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --info-soft: #eff6ff;

  /* 形状 */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 投影 */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.03);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.03);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.08), 0 4px 8px rgba(16, 24, 40, 0.03);
  --shadow-xl: 0 24px 56px rgba(16, 24, 40, 0.1), 0 8px 16px rgba(16, 24, 40, 0.04);
  --shadow-accent: 0 8px 24px rgba(17, 24, 39, 0.22);

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas,
    "Liberation Mono", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;

  /* 布局 */
  --topbar-h: 60px;
  --page-max: 1080px;
  --prose-max: 720px;
}

/* ------------------------------------------------------------------ */
/* reset                                                                */
/* ------------------------------------------------------------------ */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 站内锚点靠 CSS 平滑滚动即可，不需要 JS；prefers-reduced-motion 会关掉它 */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  /* 对话页是 overflow: hidden 的应用外壳，落地页必须能整页滚，故不抄那一行 */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

:focus {
  outline: none;
}

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

::selection {
  background: rgba(55, 65, 81, 0.18);
  color: var(--text);
}

/* 滚动条沿用对话页的样式，避免两站并排打开时观感断裂 */
* {
  scrollbar-width: thin;
  scrollbar-color: #d5d9e4 transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dcdfea;
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #c3c8d8;
  background-clip: content-box;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--accent);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -160%);
  transition: transform var(--dur-base) var(--ease-back);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  text-decoration: none;
}

/* 极淡的纸纹，作用同对话页 .ambient-grain：让大面积白底不平 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(15, 23, 42, 0.035) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
}

/* ------------------------------------------------------------------ */
/* 组件：按钮                                                          */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: var(--text-inverse);
  background: var(--gradient);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ------------------------------------------------------------------ */
/* 顶栏                                                                */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--overlay);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--page-max);
  min-height: var(--topbar-h);
  margin: 0 auto;
  padding: 8px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: #fff;
  background: var(--gradient);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.26);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand-ver {
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.topnav a {
  padding: 7px 12px;
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--text-2);
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.topnav a:hover {
  color: var(--text);
  background: var(--surface-3);
  text-decoration: none;
}

.topbar-cta {
  flex: none;
  padding: 9px 16px;
}

/* ------------------------------------------------------------------ */
/* 页面骨架                                                            */
/* ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
}

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

.section {
  padding: 66px 0;
  border-top: 1px solid var(--border);
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  max-width: var(--prose-max);
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 660;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: var(--fs-lg);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.lede {
  margin-top: 12px;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--text-2);
}

/* 同一节里的第二个小标题（如「常见问题」接在「怎么开始」后面）：
   只把间距拉开、字号降一级，不引入新的排版语言。 */
.section-head-tight {
  margin-top: 44px;
}

.h-sub {
  font-size: var(--fs-xl);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding: 74px 0 62px;
}

.hero-inner {
  max-width: var(--prose-max);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  margin-bottom: 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xs);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.125rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin-top: 18px;
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--text-2);
}

.hero-sub strong {
  font-weight: 620;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.fact {
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

/* ------------------------------------------------------------------ */
/* 能力卡片                                                            */
/* ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-sm);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  font-size: var(--fs-md);
}

.card p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.card p code,
.lede code,
.faq dd code,
.steps li code {
  padding: 2px 5px;
  font-size: 0.88em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  overflow-wrap: anywhere;
}

/* 三档思考：卡内的小表格型列表 */
.gear-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.gear {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.gear-key {
  flex: none;
  min-width: 42px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}

.gear-key.is-on {
  color: var(--text-inverse);
  background: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* 对话示例                                                            */
/* ------------------------------------------------------------------ */

.chat {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat-bar .dot-set {
  display: flex;
  gap: 5px;
}

.chat-bar .dot-set i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chat-bar-title {
  margin-left: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
}

.chat-bar-tag {
  margin-left: auto;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px 24px;
}

.msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 2px;
  border-radius: var(--r-sm);
}

.msg-avatar svg {
  width: 17px;
  height: 17px;
}

.msg-user .msg-avatar {
  color: var(--text-2);
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.msg-ai .msg-avatar {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.22);
}

.msg-body {
  flex: 1 1 auto;
  min-width: 0;
}

.msg-who {
  display: block;
  margin-bottom: 5px;
  font-size: var(--fs-xs);
  font-weight: 620;
  color: var(--text-3);
}

.bubble {
  /* 长英文/长 URL 不许撑破卡片：这是移动端最容易溢出的地方 */
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  font-size: var(--fs-base);
  line-height: 1.7;
  overflow-wrap: anywhere;
  border-radius: var(--r-md);
}

.msg-user .bubble {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.msg-ai .bubble {
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-weight: 550;
}

/* 静态模拟的思考过程折叠块，结构与对话页 .reasoning 对齐 */
.reasoning {
  margin-bottom: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: clip;
}

.reasoning-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--text-3);
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.reasoning-toggle:hover {
  color: var(--text-2);
  background: var(--surface-3);
}

.reasoning-toggle .caret {
  width: 13px;
  height: 13px;
  flex: none;
  transition: transform var(--dur-base) cubic-bezier(0.34, 1.18, 0.64, 1);
}

.reasoning[data-open='false'] .reasoning-toggle .caret {
  transform: rotate(-90deg);
}

.reasoning-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.reasoning-body {
  padding: 2px 13px 11px;
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--border);
}

.reasoning[data-open='false'] .reasoning-body {
  display: none;
}

.reasoning[data-open='true'] {
  background: var(--surface);
}

/* ------------------------------------------------------------------ */
/* API 区                                                              */
/* ------------------------------------------------------------------ */

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.proto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.proto-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proto-head h3 {
  font-size: var(--fs-md);
}

.proto-path {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.proto ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.proto li {
  display: flex;
  gap: 8px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-2);
}

.proto li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  background: var(--border-strong);
  border-radius: 50%;
}

.proto li code {
  padding: 1px 5px;
  font-size: 0.88em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-xs);
}

/* ------------------------------------------------------------------ */
/* 代码块（结构与对话页 .md-code / .code-bar 对齐）                    */
/* ------------------------------------------------------------------ */

.code {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  /* clip 而非 hidden：与对话页同理，避免建立多余的滚动容器 */
  overflow: clip;
  box-shadow: var(--shadow-xs);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.code-copy {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.code-copy:hover {
  color: var(--accent);
  border-color: var(--border-focus);
  background: var(--accent-soft);
}

.code-copy.is-copied {
  color: #047857;
  background: var(--ok-soft);
  border-color: #a7f3d0;
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  /* 两个轴都要显式写：只写一个轴时另一个会被算成 auto，会把滚轮吞掉 */
  overflow-x: auto;
  overflow-y: hidden;
}

/* 手机上代码块最容易撑破布局，给一个比桌面更小的字号与内边距 */
.code code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.6px;
  line-height: 1.72;
  color: var(--text);
  tab-size: 2;
  white-space: pre;
}

/* 手写的高亮类，与对话页 tok-* 同一套配色 */
.tok-k { color: #7c3aed; font-weight: 600; }
.tok-b { color: #0891b2; font-weight: 500; }
.tok-s { color: #0f766e; }
.tok-n { color: #c2410c; }
.tok-c { color: #94a3b8; font-style: italic; }
.tok-f { color: #2563eb; }
.tok-t { color: #db2777; }
.tok-a { color: #ca8a04; }
.tok-p { color: #64748b; }

/* ------------------------------------------------------------------ */
/* 步骤 / FAQ / 页脚                                                   */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--accent);
  border-radius: var(--r-full);
}

.step h3 {
  font-size: var(--fs-base);
  margin-bottom: 6px;
}

.step p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px 26px;
}

.faq div {
  min-width: 0;
}

.faq dt {
  font-size: var(--fs-base);
  font-weight: 620;
  margin-bottom: 5px;
}

.faq dd {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 44px 0 54px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-3);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h2 {
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-base {
  max-width: var(--page-max);
  margin: 30px auto 0;
  padding: 18px 24px 0;
  font-size: var(--fs-xs);
  color: var(--text-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ */
/* 响应式                                                              */
/* ------------------------------------------------------------------ */

/* 900px：两栏的 API 区先塌成一栏，再往下才是顶栏与字号 */
@media (max-width: 900px) {
  .api-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 54px 0 46px;
  }
}

/* 620px：顶栏放不下导航，只留品牌 + 主 CTA */
@media (max-width: 620px) {
  .topnav {
    display: none;
  }

  .topbar-inner {
    padding: 8px 16px;
  }

  .wrap,
  .footer-inner,
  .footer-base {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 44px 0;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-sub {
    font-size: var(--fs-md);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-body {
    padding: 18px 14px 20px;
  }

  .code pre {
    padding: 12px 13px;
  }
}

/* ≤400px：需求点名要保证可用的尺寸。到这一档按钮、卡片内边距都要收紧，
   并且所有横向可能溢出的容器都确认过有 max-width: 100% 或 overflow-x: auto。 */
@media (max-width: 400px) {
  body {
    font-size: 0.90625rem;
  }

  .wrap,
  .footer-inner,
  .footer-base {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 1.625rem;
  }

  .hero-actions {
    gap: 9px;
  }

  .btn {
    /* 手机上按钮排满一行，避免两个按钮挤在一起出现半截换行 */
    flex: 1 1 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .topbar-cta {
    flex: none;
    padding: 8px 13px;
    font-size: var(--fs-xs);
  }

  .brand-ver {
    display: none;
  }

  .card,
  .proto,
  .step {
    padding: 16px;
  }

  .code code {
    font-size: 12px;
  }

  .code pre {
    padding: 11px 12px;
  }

  .msg {
    gap: 9px;
  }

  .msg-avatar {
    width: 26px;
    height: 26px;
  }

  .bubble {
    padding: 9px 12px;
  }

  .footer-cols {
    gap: 26px;
  }
}

/* ------------------------------------------------------------------ */
/* 减少动效                                                            */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    /* 平滑滚动本身就是动效，这里一并关掉 */
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
