/* ============================================================
   昆明朴见官网 · 全局样式
   纯静态、零客户端 JS、移动优先、面向 AI 摘录的可读排版。
   视觉：现代 SaaS 但克制 —— 中性墨黑/灰 + 单一强调色深蓝。
   ============================================================ */

:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --bg: #ffffff;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --radius: 12px;
  --max: 1080px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: 0.01em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.logo:hover { text-decoration: none; color: var(--brand-dark); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.site-nav > a { color: var(--muted); }
.site-nav > a:hover { color: var(--ink); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd5e1; }

/* ---------- 第一屏 ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 12% -12%, rgba(29, 78, 216, 0.55) 0%, rgba(29, 78, 216, 0) 62%),
    linear-gradient(158deg, #0f172a 0%, #141f38 55%, #0f172a 100%);
  color: #fff;
  padding: 88px 0 76px;
}
.hero h1 { font-size: clamp(34px, 6vw, 54px); margin: 0 0 10px; font-weight: 700; }
.hero .legal {
  font-size: clamp(17px, 2.4vw, 21px);
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 18px;
  font-weight: 600;
}
.hero .lead { font-size: clamp(15px, 1.9vw, 17px); color: rgba(255, 255, 255, 0.74); margin: 0 0 30px; max-width: 46em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 28px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}
.hero-facts a { color: #9fc0ff; }

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 56px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--brand); text-transform: uppercase; margin: 0 0 10px; }
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 16px; }
.lead { font-size: 17px; color: var(--body); margin: 0 0 24px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid-wide { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: #cbd5e1; box-shadow: var(--shadow-hover); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--body); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }

/* ---------- 流程线 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px 8px 12px;
  font-size: 14px;
  color: var(--ink);
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 提示块 ---------- */
.note {
  border-left: 3px solid var(--brand);
  background: var(--soft);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--body);
  font-size: 15px;
  margin: 24px 0;
}
.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; color: var(--ink); }

/* ---------- 长文排版 ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p { color: var(--body); margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--body); padding-left: 1.3em; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table.data th, table.data td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.data th { background: var(--soft); font-weight: 700; white-space: nowrap; color: var(--ink); }
table.data td { color: var(--body); }

/* ---------- 字段清单 ---------- */
.kv { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 168px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 15px; margin: 0; }
.kv dd { margin: 0; color: var(--ink); font-size: 15px; }

/* ---------- 数据锚点 ---------- */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); margin: 0 0 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: 26px; color: var(--brand); line-height: 1.2; }
.stat span { display: block; color: var(--body); font-size: 14px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; }
.faq summary::marker { color: var(--brand); }
.faq details[open] summary { margin-bottom: 12px; }
.faq .answer { color: var(--body); font-size: 15px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; padding-top: 20px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #cbd5e1; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 24px; padding: 44px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.footer-name { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.footer-meta { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: var(--muted); }
.footer-legal { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- 页尾实体条 ---------- */
.entity-bar { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 40px 0; font-size: 15px; }
.entity-bar strong { color: #fff; display: block; font-size: 17px; margin-bottom: 10px; }
.entity-bar p { margin: 0 0 6px; }
.entity-bar .tiny { color: rgba(255, 255, 255, 0.55); font-size: 13px; margin-top: 14px; }

/* ---------- 滚动淡入（渐进增强，无 JS） ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise 1s ease both; animation-timeline: view(); animation-range: entry 8% cover 26%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .kv div { grid-template-columns: 1fr; gap: 4px; }
  .header-inner { align-items: flex-start; }
  .site-nav { font-size: 14px; }
  .logo { font-size: 15px; }
}
