/* 智发 robot 官网首页 · 暗色双入口版式（基于 workspace/prototypes/首页改版原型.html 视觉基准）
   独立样式，不与 styles.css / index.html 冲突；试写漏斗（trial.js）所需样式全部在此文件内。 */

:root {
  --bg: #141611;
  --panel: #1a1d18;
  --panel-strong: #20241e;
  --line: rgba(236, 230, 216, 0.10);
  --line-soft: rgba(236, 230, 216, 0.06);
  --ink: #ece6d8;
  --muted: #9a9484;
  --amber: #d7b07a;
  --gold: #e6c98f;
  --teal: #5ecfb9;
  --red: #e07a6a;
  --mono: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  --wrap: 1180px;
  --nav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ---------- 通用元件 ---------- */

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.sec-title-sm { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--ink); }
.sec-lede-sm { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 34em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary,
.btn-human { background: var(--amber); color: #141611; font-weight: 700; }
.btn-primary:hover,
.btn-human:hover { background: var(--gold); transform: translateY(-1px); }
.btn-bot {
  background: rgba(94, 207, 185, 0.14);
  color: var(--teal);
  border-color: rgba(94, 207, 185, 0.5);
  font-weight: 600;
}
.btn-bot:hover { background: rgba(94, 207, 185, 0.24); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.inline-link { color: var(--teal); border-bottom: 1px dashed rgba(94, 207, 185, 0.45); }
.inline-link:hover { border-bottom-style: solid; }

/* ---------- 顶栏 ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 17, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.topnav.is-stuck { border-bottom-color: var(--line); }
.nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 17px;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--amber); }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-strong); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-login {
  font-size: 13.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-login:hover { border-color: var(--amber); color: var(--amber); }
.btn-reg {
  font-size: 13.5px;
  color: #141611;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 700;
  transition: background 0.18s ease;
}
.btn-reg:hover { background: var(--gold); }
.nav-toggle { display: none; }
.mobile-sheet { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 66px 0 72px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0, rgba(215, 176, 122, 0.08), transparent);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--amber);
  border: 1px solid rgba(215, 176, 122, 0.35);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero h1 em.tl { color: var(--teal); }
.hero .sub {
  color: var(--muted);
  margin: 16px auto 0;
  font-size: 15.5px;
  max-width: 660px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-proof {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(215, 176, 122, 0.14);
}

/* ---------- 双入口大卡 ---------- */

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
  text-align: left;
}
.entry {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.entry:hover { transform: translateY(-3px); }
.entry.human { border-color: rgba(215, 176, 122, 0.4); }
.entry.human:hover { border-color: var(--amber); }
.entry.bot { border-color: rgba(94, 207, 185, 0.35); }
.entry.bot:hover { border-color: var(--teal); }
.entry .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 999px;
}
.entry.human .tag { color: var(--amber); border: 1px solid rgba(215, 176, 122, 0.45); }
.entry.bot .tag { color: var(--teal); border: 1px solid rgba(94, 207, 185, 0.45); }
.entry .icon { font-size: 30px; margin-bottom: 12px; }
.entry h3 { font-size: 20px; margin-bottom: 4px; }
.entry.human h3 span { color: var(--amber); }
.entry.bot h3 span { color: var(--teal); }
.entry .who { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.entry ul { display: grid; gap: 7px; margin-bottom: 20px; }
.entry li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.entry li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 12px;
}
.entry.human li::before { color: var(--amber); }
.entry.bot li::before { color: var(--teal); }
.entry .route {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- 区块通用 ---------- */

.section { padding: 60px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head .no {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 2px;
}
.sec-head h2 { font-size: 26px; margin-top: 6px; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- 能力区 ---------- */

.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cap {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cap:hover { border-color: rgba(215, 176, 122, 0.35); transform: translateY(-2px); }
.cap .ic { font-size: 22px; }
.cap h4 { font-size: 15px; margin: 10px 0 4px; }
.cap p { font-size: 12.5px; color: var(--muted); }
.cap .soon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  color: var(--teal);
  border: 1px solid rgba(94, 207, 185, 0.45);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}
.capgroup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 14px;
}
.capgroup:first-of-type { margin-top: 0; }
.capgroup h3 { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.capgroup h3 .dot { color: var(--amber); margin-right: 6px; }
.capgroup h3 .dot.tl { color: var(--teal); }
.capgroup .ln { flex: 1; height: 1px; background: var(--line); }
.capgroup .cnt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 双通道对比表 ---------- */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.tablewrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.tablewrap th,
.tablewrap td {
  padding: 13px 18px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}
.tablewrap th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  background: var(--panel-strong);
}
.tablewrap td:first-child { color: var(--muted); white-space: nowrap; }
.tablewrap td.plain { color: var(--muted); }
.tablewrap tr:last-child td { border-bottom: none; }
.colh { font-size: 14px; font-weight: 700; }
.colh.h { color: var(--amber); }
.colh.b { color: var(--teal); }

code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  background: rgba(94, 207, 185, 0.08);
  padding: 1px 7px;
  border-radius: 5px;
}
code.a { color: var(--amber); background: rgba(215, 176, 122, 0.08); }

/* ---------- 智能体接入三步 ---------- */

.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.s3 {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.s3 .n { font-family: var(--mono); color: var(--teal); font-size: 12px; }
.s3 h4 { font-size: 15.5px; margin: 8px 0 6px; }
.s3 p { font-size: 13px; color: var(--muted); }
.s3 .mini {
  font-family: var(--mono);
  font-size: 11px;
  background: #0d0f0b;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: #c9d1c5;
  margin-top: 12px;
  white-space: pre;
  overflow-x: auto;
}

/* ---------- 匿名试用条 + 试写漏斗 ---------- */

.trial-section {
  background:
    radial-gradient(700px 320px at 18% 0, rgba(94, 207, 185, 0.06), transparent),
    radial-gradient(700px 320px at 82% 100%, rgba(215, 176, 122, 0.07), transparent);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.trial-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(215, 176, 122, 0.10), rgba(94, 207, 185, 0.08));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 34px;
}
.trial-bar .t { font-size: 16px; font-weight: 700; }
.trial-bar .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.trial-bar .btn { margin-left: auto; }

.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.trial-points { margin-top: 24px; display: grid; gap: 14px; }
.trial-points li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.trial-points li::before { content: "✓"; color: var(--amber); font-weight: 700; flex-shrink: 0; }

.download-note {
  margin-top: 28px;
  background: var(--panel);
  border: 1px dashed rgba(215, 176, 122, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
}
.download-note p { font-size: 13.5px; color: var(--muted); }
.download-note p b { color: var(--amber); font-weight: 600; }
.download-note .btn { margin-top: 12px; }

.trial-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

/* 试写表单（trial.js 依赖的结构，仅调整视觉） */

.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(236, 230, 216, 0.85);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(236, 230, 216, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; }
.field select option { color: #141611; background: #ffffff; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(236, 230, 216, 0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(215, 176, 122, 0.55);
  background: rgba(236, 230, 216, 0.08);
}

fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(236, 230, 216, 0.85);
  margin-bottom: 10px;
  padding: 0;
}
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.choice:hover { border-color: rgba(236, 230, 216, 0.4); }
.choice input { accent-color: var(--amber); margin: 0; }
.choice:has(input:checked) {
  border-color: var(--amber);
  background: rgba(215, 176, 122, 0.14);
  color: var(--ink);
}

.trial-card .btn-primary { width: 100%; }

.form-status { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.form-status[data-kind="error"] { color: var(--red); }

.result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.result h3 { font-size: 19px; margin-bottom: 14px; }
.result pre {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(236, 230, 216, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}
.result-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.result .note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 30px 0 40px;
}
.foot {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.foot .brand { font-size: 15px; }
.foot .brand-logo { width: 26px; height: 26px; border-radius: 7px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--muted); transition: color 0.18s ease; }
.foot nav a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; font-size: 12px; }

/* ---------- 进场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-row { justify-content: space-between; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
  }
  .mobile-sheet {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 49;
    background: var(--panel-strong);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
  }
  .mobile-sheet.is-open { display: grid; gap: 2px; }
  .mobile-sheet a {
    padding: 12px 4px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .entries { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .trial-bar .btn { margin-left: 0; }
  .trial-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 44px 0; }
  .caps { grid-template-columns: 1fr; }
  .trial-card { padding: 22px 18px; }
  .trial-bar { padding: 16px 18px; }
  .trial-card .btn-primary { width: 100%; }
  .result-actions .btn { flex: 1 1 auto; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot .copy { margin-left: 0; }
}

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