/* 京金福官网样式：不加载任何外部字体和脚本，国内打开快 */
:root {
  --ink: #1d1f23;
  --muted: #5b616b;
  --line: #e4e1dc;
  --bg: #fbfaf8;
  --panel: #ffffff;
  --accent: #b3261e;
  --accent-ink: #8c1d17;
  --soft: #f6efe9;
  --todo: #fff3b0;
  --todo-line: #e0b400;
  --radius: 10px;
  --wrap: 960px;
  --text: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e4;
    --muted: #a8a39b;
    --line: #34312d;
    --bg: #171614;
    --panel: #1f1d1b;
    --accent: #f0796f;
    --accent-ink: #f59c94;
    --soft: #2a2420;
    --todo: #5a4b00;
    --todo-line: #c9a400;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.8 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.draft-banner {
  background: #ffe680; color: #3d3200; border-bottom: 1px solid #e0b400;
  padding: 8px 16px; font-size: 14px; line-height: 1.6; text-align: center;
}
.draft-banner code { background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 4px; }

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
.logo { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.logo small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.call { font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid var(--accent); padding: 4px 12px; border-radius: 999px; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 6px; white-space: nowrap; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--soft); font-weight: 600; }

main { padding-top: 20px; padding-bottom: 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
article { max-width: var(--text); }
article.product, article.hub, article.page { max-width: var(--wrap); }
article.product > p, article.product > ul, article.page > p, article.page > ul, article.page > ol, article.hub > p { max-width: var(--text); }
h1 { font-size: 30px; line-height: 1.35; margin: 4px 0 6px; letter-spacing: .5px; }
h2 { font-size: 22px; line-height: 1.45; margin: 40px 0 10px; padding-top: 4px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
h2 + h3 { margin-top: 12px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
article > p:first-of-type { font-size: 18.5px; }
.small { color: var(--muted); font-size: 14px; }
strong { font-weight: 650; }

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 24px; font-size: 15px; max-width: var(--text); }
.toc ol { margin: 6px 0 0; }

.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; max-width: var(--text); }
.note p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--soft); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; }
table.kv th { width: 34%; color: var(--muted); font-weight: 500; }
table.compare td, table.compare th { white-space: nowrap; }
table small { color: var(--muted); font-weight: 400; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0 20px; max-width: var(--text); }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.card a { text-decoration: none; }
.card strong { font-size: 17px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.card:hover { border-color: var(--accent); }

figure { margin: 12px 0 20px; }
figure img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

mark.todo { background: var(--todo); color: inherit; border-bottom: 1px dashed var(--todo-line); padding: 0 2px; border-radius: 3px; }
p.todo { background: var(--todo); padding: 6px 10px; border-radius: 6px; }
.needs { position: relative; border: 1px dashed var(--todo-line); border-radius: var(--radius); padding: 22px 14px 4px; margin: 12px 0 16px; }
.needs::before { content: attr(data-needs) "（正式版缺这些就不上线）"; position: absolute; top: 2px; left: 12px; font-size: 12px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; padding: 20px 0 28px; text-align: center; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; margin-top: 32px; }
  article > p:first-of-type { font-size: 17px; }
  .logo { font-size: 21px; }
  .logo small { display: none; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 8px; }
}
@media print {
  .site-header nav, .draft-banner, .call { display: none; }
}
