:root {
  --bg: #0a101d;
  --bg-alt: #0d1526;
  --card: #111b30;
  --card-2: #16223c;
  --line: #22324f;
  --txt: #e8edf7;
  --muted: #94a3bd;
  --accent: #38bdf8;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
strong { color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 29, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--txt); font-weight: 700; font-size: 16px; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.nav a:hover { color: var(--txt); background: var(--card-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 11px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #06111f; }
.btn-primary:hover { background: #7dd3fc; }
.btn-ghost { background: transparent; color: var(--accent); border-color: #2c4a72; }
.btn-ghost:hover { background: rgba(56, 189, 248, .08); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.hero { padding: 84px 0 64px; background:
  radial-gradient(1000px 420px at 18% -10%, rgba(56,189,248,.14), transparent 60%),
  radial-gradient(900px 380px at 85% 0%, rgba(52,211,153,.10), transparent 55%);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 13px; padding: 5px 12px; border-radius: 999px;
}
.chip-warn { color: var(--amber); border-color: rgba(251,191,36,.4); }
.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.1; margin: 0 0 18px; letter-spacing: 1px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 720px; font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.stat strong { display: block; font-size: 26px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 13px; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: 13px; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin: 0 0 8px; text-transform: uppercase; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.section-sub { color: var(--muted); max-width: 760px; margin: 0 0 38px; }

.demo-layout { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 44px; align-items: start; }
.phone {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.phone-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.bot-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #06111f; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.bot-name { font-weight: 700; font-size: 15px; }
.bot-status { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.tag-demo { background: rgba(251,191,36,.15); color: var(--amber); border: 1px solid rgba(251,191,36,.35); }
.tag-ok { background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.35); }
.tag-todo { background: rgba(251,113,133,.12); color: var(--red); border: 1px solid rgba(251,113,133,.35); }

.chat { height: 460px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #0c1322; }
.msg { display: flex; }
.msg.left { justify-content: flex-start; }
.msg.right { justify-content: flex-end; }
.bubble {
  max-width: 92%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px;
  background: var(--card-2); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word;
}
.msg.right .bubble { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.35); }
.msg.right .bubble.final-card { background: #101d33; border-color: #2e4a75; }
.logline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); padding: 2px 0; }
.logline.ok { color: var(--green); }
.card-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.card-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card-cand { color: var(--green); font-weight: 700; margin: 8px 0 4px; }
.card-risk { color: var(--amber); font-weight: 700; margin: 8px 0 4px; }
.card-disclaimer { color: var(--muted); font-size: 12px; margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.watermark { position: relative; }
.watermark::after {
  content: "演示数据"; position: absolute; top: 8px; right: 8px;
  font-size: 11px; color: rgba(251,191,36,.75); border: 1px dashed rgba(251,191,36,.45);
  padding: 1px 7px; border-radius: 6px; background: rgba(10,16,29,.65);
}
.phone-actions { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--card-2); }
.micro { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

.demo-side h3 { margin: 4px 0 16px; font-size: 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.checklist li { padding-left: 26px; position: relative; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800; background: rgba(52,211,153,.12);
  width: 18px; height: 18px; border-radius: 6px; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.callout { border: 1px solid rgba(56,189,248,.35); background: rgba(56,189,248,.07); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--muted); }

.sim-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.sim-controls { display: grid; gap: 12px; }
.sim-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sim-name { font-weight: 700; }
.sim-val { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.range-row { display: grid; grid-template-columns: 34px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.range-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--txt); }
input[type=range] { width: 100%; accent-color: var(--accent); }

.funnel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.funnel-row { display: grid; grid-template-columns: 210px 1fr 64px; gap: 14px; align-items: center; padding: 8px 0; }
.funnel-row.head { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.funnel-label { font-size: 13.5px; color: var(--txt); }
.funnel-range { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.funnel-track { background: rgba(255,255,255,.05); height: 14px; border-radius: 8px; overflow: hidden; }
.funnel-bar { height: 100%; width: 0; background: #2c4a72; border-radius: 8px; transition: width .35s ease, background .2s; }
.funnel-bar.green { background: linear-gradient(90deg, var(--accent), var(--green)); }
.funnel-count { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.funnel-row.result .funnel-count { color: var(--green); font-size: 18px; }
.funnel-note { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; margin: 10px 0 0; }

.timeline { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; position: relative; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-no {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--card-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--accent); font-size: 17px;
}
.step h3 { margin: 2px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { margin: 0 0 12px; font-size: 18px; }
.plain-list { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.num-list { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.table-card { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td:first-child { font-weight: 700; white-space: nowrap; }

.ban-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.ban-card { background: rgba(251,113,133,.06); border: 1px solid rgba(251,113,133,.28); border-radius: var(--radius); padding: 18px 20px; }
.ban-card strong { display: block; color: var(--red); font-size: 16px; margin-bottom: 4px; }
.ban-card span { color: var(--muted); font-size: 13.5px; }
.fallback-card { border-color: rgba(251,191,36,.3); }
.fallback-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.fallback-list span { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: var(--amber); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; }

.verdict { margin-bottom: 20px; }
.verdict p { color: var(--muted); }
.verdict-tag { border-top: 1px dashed var(--line); padding-top: 12px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.p-card.ok { border-color: rgba(52,211,153,.3); }
.p-card.todo { border-color: rgba(251,113,133,.3); }
.known { border-color: rgba(251,191,36,.3); }

.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.asset {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); cursor: zoom-in; padding: 0; text-align: left; color: var(--txt);
  transition: transform .15s ease, border-color .15s ease;
}
.asset:hover { transform: translateY(-3px); border-color: var(--accent); }
.asset img { height: 260px; width: 100%; object-fit: cover; object-position: top; }
.asset span { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 15, .92);
  display: none; align-items: flex-start; justify-content: center;
  padding: 32px; overflow-y: auto;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: fixed; top: 18px; right: 24px; font-size: 34px; line-height: 1;
  background: none; border: none; color: var(--txt); cursor: pointer; padding: 6px 10px;
}
.lightbox-close:hover { color: var(--red); }

.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
.footer p { margin: 0 0 10px; max-width: 900px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .demo-layout, .sim-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .spec-grid, .ban-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .funnel-row { grid-template-columns: 130px 1fr 56px; gap: 10px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .asset-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 1fr; gap: 6px; }
  .funnel-count { text-align: left; }
  .funnel-row.head { display: none; }
}
