/* ============================================================
   GenericAgent · Homepage
   AI / 未来科技风格 · 暗色优先 · 全面响应式
   ============================================================ */

:root {
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaecf6;
  --text-soft: #c2c7da;
  --muted: #8a90a8;
  --violet: #7c6cff;
  --blue: #4f8cff;
  --cyan: #22d3ee;
  --pink: #f06cc9;
  --ok: #34d27b;
  --grad: linear-gradient(120deg, #7c6cff 0%, #4f8cff 50%, #22d3ee 100%);
  --grad-2: linear-gradient(120deg, #22d3ee, #7c6cff);
  --glow: 0 0 0 1px rgba(124, 108, 255, 0.18), 0 18px 60px rgba(79, 140, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --nav-h: 66px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #eaeef9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.92);
  --border: rgba(20, 30, 70, 0.10);
  --border-strong: rgba(20, 30, 70, 0.18);
  --text: #141a2e;
  --text-soft: #38405c;
  --muted: #6b7290;
  --glow: 0 0 0 1px rgba(124, 108, 255, 0.14), 0 18px 50px rgba(79, 140, 255, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-text-2 {
  background: var(--grad-2); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-weight: 700;
}

/* ---------------- 动态背景 ---------------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-1 { width: 540px; height: 540px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(124,108,255,.55), transparent 70%); animation: drift1 22s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; top: 10%; right: -180px;
  background: radial-gradient(circle, rgba(34,211,238,.40), transparent 70%); animation: drift2 26s ease-in-out infinite; }
.orb-3 { width: 520px; height: 520px; bottom: -160px; left: 30%;
  background: radial-gradient(circle, rgba(79,140,255,.42), transparent 70%); animation: drift3 30s ease-in-out infinite; }
[data-theme="light"] .orb { opacity: .35; }

@keyframes drift1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-70px, 50px) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(40px, -60px) scale(1.12); } }

.grid-plane {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(124,108,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,108,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
}
[data-theme="light"] .grid-plane {
  background-image:
    linear-gradient(rgba(60,80,160,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,80,160,.07) 1px, transparent 1px);
}
.scanline { position: absolute; inset: 0; background:
  repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.012) 3px 4px); }
[data-theme="light"] .scanline { display: none; }

/* ---------------- 通用容器 ---------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: none; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.30);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 108, 255, 0.45); filter: brightness(1.05); }
.primary-btn:active { transform: translateY(0); }
.primary-btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.primary-btn.block { width: 100%; margin-top: 6px; }
.primary-btn .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, transform .12s;
}
.ghost-btn:hover { border-color: var(--violet); transform: translateY(-2px); }
.ghost-btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.ghost-btn .ic { color: var(--cyan); }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h); padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--border);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--grad);
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.4);
}
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 16px; letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-links > a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--text-soft); transition: color .15s, background .15s;
}
.nav-links > a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .only-in-menu { display: none; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .ghost-btn { height: 40px; padding: 0 14px; font-size: 14px; }
.nav-right .ghost-btn .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; color: var(--text-soft); }
.nav-launch { height: 40px; padding: 0 16px; font-size: 14px; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong);
  background: var(--surface); border-radius: 11px; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- 区块通用 ---------------- */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(32px, 4.5vw, 60px) clamp(16px, 4vw, 40px); }
.section.alt { position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(18px, 2.5vw, 28px); }
/* 架构标题较长，放宽容器避免中文标题被挤换行 */
#architecture .section-head { max-width: 960px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.16; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.section-head p { font-size: clamp(15px, 2vw, 17px); color: var(--muted); margin: 0; }

/* ---------------- Hero ---------------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + clamp(20px, 4vw, 43px)) clamp(16px, 4vw, 40px) clamp(20px, 3vw, 35px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* 关键：允许网格列收缩到视口宽度，避免终端内长 URL 撑破布局造成横向溢出 */
.hero-copy, .hero-visual { min-width: 0; }
.terminal { max-width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 24%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero-title { font-size: clamp(34px, 6.2vw, 66px); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 850; margin: 0 0 20px; }
.hero-sub { font-size: clamp(15.5px, 2.1vw, 18.5px); color: var(--text-soft); max-width: 560px; margin: 0 0 30px; }
.hero-sub b { color: var(--text); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-badge { font-size: 13px; font-weight: 600; color: var(--text-soft);
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, color .2s, transform .12s; }
.mini-badge:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }

/* Hero 视觉 */
.hero-visual { position: relative; }
.terminal { overflow: hidden; box-shadow: var(--glow); }
.term-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.term-title { margin-left: 8px; font-size: 12.5px; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term-body { margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.8; color: var(--text-soft); }
.c-com { color: var(--muted); }
.c-prompt { color: var(--cyan); font-weight: 700; }
.c-cmd { color: var(--text); }
.c-ok { color: var(--ok); font-weight: 700; }
.c-dim { color: var(--muted); }
.blink { animation: blink 1.05s steps(2, start) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

.mem-card { position: absolute; right: -8px; bottom: -34px; width: 210px; padding: 14px 16px;
  box-shadow: var(--glow); }
.mem-title { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: .04em; margin-bottom: 10px; }
.mem-layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mem-layers li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-soft); }
.mem-layers .lv { font-size: 11px; font-weight: 800; color: #fff; background: var(--grad);
  padding: 1px 7px; border-radius: 6px; flex: none; }
.float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* 数据指标 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(48px, 7vw, 80px); }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 850; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* Hero 内的快速开始（替换原数据指标位） */
.hero-start { margin-top: clamp(40px, 6vw, 72px); }
.start-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px auto 0; }

/* ---------------- 特性 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.feature-card { position: relative; padding: 28px 26px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(124,108,255,.16), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--glow); }
.feature-card:hover::before { opacity: 1; }
.feature-card.accent { border-color: color-mix(in srgb, var(--cyan) 32%, transparent); }
.fc-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 750; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.feature-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--text-soft); }

/* ---------------- 架构 ---------------- */
.arch-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(16px, 2.5vw, 24px); margin-bottom: 22px; }
.arch-loop, .arch-tools { padding: 28px 26px; }
.arch-loop h3, .arch-tools h3 { margin: 0 0 18px; font-size: 18px; font-weight: 750; }
.arch-note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }
.arch-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* 执行循环环形 */
.loop-ring { position: relative; width: 220px; height: 220px; margin: 6px auto 4px; }
.loop-ring::before { content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1.5px dashed var(--border-strong); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop-core { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 850; color: #fff;
  background: var(--grad); box-shadow: 0 0 40px rgba(124,108,255,.5); line-height: 1; }
.loop-core small { font-size: 12px; font-weight: 600; opacity: .85; }
.loop-node { position: absolute; font-size: 12.5px; font-weight: 700; color: var(--text);
  padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.loop-node.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.loop-node.n2 { right: -6px; top: 50%; transform: translateY(-50%); }
.loop-node.n3 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.loop-node.n4 { left: -10px; top: 50%; transform: translateY(-50%); }

/* 工具列表 */
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft);
  padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.tool code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
  color: var(--cyan); font-weight: 600; }
.tool.mem { grid-column: span 2; }
.tool.mem code { color: var(--violet); }

/* 分层记忆表 */
.mem-table { overflow: hidden; }
.mt-row { display: grid; grid-template-columns: 64px 160px 1fr; gap: 12px; padding: 13px 22px;
  border-top: 1px solid var(--border); font-size: 14.5px; align-items: center; }
.mt-row:first-child { border-top: none; }
.mt-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-2); }
.lv-tag { font-size: 12px; font-weight: 800; color: #fff; background: var(--grad);
  padding: 2px 9px; border-radius: 7px; text-align: center; width: max-content; }
.mt-row > span:nth-child(2) { font-weight: 650; }
.mt-row > span:nth-child(3) { color: var(--muted); }

/* ---------------- 进化流程 ---------------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.flow-step { flex: 1 1 180px; max-width: 230px; padding: 20px 18px; text-align: center; }
.flow-step .fs-i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; font-weight: 800;
  color: var(--cyan); margin-bottom: 10px; }
.flow-step b { display: block; font-size: 15.5px; }
.flow-step small { color: var(--muted); font-size: 12.5px; }
.flow-step.accent { border-color: color-mix(in srgb, var(--cyan) 40%, transparent); box-shadow: var(--glow); }
.flow-step.accent .fs-i { background: var(--grad); color: #fff; }
.flow-arrow { display: grid; place-items: center; color: var(--violet); font-size: 22px; font-weight: 800; }

.evo-table { overflow: hidden; }
.et-row { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 14px; padding: 14px 22px;
  border-top: 1px solid var(--border); font-size: 14px; align-items: center; }
.et-row:first-child { border-top: none; }
.et-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); }
.et-row > span:first-child { font-weight: 650; color: var(--text); }
.et-row > span:nth-child(2) { color: var(--muted); }
.et-ok { color: var(--ok); font-weight: 700; }
.evo-foot { text-align: center; color: var(--text-soft); font-size: 15px; margin: 26px auto 0; max-width: 720px; }

/* ---------------- 实例展示 ---------------- */
.show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 20px); }
.show-card { overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.show-card:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: var(--border-strong); }
.show-card.wide { grid-column: span 2; }
.show-media { background: #000; overflow: hidden; aspect-ratio: 16 / 10; }
.show-card.wide .show-media { aspect-ratio: 21 / 9; }
.show-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card figcaption { padding: 16px 18px; }
.show-card figcaption b { display: block; font-size: 16px; margin-bottom: 5px; }
.show-card figcaption span { font-size: 13.5px; color: var(--muted); }

/* ---------------- 对比表 ---------------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cmp th.hl, .cmp td.hl { background: color-mix(in srgb, var(--violet) 12%, transparent); }
.cmp thead th.hl { color: var(--text); font-weight: 800; text-transform: none; font-size: 16px;
  background: color-mix(in srgb, var(--violet) 20%, transparent); }
.cmp td.hl { font-weight: 700; color: var(--text); }
.cmp td:first-child { color: var(--text-soft); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover td { background: var(--surface-2); }
.cmp tbody tr:hover td.hl { background: color-mix(in srgb, var(--violet) 18%, transparent); }

/* ---------------- 评测 ---------------- */
.eval-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(18px, 3vw, 30px); align-items: start; }
.eval-figs { display: grid; gap: 16px; }
.eval-figs figure { margin: 0; padding: 12px; overflow: hidden; }
.eval-figs img { width: 100%; border-radius: 10px; display: block; }
.eval-figs figcaption { font-size: 12.5px; color: var(--muted); padding: 10px 4px 2px; }
.eval-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.eval-list li { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.el-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--grad); }
.eval-list b { font-size: 15px; }
.eval-list p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------- 快速开始 ---------------- */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 24px); }
.start-card { position: relative; padding: 28px 26px; min-width: 0; }
.cmd-box, .cmd-box pre { max-width: 100%; }
.sc-tag { position: absolute; top: 22px; right: 24px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: var(--grad); padding: 3px 11px; border-radius: 999px; }
.sc-tag.dev { background: var(--surface-2); color: var(--cyan); border: 1px solid var(--border-strong); }
.start-card h3 { font-size: 21px; margin: 0 0 6px; font-weight: 800; }
.sc-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.cmd-box { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(0,0,0,.28); margin-bottom: 14px; }
[data-theme="light"] .cmd-box { background: rgba(10,14,30,.04); }
.cmd-box-head { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cmd-box-head span { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.copy-btn { font-size: 12px; font-weight: 600; color: var(--text-soft); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 3px 11px; cursor: pointer;
  transition: color .15s, border-color .15s; }
.copy-btn:hover { color: var(--text); border-color: var(--cyan); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.cmd-box pre { margin: 0; padding: 14px 16px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7;
  color: var(--text-soft); }
.cmd-box .c-com { color: var(--muted); }

/* ---------------- 社区 / 联系 ---------------- */
.comm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 18px); margin-bottom: 22px; }
.comm-card { padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s, border-color .22s, box-shadow .22s; }
.comm-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--glow); }
.comm-card .cm-ic { font-size: 28px; margin-bottom: 6px; }
.comm-card b { font-size: 16.5px; }
.comm-card span { font-size: 13px; color: var(--muted); }
.comm-card.contact { border-color: color-mix(in srgb, var(--cyan) 34%, transparent); }
.comm-card.contact span { color: var(--cyan); font-weight: 600; word-break: break-all; }

.contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; flex-wrap: wrap; }
.cb-text b { display: block; font-size: 16px; }
.cb-text span { font-size: 13.5px; color: var(--muted); }
.contact-bar .ic { fill: none; stroke: currentColor; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.foot-grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px) 30px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-note { font-size: 13px; color: var(--muted); max-width: 340px; margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-col h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft);
  margin: 0 0 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); }

/* ---------------- 回到顶部 / Toast ---------------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface);
  backdrop-filter: blur(12px); color: var(--text); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--glow); transition: transform .2s, opacity .2s; }
.to-top:hover { transform: translateY(-3px); }
.to-top .ic { width: 20px; height: 20px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px rgba(0,0,0,.4); animation: toastIn .2s ease; }
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------------- 滚动揭示动画 ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 18px; max-width: 560px; }
  .mem-card { right: 8px; bottom: -24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .eval-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 14px clamp(16px, 4vw, 40px) 22px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }
  body.menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-links .only-in-menu { display: block; color: var(--cyan); font-weight: 700; }
  .menu-toggle { display: flex; }
  .nav-right .ghost-btn span { display: none; }
  .nav-right .ghost-btn { width: 40px; padding: 0; justify-content: center; }
  .lang-toggle { height: 40px; padding: 0 13px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .show-grid { grid-template-columns: 1fr; }
  .show-card.wide { grid-column: auto; }
  .show-card.wide .show-media { aspect-ratio: 16 / 10; }
  .start-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; }
  .flow-step { width: 100%; max-width: 340px; flex: none; }
  .flow-arrow { transform: rotate(90deg); }
  .tool-list { grid-template-columns: 1fr; }
  .tool.mem { grid-column: auto; }
  .mt-row { grid-template-columns: 50px 1fr; }
  .mt-row > span:nth-child(3) { grid-column: 1 / -1; font-size: 13px; }
  .mt-head > span:nth-child(3) { display: none; }
  .et-row { grid-template-columns: 1fr; gap: 4px; }
  .et-head { display: none; }
  .et-row > span:nth-child(2)::before { content: "首次："; color: var(--text-soft); }
  .et-row > span:nth-child(3)::before { content: "之后："; color: var(--muted); font-weight: 400; }
  .contact-bar { flex-direction: column; align-items: flex-start; }
  .hero-actions .primary-btn, .hero-actions .ghost-btn { flex: 1 1 100%; }
}

/* 降低动效（无障碍 / 省电） */
@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; transform: none; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
