:root {
  --ink: #14171c;
  --ink-2: #4a5160;
  --ink-3: #5c6370;
  --ground: #ffffff;
  --ground-2: #f3f5f8;
  --line: #e1e5eb;
  --blue: #245bce;
  --blue-deep: #1a46a3;
  --blue-wash: #e9effb;
  --green: #0c6b4c;
  --radius: 14px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 600; }
.brand b { font-weight: 600; color: var(--blue); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--blue); color: #fff;
  border: 1px solid var(--blue); border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .2s cubic-bezier(.16, 1, .3, 1), transform .2s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ground-2); border-color: var(--line); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 80px; background: linear-gradient(var(--ground), var(--ground-2)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--green);
  background: #e6f4ee; padding: 4px 12px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18, 128, 92, .45); animation: pulse 2.4s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 128, 92, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(18, 128, 92, 0); } }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
.lead { margin-top: 20px; max-width: 34em; font-size: 19px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.seed { margin-top: 16px; font-size: 15px; color: var(--ink-3); }

/* Demo chat */
.demo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgba(20, 23, 28, .22), 0 2px 6px rgba(20, 23, 28, .05);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.demo-title { font-weight: 600; font-size: 15px; }
.demo-tag { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.chat { list-style: none; margin: 0; padding: 20px; display: grid; gap: 14px; }
.msg { display: grid; gap: 4px; max-width: 88%; }
.msg time { font-family: var(--num); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg p { padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.me { justify-self: end; text-align: right; }
.me p { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.ai p { background: var(--ground-2); border-bottom-left-radius: 4px; }
.tool p { background: transparent; border: 1px dashed #c9d0da; color: var(--ink-2); font-size: 14px; }
.file {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 6px 12px; border-radius: 8px;
  background: #e6f4ee; color: var(--green); font-size: 14px; font-weight: 600;
}
.away { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.away::before, .away::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Staged reveal (only when JS opts in) */
.js .demo [data-step] { transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1), filter .6s cubic-bezier(.16, 1, .3, 1); }
.js .demo.is-waiting [data-step] { opacity: 0; transform: translateY(8px); filter: blur(2px); }
.js .demo [data-step].is-in { opacity: 1; transform: none; filter: none; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact h2 { font-size: 18px; font-weight: 700; }
.fact p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--ground-2); }
.section-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.section-lead { margin-top: 14px; max-width: 40em; color: var(--ink-2); }

/* Task table */
.task-table { margin-top: 40px; border-top: 2px solid var(--ink); }
.task-head, .task { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 32px; align-items: baseline; }
.task-head { padding: 12px 0; font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.task { padding: 22px 0; border-bottom: 1px solid var(--line); }
.task h3 { font-size: 18px; font-weight: 700; }
.task q { quotes: "“" "”"; color: var(--ink); }
.task p { color: var(--ink-2); font-size: 15px; }

/* Why */
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.why { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why dt { font-size: 18px; font-weight: 700; }
.why dt::before { content: ""; display: block; width: 24px; height: 3px; background: var(--blue); margin-bottom: 14px; border-radius: 2px; }
.why dd { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* Pricing */
.plans { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; background: #fff; }
.plan-pro { border: 2px solid var(--blue); padding: 31px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.price { margin-top: 12px; font-family: var(--num); font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cur { font-size: 26px; margin-right: 2px; vertical-align: 0.6em; }
.per { font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.specs { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs span { color: var(--ink-2); }
.specs b { font-family: var(--num); font-variant-numeric: tabular-nums; }
.fit { margin: 20px 0 24px; color: var(--ink-2); font-size: 15px; flex: 1; }
.price-notes { margin-top: 32px; max-width: 880px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.price-notes b { color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps li::before { content: "第 " counter(step) " 步"; display: block; font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.steps h3 { font-size: 19px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 16px; }

/* Apply */
.apply { padding: 88px 0; background: var(--blue); color: #fff; }
.apply-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.apply h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.apply-grid > div > p { margin-top: 14px; color: #dbe5fa; max-width: 30em; }
.template { position: relative; margin-top: 28px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; }
.template pre { margin: 0; padding: 20px 96px 20px 20px; font-family: var(--font); font-size: 15px; line-height: 1.8; white-space: pre-wrap; color: #fff; }
.copy {
  position: absolute; top: 14px; right: 14px; min-height: 36px; padding: 0 16px;
  background: #fff; color: var(--blue); border: 0; border-radius: 8px;
  font: 600 14px/1 var(--font); cursor: pointer;
}
.copy:hover { background: var(--blue-wash); }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.channels li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; color: var(--ink); border-radius: 12px; }
.ch-name { font-weight: 700; }
.ch-id { font-family: var(--num); color: var(--ink-2); user-select: all; }

/* Footer */
.site-footer { padding: 28px 0; font-size: 14px; color: var(--ink-3); }
.footer-row { display: flex; justify-content: space-between; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid, .why-grid, .faq-wrap, .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .task-head { display: none; }
  .task { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .plan-pro { padding: 23px; }
  .steps { grid-template-columns: 1fr; }
  .fact { padding: 20px 16px; }
  .apply { padding: 64px 0; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .js .demo.is-waiting [data-step] { opacity: 1; transform: none; filter: none; }
}
