/* aifluss.cn — 中国区中文落地页
   Palette mirrors the GEO Engine product: paper, ink, one signal colour. */

:root {
  --bg: #f1eee5;
  --surface: #faf8f1;
  --surface-2: #e9e5da;
  --ink: #17160f;
  --text-sec: #46443a;
  --muted: #777369;
  --line: #d5d0c2;
  --line-strong: #aaa493;
  --accent: #df3a12;
  --accent-hover: #b92c0b;
  --accent-ink: #fffaf3;
  --max: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 238, 229, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-sec);
}

.nav a:hover {
  color: var(--accent);
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

/* ── Typography ─────────────────────────────────────────────────────── */

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 760px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  max-width: 940px;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lede {
  max-width: 660px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-sec);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── Stats ──────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

.section-head p {
  color: var(--text-sec);
  max-width: 520px;
  margin: 0;
}

/* ── Framework layers ───────────────────────────────────────────────── */

.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.layer {
  background: var(--surface);
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.layer .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.layer h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 28px 0 6px;
  font-weight: 600;
}

.layer p {
  color: var(--text-sec);
  margin: 0;
}

.layer .count {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ── Process ────────────────────────────────────────────────────────── */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 14px 0 10px;
  font-weight: 600;
}

.step p {
  color: var(--text-sec);
  margin: 0;
}

/* ── Sample ─────────────────────────────────────────────────────────── */

.sample {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.sample h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 600;
  text-wrap: balance;
}

.sample p {
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 0 28px;
}

.sample-card {
  background: var(--ink);
  color: var(--bg);
  padding: 32px;
}

.sample-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid #3a382f;
  font-size: 13px;
}

.sample-card-head .mono {
  color: var(--line-strong);
}

.sample-list {
  display: grid;
}

.sample-list div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #3a382f;
  font-size: 13px;
}

.sample-list b {
  font-family: var(--font-mono);
  font-weight: 400;
}

.sample-note {
  color: var(--line-strong);
  font-size: 11px;
  margin: 18px 0 0;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plan {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan-pro {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.plan h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.price {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  margin: 20px 0 14px;
  font-weight: 600;
}

.price span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.plan-pro .price span {
  color: var(--line-strong);
}

.plan > p {
  color: var(--text-sec);
  margin: 0 0 22px;
}

.plan-pro > p {
  color: #d8d3c6;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.plan li::before {
  content: "✓";
  color: var(--accent);
  font-family: var(--font-mono);
}

.plan .btn {
  margin-top: auto;
}

.plan-pro .btn {
  border-color: var(--bg);
  color: var(--bg);
}

.plan-pro .btn:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ── About ──────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.about h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

.principles {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.principles b {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.principles span {
  color: var(--text-sec);
}

/* ── Contact ────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

.contact p {
  margin: 0 0 8px;
  color: var(--text-sec);
}

.contact a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-sec);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 600;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 32px 0 10px;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--text-sec);
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.legal-back a {
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 64px 0;
  }

  .section-head,
  .sample,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .layers {
    grid-template-columns: repeat(2, 1fr);
  }

  .process,
  .plans {
    grid-template-columns: 1fr;
  }

  .principles li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .brand span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .layers {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat strong {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
