/* KSMN · 教育 AI 部署服务 — 2026-10-25
   沿用 ksmn.cc 首页的暖极简基调，扩展为多页站点。
   合规口径：个人备案 = 非经营性。不含价格、套餐、下单、支付、公司名称。
   能讲「怎么做」，不能讲「买不买」。 */

:root {
  color-scheme: light;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b7280;
  --faint: #a1a1aa;
  --line: #e7e5e4;
  --line-2: #f0eeec;
  --bg: #fafaf9;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --accent-line: #99f6e4;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 9px; letter-spacing: .06em; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
@media (max-width: 720px) { nav a.hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 76px 0 56px; }
.kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
h1 { font-size: clamp(30px, 5.4vw, 50px); font-weight: 680; letter-spacing: -.04em; line-height: 1.18; max-width: 20ch; }
.sub { margin-top: 22px; font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); max-width: 46em; }
.lede { margin-top: 26px; font-size: 17px; color: var(--ink-2); max-width: 44em; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 550; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--faint); }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- sections ---------- */
section { padding: 60px 0; border-top: 1px solid var(--line-2); }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 650; letter-spacing: -.028em; line-height: 1.3; }
.sec-lead { margin-top: 12px; color: var(--muted); max-width: 48em; }
h3 { font-size: 18px; font-weight: 620; letter-spacing: -.015em; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 14px; margin-top: 32px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .g2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; text-decoration: none; color: inherit; display: block;
  transition: border-color .16s ease, transform .16s ease;
}
a.card:hover { border-color: var(--faint); transform: translateY(-1px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .meta { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: .05em; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 12px;
}

/* ---------- plain list ---------- */
.plain { list-style: none; margin-top: 26px; }
.plain li { padding: 14px 0 14px 26px; border-top: 1px solid var(--line-2); position: relative; }
.plain li:first-child { border-top: 0; }
.plain li::before {
  content: ""; position: absolute; left: 4px; top: 24px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.plain strong { font-weight: 600; }
.plain span { color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { counter-reset: s; margin-top: 30px; display: grid; gap: 2px; }
.step {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px 20px 66px; position: relative;
}
.step::before {
  content: counter(s); position: absolute; left: 22px; top: 20px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.tbl td:first-child { font-weight: 550; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* ---------- callout ---------- */
.note {
  margin-top: 30px; background: var(--warn-soft); border: 1px solid #fde68a;
  border-radius: 12px; padding: 18px 20px; font-size: 14.5px; color: #78350f;
}
.note b { color: #451a03; }
.note p + p { margin-top: 8px; }

/* ---------- form ---------- */
.form { margin-top: 28px; display: grid; gap: 16px; max-width: 760px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 max(30px, env(safe-area-inset-bottom)); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-left { font-size: 13px; color: var(--faint); }
.foot-legal { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: flex-end; }
.foot-legal a { font-size: 12px; color: var(--faint); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }
@media (max-width: 560px) { .foot-legal { justify-content: flex-start; } }

/* ---------- inline code / mono ---------- */
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}
