/* 快跑AI 门户样式
 *
 * 设计语言（对齐主流欧美 SaaS：Supabase / Vercel / Linear 这一路）：
 *   · 主按钮是近黑色，不是饱和色块；强调色只用在链接和少量高亮上
 *   · 用 1px 描边区分层级，而不是堆阴影
 *   · 标题紧排（-0.02 ~ -0.04em）、行高 1.05 左右
 *   · 正文用中性灰，不用彩色文字
 *   · 图标一律内联 SVG，不用 emoji 当图标
 *   · 留白优先：区块之间 96–140px
 *
 * 2026-09-27 改版：
 *   · 首页首屏改成「怎么用」：接入地址 + 三步 + 发布流程窗口，不再放宣传口号
 *   · 首屏下面放真实用例截图（用 HTML/CSS 画的小应用界面，不上位图）
 *   · 子页面去掉「文档式」的大标题，收成一条紧凑的页面条（page-bar）
 *   · 整体加层次：柔和的背景光、更克制的阴影、更紧的排版节奏
 */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-mute: #f4f4f5;
  --bg-tint: #f6f8fc;

  --ink: #09090b;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --ink-4: #a1a1aa;

  --line: rgba(9, 9, 11, 0.08);
  --line-2: rgba(9, 9, 11, 0.16);

  --accent: #155dfc;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;

  --ok: #16a34a;
  --warn: #b45309;
  --danger: #dc2626;

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 0 0 1px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 1px 3px rgba(9, 9, 11, 0.06), 0 12px 32px -12px rgba(9, 9, 11, 0.18);
  --shadow-lg: 0 2px 6px rgba(9, 9, 11, 0.06), 0 24px 60px -20px rgba(9, 9, 11, 0.24);
  --shadow-shot: 0 1px 2px rgba(9, 9, 11, 0.05), 0 14px 34px -16px rgba(9, 9, 11, 0.22),
    0 44px 84px -44px rgba(9, 9, 11, 0.3);

  --max: 1120px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--ink-3); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ────────────────────────────────────────────── 顶部导航 */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; display: grid; place-items: center; }
.brand__mark img { width: 100%; height: 100%; }
.brand__name { font-weight: 600; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a {
  padding: 7px 12px; border-radius: var(--r-sm);
  color: var(--ink-3); font-size: 14px; transition: color .15s, background .15s;
}
.nav-links > a:hover { color: var(--ink); background: var(--bg-mute); text-decoration: none; }
.nav-links > a.is-active { color: var(--ink); font-weight: 500; background: var(--bg-mute); }
.nav-links__actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line);
}
.linkish {
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 14px; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer;
}
.linkish:hover { color: var(--ink); background: var(--bg-mute); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 38px; height: 38px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  color: var(--ink-2); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ────────────────────────────────────────────── 按钮 */

.marketing-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .06s;
}
.marketing-action:hover { text-decoration: none; }
.marketing-action:active { transform: translateY(0.5px); }
.marketing-action .i { width: 16px; height: 16px; }

/* 主操作：近黑（欧美 SaaS 的默认主按钮），带一点内高光 */
.marketing-action--primary,
.marketing-action--inverse {
  background: #09090b; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-xs);
}
.marketing-action--primary:hover,
.marketing-action--inverse:hover { background: #27272a; color: #fff; }

.marketing-action--outline,
.marketing-action--neutral {
  background: #fff; color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
.marketing-action--outline:hover,
.marketing-action--neutral:hover { background: var(--bg-soft); color: var(--ink); }

.marketing-action--compact { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }

/* ────────────────────────────────────────────── 区块骨架 */

.marketing-section { padding: 104px 0; }
.marketing-section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marketing-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.marketing-wrap--narrow { max-width: 760px; }

.marketing-heading { margin-bottom: 44px; }
.marketing-heading--center { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.marketing-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-4);
}
.marketing-title { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.032em; line-height: 1.15; }
.marketing-description { margin-top: 14px; color: var(--ink-3); font-size: 16.5px; line-height: 1.68; }
/* 页面里的次级小标题：比区块标题收敛一档，避免处处都是大标题 */
.section-title-sm { font-size: 20px; letter-spacing: -0.028em; margin-bottom: 18px; }

/* ────────────────────────────────────────────── 通用卡片 */

.marketing-card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.marketing-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.marketing-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.68; }
.marketing-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-mute); color: var(--ink-2);
}
.feature-icon svg { width: 17px; height: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ────────────────────────────────────────────── 首屏：怎么用 */

.hero { position: relative; padding: 72px 24px 0; overflow: clip; }
.hero__bg {
  position: absolute; inset: -1px 0 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 44% at 8% 0%, rgba(21, 93, 252, 0.10), transparent 62%),
    radial-gradient(38% 40% at 94% 4%, rgba(124, 58, 237, 0.07), transparent 60%);
}
.hero__grid {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 60px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
  font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px;
}
.hero__eyebrow b {
  font-weight: 500; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 11.5px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.04em; line-height: 1.08; font-weight: 600; }
.hero__sub {
  max-width: 46ch; margin: 20px 0 0;
  color: var(--ink-3); font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.68;
}

/* 接入地址：首屏最重要的一块，做成可复制的代码块 */
.addr {
  margin-top: 30px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, #fafbfe);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.addr__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px 11px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.addr__label { font-size: 12.5px; color: var(--ink-3); }
.addr__copy {
  flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 12.5px; cursor: pointer; transition: background .15s, border-color .15s;
}
.addr__copy:hover { background: var(--bg-soft); border-color: var(--ink-4); color: var(--ink); }
.addr__url {
  display: block; padding: 16px 15px; font-family: var(--mono);
  font-size: 14.5px; color: var(--ink); word-break: break-all; line-height: 1.5;
}
.addr__alt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 0 15px 14px; font-size: 12.5px; color: var(--ink-4);
}
.addr__alt code { color: var(--ink-2); word-break: break-all; }

/* 三步 */
.howto { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: h; }
.howto li { position: relative; padding-left: 40px; color: var(--ink-3); font-size: 15px; line-height: 1.62; counter-increment: h; }
.howto li::before {
  content: counter(h); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 999px;
  background: #09090b; color: #fff; font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
}
.howto li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--ink-4); }

.hero__visual { position: relative; }
.hero__glow {
  position: absolute; inset: -40px -30px auto; height: 300px; z-index: 0;
  background: radial-gradient(60% 100% at 60% 0%, rgba(21, 93, 252, 0.10), transparent 70%);
  pointer-events: none;
}

/* 产品窗口：像真的产品截图，而不是一张插画 */
.window {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-shot); overflow: hidden;
}
.window__bar {
  height: 42px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.window__dot { width: 10px; height: 10px; border-radius: 999px; background: #e4e4e7; }
.window__title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.window__body { padding: 22px 24px; text-align: left; }

/* 对话窗口：首屏用一次完整的对话演示怎么用 */
.chat {
  position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-shot); overflow: hidden;
}
.chat__bar {
  height: 42px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.chat__dot { width: 10px; height: 10px; border-radius: 999px; background: #e4e4e7; }
.chat__title { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.chat__body { padding: 20px; display: grid; gap: 18px; }
.chat__turn { display: flex; flex-direction: column; align-items: flex-start; }
.chat__step { margin-bottom: 7px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.02em; }
.chat__bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.62; }
.chat__bubble--me {
  align-self: flex-end; margin-left: auto;
  background: #09090b; color: #fff; border-bottom-right-radius: 5px;
}
.chat__bubble--ai {
  max-width: 92%; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink-2); border-bottom-left-radius: 5px;
}
.chat__bubble--link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
}
.chat__bubble--link .i { width: 14px; height: 14px; flex: 0 0 auto; opacity: .75; }
.chat__bubble--link span { word-break: break-all; }
.chat__result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding: 9px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.chat__result-k {
  padding: 1px 7px; border-radius: 999px;
  background: var(--bg-mute); color: var(--ink-3); font-size: 11px;
}
.chat__result code { font-size: 12px; color: var(--ink); word-break: break-all; }

/* ────────────────────────────────────────────── 真实用例截图 */

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 26px; }
.shot {
  display: flex; flex-direction: column; margin: 0;
  transition: transform .2s, box-shadow .2s;
}
.shot .window__body { padding: 18px 18px 20px; }
.shot:hover { transform: translateY(-3px); }
.shot__cap { margin-top: auto; padding-top: 20px; }
.shot__cap h3 { font-size: 16px; margin-bottom: 7px; }
.shot__cap p { color: var(--ink-3); font-size: 14.5px; line-height: 1.66; }
.shot__cap .shot__tag {
  display: inline-block; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-mute); color: var(--ink-3); font-size: 11.5px; font-weight: 500;
}

/* 小应用界面：在截图框里画一个精简版的真实应用 */
.mini { font-size: 12.5px; }
.mini__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.mini__title { font-weight: 600; font-size: 13.5px; color: var(--ink); letter-spacing: -0.01em; }
.mini__sub { color: var(--ink-4); font-size: 11.5px; font-family: var(--mono); }
.mini__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mini__stat { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
.mini__stat span { display: block; font-size: 11px; color: var(--ink-4); margin-bottom: 2px; }
.mini__stat b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--mono); }
.mini__rows { list-style: none; margin: 0; padding: 0; }
.mini__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.mini__row:first-child { border-top: 0; padding-top: 0; }
.mini__row:last-child { padding-bottom: 0; }
.mini__d { flex: 0 0 auto; width: 4.6em; color: var(--ink-4); font-family: var(--mono); font-size: 11px; }
.mini__n { flex: 1 1 auto; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__t { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: var(--bg-mute); color: var(--ink-4); font-size: 11px; }
.mini__v { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.mini__bar { flex: 1 1 auto; height: 5px; border-radius: 999px; background: var(--bg-mute); overflow: hidden; min-width: 30px; }
.mini__bar i { display: block; height: 100%; border-radius: 999px; background: #09090b; }

/* ────────────────────────────────────────────── 支持的客户端 */

.logos-label { text-align: center; font-size: 13px; color: var(--ink-4); margin-bottom: 28px; }
.logos { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; }
.logos a, .logos span {
  font-size: 17px; font-weight: 500; color: var(--ink-4);
  letter-spacing: -0.01em; transition: color .18s;
}
.logos a:hover, .logos span:hover { color: var(--ink-2); }
.logos a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logos a::after {
  content: "↗"; margin-left: 4px; font-size: 12px; color: var(--ink-4);
  vertical-align: super; line-height: 0;
}
.logos a:hover::after { color: var(--ink-3); }

/* ────────────────────────────────────────────── 三步（旧版首页用，保留） */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 0 28px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step__n {
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 10px; }
.step p { color: var(--ink-3); font-size: 14.5px; line-height: 1.68; }

/* ────────────────────────────────────────────── 场景标签 */

.use-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.use-grid span {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 14px;
}

/* ────────────────────────────────────────────── 收尾 CTA */

.cta-band { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.cta-band__inner {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(80% 140% at 50% -20%, rgba(21, 93, 252, 0.09), transparent 62%),
    var(--bg-soft);
  padding: 64px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.03em; }
.cta-band p { margin-top: 12px; color: var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ────────────────────────────────────────────── 账号菜单 */

.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 5px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2);
  font-size: 13.5px; transition: border-color .15s, background .15s;
}
.acct-btn:hover { border-color: var(--line-2); background: var(--bg-soft); }
.acct-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-avatar {
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 auto;
  background: #09090b; color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 236px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 6px; display: none;
}
.acct-menu.on { display: block; }
.acct-menu__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu__who strong { display: block; font-size: 13px; word-break: break-all; font-weight: 600; }
.acct-menu__who span { color: var(--ink-4); font-size: 12px; }
.acct-menu a, .acct-menu button {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2); font-size: 13.5px;
  text-align: left; cursor: pointer;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-mute); color: var(--ink); text-decoration: none; }
.acct-menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.acct-menu .danger { color: var(--danger); }

/* ────────────────────────────────────────────── 子页面
 *
 * 子页面不再用「大标题 + 长说明」的文档式页头。改成一条紧凑的页面条：
 * 小标题和一句说明排在同一行，右边可以放计数 / 操作，下面一条淡分割线。
 * 远看像应用里的工具栏，不像文档封面。
 */

.page-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 40px 0 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.page-bar h1 { font-size: 19px; letter-spacing: -0.028em; }
.page-bar p { flex: 1 1 320px; min-width: 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.page-bar__side { margin-left: auto; font-size: 13px; color: var(--ink-4); font-family: var(--mono); }

.page-body { padding: 0 0 104px; }
.page-body--flush { padding-top: 0; }
.page-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 13.5px; color: var(--ink-4);
}

/* ────────────────────────────────────────────── 应用市场卡片 */

/* 用「最大列宽」而不是 1fr：只有一两张卡时不会被拉成整行宽条，
   空的地方就空着，读起来才像货架而不是走样的表格。 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 372px)); gap: 20px; }
.card {
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 16px; margin: 12px 0 8px; }
.card p { color: var(--ink-3); font-size: 14px; line-height: 1.65; flex: 1; }
.card .meta { margin-top: 16px; font-size: 12.5px; color: var(--ink-4); font-family: var(--mono); }
.card .row { margin-top: 14px; }
.card.soon { opacity: .6; }
.tag {
  align-self: flex-start; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-mute); color: var(--ink-3); font-size: 11.5px; font-weight: 500;
}
.card button, .doc-copy, .vote {
  height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s;
}
.card button:hover, .doc-copy:hover, .vote:hover { background: var(--bg-soft); }
.card a.go {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: var(--r-sm); background: #09090b; color: #fff; font-size: 13.5px;
}
.card a.go:hover { background: #27272a; text-decoration: none; }
.empty {
  padding: 56px 24px; text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-soft);
}

/* ────────────────────────────────────────────── AI 工具库 */

.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tool-chips button {
  height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  font-size: 13.5px; cursor: pointer; transition: all .15s;
}
.tool-chips button:hover { border-color: var(--line-2); color: var(--ink); }
.tool-chips button.on { background: #09090b; border-color: #09090b; color: #fff; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 300px)); gap: 16px; }
.tool-card {
  display: block; padding: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tool-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.tool-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-card__icon {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex: 0 0 auto;
  background: var(--bg-mute); display: grid; place-items: center; font-size: 16px;
}
.tool-card__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tool-card p { color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.tool-card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.tool-tag { background: var(--bg-mute); color: var(--ink-3); padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
.tool-badge { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }

/* ────────────────────────────────────────────── 价格 */

.price-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.price-card { display: flex; flex-direction: column; }
.price-card--featured { border-color: #09090b; box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 15px; color: var(--ink-3); font-weight: 500; }
.price-card__amount { margin: 8px 0 20px; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.price-card__amount span { font-size: 15px; font-weight: 400; color: var(--ink-4); }
.price-card ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 14.5px; }
.price-card li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 6px; height: 10px;
  border-right: 1.6px solid var(--ink-4); border-bottom: 1.6px solid var(--ink-4);
  transform: rotate(42deg);
}
.price-card .marketing-action { margin-top: auto; align-self: flex-start; }

/* ────────────────────────────────────────────── 常见问题 */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 18px; color: var(--ink-4);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq p { padding: 0 32px 22px 0; color: var(--ink-3); font-size: 15px; line-height: 1.72; }

/* ────────────────────────────────────────────── 文档页 */

.doc-body h2 {
  margin: 52px 0 14px; font-size: 18px; letter-spacing: -0.028em;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.doc-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h2[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-body p { color: var(--ink-3); line-height: 1.78; }
.doc-body code { background: var(--bg-mute); padding: 2px 6px; border-radius: 5px; font-size: 13px; color: var(--ink-2); }

.doc-steps { color: var(--ink-2); line-height: 1.8; padding-left: 0; list-style: none; counter-reset: s; }
.doc-steps > li { position: relative; padding-left: 46px; margin-bottom: 24px; counter-increment: s; }
.doc-steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 7px;
}
.doc-steps ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-3); }
.doc-steps li strong { color: var(--ink); font-weight: 600; }

.doc-kv { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); padding: 4px 0; margin: 20px 0; }
.doc-kv__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 11px 16px; }
.doc-kv__row + .doc-kv__row { border-top: 1px solid var(--line); }
.doc-kv__k { flex: 0 0 10rem; color: var(--ink-4); font-size: 13px; }
.doc-kv__row code { flex: 1 1 16rem; word-break: break-all; background: transparent; padding: 0; color: var(--ink-2); }
.doc-copy { height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }

.doc-form { display: grid; gap: 10px; max-width: 560px; margin: 18px 0; }
.doc-form input, .doc-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r); font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.doc-form input:focus, .doc-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-form button { justify-self: start; }

.list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li h3 { margin: 0 0 4px; font-size: 15px; }
.list li p { margin: 0; font-size: 14px; }
.vote { min-width: 46px; padding: 0 10px; font-family: var(--mono); font-size: 13px; font-weight: 400; }

/* ────────────────────────────────────────────── 联系我们 */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 20px; align-items: start; }
.contact-card {
  display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-xs);
}
.contact-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.contact-card p { color: var(--ink-3); font-size: 14.5px; line-height: 1.68; flex: 1; }
.contact-card .marketing-action { align-self: flex-start; margin-top: 18px; }
.contact-qr {
  position: relative; aspect-ratio: 1 / 1; max-width: 168px; margin: 0 auto 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, #fbfcfe, #f4f6fb);
  display: grid; place-items: center; gap: 10px; padding: 20px; text-align: center;
}
.contact-qr img { width: 40px; height: 40px; opacity: 0.5; }
.contact-qr span { font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.contact-mail {
  display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 14.5px;
  color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid var(--line-2);
}
.contact-mail:hover { color: var(--accent); border-bottom-color: var(--accent-line); text-decoration: none; }

/* ────────────────────────────────────────────── 右下角悬浮留言 */

.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab__btn {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(9, 9, 11, 0.08);
  background: #09090b; color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(9, 9, 11, 0.45), 0 2px 6px rgba(9, 9, 11, 0.18);
  transition: transform 0.15s, background 0.15s;
}
.fab__btn:hover { transform: translateY(-2px); background: #27272a; }
.fab__btn svg { width: 23px; height: 23px; }

.fab__panel {
  width: min(344px, calc(100vw - 40px));
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-lg);
}
.fab__panel[hidden] { display: none; }
.fab__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fab__head strong { font-size: 15.5px; letter-spacing: -0.01em; }
.fab__x {
  border: 0; background: transparent; color: var(--ink-4); cursor: pointer;
  font-size: 20px; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.fab__x:hover { background: var(--bg-mute); color: var(--ink); }
.fab__lead { margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.fab__form { display: grid; gap: 9px; margin-top: 14px; }
.fab__form input, .fab__form textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2);
  border-radius: var(--r); font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.fab__form textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.fab__form input:focus, .fab__form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.fab__form button { justify-self: start; }
.fab__hint { font-size: 13px; color: var(--ink-3); }
.fab__hint:empty { display: none; }

/* ────────────────────────────────────────────── 页脚 */

.brand__logo { width: 185px; height: auto; }
.night-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0 0; }
.night-footer__wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.night-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.night-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.night-footer__links a { color: var(--ink-3); font-size: 14px; }
.night-footer__links a:hover { color: var(--ink); }
.footer-security { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 14px; }
.footer-security img { width: 18px; height: 20px; object-fit: contain; flex-shrink: 0; }
.night-footer__bottom { margin-top: 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; gap: 12px 24px; }
.night-footer__copyright { flex-shrink: 0; }
.night-footer__records { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.night-footer__records a { color: var(--ink-3); }
.night-footer__records a:hover { color: var(--ink); }
.night-footer__records .footer-security { font-size: inherit; }
.night-footer__divider { color: var(--ink-4); }
.legal-document { max-width: 860px; margin: 0 auto; padding: 48px 24px 64px; color: var(--ink-2); font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.legal-document h1 { font-size: 28px; color: var(--ink); margin-bottom: 12px; }
.legal-document h2 { font-size: 19px; color: var(--ink); margin: 32px 0 12px; }
.legal-document p { margin: 12px 0; }
.legal-document ul { padding-left: 22px; margin: 12px 0; }
.legal-document .legal-meta { color: var(--ink-3); font-size: 13px; margin-bottom: 24px; }
.legal-document .legal-contact { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .night-footer__bottom { flex-direction: column; align-items: flex-start; }
  .night-footer__records { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .brand__logo { width: 160px; }
  .night-footer__bottom { font-size: 11px; padding-bottom: 88px; }
  .night-footer__copyright { flex-shrink: 1; }
  .legal-document { padding: 32px 20px 48px; font-size: 14px; }
  .legal-document h1 { font-size: 24px; }
  .legal-document h2 { font-size: 18px; }
}

/* ────────────────────────────────────────────── 响应式 */

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .hero__sub { max-width: 60ch; }
  .hero__visual { max-width: 620px; }
}

@media (max-width: 900px) {
  .marketing-section { padding: 76px 0; }
  .hero { padding-top: 52px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { border-left: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); }
  .step:first-child { border-left: 1px solid var(--line); padding-left: 20px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
  }
  .site-nav { position: relative; }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links > a { padding: 11px 12px; font-size: 15px; }
  .nav-links__actions { margin: 10px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: space-between; }
}

@media (max-width: 640px) {
  .marketing-section { padding: 60px 0; }
  .marketing-wrap, .site-nav__inner, .night-footer__wrap, .cta-band { padding-left: 20px; padding-right: 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .acct-name { display: none; }
  .window__body { padding: 16px; }
  .chat__body { padding: 16px; gap: 16px; }
  .chat__bubble { font-size: 13px; }
  .fab { right: 16px; bottom: 16px; }
  .cta-band__inner { padding: 44px 20px; }
  .page-bar { padding-top: 30px; }
  .page-bar__side { margin-left: 0; }
}
