/* ============================================================
   Yunor Community Site
   配色：取自官方 Logo —— 青蓝水波 · 青绿 · 明黄丝带
   浅色纸感底 + 深色终端/界面块（呼应桌面版真实 UI）
   ============================================================ */

:root {
  /* ---------- 底色：极浅青白（清爽，不泛黄） ---------- */
  --bg: #f5fafc;
  --bg-soft: #ecf5f9;
  --bg-deep: #e0eef4;
  --surface: #ffffff;
  --surface-2: #f3f9fb;

  /* ---------- 主色：青蓝（Logo 水波） ---------- */
  --prime: #0d87a6;
  --prime-deep: #086a85;
  --prime-soft: rgba(13, 135, 166, .10);
  --prime-line: rgba(13, 135, 166, .26);

  /* ---------- 强调：明黄琥珀（Logo 丝带） ---------- */
  --accent: #d9860b;
  --accent-deep: #a96407;
  --accent-soft: rgba(217, 134, 11, .13);

  /* ---------- 辅助：青绿（Logo 绿叶，仅用于知识库） ---------- */
  --gold: #0f9d87;
  --gold-soft: rgba(15, 157, 135, .12);

  /* ---------- 辅助：珊瑚（记忆 / 警示） ---------- */
  --berry: #cf5550;
  --berry-soft: rgba(207, 85, 80, .11);

  /* ---------- 文字 ---------- */
  --text: #10222c;
  --dim: #4e6875;
  --muted: #7f97a3;

  /* ---------- 线条与阴影 ---------- */
  --border: #dcebf1;
  --border-strong: #c3dae3;
  --shadow-xs: 0 1px 2px rgba(16, 52, 68, .05);
  --shadow-sm: 0 2px 10px rgba(16, 52, 68, .07);
  --shadow-md: 0 10px 28px rgba(16, 52, 68, .10);
  --shadow-lg: 0 20px 52px rgba(16, 52, 68, .14);

  /* ---------- 深色块：与桌面版真实 UI 一致 ---------- */
  --ink: #0b0e17;
  --ink-2: #141a28;
  --ink-3: #1c2436;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #dbe4ee;
  --ink-dim: #7b8ba1;
  --ink-teal: #22e0c7;
  --ink-violet: #a855f7;
  --ink-gold: #ffd447;
  --ink-amber: #f2a869;
  --ink-red: #ef7a72;

  /* 兼容旧变量名（终端块） */
  --term-bg: var(--ink);
  --term-bg-2: var(--ink-2);
  --term-text: var(--ink-text);
  --term-dim: var(--ink-dim);
  --term-green: var(--ink-teal);
  --term-gold: var(--ink-violet);
  --term-amber: var(--ink-amber);
  --term-red: var(--ink-red);

  /* ---------- 动效缓动 ---------- */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Roboto, "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 极淡青蓝柔光，不做霓虹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(13, 135, 166, .08), transparent 62%),
    radial-gradient(760px 460px at -6% 26%, rgba(217, 134, 11, .05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--prime); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--prime-soft); color: var(--prime-deep); }

/* ================= 顶部滚动进度（JS 注入） ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--prime), var(--ink-teal), var(--accent));
  z-index: 300; transition: width .1s linear;
}

/* ================= 导航 ================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245, 250, 252, .88);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 12px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: .2px; color: var(--text);
  flex-shrink: 0;
}
/* 用真实品牌图 yunor.png */
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: cover; display: block;
  box-shadow: 0 2px 8px rgba(13, 135, 166, .22);
  flex-shrink: 0;
}
.brand-logo-text {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--prime), var(--gold));
  color: #fff; display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-weight: 800; font-size: 17px;
}
.brand-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .4px;
  color: var(--prime); background: var(--prime-soft);
  padding: 2px 8px; border-radius: 5px;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-block; color: var(--dim);
  padding: 8px 13px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-deep); }
.nav-links a.active { color: var(--prime); background: var(--prime-soft); font-weight: 600; }
.nav-cta {
  background: var(--prime) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--prime-deep) !important; transform: translateY(-1px); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 18px;
  width: 38px; height: 38px; cursor: pointer;
}

/* ================= 容器 / 区块 ================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 26px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 26%, var(--bg-soft) 74%, transparent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--prime-deep); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--prime);
  animation: pulse 2.4s ease-in-out infinite;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.22; letter-spacing: -0.012em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 21px; }
h4 { font-size: 16.5px; }
.lead { font-size: 17.5px; color: var(--dim); max-width: 760px; }
.hl { color: var(--prime); }
.hl-accent { color: var(--accent-deep); }
.underline-accent { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 2px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease-out), color .35s var(--ease-out),
              transform .45s var(--ease-expo), box-shadow .45s var(--ease-expo),
              border-color .35s var(--ease-out);
  font-family: inherit; position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .75s var(--ease-out);
}
.btn:hover::after { left: 150%; }
.btn-primary {
  background: var(--prime); color: #fff;
  box-shadow: 0 3px 12px rgba(13, 135, 166, .24);
}
.btn-primary:hover { background: var(--prime-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 135, 166, .3); }
.btn-accent {
  background: var(--accent); color: #fffdf7;
  box-shadow: 0 3px 12px rgba(217, 134, 11, .26);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--prime-line); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--prime); border-color: var(--prime-line); }
.btn-outline:hover { background: var(--prime-soft); }
.btn svg { width: 16px; height: 16px; }

/* ================= Hero ================= */
.hero { padding: 86px 0 60px; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero p.lead { margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-center .hero-actions { justify-content: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.hero-center .hero-tags { justify-content: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--dim); box-shadow: var(--shadow-xs);
}
.hero-tag .ok { color: var(--prime); font-weight: 700; }

/* 首页大字 Logo 展示 */
.hero-logo {
  width: 96px; height: 96px; border-radius: 24px;
  object-fit: cover; margin: 0 auto 22px; display: block;
  box-shadow: 0 14px 40px rgba(13, 135, 166, .26);
  animation: floaty 6s ease-in-out infinite;
}

/* ================= 深色块通用（终端 / 界面） ================= */
.terminal {
  background: var(--ink);
  border-radius: 14px;
  border: 1px solid var(--ink-3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  max-width: 900px;
  margin: 44px auto 0;
}
.terminal.wide { max-width: 1080px; }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-3);
  font-size: 12px; color: var(--ink-dim);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .d1 { background: #e8756a; }
.terminal-bar .d2 { background: #dcb15f; }
.terminal-bar .d3 { background: #7fb787; }
.terminal-bar .title { margin-left: 8px; font-family: ui-monospace, monospace; letter-spacing: .3px; }
.terminal-bar .live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-teal); font-size: 11px; letter-spacing: .5px;
}
.terminal-bar .live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-teal);
  animation: pulse 2s ease-in-out infinite;
}
.terminal-body {
  padding: 20px 22px 24px;
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 13.5px; line-height: 1.9;
  color: var(--ink-text);
  min-height: 220px;
}
.t-line { display: flex; gap: 10px; }
.t-prefix { flex-shrink: 0; color: var(--ink-teal); }
.t-content { flex: 1; min-width: 0; }
.t-think { color: var(--ink-violet); }
.t-answer { color: var(--ink-text); }
.t-tool { color: var(--ink-amber); }
.t-ok { color: var(--ink-teal); }
.t-dim { color: var(--ink-dim); }
.t-meta { color: var(--ink-dim); font-size: 12.5px; }
.t-cursor {
  display: inline-block; width: 7px; height: 15px;
  background: var(--ink-teal); vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}

/* ================= 卡片 ================= */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .55s var(--ease-expo), box-shadow .55s var(--ease-expo), border-color .55s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
              var(--prime-soft), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card-flat:hover { transform: none; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--prime-soft); color: var(--prime);
  font-size: 21px; margin-bottom: 15px;
  transition: transform .55s var(--ease-expo), background .3s ease;
}
.card-icon svg {
  width: 1em; height: 1em; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card-icon { transform: translateY(-2px) scale(1.05); }
.card-icon.accent { background: var(--accent-soft); color: var(--accent-deep); }
.card-icon.gold { background: var(--gold-soft); color: var(--gold); }
.card-icon.berry { background: var(--berry-soft); color: var(--berry); }
.card h3, .card h4 { margin-bottom: 7px; }
.card p { color: var(--dim); font-size: 14.5px; }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

/* ================= 标签 ================= */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
}
.badge-prime { background: var(--prime-soft); color: var(--prime-deep); }
.badge-accent { background: var(--accent-soft); color: var(--accent-deep); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-berry { background: var(--berry-soft); color: var(--berry); }
.badge-dim { background: var(--bg-deep); color: var(--dim); }

/* ================= 步骤 ================= */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step:first-child { padding-top: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--prime); font-weight: 700; font-family: ui-monospace, monospace; font-size: 14px;
}
.step h4 { margin-bottom: 3px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* ================= 代码块 ================= */
pre.code-block, .code-block {
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 13px; line-height: 1.75;
  color: var(--ink-text);
}
.code-block.light { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.c-kw { color: #d9a0c8; }
.c-str { color: var(--ink-teal); }
.c-com { color: var(--ink-dim); }
.c-fn { color: var(--ink-gold); }
.c-num { color: var(--ink-amber); }
.code-block.light .c-kw { color: #9c4f8d; }
.code-block.light .c-str { color: var(--prime-deep); }
.code-block.light .c-com { color: var(--muted); }
.code-block.light .c-fn { color: var(--accent-deep); }

.inline-code {
  font-family: ui-monospace, monospace;
  background: var(--bg-deep); color: var(--prime-deep);
  padding: 2px 7px; border-radius: 5px;
  font-size: .9em; border: 1px solid var(--border);
}

/* ================= 表格 ================= */
.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xs);
}
.tbl th, .tbl td {
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px; vertical-align: top;
}
.tbl th {
  background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: .5px; text-transform: uppercase;
}
.tbl td { color: var(--dim); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .ok { color: var(--prime); font-weight: 600; }
.tbl .x { color: var(--muted); }
.tbl td b { color: var(--text); }

/* ================= CTA ================= */
.cta-banner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% -40%, var(--prime-soft), transparent 70%);
  pointer-events: none;
}

/* ================= 数据统计 ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  text-align: center; padding: 24px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-xs);
}
.stat .num {
  font-size: 34px; font-weight: 800;
  color: var(--prime); font-family: ui-monospace, monospace; line-height: 1.1;
}
.stat .num .suffix { font-size: 20px; color: var(--accent); }
.stat .label { color: var(--dim); font-size: 13px; margin-top: 6px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 52px 0 30px; margin-top: 84px;
  color: var(--dim); font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: var(--text); margin-bottom: 13px; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--prime); }
.footer-bottom {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--muted);
}

/* ================= 文档侧栏 ================= */
.docs-layout { display: grid; grid-template-columns: 236px 1fr; gap: 44px; margin-top: 28px; }
@media (max-width: 920px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-side { position: sticky; top: 84px; height: max-content; }
.docs-side h5 { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.docs-side a { display: block; padding: 6px 10px; color: var(--dim); border-radius: 7px; font-size: 14px; }
.docs-side a:hover, .docs-side a.active { background: var(--prime-soft); color: var(--prime-deep); }
.docs-body h2 { margin-top: 38px; padding-top: 8px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { margin-top: 26px; }
.docs-body p, .docs-body li { color: var(--text); margin: 8px 0; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body code { font-family: ui-monospace, monospace; }

/* ================= 工具类 ================= */
.text-dim { color: var(--dim); }
.text-muted { color: var(--muted); }
.text-prime { color: var(--prime); }
.text-accent { color: var(--accent-deep); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.max-w-md { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ============================================================
   动画系统（纯代码，无视频）
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.9); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .5; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(210%); } }
@keyframes growBar { from { width: 0; } to { width: var(--w, 100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes ringPing { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes wavebar { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 224, 199, .45); }
  50% { box-shadow: 0 0 0 7px rgba(34, 224, 199, 0); }
}
@keyframes scanline { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes shimmerStar { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(7px); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo), filter .9s var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; }
.reveal-d6 { transition-delay: .54s; }
.reveal-left { transform: translateX(-34px); }
.reveal-scale { transform: scale(.95); }

.floaty { animation: floaty 5.5s ease-in-out infinite; }
.floaty-2 { animation: floaty 7s ease-in-out infinite .8s; }
.spin-slow { animation: spin 14s linear infinite; }
.star { animation: shimmerStar 3.2s ease-in-out infinite; }

/* 鼠标跟随柔光（hero） */
.cursor-glow {
  position: fixed; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,135,166,.13), transparent 62%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  transition: opacity .4s ease; opacity: 0;
}
body.has-glow .cursor-glow { opacity: 1; }

/* ============================================================
   代码动画演示组件
   ============================================================ */

/* --- 序列播放 --- */
.seq .seq-item { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.seq .seq-item.on { opacity: 1; transform: none; }

/* 打字机光标 */
.type-caret::after {
  content: ""; display: inline-block;
  width: 7px; height: 14px; background: var(--ink-teal);
  margin-left: 2px; vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}
.type-caret-light::after { background: var(--prime); }

/* --- 进度条 --- */
.progress { height: 4px; border-radius: 2px; background: var(--bg-deep); overflow: hidden; position: relative; }
.progress > i {
  display: block; height: 100%; width: 0;
  background: var(--prime); border-radius: 2px;
  transition: width .75s var(--ease-expo);
}
.progress.accent > i { background: var(--accent); }
.progress.teal > i { background: var(--gold); }
.progress.dark { background: rgba(255,255,255,.10); }
.progress.dark > i { background: var(--ink-teal); }
.progress .shine {
  position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: sweep 1.6s ease-in-out infinite;
}
.progress.hide-shine .shine { display: none; }

/* --- 多思考流 --- */
.think-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 820px) { .think-grid { grid-template-columns: 1fr; } }
.think-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 13px; padding: 16px;
  transition: all .4s cubic-bezier(.22,.61,.36,1); position: relative;
}
.think-card .think-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.think-card .think-code {
  font-family: ui-monospace, monospace; font-size: 11.5px; line-height: 1.7;
  background: var(--surface-2); border-radius: 8px; padding: 10px 12px;
  color: var(--dim); min-height: 74px;
  white-space: pre-wrap; word-break: break-word;
}
.think-card .think-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; font-size: 11.5px; color: var(--muted);
  font-family: ui-monospace, monospace;
}
.think-card.active {
  border-color: var(--prime);
  box-shadow: 0 0 0 3px var(--prime-soft), var(--shadow-sm);
  transform: translateY(-3px);
}
.think-card.active .think-name { color: var(--prime); }
.think-card.gen { border-color: var(--accent); }
.think-card .tick {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--prime); color: #fff; font-size: 11px;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: all .35s cubic-bezier(.22,.61,.36,1);
}
.think-card.active .tick { opacity: 1; transform: scale(1); }

/* --- 列表飞入（知识库 / 记忆 / 步骤） --- */
.kb-list { display: flex; flex-direction: column; gap: 9px; }
.kb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  opacity: 0; transform: translateX(-16px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1);
}
.kb-row.on { opacity: 1; transform: none; }
.kb-row .kb-name { flex: 1; font-size: 13.5px; color: var(--text); }
.kb-row .kb-size { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.kb-row .kb-ok { color: var(--prime); font-size: 13px; font-weight: 700; }

.mem-list { display: flex; flex-direction: column; gap: 8px; }
.mem-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px; color: var(--dim);
  font-family: ui-monospace, monospace;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.mem-row.on { opacity: 1; transform: none; }
.mem-row .mem-scope { color: var(--accent-deep); font-weight: 700; flex-shrink: 0; }

/* --- 环形进度 --- */
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .track { stroke: var(--bg-deep); }
.ring .bar {
  stroke: var(--prime); stroke-dasharray: 264; stroke-dashoffset: 264;
  transition: stroke-dashoffset .6s cubic-bezier(.22,.61,.36,1);
}

/* --- 演示容器 --- */
.demo-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow-md);
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.demo-head h3 { font-size: 18px; }
.demo-head .demo-desc { color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.replay-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--dim); border-radius: 9px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .18s ease;
}
.replay-btn:hover { background: var(--prime-soft); color: var(--prime-deep); border-color: var(--prime-line); }
.replay-btn.spinning svg { animation: spin .7s ease; }

.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.demo-tab {
  padding: 8px 15px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--dim); font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .18s ease;
}
.demo-tab:hover { border-color: var(--prime-line); color: var(--text); }
.demo-tab.active { background: var(--prime); color: #fff; border-color: var(--prime); }
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: panelIn .6s var(--ease-expo) both; }

/* ============================================================
   桌面版真实界面复刻（任务流画布）
   ============================================================ */
.desk {
  display: grid; grid-template-columns: 196px 1fr 268px;
  background: var(--ink);
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ink-3);
  min-height: 430px;
  font-size: 12.5px;
  text-align: left;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 桌面版界面：手机上保持原始宽高比例，横向滚动查看，不压窄内容 */
.desk-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
.desk-scroll::-webkit-scrollbar { height: 7px; }
.desk-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
@media (max-width: 980px) {
  .app-window { min-width: 700px; }
  .desk { grid-template-columns: 196px 1fr 268px; min-width: 660px; }
}

.desk-side { background: rgba(255,255,255,.028); padding: 15px 12px; border-right: 1px solid var(--ink-line); }
.desk-brand { display: flex; align-items: center; gap: 9px; padding: 2px 4px 16px; }
.desk-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.desk-brand .bn { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; }
.desk-brand .bs { color: var(--ink-dim); font-size: 10.5px; letter-spacing: .3px; }
.desk-newbtn {
  width: 100%; padding: 9px; border-radius: 9px; border: none;
  background: #2ba796; color: #061a16; font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit; margin-bottom: 16px;
  transition: transform .18s ease, filter .18s ease;
}
.desk-newbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.desk-label { color: var(--ink-dim); font-size: 10.5px; letter-spacing: .8px; margin-bottom: 9px; }
.desk-work {
  padding: 7px 10px; border-radius: 8px; color: #a9b7c8; margin-bottom: 3px;
  font-size: 12.5px; transition: background .18s ease, color .18s ease;
}
.desk-work.on { background: rgba(34,224,199,.13); color: var(--ink-teal); border-left: 2px solid var(--ink-teal); }

.desk-main { padding: 16px 18px; overflow: auto; display: flex; flex-direction: column; }
.desk-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-line); margin-bottom: 14px;
}
.desk-title { color: #e8eef5; font-weight: 600; font-size: 14px; }
.desk-status { display: flex; align-items: center; gap: 6px; color: var(--ink-dim); font-size: 11px; margin-top: 3px; }
.desk-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-teal); animation: pulse 2s infinite; }
.desk-chip {
  font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--ink-dim);
  padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.05);
  border: 1px solid var(--ink-line); white-space: nowrap;
}
.desk-canvas { flex: 1; display: flex; flex-direction: column; gap: 12px; }

/* 工作流 chips（多 Agent 协作） */
.agent-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--ink-line); color: var(--ink-dim);
  background: rgba(255,255,255,.02);
  transition: all .3s ease;
}
.agent-chip .cd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.agent-chip.running { border-color: rgba(168,85,247,.6); color: #c9b6f5; background: rgba(168,85,247,.10); }
.agent-chip.running .cd { background: var(--ink-violet); animation: pulse 1s infinite; }
.agent-chip.done { border-color: rgba(34,224,199,.5); color: var(--ink-teal); background: rgba(34,224,199,.09); }

/* 思考折叠卡 */
.think-collapse {
  border: 1px dashed var(--ink-line); border-radius: 12px;
  background: rgba(255,255,255,.025); padding: 12px 14px;
}
.think-collapse .tc-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #9fb0c4; padding: 4px 10px;
  border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--ink-line);
  margin-bottom: 10px;
}
.think-collapse .tc-body { display: flex; flex-direction: column; gap: 9px; }
.tc-step { font-size: 11.5px; line-height: 1.75; opacity: 0; transform: translateY(6px); transition: all .35s ease; }
.tc-step.on { opacity: 1; transform: none; }
.tc-step .st-name { color: var(--ink-violet); font-weight: 600; }
.tc-step .st-text { color: #93a4b8; white-space: pre-wrap; padding-left: 12px; border-left: 2px solid rgba(168,85,247,.22); }

/* 问答气泡 */
.bubble-user {
  align-self: flex-end; max-width: 74%;
  background: linear-gradient(135deg, #26b3a1, var(--ink-teal));
  color: #04241f; font-weight: 500;
  padding: 9px 14px; border-radius: 13px 13px 4px 13px; font-size: 12.5px;
}
.bubble-ai {
  max-width: 88%; background: rgba(255,255,255,.045);
  border: 1px solid var(--ink-line);
  padding: 11px 14px; border-radius: 4px 13px 13px 13px;
  color: #ccd7e3; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap;
}
.bubble-ai.answer { border-color: rgba(34,224,199,.28); background: rgba(34,224,199,.05); color: #dceaf0; }
.kb-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.kb-chip {
  font-size: 10.5px; padding: 2px 9px; border-radius: 20px;
  background: rgba(34,224,199,.10); color: var(--ink-teal);
  border: 1px solid rgba(34,224,199,.24);
}
.kb-chip::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 6px; vertical-align: middle; opacity: .7; }
.desk-input {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-line);
  border-radius: 11px; padding: 9px 12px; color: var(--ink-dim); font-size: 12.5px;
}
.desk-input .send {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: #2ba796; color: #061a16; display: grid; place-items: center; font-size: 12px;
}

/* 右侧卡片 */
.desk-right { background: rgba(255,255,255,.028); padding: 15px 12px; border-left: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: 10px; }
.desk-card {
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-line);
  border-radius: 11px; padding: 11px 12px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.desk-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.desk-card h5 {
  display: flex; align-items: center; gap: 7px;
  color: #dbe4ee; font-size: 12px; font-weight: 600; margin-bottom: 9px;
}
.desk-card h5 .ic { color: var(--ink-teal); }
.desk-card h5.violet .ic { color: var(--ink-violet); }
.desk-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 2.5px 0; }
.desk-kv .k { color: var(--ink-dim); }
.desk-kv .v { color: #b9c6d6; font-family: ui-monospace, monospace; text-align: right; }
.desk-kv .v.ok { color: var(--ink-teal); }
.desk-kv .v.warn { color: var(--ink-gold); }

/* 波形（AI 正在输出） */
.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; vertical-align: middle; }
.wave span {
  width: 2px; height: 30%; border-radius: 1px; background: currentColor;
  animation: wavebar .9s ease-in-out infinite;
}
.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: .12s; }
.wave span:nth-child(3) { animation-delay: .24s; }
.wave span:nth-child(4) { animation-delay: .36s; }
.wave span:nth-child(5) { animation-delay: .48s; }

/* desk 演示初始态（由 JS 控制显隐） */
[data-dk="user"] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
[data-dk="user"].on { opacity: 1; transform: none; }
[data-dk="wave"] { opacity: 0; transition: opacity .3s ease; }
.app-window > .desk { border: none; border-radius: 0; }

/* ============================================================
   BM25 检索动画
   ============================================================ */
.bm25 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bm25-query {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 10px 14px; font-family: ui-monospace, monospace; font-size: 13px;
}
.bm25-query .q { color: var(--text); font-weight: 600; }
.bm25-doc {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: var(--surface); font-size: 13px; color: var(--dim);
  transition: all .4s cubic-bezier(.22,.61,.36,1);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.bm25-doc .txt { flex: 1; line-height: 1.8; }
.bm25-doc mark {
  background: transparent; color: var(--dim); border-radius: 3px;
  padding: 0 2px; transition: all .35s ease;
}
.bm25-doc.hit mark { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.bm25-doc.hit { border-color: var(--accent); background: #fffaf0; }
.bm25-doc.top { border-color: var(--prime); box-shadow: 0 0 0 3px var(--prime-soft); }
.bm25-doc .score {
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted);
  flex-shrink: 0; opacity: 0; transition: opacity .35s ease;
}
.bm25-doc.hit .score { opacity: 1; }
.bm25-doc.top .score { color: var(--prime); font-weight: 700; }

/* ============================================================
   记忆注入动画
   ============================================================ */
.mem-board { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 10px; align-items: center; }
@media (max-width: 820px) { .mem-board { grid-template-columns: 1fr; } }
.mem-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; min-height: 168px;
}
.mem-panel h5 { font-size: 12px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 10px; }
.mem-item {
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--dim);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; margin-bottom: 6px;
  opacity: 0; transform: translateX(-14px);
  transition: all .45s cubic-bezier(.22,.61,.36,1);
}
.mem-item.on { opacity: 1; transform: none; }
.mem-item.fly { border-color: var(--prime); background: var(--prime-soft); color: var(--prime-deep); }
.mem-arrow { display: grid; place-items: center; color: var(--accent); font-size: 20px; }
.mem-arrow i { animation: floaty 2.4s ease-in-out infinite; font-style: normal; }
.mem-prompt {
  font-family: ui-monospace, monospace; font-size: 12px; color: var(--prime-deep);
  background: var(--surface-2); border: 1px solid var(--prime-line);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
  opacity: 0; transform: translateY(8px);
  transition: all .45s cubic-bezier(.22,.61,.36,1);
}
.mem-prompt.on { opacity: 1; transform: none; }

/* ============================================================
   产品图展示框（截图位）
   ============================================================ */
.shot-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-frame:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(16,52,68,.18); }
.shot-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(11,14,23,.82); color: #dbe4ee;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600;
}
.shot-badge b { color: var(--ink-teal); }

/* 桌面版页的界面框（带标题栏） */
.app-window {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--ink-3); box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.app-window .aw-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
  color: var(--ink-dim); font-size: 11.5px;
}
.app-window .aw-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-window .aw-bar .d1 { background: #e8756a; }
.app-window .aw-bar .d2 { background: #dcb15f; }
.app-window .aw-bar .d3 { background: #7fb787; }
.app-window .aw-bar .t { margin-left: 6px; font-family: ui-monospace, monospace; }

/* ============================================================
   移动端 / 小屏
   ============================================================ */
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px; display: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { text-align: center; }
  .menu-toggle { display: grid; place-items: center; }
  .section { padding: 60px 0; }
  .think-grid { grid-template-columns: 1fr; }
}

/* 真实二维码图（微信等） */
.qr-frame {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.qr-img { width: 100%; max-width: 248px; height: auto; border-radius: 8px; display: block; }

/* ================= 社群二维码卡片 ================= */
.qr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-md);
  text-align: center;
}
.qr-card .qr-title { font-weight: 700; font-size: 17px; color: var(--text); margin-top: 4px; }
.qr-card .qr-sub { font-size: 13px; color: var(--dim); margin-top: 4px; }
.qr-card .qr-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.65; }

/* ============================================================
   无障碍：尊重系统减弱动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   手机适配增强（≤820px）
   ============================================================ */
@media (max-width: 820px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 40px 0; }
  .hero { padding: 60px 0 40px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 140px; }
  .hero-tag { font-size: 12px; }

  .card { padding: 22px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-4 .card { padding: 18px; }
  .grid-4 .card-icon { width: 40px; height: 40px; }

  .demo-wrap { padding: 18px; }
  .demo-tabs { gap: 4px; }
  .demo-tab { padding: 7px 12px; font-size: 13px; }

  /* 对比表：窄屏可横滑，避免被裁切看不到关键列 */
  .tbl { display: block; width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { white-space: nowrap; }

  /* 桌面版界面：窄屏缩小最小宽度，横滑查看完整界面 */
  .desk { min-width: 600px; font-size: 13px; }
  .app-window { min-width: 640px; }
  .desk-scroll { padding-bottom: 12px; }

  .cta-banner { padding: 38px 20px; }
  .shot-badge { left: 12px; bottom: 12px; font-size: 11.5px; padding: 6px 11px; }
  .footer { padding: 40px 0 24px; margin-top: 56px; }
  .footer-bottom { font-size: 12px; }
  .stats { gap: 12px; }

  /* 仅手机显示：提示桌面界面可横滑 */
  .scroll-hint { display: block; }
}
.scroll-hint { display: none; text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; letter-spacing: .04em; }

/* 首页 Hero 社群入口 —— 与全站青蓝风格统一，克制不花哨 */
.hero-community {
  margin: 26px auto 0;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.hero-community:hover {
  border-color: var(--prime-line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.hero-community .hc-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--prime-soft);
  border: 1px solid var(--prime-line);
  color: var(--prime);
}
.hero-community .hc-icon svg { width: 20px; height: 20px; }
.hero-community .hc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero-community .hc-title { font-weight: 600; font-size: 15px; color: var(--text); }
.hero-community .hc-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-community .hc-cta {
  flex: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--prime);
  transition: transform .2s var(--ease-out);
}
.hero-community:hover .hc-cta { transform: translateX(3px); }

@media (max-width: 560px) {
  .hero-community { flex-wrap: wrap; gap: 12px; padding: 15px 16px; }
  .hero-community .hc-body { flex: 1 1 calc(100% - 55px); }
  .hero-community .hc-cta { flex: 1 1 100%; padding-left: 55px; }
}
