/* iguos 门户样式。颜色、字号、间距只用下面的设计令牌，组件里不写死色值。
   主题：<html data-theme="light|dark"> 为访客手动选择；没有该属性时跟随系统。 */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --fg: #16181d;
  --fg-muted: #5b606b;
  --fg-faint: #8a8f99;
  --line: #e4e1da;
  --accent: #5b4bdb;
  --accent-2: #0f9d8a;
  --accent-fg: #ffffff;
  --accent-soft: rgba(91, 75, 219, 0.1);
  --code-bg: #15171c;
  --code-fg: #e6e7ea;
  --code-key: #9d93ff;
  --code-str: #5fd3bf;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 12px 32px -12px rgba(22, 24, 29, 0.14);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 间距：全站区块统一用这几档，窄屏在下面的媒体查询里整体收小。 */
  --sp-section: 56px;   /* 区块上下边距 */
  --sp-head: 32px;      /* 区块标题到内容 */
  --sp-item: 36px;      /* 区块内的条目、小节之间 */

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --gutter: 24px;

  color-scheme: light;
}

/* 日文、繁体、韩文用各自的字体：同一个汉字各地字形不同，用简体字体排日文、繁体会显得别扭；韩文要用带韩文字形的字体。 */
:root:lang(ja) {
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root:lang(zh-TW) {
  --font: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root:lang(ko) {
  --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 深色令牌：手动选了深色，或没手动选、系统是深色。两处声明保持一致。 */
:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #141821;
  --surface-2: #1a1f2a;
  --fg: #eceef2;
  --fg-muted: #a3a9b5;
  --fg-faint: #6f7684;
  --line: #242a36;
  --accent: #8b7fff;
  --accent-2: #3ccfb8;
  --accent-fg: #0b0d12;
  --accent-soft: rgba(139, 127, 255, 0.14);
  --code-bg: #0e1117;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --bg-alt: #10131a;
    --surface: #141821;
    --surface-2: #1a1f2a;
    --fg: #eceef2;
    --fg-muted: #a3a9b5;
    --fg-faint: #6f7684;
    --line: #242a36;
    --accent: #8b7fff;
    --accent-2: #3ccfb8;
    --accent-fg: #0b0d12;
    --accent-soft: rgba(139, 127, 255, 0.14);
    --code-bg: #0e1117;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }

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

/* ── 导航 ─────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 5px; min-width: 0; }
/* 标志：图标就是「i」，紧跟文字组成 i果思 / iGuos；旁边一行小字解释含义。 */
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-word { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.brand-tagline { font-size: 13px; font-weight: 500; color: var(--fg-faint); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 28px; margin-right: auto; font-size: 15px; color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.icon-btn:hover { color: var(--fg); background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 语言菜单：按钮下方的列表，当前语言加粗、前面打勾（和 Vibe Mind 网页的语言菜单一样）；
   每一项前面都留出勾的位置，名字才对得齐。只用描边，不用阴影。 */
.lang-menu { position: relative; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 132px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-radius: 6px; color: var(--fg-muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.lang-list a::before { content: ""; flex: none; width: 14px; height: 14px; }
.lang-list a:hover { color: var(--fg); background: var(--surface-2); }
.lang-list a[aria-current="true"] { color: var(--fg); font-weight: 600; }
.lang-list a[aria-current="true"]::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 主题按钮：浅色时显示月亮（点了变深色），深色时显示太阳。 */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* ── 按钮 ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--fg-faint); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── 首屏 ─────────────────────────────── */
.hero { padding: 72px 0 var(--sp-section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { display: block; }
/* 英文标题按单词换行，字号略小，避免折成多行。 */
:lang(en) .hero h1 { font-size: clamp(24px, 4.2vw, 48px); }
.lead { margin-top: 24px; font-size: 17px; color: var(--fg-muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-center { justify-content: center; }

/* 首屏右侧示意：一台电脑上记下的经验，换一台电脑、换一个 Agent 仍能读到 */
.sync-demo { margin: 0; display: flex; flex-direction: column; }
.sync-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sync-device { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--fg-faint); }
.sync-device svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sync-card p { font-size: 15px; line-height: 1.65; }
.sync-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
}
.sync-tag-read { color: var(--accent); background: var(--accent-soft); }
.sync-link { align-self: center; width: 2px; height: 26px; background: linear-gradient(var(--accent-2), var(--accent)); opacity: 0.55; }
.sync-hub {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}
.sync-hub img { width: 28px; height: 28px; border-radius: 7px; }
.sync-hub-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.sync-hub-path { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); line-height: 1.4; }

/* ── 通用区块 ─────────────────────────── */
.section { padding: var(--sp-section) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: var(--sp-head); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.section-lead { margin-top: 16px; font-size: 17px; color: var(--fg-muted); }

/* ── 产品功能 ─────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--fg-muted); }

/* ── 接入方式 ─────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.how-grid .section-head { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 18px; }
.step-no {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-fg);
  background: var(--accent);
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--fg-muted); font-size: 15px; }

.code-card { margin: 0; border-radius: var(--radius); background: var(--code-bg); box-shadow: var(--shadow); overflow: hidden; }
.code-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: #8a8f99;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.copy-btn {
  font: inherit;
  font-family: var(--font);
  font-size: 13px;
  color: var(--code-fg);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.code-card pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
/* 成段的文字（如 CLAUDE.md 片段）自动换行，不用左右滚动；命令和配置仍保持原样不折行。 */
.code-card pre.wrap, .code-card pre.wrap code { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-card code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--code-fg); }
.code-card .k { color: var(--code-key); }
.code-card .s { color: var(--code-str); }

/* ── 当前页导航高亮 ───────────────────── */
[data-page="vibe-mind"] .nav-links a[data-nav="vibe-mind"],
[data-page="use-cases"] .nav-links a[data-nav="use-cases"],
[data-page="security"] .nav-links a[data-nav="security"],
[data-page="faq"] .nav-links a[data-nav="faq"],
[data-page="about"] .nav-links a[data-nav="about"] { color: var(--fg); font-weight: 600; }

/* 手机菜单：窄屏时导航收进菜单按钮，展开成导航栏下方的整宽面板。 */
.menu-toggle { display: none; }
.nav-links-enter { display: none; }

/* ── 子页面首屏 ───────────────────────── */
/* 子页面首屏：铺满整宽的标题栏（浅底色 + 底部分隔线），不论导语长短，每页第一屏的范围都一致。 */
.page-hero { padding: 56px 0 48px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
/* 首屏左边标题与导语，右边「本页内容」目录卡片：每个子页面第一屏结构一致，也能一步跳到想看的部分。 */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; min-height: 312px; }
/* 子页面首屏右侧示意图：沿用首页同步示意的卡片、标签、连接线风格。 */
.viz { margin: 0; display: flex; flex-direction: column; }
.viz-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.viz-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--fg-faint); }
.viz svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viz-calls { list-style: none; margin: 0; padding: 0; }
.viz-calls li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.viz-calls li:first-child { border-top: 0; padding-top: 0; }
.viz-calls code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-2); }
.viz-calls span { font-size: 14px; color: var(--fg-muted); }
.viz-checks li { font-size: 14.5px; color: var(--fg); }
.viz-token { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-muted); }
.viz-kv { margin: 0; }
.viz-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.viz-kv div:first-child { border-top: 0; padding-top: 0; }
.viz-kv dt { color: var(--fg-faint); }
.viz-kv dd { margin: 0; color: var(--fg); text-align: right; }
.viz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.viz-tags .sync-tag { margin: 0; }
.viz-hub { margin: 0 auto; }
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viz-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-muted);
}
.viz-chip svg { color: var(--accent); }
.viz-chat { gap: 10px; }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; box-shadow: var(--shadow); }
.bubble-q { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--surface); }
.bubble-a { align-self: flex-end; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-bottom-right-radius: 4px; background: var(--accent-soft); }
.viz-step { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.viz-step svg { width: 22px; height: 22px; color: var(--accent); }
.viz-step-fruit svg { color: var(--accent-2); }
.viz-step-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.viz-step-text { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.page-hero .lead { max-width: 46em; }

/* ── 通用卡片、列表、分栏 ─────────────── */
.section-tight { padding: var(--sp-section) 0; }
.more-link { margin-top: 24px; font-size: 15px; font-weight: 600; }
.more-link a { color: var(--accent); }
.more-link a:hover { text-decoration: underline; }

.card-grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--fg-muted); }
.card .step-no { margin-bottom: 18px; }
.card-link { display: block; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 24px; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--fg-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.note-line { margin-top: var(--sp-item); font-size: 15px; color: var(--fg-muted); }
.note-line a { color: var(--accent); font-weight: 600; }
.note-line a:hover { text-decoration: underline; }

/* 首页「安全与隐私」简介 */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ── 产品页 ───────────────────────────── */
.code-card .plain { white-space: pre; }
.tree pre { padding: 24px 26px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tools { width: 100%; border-collapse: collapse; font-size: 15px; }
.tools th, .tools td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tools tr:last-child td { border-bottom: 0; }
.tools th { font-size: 13px; font-weight: 700; color: var(--fg-faint); background: var(--surface-2); }
.tools td:first-child { white-space: nowrap; }
.tools td:last-child { color: var(--fg-muted); }
.tools code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── 使用场景 ─────────────────────────── */
.scenes { display: flex; flex-direction: column; }
.scene { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: var(--sp-item) 0; border-top: 1px solid var(--line); }
.scene:last-child { padding-bottom: 0; }
.scene-no { font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.scene h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin-bottom: 20px; }
.scene-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scene-cols > div { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.scene-cols > div:last-child { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.scene-cols h3 { font-size: 13px; font-weight: 700; color: var(--fg-faint); margin-bottom: 8px; }
.scene-cols > div:last-child h3 { color: var(--accent); }
.scene-cols p { font-size: 15.5px; color: var(--fg-muted); }

/* ── 安全与隐私页 ─────────────────────── */
.sec-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sec-group { padding: 30px 30px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sec-group h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

/* ── 常见问题 ─────────────────────────── */
.faq-group { font-size: 20px; font-weight: 800; margin: var(--sp-item) 0 16px; }
.faq-group:first-child { margin-top: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 24px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 28px 20px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--fg-faint);
  border-bottom: 2px solid var(--fg-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--fg-muted); font-size: 15px; }

/* ── 关于 ─────────────────────────────── */
/* 与导航栏同样的组合：图标即「i」，紧跟「果思」/「guos」，只是放大。 */
.about-lockup { display: inline-flex; align-items: center; gap: 8px; }
.about-mark { width: 1em; height: 1em; border-radius: 0.26em; box-shadow: var(--shadow); }
.about-tagline { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--accent); }
/* 内容区宽度全站统一（.wrap）；长段落单行限宽，避免一行太长难读。 */
.prose p, .prose ul, .guide-body > p { max-width: 52em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin: var(--sp-item) 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; color: var(--fg-muted); margin-bottom: 14px; }

/* ── 接入指南 ─────────────────────────── */
.guide-step { display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding: var(--sp-item) 0; border-top: 1px solid var(--line); }
.guide-step:first-child { padding-top: 0; border-top: 0; }
.guide-body { min-width: 0; }
.guide-body h2 { font-size: 22px; font-weight: 800; margin: 2px 0 10px; }
.guide-body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.guide-body p { font-size: 15.5px; color: var(--fg-muted); margin-bottom: 12px; }
.guide-body .check-list { margin-top: 4px; }
.guide-body .check-list + p { margin-top: 20px; }
.guide-body .code-card { margin: 4px 0 16px; }
.inline-code {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--fg);
  word-break: break-all;
}

/* ── 服务条款 / 隐私政策 ─────────────────── */
.legal-date { margin-top: 14px; font-size: 14px; color: var(--fg-faint); }
.legal p { font-size: 16px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; font-size: 16px; color: var(--fg-muted); }
.legal strong { color: var(--fg); }

/* ── 404 ──────────────────────────────── */
.not-found { padding: 80px 0 96px; text-align: center; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.nf-code {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }

/* ── 行动区 ───────────────────────────── */
.cta-section { padding: 0 0 var(--sp-section); }
.section-alt + .cta-section { padding-top: var(--sp-section); }
.cta-box {
  text-align: center;
  padding: 72px 24px;
  border-radius: 24px;
  background:
    radial-gradient(60% 120% at 20% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(60% 120% at 80% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-box p { margin-top: 14px; color: var(--fg-muted); font-size: 17px; }

/* ── 页脚 ─────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; color: var(--fg-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 22em; color: var(--fg-faint); }
.footer-brand .brand-word { font-size: 19px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.footer-col a:hover { color: var(--fg); }
.footer-copy { margin-top: var(--sp-item); padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 13px; text-align: center; }
.footer-icp { display: inline-block; margin-left: 12px; color: inherit; white-space: nowrap; }
.footer-icp:hover { color: var(--fg-muted); }

/* ── 窄屏 ─────────────────────────────── */
/* 产品页「三块记忆」卡片里的例子、支持的 Agent */
.quote-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.quote-list li { font-size: 14px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.agent-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.agent-chips li { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }
.agent-chips li.more { font-weight: 400; color: var(--fg-muted); }

@media (max-width: 1180px) {
  .brand-tagline { display: none; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-links a + a { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --sp-section: 48px; --sp-head: 28px; --sp-item: 32px; }
  .hero { padding-top: 56px; }
  .hero-grid, .how-grid, .split, .trust { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 44px 0 36px; }
  .page-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .viz { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .card-grid-2, .card-grid-3, .sec-groups, .scene-cols { grid-template-columns: 1fr; }
  .scene { grid-template-columns: 1fr; gap: 12px; }
  .scene-no { font-size: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --sp-section: 40px; --sp-head: 24px; --sp-item: 28px; }
  .hero { padding-top: 40px; }
  .page-hero { padding: 36px 0 28px; }
  .not-found { padding: 56px 0 72px; }
  .nav-inner { gap: 12px; }
  .nav-actions { gap: 4px; }
  .lang-toggle span { display: none; }
  .features { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .cta-box { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tools th, .tools td { padding: 14px 16px; }
  .guide-step { grid-template-columns: 28px 1fr; gap: 14px; }
}

/* 很窄时「进入 Vibe Mind」收进菜单，导航栏只留图标按钮。 */
@media (max-width: 480px) {
  .nav-enter { display: none; }
  .nav-links .nav-links-enter { display: block; color: var(--accent); font-weight: 700; }
}

@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .brand-word { font-size: 19px; }
  .icon-btn { min-width: 32px; padding: 0 6px; }
}

/* ── 动态效果 ───────────────────────────
   只动 opacity / transform（不触发重排）；系统开启「减少动态效果」时全部关闭（见文末）。 */

/* 滚动进场：.reveal 由 main.js 加上（没有脚本时内容照常直接显示），进入视口后加 .is-visible。 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 示意图：页面打开时按顺序出现。 */
@keyframes viz-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sync-demo > *, .viz > * { animation: viz-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sync-demo > :nth-child(1), .viz > :nth-child(1) { animation-delay: 0.15s; }
.sync-demo > :nth-child(2), .viz > :nth-child(2) { animation-delay: 0.35s; }
.sync-demo > :nth-child(3), .viz > :nth-child(3) { animation-delay: 0.55s; }
.sync-demo > :nth-child(4), .viz > :nth-child(4) { animation-delay: 0.75s; }
.sync-demo > :nth-child(5), .viz > :nth-child(5) { animation-delay: 0.95s; }
/* 卡片里的列表（Agent 调用、接入进度、要点、令牌信息）逐行出现。 */
.viz-calls li, .viz-checks li, .viz-kv > div, .viz-grid > * { animation: viz-in 0.45s ease both; }
.viz-calls li:nth-child(1), .viz-checks li:nth-child(1), .viz-kv > div:nth-child(1), .viz-grid > :nth-child(1) { animation-delay: 0.45s; }
.viz-calls li:nth-child(2), .viz-checks li:nth-child(2), .viz-kv > div:nth-child(2), .viz-grid > :nth-child(2) { animation-delay: 0.75s; }
.viz-calls li:nth-child(3), .viz-checks li:nth-child(3), .viz-kv > div:nth-child(3), .viz-grid > :nth-child(3) { animation-delay: 1.05s; }
.viz-calls li:nth-child(4), .viz-checks li:nth-child(4), .viz-kv > div:nth-child(4), .viz-grid > :nth-child(4) { animation-delay: 1.35s; }
/* 打勾：勾号在该行出现后再「画」出来。 */
@keyframes tick-in { from { opacity: 0; transform: rotate(45deg) scale(0.4); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
.viz-checks li::after { animation: tick-in 0.3s ease both; animation-delay: inherit; }

/* 连接线上流动的光点：表示经验在设备与云端之间同步。 */
.sync-link { position: relative; overflow: visible; }
@keyframes flow-down { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
.sync-link::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: flow-down 1.8s ease-in-out infinite;
  animation-delay: 1.2s;
  opacity: 0;
}

/* 云端节点：轻微的呼吸光圈。 */
@keyframes hub-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
/* 云端节点的出场、呼吸光圈与流光边框动画统一写在下面「科技感」一节。 */

/* ── 科技感 ─────────────────────────────
   首屏点阵 + 漂移光晕、渐变文字与按钮、流光边框、状态点与光标。全部只用 CSS，颜色取自设计令牌。 */

/* 首屏背景：细点阵网格（边缘渐隐）+ 两团缓慢漂移的光晕 */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before, .cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 16%, transparent) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 85% at 72% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 85% at 72% 45%, #000 20%, transparent 72%);
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 140%;
  background:
    radial-gradient(closest-side at 35% 45%, color-mix(in srgb, var(--accent) 24%, transparent), transparent),
    radial-gradient(closest-side at 70% 65%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent);
  filter: blur(10px);
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.hero, .page-hero { overflow: hidden; }
@keyframes orb-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.cta-box { position: relative; isolation: isolate; overflow: hidden; }
.cta-box::before { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 50% 50%, #000 10%, transparent 70%); }

/* 渐变文字：首页主标题第二行 */
.hero h1 span:last-child {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 主按钮：渐变 + 悬停光晕 */
.btn-primary {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--accent-2)));
  box-shadow: 0 8px 28px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* 首屏小标题前的状态点：像在线指示灯一样脉冲 */
@keyframes status-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-2) 0%, transparent); } }
.hero .eyebrow::before, .page-hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--accent-2);
  animation: status-ping 2s ease-out infinite;
}

/* 流光边框：一道光沿示意图主卡片、云端节点的边缘缓慢转动（浏览器不支持 @property 时就是普通边框） */
@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes glow-spin { to { --glow-angle: 360deg; } }
.viz > .viz-card:first-child, .sync-demo > .sync-card:first-child {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--glow-angle), var(--line) 0deg, var(--line) 200deg, var(--accent) 260deg, var(--accent-2) 300deg, var(--line) 340deg) border-box;
  animation: viz-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both, glow-spin 6s linear infinite;
}
.sync-hub {
  border-color: transparent;
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--glow-angle), color-mix(in srgb, var(--accent) 35%, var(--line)) 0deg 220deg, var(--accent) 280deg, var(--accent-2) 320deg, color-mix(in srgb, var(--accent) 35%, var(--line)) 360deg) border-box;
  animation: viz-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both, hub-glow 2.8s ease-in-out 1.2s infinite, glow-spin 5s linear infinite;
}
.sync-demo > .sync-hub { animation-delay: 0.55s, 1.2s, 0s; }

/* Agent 会话：最后一行末尾闪烁的光标，像正在输出 */
@keyframes caret-blink { 50% { opacity: 0; } }
.viz-calls li:last-child span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent-2);
  animation: caret-blink 1s steps(1) infinite;
}

/* 功能图标底色带一点渐变 */
.feature-icon { background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 14%, transparent)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link, .reveal { transition: none; }
  .btn:hover, .card-link:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; }
}
