/* ============================================================
   Sprout 官网门户 · 样式
   服务端渲染静态页，只依赖本文件，无外部 CDN。
   ============================================================ */
:root {
  --brand: #1664ff;
  --brand-dark: #0b4bd8;
  --brand-soft: #eaf1ff;
  --grad: linear-gradient(135deg, #387bff 0%, #1664ff 100%);
  --text-1: #0c0d0e;
  --text-2: #33383f;
  --text-3: #6b7280;
  --text-4: #9aa1ad;
  --border: #e7eaf0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .10);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--text-1); line-height: 1.35; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.center { text-align: center; }

/* ---------------- Header ---------------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.hd-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -.02em; }
.logo:hover { color: var(--text-1); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(22, 100, 255, .28);
}
.logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.logo-sub { font-size: 12px; font-weight: 500; color: var(--text-4); }
.nav { display: flex; align-items: center; gap: 26px; margin-right: auto; }
.nav a { font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; }
.hd-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 4px; color: var(--text-2); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-pri { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(22, 100, 255, .26); }
.btn-pri:hover { color: #fff; box-shadow: 0 10px 24px rgba(22, 100, 255, .32); }
.btn-ghost { background: #fff; color: var(--text-1); border-color: var(--border); }
.btn-ghost:hover { color: var(--brand); border-color: #c9d8ff; }
.btn-lg { height: 48px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(6px); pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(22, 100, 255, .13) 0%, rgba(22, 100, 255, 0) 70%);
}
.hero::after {
  width: 560px; height: 560px; bottom: -300px; left: -160px;
  background: radial-gradient(circle, rgba(56, 123, 255, .10) 0%, rgba(56, 123, 255, 0) 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -.03em; white-space: pre-line; }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--text-2); max-width: 560px; }
.hero-btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-bullets { margin-top: 24px; display: grid; gap: 10px; }
.hero-bullets li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.tick { flex: none; margin-top: 6px; width: 14px; height: 14px; color: var(--brand); }

/* Hero 终端演示卡 */
.demo {
  background: #0f1420; border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: var(--shadow-lg); color: #cfd6e4; font-size: 13px;
}
.demo-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3346; }
.demo-title { font-size: 12px; color: #7d879c; margin-bottom: 10px; letter-spacing: .04em; }
.demo-lines { display: grid; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.demo-lines span { display: block; padding: 7px 10px; border-radius: 6px; background: #161d2d; color: #b9c3d6; }
.demo-lines span b { color: #6ea8ff; font-weight: 600; }
.demo-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #1c2434; }
.pipe {
  padding: 5px 10px; border-radius: 999px; background: #16203a; color: #a8bede; font-size: 12px; border: 1px solid #223053;
}
.pipe.on { background: #1664ff; color: #fff; border-color: #1664ff; }

/* ---------------- 数据条 ---------------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 24px; text-align: center; }
.stat-v { font-size: 32px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat-l { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }

/* ---------------- 通用 section ---------------- */
.sec { padding: 78px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.sec-head p { margin-top: 14px; font-size: 16px; color: var(--text-3); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}

/* ---------------- 能力卡片 ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3e0ff; }
.card-ic {
  width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--text-3); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: 12px; color: var(--text-2); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px;
}

/* ---------------- 工作流 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--border); }
.step::before {
  content: attr(data-n); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 10px;
  font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .04em;
}
.sec-soft .step::before { background: var(--bg-soft); }
.step h3 { font-size: 16.5px; font-weight: 700; margin-top: 4px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--text-3); }

/* ---------------- 方案 ---------------- */
.sols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.sol h3 { font-size: 17.5px; font-weight: 700; }
.sol > p { margin-top: 10px; font-size: 14.5px; color: var(--text-3); }
.sol ul { margin-top: 16px; display: grid; gap: 9px; }
.sol li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }

/* ---------------- 用户说 ---------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote p { font-size: 15px; color: var(--text-2); flex: 1; }
.who { display: flex; align-items: center; gap: 11px; }
.who-av {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.who b { display: block; font-size: 14.5px; color: var(--text-1); }
.who small { color: var(--text-4); font-size: 13px; }

/* ---------------- 定价 ---------------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.price.hot { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price.hot::after {
  content: '最受欢迎'; position: absolute; top: -11px; left: 26px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.price h3 { font-size: 17px; font-weight: 700; }
.price-num { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price-num i { font-size: 15px; font-weight: 600; color: var(--text-3); font-style: normal; }
.price p.muted { font-size: 14px; }
.price ul { display: grid; gap: 10px; margin-top: 4px; }
.price li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.price .btn { margin-top: auto; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-i { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 0 20px; }
details.faq-i[open] { border-color: #cfdcf7; box-shadow: var(--shadow); }
details.faq-i summary {
  cursor: pointer; padding: 16px 0; font-size: 15.5px; font-weight: 600; color: var(--text-1);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.faq-i summary::-webkit-details-marker { display: none; }
details.faq-i summary::after { content: '+'; color: var(--brand); font-size: 20px; font-weight: 400; line-height: 1; }
details.faq-i[open] summary::after { content: '−'; }
details.faq-i .faq-a { padding: 0 0 18px; font-size: 14.5px; color: var(--text-3); }

/* ---------------- 动态列表 ---------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .16s ease, transform .16s ease;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-4); }
.post-meta .pill { background: var(--brand-soft); color: var(--brand); padding: 1px 8px; border-radius: 5px; font-weight: 600; }
.post h3 { font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.post p { font-size: 14px; color: var(--text-3); }
.post-more { margin-top: auto; font-size: 14px; font-weight: 600; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--text-2); background: #fff; }
.filter.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------------- 文章详情 ---------------- */
.art-wrap { padding: 48px 0 72px; }
.crumb { font-size: 13.5px; color: var(--text-4); margin-bottom: 18px; }
.crumb a { color: var(--text-3); }
.art-head { max-width: 760px; margin: 0 auto 34px; }
.art-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.art-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: var(--text-4); }
.article {
  max-width: 760px; margin: 0 auto; font-size: 16px; color: var(--text-2); line-height: 1.9;
}
.article h2 { font-size: 24px; margin: 34px 0 14px; font-weight: 700; }
.article h3 { font-size: 19px; margin: 26px 0 12px; font-weight: 700; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article blockquote {
  margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 8px 8px 0; color: var(--text-2);
}
.article blockquote p:last-child { margin-bottom: 0; }
.article pre {
  background: #0f1420; color: #dbe3f0; padding: 16px 18px; border-radius: 10px; overflow-x: auto; margin: 0 0 18px;
}
.article pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.article code { background: #f1f3f7; padding: 1px 5px; border-radius: 4px; font-size: 14px; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.article .md-img { text-align: center; }
.art-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 14px; }
.art-nav a { max-width: 46%; color: var(--text-2); }
.art-nav a:hover { color: var(--brand); }

/* ---------------- CTA 条 ---------------- */
.cta { background: var(--grad); color: #fff; text-align: center; padding: 66px 24px; }
.cta h2 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.cta p { margin-top: 12px; font-size: 16px; opacity: .92; }
.cta-btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta .btn-wh { background: #fff; color: var(--brand); }
.cta .btn-wh:hover { color: var(--brand-dark); }
.cta .btn-out { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .42); }
.cta .btn-out:hover { color: #fff; background: rgba(255, 255, 255, .22); }

/* ---------------- Footer ---------------- */
.ft { background: #0c0d0e; color: #a9b1bf; padding: 56px 0 26px; font-size: 14px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 34px; }
.ft-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ft-slogan { max-width: 320px; color: #99a2b1; }
.ft-contacts { margin-top: 16px; display: grid; gap: 6px; color: #99a2b1; font-size: 13.5px; }
.ft h4 { color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.ft ul { display: grid; gap: 10px; }
.ft ul a { color: #99a2b1; font-size: 14px; }
.ft ul a:hover { color: #fff; }
.ft-bot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #1c1f23;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7c8493; font-size: 13px;
}
.ft-bot a { color: #8b93a2; }

/* ---------------- 404 ---------------- */
.nf { padding: 120px 0; text-align: center; }
.nf h1 { font-size: 76px; font-weight: 800; color: var(--brand-soft); letter-spacing: -.04em; }
.nf p { margin: 14px 0 30px; color: var(--text-3); font-size: 16px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .cards, .sols, .quotes, .posts, .prices { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 6px 24px 14px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
  .nav-toggle { display: block; }
  .hd-cta .btn-ghost { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15.5px; }
  .sec { padding: 54px 0; }
  .sec-head h2 { font-size: 26px; }
  .cards, .sols, .quotes, .posts, .prices, .steps, .stats-in { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr; }
  .art-head h1 { font-size: 26px; }
  .article { font-size: 15.5px; }
}
