/* ERP Guide Hub — 中文指南页共享样式
   供 /cn/guide/<slug>/ 使用。与 /cn/ 落地页同一套色板，但排版面向长文阅读。 */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #b45309;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { 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(--text);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- 顶部导航 ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--primary); }

.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

/* ---------- 主体 ---------- */

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span.sep { margin: 0 6px; color: var(--border-strong); }

article { padding: 18px 0 0; }

.post-head { padding-bottom: 26px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }

.kicker {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

h2 {
  font-size: 23px;
  line-height: 1.45;
  font-weight: 700;
  margin: 46px 0 16px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--text);
}

p { margin-bottom: 18px; color: var(--text-soft); }

article > p:first-of-type,
.lead p { font-size: 18.5px; color: var(--text); }

ul, ol { margin: 0 0 20px 0; padding-left: 24px; }
ul li, ol li { margin-bottom: 9px; color: var(--text-soft); }
ul li::marker { color: var(--primary); }

strong { color: var(--text); font-weight: 700; }

/* 表格：中文读者习惯看表，直接用原生 table */
.table-wrap { overflow-x: auto; margin: 24px 0 28px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 8px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
}

th {
  background: #f1f5f9;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 提示块 */
.callout {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15.5px;
  color: #78350f;
}
.callout strong { color: #92400e; }

.callout-info {
  background: var(--primary-soft);
  border-left-color: var(--primary);
  color: #1e3a8a;
}
.callout-info strong { color: var(--primary-dark); }

/* ---------- FAQ ---------- */

.faq { margin-top: 52px; padding-top: 34px; border-top: 2px solid var(--border); }
.faq h2 { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--text); }
.faq-a { color: var(--text-soft); font-size: 16px; }

/* ---------- CTA ---------- */

.cta {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin: 52px 0 0;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.cta h2 { margin-top: 0; font-size: 21px; }
.cta p { font-size: 15.5px; margin-bottom: 20px; }
.cta img { width: 168px; height: 168px; border-radius: 10px; border: 1px solid var(--border); }
.cta .hint { font-size: 13.5px; color: var(--muted); margin-top: 10px; margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.18);
  transition: background .12s, transform .12s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }

/* ---------- 相关阅读 ---------- */

.related { margin: 46px 0 0; }
.related h2 { font-size: 19px; margin-bottom: 16px; }
.related ul { list-style: none; padding: 0; }
.related li { border-bottom: 1px solid var(--border); padding: 13px 0; }
.related li:last-child { border-bottom: none; }
.related a { font-weight: 600; font-size: 16px; }
.related .sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }

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

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 34px 0 44px;
}
.site-footer .wrap { font-size: 13.5px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.site-footer p { font-size: 13.5px; margin-bottom: 10px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

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

@media (max-width: 640px) {
  body { font-size: 16.5px; line-height: 1.85; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; margin-top: 38px; }
  h3 { font-size: 17px; }
  .wrap { padding: 0 18px; }
  article > p:first-of-type, .lead p { font-size: 17px; }
  .site-header .inner { padding: 10px 18px; gap: 12px; }
  .brand { font-size: 15px; }
  th, td { padding: 10px 11px; font-size: 14px; }
  .cta { padding: 24px 20px; }
}
