/* ============================================================
   Z Agent · 企业智能体解决方案平台
   视觉语言：商务简约 × 浅色克制 × 理性蓝
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --border: #e6eaf0;
  --border-strong: #d5dce5;
  --ink: #111827;
  --text: #1b2432;
  --text-soft: #45536b;
  --muted: #7b8798;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --ok: #16a34a;
  --grad: linear-gradient(120deg, #2563eb, #3b82f6);
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .05);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --nav-h: 68px;
  color-scheme: light;
}

/* ---------------- 暗色模式覆盖 ---------------- */
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-2: #101627;
  --surface: #151c2f;
  --surface-2: #1b2440;
  --border: #232e4a;
  --border-strong: #33405f;
  --ink: #eef2f9;
  --text: #d6deea;
  --text-soft: #9aa8c0;
  --muted: #6b7a96;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --ok: #22c55e;
  --grad: linear-gradient(120deg, #3b82f6, #60a5fa);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
[data-theme="dark"] .nav.scrolled {
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .bg-fx {
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(640px 380px at -10% 18%, rgba(96, 165, 250, .1), transparent 70%);
}
@media (max-width: 1024px) {
  [data-theme="dark"] .nav.open .nav-links { background: var(--bg-2); }
}
[data-theme="dark"] .stat,
[data-theme="dark"] .cmp-card,
[data-theme="dark"] .cap-card,
[data-theme="dark"] .industry-card,
[data-theme="dark"] .product-tags span,
[data-theme="dark"] .solution-tabs button,
[data-theme="dark"] .solution-panel,
[data-theme="dark"] .dnode,
[data-theme="dark"] .dstep,
[data-theme="dark"] .lead-form,
[data-theme="dark"] .chat-window,
[data-theme="dark"] .chat-input,
[data-theme="dark"] .validator-chat-input,
[data-theme="dark"] .chat-message > span,
[data-theme="dark"] .node,
[data-theme="dark"] .to-top,
[data-theme="dark"] .demo-roles button i {
  background: var(--surface);
}
[data-theme="dark"] .core,
[data-theme="dark"] .diagram-core {
  background: radial-gradient(circle, #1a2340, #101627 80%);
}
[data-theme="dark"] .demo-roles {
  background: #0d1322;
}
[data-theme="dark"] .lead-form input,
[data-theme="dark"] .lead-form select,
[data-theme="dark"] .lead-form textarea,
[data-theme="dark"] .lead-form select option {
  background: var(--surface);
  color: var(--text);
}
[data-theme="dark"] .chat-message.ai > div { background: var(--bg-2); }
[data-theme="dark"] .agent-visual { background: radial-gradient(circle at 50% 42%, rgba(59, 130, 246, .12), transparent 46%), linear-gradient(#10162a, #0b0f1a); }
[data-theme="dark"] .solution-diagram { background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, .12), transparent 60%), var(--bg-2); }
[data-theme="dark"] .bs-ground span { color: var(--text-soft); }
[data-theme="dark"] .arrow-svg { color: var(--text-soft); }
[data-theme="dark"] .evo-foot { color: var(--muted); }

/* 主题切换按钮：当前主题 <-> 图标 */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent; color: var(--text-soft);
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.theme-toggle .ic { width: 17px; height: 17px; }

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

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

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; }
button { font-family: inherit; }

.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;
}

/* ---------------- 顶部氛围 ---------------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(37, 99, 235, .06), transparent 70%),
    radial-gradient(640px 380px at -10% 18%, rgba(59, 130, 246, .05), transparent 70%); }

/* ---------------- 通用容器 ---------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px max(24px, 4vw);
}
.section.alt { background: var(--bg-2); max-width: none; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section.alt .section-head { margin-bottom: 56px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.8px;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: .9;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 max(24px, 4vw);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-word { width: 110px; height: 22px; display: block; object-fit: contain; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: 1px; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; color: var(--text-soft); position: relative;
  transition: color .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  transition: border-color .3s, background .3s, color .3s;
  white-space: nowrap;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent); color: #fff;
}
.nav-cta span { margin-left: 6px; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; margin-left: auto; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px 0;
  transition: transform .3s; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; cursor: pointer; border: 0;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .3);
}
.btn-ghost {
  background: #fff; color: var(--text-soft);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 40px) max(24px, 4vw) 72px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 60px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .35);
  animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .35); }
  100% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}

.hero-title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.15; letter-spacing: -2.5px; margin: 24px 0 20px;
  font-weight: 800; color: var(--ink);
}
.hero-title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-lead { font-size: 16.5px; color: var(--text-soft); max-width: 540px; margin: 0; }

.hero-actions { display: flex; gap: 14px; margin-top: 36px; }

.hero-proof { display: flex; gap: 24px; margin-top: 40px; }
.hero-proof span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-proof span::before {
  content: "✓"; color: var(--accent); font-size: 11px;
}

/* Hero 视觉区 */
.agent-visual {
  position: relative; height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, .06), transparent 46%),
    linear-gradient(#fff, #f6f9fd);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.visual-topbar, .visual-status {
  position: absolute; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 9.5px; letter-spacing: 2px; z-index: 2;
}
.visual-topbar { top: 20px; }
.visual-topbar b { font-weight: 600; color: var(--ok); }
.visual-status { bottom: 20px; }

.orbit {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-a { width: 280px; height: 280px; }
.orbit-b {
  width: 420px; height: 420px;
  border-style: dashed; border-color: rgba(37, 99, 235, .16);
  animation: orbit-spin 36s linear infinite;
}
@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 148px; height: 148px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, #fff, #eaf1fb 78%);
  border: 1px solid rgba(37, 99, 235, .3);
  box-shadow: 0 10px 40px rgba(37, 99, 235, .12), inset 0 0 30px rgba(37, 99, 235, .05);
}
.core::before, .core::after {
  content: ""; position: absolute; inset: -12px;
  border: 1px dashed rgba(37, 99, 235, .22); border-radius: 50%;
}
.core::after { inset: -24px; border-color: rgba(37, 99, 235, .14); }
.core-z {
  position: absolute; left: 50%; top: 50%;
  width: 190px; height: 190px;
  transform: translate(-50%, calc(-50% + 20px));
  object-fit: contain; filter: drop-shadow(0 6px 14px rgba(37, 99, 235, .25));
}
.core small { font-size: 8px; letter-spacing: 3px; color: var(--accent); margin-top: 4px; transform: translateY(35px); }
.core strong { font-size: 42px; line-height: 1.05; color: var(--ink); }
.core span { font-size: 9px; color: var(--muted); transform: translateY(35px); }

.node {
  position: absolute; width: 124px; padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px;
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.node:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(37, 99, 235, .15); transform: translateY(-3px); }
.node i {
  width: 24px; height: 24px;
  background: var(--surface-2);
  color: var(--accent); font-size: 9px; font-style: normal;
  display: grid; place-items: center; border-radius: 50%;
}
.node span { font-size: 12px; color: var(--ink); font-weight: 600; }
.node small { font-size: 7px; color: var(--muted); letter-spacing: 1.5px; }
.node-1 { top: 12%; left: 4%; }
.node-2 { top: 12%; right: 4%; }
.node-3 { bottom: 12%; right: 4%; }
.node-4 { bottom: 12%; left: 4%; }

/* ---------------- 数据条 ---------------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px max(24px, 4vw);
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: border-color .3s, box-shadow .3s;
}
.stat:hover { border-color: var(--accent-2); box-shadow: var(--shadow-soft); }
.stat b {
  font-size: 38px; font-weight: 800; letter-spacing: -2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 理念对比 ---------------- */
.compare { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; gap: 0; }
.cmp-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 34px; background: #fff;
  box-shadow: var(--shadow-soft);
}
.cmp-card.grad-border { border-color: rgba(37, 99, 235, .35); }
.cmp-tag { font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.cmp-card ul { list-style: none; padding: 0; margin: 22px 0 0; }
.cmp-card li { padding: 16px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.cmp-card li b { font-size: 15px; color: var(--text); }
.cmp-card li b::before { content: "×"; color: #b6c0cd; margin-right: 10px; font-weight: 700; }
.cmp-card.grad-border li b::before { content: "✓"; color: var(--ok); }
.cmp-card li small { font-size: 12px; color: var(--muted); }
.cmp-arrow {
  display: grid; place-items: center;
  font-size: 26px; color: var(--accent);
  animation: arrowSlide 2.6s ease-in-out infinite;
}
@keyframes arrowSlide { 50% { transform: translateX(6px); opacity: .45; } }

/* ---------------- 能力卡片 ---------------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap-card {
  position: relative; padding: 28px; min-height: 300px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.cap-card:hover, .cap-card.featured {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .12);
}
.cap-index { position: absolute; right: 22px; top: 20px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.cap-icon { width: 60px; height: 60px; margin: 22px 0 30px; position: relative; }
.cap-icon span { position: absolute; border: 1px solid rgba(37, 99, 235, .5); }
.agent-icon span { inset: 9px; border-radius: 50%; }
.agent-icon span:nth-child(2) { inset: 21px; background: var(--accent); box-shadow: 0 0 14px rgba(37, 99, 235, .4); border: 0; }
.agent-icon span:nth-child(3) { inset: 0; border-style: dashed; border-color: rgba(37, 99, 235, .35); border-radius: 50%;
  animation: spinSlow 9s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.knowledge-icon span { width: 30px; height: 40px; left: 10px; top: 8px; transform: skewY(-15deg);
  background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(59,130,246,.1)); border: 0;
  animation: floatBooks 4s ease-in-out infinite; }
.knowledge-icon span:nth-child(2) { left: 22px; top: 3px; animation-delay: .4s; }
.knowledge-icon span:nth-child(3) { left: 34px; top: -2px; animation-delay: .8s; }
@keyframes floatBooks { 50% { transform: skewY(-15deg) translateY(-7px); } }
.workflow-icon span { width: 16px; height: 16px; border-radius: 3px;
  background: linear-gradient(135deg, rgba(37,99,235,.55), rgba(59,130,246,.35)); border: 0;
  animation: pulseNode 3.2s ease-in-out infinite; }
.workflow-icon span:nth-child(1) { left: 0; top: 22px; }
.workflow-icon span:nth-child(2) { left: 22px; top: 4px; animation-delay: .5s; }
.workflow-icon span:nth-child(3) { left: 44px; top: 36px; animation-delay: 1s; }
@keyframes pulseNode { 50% { transform: scale(1.22); background: rgba(37, 99, 235, .85); box-shadow: 0 0 10px rgba(37, 99, 235, .5); } }
.evolution-icon span { inset: 3px; border-radius: 50%; border-left-color: transparent;
  animation: spinSlow 6s linear infinite; }
.evolution-icon span:nth-child(2) { inset: 15px; border-right-color: transparent; animation-duration: 4s; }
.evolution-icon span:nth-child(3) { inset: 27px; background: var(--accent); box-shadow: 0 0 14px rgba(37, 99, 235, .4); border: 0; }

.cap-card h3 { font-size: 17px; margin: 0 0 10px; color: var(--ink); }
.cap-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; min-height: 66px; }
.tag-row { display: flex; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.tag-row span { font-size: 10.5px; border: 1px solid var(--border); color: var(--text-soft);
  padding: 5px 9px; border-radius: 999px; background: var(--bg-2); }

/* ---------------- 产品列表 ---------------- */
.product-list { display: flex; flex-direction: column; }
.product-row {
  display: grid; grid-template-columns: 56px 170px 1fr auto 40px;
  gap: 24px; align-items: center;
  padding: 26px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  border-bottom-color: var(--border);
  transition: background .3s, border-color .3s, padding .3s, box-shadow .3s;
  cursor: pointer;
}
.product-row:hover {
  background: var(--bg-2);
  border-color: var(--border);
  border-bottom-color: var(--border);
  padding-left: 30px;
  box-shadow: var(--shadow-soft);
}
.product-code {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; gap: 0;
  transition: background .3s;
}
.product-code img {
  width: 24px; height: 24px; object-fit: contain;
  margin-right: -2px;
}
.product-code .pc-b {
  font-size: 11px; font-weight: 700; color: var(--ink);
  line-height: 1; margin-top: 1px;
}
.product-row:hover .product-code { background: var(--accent); }
.product-row:hover .product-code img { filter: invert(1) brightness(10); }
.product-row:hover .product-code .pc-b { color: #fff; }
.product-row h3 { font-size: 18px; margin: 0; color: var(--ink); }
.product-row p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-tags span { font-size: 10px; border: 1px solid var(--border); color: var(--text-soft);
  padding: 4px 8px; border-radius: 999px; background: #fff; }
.product-row > a { font-size: 22px; color: var(--accent); transition: transform .3s; }
.product-row:hover > a { transform: translate(3px, -3px); }

/* ---------------- 解决方案 ---------------- */
.solution-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.solution-tabs button {
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  color: var(--muted); font-size: 13px; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, box-shadow .3s;
}
.solution-tabs button:hover { color: var(--accent); border-color: var(--accent-2); }
.solution-tabs button.active {
  border-color: transparent; color: #fff;
  background: var(--accent); box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.solution-panel {
  display: grid; grid-template-columns: .9fr 1.1fr;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.solution-copy { padding: 44px 42px; }
.solution-no { font-size: 10px; color: var(--accent); letter-spacing: 2px; font-weight: 600; }
.solution-copy h3 { font-size: 24px; line-height: 1.45; margin: 16px 0; letter-spacing: -.5px; color: var(--ink); }
.solution-copy > p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.solution-copy ul { list-style: none; padding: 0; margin: 22px 0; }
.solution-copy li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }
.solution-copy li::before { content: "◆"; font-size: 7px; color: var(--accent); margin-right: 10px; }
.solution-cta { display: inline-flex; align-items: center; gap: 30px; color: var(--accent); font-size: 13px; font-weight: 600; }
.solution-cta span { transition: transform .3s; }
.solution-cta:hover span { transform: translateX(5px); }

.solution-diagram {
  display: flex; align-items: center; justify-content: center; gap: 44px;
  padding: 48px 34px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, .06), transparent 60%),
    var(--bg-2);
}
.diagram-col { display: flex; flex-direction: column; gap: 20px; z-index: 1; }
.dnode {
  font-size: 10.5px; color: var(--text-soft);
  border: 1px solid var(--border); background: #fff;
  padding: 12px 15px; border-radius: 8px; white-space: nowrap;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.dnode-pulse {
  position: absolute; top: 50%; right: -13px; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: dnode-pulse 2.4s ease-out infinite;
}
.diagram-output .dnode-pulse { right: auto; left: -13px; }
@keyframes dnode-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.diagram-core {
  width: 148px; height: 148px; border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, .35);
  background: radial-gradient(circle, #fff, #eaf1fb 80%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: 0 10px 34px rgba(37, 99, 235, .12);
  position: relative;
}
.diagram-core::before, .diagram-core::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed rgba(37, 99, 235, .4);
  animation: spin 22s linear infinite;
}
.diagram-core::after { inset: -28px; border-color: rgba(37, 99, 235, .25); animation-duration: 34s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.diagram-core small { font-size: 8px; letter-spacing: 2px; color: var(--accent); }
.diagram-core strong { font-size: 19px; margin: 8px; color: var(--ink); }
.diagram-core span { font-size: 9px; color: var(--muted); }

/* ---------------- 行业应用 ---------------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-card {
  padding: 28px 24px; min-height: 280px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.industry-card:hover, .industry-card.featured {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .12);
}
.industry-card.featured { border-color: rgba(37, 99, 235, .45); }
.industry-top { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); letter-spacing: 1.5px; }
.industry-top b { font-weight: 600; color: var(--accent); }
.industry-symbol { font-size: 38px; margin: 24px 0 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.industry-card h3 { font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.industry-card p { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0; }
.industry-card a { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--accent); font-weight: 600; }

/* ---------------- Demo Lab ---------------- */
.demo-console {
  display: grid; grid-template-columns: 270px 1fr;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.demo-roles { border-right: 1px solid var(--border); padding: 16px 0;
  display: flex; flex-direction: column; background: #fbfcfe; }
.demo-roles button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  border-left: 3px solid transparent;
  padding: 18px 22px; color: var(--muted); transition: background .3s, color .3s, border-color .3s;
}
.demo-roles button:hover { color: var(--accent); }
.demo-roles button.active { background: var(--surface-2); border-color: var(--accent); color: var(--ink); }
.demo-roles button i {
  font-style: normal; width: 32px; height: 32px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 8px;
  display: grid; place-items: center; color: var(--accent); font-size: 13px;
  background: #fff;
}
.demo-roles button.active i { background: var(--accent); color: #fff; border-color: var(--accent); }
.demo-roles button span { display: flex; flex-direction: column; gap: 3px; }
.demo-roles button b { font-size: 12.5px; }
.demo-roles button small { font-size: 10px; color: var(--muted); }
.demo-roles > a { margin: auto 18px 12px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--accent); display: flex; justify-content: space-between; font-weight: 600; }

.chat-window { padding: 26px; display: flex; flex-direction: column; }
.chat-top { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.chat-top span { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--ink); }
.chat-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  animation: pulse 2.2s infinite; }
.chat-top small { font-size: 10px; color: var(--muted); }
.chat-body { padding: 28px 8px; flex: 1; }
.chat-message { display: flex; gap: 12px; margin-bottom: 24px; }
.chat-message > span { width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 10px; color: var(--muted); background: #fff; }
.chat-message p { font-size: 12.5px; line-height: 1.7; margin: 6px 0; color: var(--text-soft); }
.chat-message.user { max-width: 520px; margin-left: auto; flex-direction: row-reverse; }
.chat-message.user p { background: var(--accent); padding: 13px 17px; border-radius: 12px; color: #fff; }
.chat-message.user > span { background: var(--surface-2); color: var(--accent); border-color: transparent; }
.chat-message.ai > span { background: var(--accent); border: 0; color: #fff; }
.chat-message.ai > div { max-width: 600px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 18px; }
.chat-message ol { padding-left: 20px; color: var(--text-soft); font-size: 11.5px; line-height: 2; margin: 8px 0; }
.chat-message b { color: var(--ink); }
.chat-message.ai small { font-size: 9.5px; color: var(--muted); }
.chat-input { border: 1px solid var(--border-strong); border-radius: 999px; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px; padding-left: 20px; background: #fff; }
.chat-input button {
  margin: 5px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 15px;
  transition: transform .3s, box-shadow .3s;
}
.chat-input button:hover { transform: scale(1.08); box-shadow: 0 0 16px rgba(37, 99, 235, .4); }

/* ---------------- 诊断表单 ---------------- */
.diagnosis-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
.diagnosis-copy { display: flex; flex-direction: column; }
.diagnosis-copy p { font-size: 15px; color: var(--text-soft); line-height: 1.8; max-width: 430px; }
.diagnosis-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 44px; max-width: 460px; }
.dstep { display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px; box-shadow: 0 1px 2px rgba(17,24,39,.03), 0 10px 26px rgba(17,24,39,.05);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1),
    border-color .3s, box-shadow .3s;
}
.dstep:nth-child(1) { transition-delay: .06s; }
.dstep:nth-child(2) { transition-delay: .18s; }
.dstep:nth-child(3) { transition-delay: .3s; }
.dstep:nth-child(4) { transition-delay: .42s; }
.diagnosis-steps.in .dstep { opacity: 1; transform: none; }
.dstep:hover { border-color: var(--accent-2); box-shadow: 0 2px 4px rgba(16,24,39,.04), 0 16px 36px rgba(37,99,235,.09); }
.dstep-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--accent); background: var(--surface-2); flex: none; }
.dstep-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.dstep b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.dstep small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.lead-form { padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); }
.form-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.form-heading h3 { margin: 0; font-size: 18px; color: var(--ink); }
.form-heading span { font-size: 10.5px; color: var(--muted); }
.lead-form label { font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 10px;
  background: #fff; color: var(--text);
  padding: 12px 14px; outline: none; font-family: inherit; font-size: 13px;
  transition: border-color .3s, box-shadow .3s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.lead-form select option { background: #fff; }
.full { grid-column: 1 / -1; }
.lead-form .btn { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: 10px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 96px;
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px max(24px, 4vw) 34px;
  display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 40px;
}
.foot-brand p { color: var(--muted); font-size: 13px; margin: 20px 0 0; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col h4 { font-size: 12px; margin: 0 0 8px; color: var(--text-soft); letter-spacing: 1px; }
.foot-col a { font-size: 12px; color: var(--muted); transition: color .25s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px max(24px, 4vw) 34px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}

/* ---------------- 回到顶部 ---------------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-soft);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: border-color .3s, box-shadow .3s, transform .3s, opacity .3s;
}
.to-top:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 6px 18px rgba(37, 99, 235, .18); transform: translateY(-3px); }

/* ---------------- 滚动进度 ---------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: var(--grad); width: 0;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .25);
  padding: 16px 22px; font-size: 13px;
  transform: translateY(20px); opacity: 0;
  transition: transform .35s, opacity .35s;
}
.toast.show { transform: none; opacity: 1; }

/* ---------------- 滚动显现 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Hero 词条输入 ---------------- */
.typed-line { display: inline-block; position: relative; }
.typed-caret {
  display: inline-block; width: 3px; height: .95em;
  margin-left: 4px; vertical-align: -.14em;
  background: var(--accent);
  animation: ta-blink 1s step-end infinite;
}
@keyframes ta-blink { 50% { opacity: 0; } }

/* ---------------- 自我进化 ---------------- */
.evo-intro { font-size: 14.5px; color: var(--text-soft); line-height: 1.8; margin: 20px 0 0; max-width: 620px; }
.evo-flow {
  display: flex; align-items: stretch; gap: 12px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.ev-step {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 18px; box-shadow: var(--shadow-soft);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.ev-step:hover { border-color: var(--accent-2); box-shadow: 0 10px 26px rgba(37, 99, 235, .12); transform: translateY(-3px); }
.ev-no {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--accent);
}
.ev-step b { font-size: 15px; color: var(--ink); font-weight: 700; }
.ev-step small { font-size: 11px; color: var(--muted); line-height: 1.55; }
.ev-arrow { align-self: center; color: var(--accent); font-size: 18px; flex: none; }

.evo-table {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.et-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 18px;
  padding: 18px 24px; align-items: baseline;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.et-row:first-child { border-top: 0; }
.et-row.et-head {
  background: var(--bg-2); font-size: 11px; letter-spacing: 1.5px;
  color: var(--muted); font-weight: 700;
}
.et-row span:first-child { color: var(--ink); font-weight: 600; }
.et-row span:nth-child(2) { color: var(--text-soft); font-size: 12.5px; line-height: 1.7; }
.et-ok { color: var(--accent); font-weight: 700; font-size: 12.5px; }
.evo-foot { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; }

/* ---------------- 自定义光标（仅桌面精细指针） ---------------- */
.custom-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block; position: fixed; top: 0; left: 0;
    z-index: 99998; pointer-events: none;
  }
  .cursor-dot {
    position: absolute; width: 9px; height: 9px;
    background: #2563eb; border-radius: 50%;
    box-shadow: 0 0 6px rgba(37, 99, 235, .55);
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s;
  }
  .cursor-ring {
    position: absolute; width: 40px; height: 40px;
    border: 2px solid #2563eb; opacity: .85; border-radius: 50%;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .25);
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, opacity .3s, border-color .3s;
  }
  .custom-cursor.hover .cursor-dot { width: 14px; height: 14px; background: #1d4ed8; box-shadow: 0 0 8px rgba(29, 78, 216, .6); }
  .custom-cursor.hover .cursor-ring { width: 56px; height: 56px; opacity: .5; border-color: #1d4ed8; }
  body, a, button, input, textarea, select, [role="button"] { cursor: none; }
}
[data-theme="dark"] .cursor-dot { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, .5); }
[data-theme="dark"] .cursor-ring { border-color: #60a5fa; box-shadow: 0 2px 10px rgba(96, 165, 250, .25); }
[data-theme="dark"] .custom-cursor.hover .cursor-dot { background: #93c5fd; box-shadow: 0 0 8px rgba(147, 197, 253, .55); }
[data-theme="dark"] .custom-cursor.hover .cursor-ring { border-color: #93c5fd; }
}

/* ---------------- 3D Tilt 卡片 ---------------- */
.tilt-3d { will-change: transform; transition: transform .25s ease-out, border-color .3s, box-shadow .35s; }

/* ---------------- 磁吸按钮 ---------------- */
.magnetic { transition: transform .25s ease-out; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; backdrop-filter: blur(16px);
    padding: 20px max(24px, 4vw) 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 44px; min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .agent-visual { height: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cap-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-panel { grid-template-columns: 1fr; }
  .solution-diagram { min-height: 300px; }
  .diagnosis-wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-console { grid-template-columns: 230px 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .diagnosis-steps { gap: 10px; margin-top: 30px; max-width: 100%; }
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-title { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-proof { flex-wrap: wrap; gap: 14px; }
  .agent-visual { height: 360px; }
  .node { width: 100px; padding: 10px; }
  .node span { font-size: 10.5px; }
  .node small { display: none; }
  .orbit-b { width: 300px; height: 300px; }
  .orbit-a { width: 220px; height: 220px; }
  .core { width: 118px; height: 118px; }
  .core-z { width: 120px; height: 120px; }
  .evo-flow { flex-direction: column; gap: 6px; padding: 16px; }
  .ev-arrow { align-self: flex-start; transform: rotate(90deg); padding: 2px 0; }
  .et-row { grid-template-columns: 1fr; gap: 6px; }
  .et-row.et-head { display: none; }
  .compare { grid-template-columns: 1fr; }
  .cmp-arrow { padding: 16px 0; transform: rotate(90deg); }
  .cap-grid, .industry-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 46px 1fr 32px; }
  .product-row p { grid-column: 2 / 4; }
  .product-tags { grid-column: 2 / 4; }
  .solution-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .solution-tabs button { white-space: nowrap; }
  .solution-copy { padding: 28px 24px; }
  .solution-diagram { padding: 32px 14px; gap: 20px; }
  .diagram-col { gap: 14px; }
  .dnode { padding: 10px 12px; font-size: 9px; }
  .dnode-pulse { right: -10px; }
  .diagram-output .dnode-pulse { left: -10px; }
  .diagram-core { width: 118px; height: 118px; }
  .diagram-core::before { inset: -10px; }
  .diagram-core::after { inset: -20px; }
  .demo-console { grid-template-columns: 1fr; }
  .demo-roles { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; }
  .demo-roles button { min-width: 180px; border-left: 0; border-bottom: 3px solid transparent; }
  .demo-roles button.active { border-bottom-color: var(--accent); }
  .demo-roles > a { display: none; }
  .chat-window { padding: 18px; }
  .lead-form { grid-template-columns: 1fr; padding: 22px; }
  .lead-form label { grid-column: 1 / -1; }
  .stats { padding: 44px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 24px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}