:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1e21;
  --ink-soft: #3d434a;
  --muted: #6b7280;
  --line: #e6e1d8;
  --accent: #1c4d3e;
  --accent-soft: #eef4f1;
  --max: 880px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(28, 77, 62, .28); }
a:hover { border-bottom-color: var(--accent); }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; color: var(--ink); border: 0; }
.brand:hover { border: 0; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { border: 0; color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- 版心 ---------- */
main { padding: 46px 0 30px; }

h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  line-height: 1.45;
  color: var(--ink);
}
h1 { font-size: 30px; margin: 0 0 16px; letter-spacing: .3px; }
h2 { font-size: 22px; margin: 44px 0 14px; padding-top: 4px; }
h3 { font-size: 18px; margin: 30px 0 10px; }

p { margin: 0 0 16px; color: var(--ink-soft); }
ul, ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
li { margin-bottom: 7px; }

strong { color: var(--ink); }

.lede { font-size: 19px; color: var(--ink); }

.hr { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

/* ---------- 首页头图区 ---------- */
.hero { padding: 26px 0 6px; }
.hero h1 { font-size: 34px; margin-bottom: 14px; }
.hero .lede { max-width: 640px; }
.hero-meta {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 22px 0 6px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 20px 18px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 12px; font-size: 14px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid #cfe0d9;
  white-space: nowrap;
}
tbody tr:hover { background: #fdfcf9; }
td em { color: var(--muted); font-style: normal; font-size: 13.5px; }

/* ---------- 流程 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.flow li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}
.flow li:not(:last-child)::after { content: ""; }

/* ---------- 文章列表 ---------- */
.article-list { list-style: none; padding: 0; margin: 18px 0 0; }
.article-list li {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 0;
}
.article-list .t { font-size: 17px; font-weight: 600; display: block; margin-bottom: 5px; }
.article-list .m { font-size: 13.5px; color: var(--muted); }
.article-list .d { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- 正文排版 ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: 21px; }
.prose p { color: var(--ink-soft); }
.article-head { margin-bottom: 8px; }
.article-head h1 { font-size: 27px; margin-bottom: 10px; }
.article-head .m { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; }
.faq-item p { margin: 0; font-size: 15.5px; }
.faq-item .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------- 提示条 ---------- */
.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.note p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); border: 0; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  main { padding: 30px 0 20px; }
  table { font-size: 14px; }
  th, td { padding: 9px 8px; }
  thead th { white-space: normal; }
}
