/* ============================================================
   低代码平台 SaaS —— 全站设计系统
   专业 SaaS 官网风格 · 响应式 · 无依赖
   ============================================================ */

:root {
  /* 主色：科技蓝紫，传达专业与可信 */
  --brand:        #1d4ed8;
  --brand-dark:   #1e3a8a;
  --brand-light:  #eff6ff;
  --accent:       #0284c7;

  /* 中性色 */
  --ink:          #111827;
  --ink-soft:     #374151;
  --muted:        #6b7280;
  --line:         #e5e7eb;
  --bg:           #ffffff;
  --bg-soft:      #f9fafb;
  --bg-dark:      #1a2638;

  /* 功能色 */
  --success:      #16a34a;
  --warning:      #d97706;

  /* 圆角 / 阴影 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow-md: 0 8px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.12);

  --maxw: 1180px;
  --font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用排版 ---------- */
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
h1,h2,h3 { line-height: 1.25; color: var(--ink); }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 34px; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.text-muted { color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 66px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 48px; letter-spacing: -.5px; margin: 16px 0 20px; }
.hero h1 .grad {
  color: var(--brand);
}
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero 右侧 mock 窗口 */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.mock-bar i:nth-child(1){ background:#fca5a5; } .mock-bar i:nth-child(2){ background:#fcd34d; } .mock-bar i:nth-child(3){ background:#86efac; }
.mock-body { padding: 20px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.mock-side { display: grid; gap: 10px; }
.mock-side b { height: 34px; border-radius: 8px; background: var(--brand-light); }
.mock-side b:first-child { background: var(--brand); }
.mock-main { display: grid; gap: 12px; }
.mock-row { height: 18px; border-radius: 6px; background: #eef2f7; }
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 4px; }
.mock-card { height: 72px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.mock-chart { height: 120px; border-radius: 10px; background: linear-gradient(180deg,#fff,#f8fafc); border:1px solid var(--line);
  background-image: linear-gradient(90deg, transparent 49%, var(--line) 50%, transparent 51%); background-size: 16% 100%; }

/* ---------- 特性卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #cfd8e8; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- 统计条 ---------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .grid-4 { gap: 0; }
.stat { text-align: center; padding: 36px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 28px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- 演示区 ---------- */
.demo-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; background: #fff;
}
.demo-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
.demo-placeholder {
  height: 480px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg,#f0f7ff,#f5f9ff); color: var(--muted);
}

/* ---------- 价格卡 ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.plans-4 { grid-template-columns: repeat(4,1fr); gap: 18px; }
.plans-4 .plan { padding: 26px 22px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; position: relative; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.plan:hover { box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 14px 0 4px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .price-note { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.plan li::before { content: "✓"; color: var(--success); font-weight: 700; }
.plan li.off { color: #cbd5e1; } .plan li.off::before { content: "—"; color: #cbd5e1; }

/* ---------- 席位计算器 ---------- */
.calc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.calc-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background:#fff; }
.stepper button { width: 42px; height: 42px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink-soft); }
.stepper button:hover { background: var(--bg-soft); }
.stepper input { width: 64px; height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; font-weight: 600; }
.calc .total { font-size: 30px; font-weight: 800; color: var(--brand); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h4 { font-size: 17px; margin-bottom: 8px; display: flex; gap: 10px; }
.faq-item h4::before { content: "Q"; color: var(--brand); font-weight: 800; }
.faq-item p { color: var(--muted); padding-left: 24px; }

/* ---------- 表单 / 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 38px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm); transition: .15s;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--brand); font-weight: 600; }
.checkrow { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.checkrow a { color: var(--brand); }

/* ---------- 大段法务文档 ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.doc h1 { font-size: 30px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 20px; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .note { background: var(--brand-light); border-left: 3px solid var(--brand); padding: 14px 18px; border-radius: var(--r-sm); color: var(--ink-soft); font-size: 14px; margin: 20px 0; }
.placeholder { background: #fef3c7; color: #92400e; padding: 1px 7px; border-radius: 5px; font-size: .92em; font-weight: 600; }

/* ---------- CTA 区 ---------- */
.cta {
  background: #1a2638;
  border-radius: var(--r-lg); padding: 56px; text-align: center; color: #fff;
}
.cta h2 { font-size: 32px; margin-bottom: 12px; }
.cta p { opacity: .92; font-size: 17px; margin-bottom: 26px; }
.cta .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: #f1f5f9; }

/* ---------- 页脚（含合规信息位） ---------- */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 64px 0 0; }
.footer a { color: #cbd5e1; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .03em; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 22px 0; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; text-align: center;
}
.footer-bottom a { font-size: 13px; }
.beian { display: inline-flex; align-items: center; gap: 6px; }
.beian img { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-4, .plans { grid-template-columns: 1fr; }
  .plans-4 { grid-template-columns: repeat(2,1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .plan.featured { transform: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .plans-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section-head h2, .cta h2 { font-size: 26px; }
}
