/* pigeon（信鸽）站点基础样式
   仅使用系统字体与内联 SVG，不依赖任何外部资源。

   设计约束（改样式前先读这三条）：
   ① **只有一套浅色主题**。曾经有一段 `prefers-color-scheme: dark`，结果是深色系统的
      用户看到一套偏暗的界面，与「专业、克制」的定位相反。删掉比维护两套更容易做对。
   ② 层次靠**边框与留白**，不靠大阴影和渐变。渐变在对比度上不可控，也不耐看。
   ③ 强调色只用于「可操作的东西」（主按钮、链接、状态）。大面积品牌色留给图标。 */

:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --text: #0d1520;
  --muted: #5a6675;
  --border: #e3e8ee;
  --accent: #0a8f4d;
  --accent-dark: #077a41;
  --accent-soft: #eaf7f0;
  --ink: #0d1520;
  --danger: #c0392b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(13, 21, 32, .04);
  --wrap: 1040px;
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会覆盖 UA 的 [hidden]{display:none}，这里统一兜住。 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -.021em; font-weight: 650; }
p { margin: 0; }
img { max-width: 100%; }

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

.muted { color: var(--muted); }

/* ---------------------------------- 顶栏 ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.brand svg { display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------------------------------- 按钮 ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: #cfd7e0; }
.btn-danger { background: transparent; border-color: var(--border); color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

/* ---------------------------------- 首屏 ---------------------------------- */

.hero { padding: 76px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); }
/* 标题里的强调只用颜色，不加粗也不换字体：字号已经很大，再加重会显得吵。
   <em> 的斜体必须清掉 —— 中文斜体是机械倾斜，很难看。 */
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
/* 用小圆点代替 emoji 勾：勾号在中文正文里显得像营销物料，圆点更安静。 */
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* 代码卡 */
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-card header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.code-card pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}
.code-card .ok { color: var(--accent); }

/* ---------------------------------- 通用段 --------------------------------- */

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 58ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(23px, 2.8vw, 30px); }
.section-head p { margin-top: 12px; color: var(--muted); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.card .chip svg { display: block; }

/* 步骤 */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 2px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 650;
}
.step h3 { font-size: 16px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* 行动号召 */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.cta h2 { font-size: 23px; }
.cta p { margin-top: 8px; color: #aeb8c4; font-size: 15px; }
.cta .btn { background: #fff; color: var(--ink); flex: none; }
.cta .btn:hover { background: #eef2f5; }

/* ---------------------------------- 文档 ---------------------------------- */

.page { padding: 52px 0 76px; }
.page-head { max-width: 60ch; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; scroll-margin-top: 82px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.prose li + li { margin-top: 7px; }
.prose strong { color: var(--text); font-weight: 650; }
/* 正文里的链接必须看得出可点：默认 a 是继承色，邮箱地址会变成一段纯黑文字。 */
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

.note {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--muted);
}
.note b { color: var(--text); }

pre.code, code.inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre.code {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}
code.inline {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 13.5px;
}

.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }

/* ---------------------------------- 价格 ---------------------------------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

.price-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.price-card-member { border-color: #cfe6da; }
.price-card .amount { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; }
.price-card .amount b { font-size: 38px; letter-spacing: -.03em; }
.price-card .amount span { color: var(--muted); font-size: 14.5px; }
.price-card .plan-note { color: var(--muted); font-size: 14.5px; }
.price-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.price-card .plan-cta, .price-card .plan-actions { margin-top: 24px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------- 页脚 ---------------------------------- */

.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copyright { font-size: 13.5px; color: var(--muted); }

/* --------------------------------- 响应式 --------------------------------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 52px 0 44px; }
  .grid, .steps, .plans { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: auto; padding-block: 12px; flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-nav a { padding: 7px 10px; white-space: nowrap; }
  .cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .section { padding: 48px 0; }
  .price-card { padding: 24px; }
}
