:root {
  --bg: #f4f4f1;
  --paper: #ffffff;
  --paper-soft: #fafaf7;
  --ink: #1f2328;
  --muted: #66707b;
  --line: #d9dee3;
  --accent: #8a4a2d;
  --accent-soft: #f6ede8;
  --status-mature: #2f7d4f;
  --status-explore: #b07a1d;
  --status-draft: #8c8c8c;
  --shadow: 0 20px 40px rgba(31, 35, 40, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8f8f5 0%, var(--bg) 100%);
  color: var(--ink);
  font: 16px/1.8 "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.nav a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3, h4 {
  line-height: 1.3;
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 650;
}
.card h1 { margin: 0 0 14px; font-size: 32px; }
.card h2 { margin: 28px 0 12px; font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.card h3 { margin: 20px 0 8px; font-size: 17px; }
.lead { margin: 0; color: var(--muted); font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.meta span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 12px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.cand {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cand:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cand .tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.tag.mature { background: var(--status-mature); }
.tag.explore { background: var(--status-explore); }
.tag.draft { background: var(--status-draft); }
.cand h3 { margin: 0; font-size: 17px; }
.cand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.cand .cand-meta { color: var(--muted); font-size: 12px; }
.cand .cand-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 13px;
  border-top: 1px dashed var(--line);
}

.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
table.compare thead th {
  background: var(--paper-soft);
  font-family: "Iowan Old Style", "Songti SC", serif;
  font-size: 15px;
}
table.compare tbody th {
  background: var(--accent-soft);
  width: 160px;
  color: #4c3428;
}

.res-list { display: grid; gap: 14px; }
.res {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--paper-soft);
}
.res h3 { margin: 0 0 4px; font-size: 16px; }
.res p { margin: 0; color: var(--muted); font-size: 13px; }
.res .res-link { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 13px; }
.res-section { margin-top: 24px; }
.res-section h2 { font-size: 20px; margin: 10px 0 14px; }

footer.page-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .shell { padding: 14px 12px 60px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px 18px; }
  .card h1 { font-size: 26px; }
}
