:root {
  --paper: #f6f1e8;
  --ink: #241c16;
  --muted: #6b5e52;
  --rule: #d9cbb6;
  --accent: #8b3a2a;
  --chip: #efe6d6;
  --note: #fbf7f0;
  --pending: #8a7b6c;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 2.2rem 1.25rem 4rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; margin-bottom: 2rem; }
.brand { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif; font-size: 2rem; letter-spacing: 0.18em; margin: 0 0 0.4rem; }
.brand a { color: var(--ink); }
.tagline { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.cats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--chip);
  color: var(--ink) !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.12rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.cat span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat.current { background: var(--accent); color: #fffaf3 !important; }
.cat.current span { color: #f3e4d6; }
.page-title { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 600; font-size: 1.6rem; margin: 0 0 0.4rem; }
.count { color: var(--muted); margin: 0 0 0.8rem; font-size: 0.95rem; }
.list { display: flex; flex-direction: column; gap: 1.4rem; }
.card, .detail { background: #fffaf3; border: 1px solid var(--rule); border-radius: 14px; padding: 1.25rem 1.3rem 1.3rem; }
.card h2, .detail h1 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
}
.detail h1 { font-size: 1.7rem; }
.card-cat { margin: 0 0 0.45rem; font-size: 0.78rem; letter-spacing: 0.08em; }
.card-cat a { color: var(--muted); }
.meta, .back { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.7rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 0.8rem; }
.tag {
  display: inline-block;
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  font-size: 0.82rem;
}
.tags.big { gap: 0.6rem; }
.card-excerpt { color: var(--muted); margin: 0 0 0.8rem; }
.badge { margin: 0; font-size: 0.92rem; }
.badge.written { color: var(--accent); }
.origin { margin: 0 0 1.2rem; }
.origin-actions { margin: 0.9rem 0 0.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.btn-origin {
  display: inline-block;
  background: var(--accent);
  color: #fffaf3 !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.28rem 1.05rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.btn-hub { display: inline-block; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0.28rem 1.05rem; font-size: 0.92rem; line-height: 1.7; text-decoration: none; }
.btn-hub:hover { text-decoration: underline; }
.btn-origin:hover { opacity: 0.9; text-decoration: none !important; }
.btn-origin-lg { padding: 0.4rem 1.35rem; font-size: 1rem; }
.zh-summary {
  margin: 1.05rem 0 1.3rem;
  padding: 0.95rem 1.1rem 1rem;
  border-radius: 12px;
  background: #f3f4f0;
  border: 1px solid #d5d7cc;
}
.zh-summary h2 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.zh-summary p { margin: 0; line-height: 1.8; }
figure.excerpt { margin: 0 0 1.2rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--accent); }
figure.excerpt figcaption { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.3rem; }
figure.excerpt blockquote, .note blockquote { margin: 0; }
figure.excerpt p, .note p { margin: 0 0 0.6rem; }
figure.excerpt p:last-child { margin-bottom: 0; }
.note { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--note); }
.note h2 { font-size: 0.95rem; letter-spacing: 0.12em; margin: 0 0 0.6rem; font-weight: 600; }
.note-written { border: 1px solid #e3cfc0; }
.note .own { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 1.15rem; margin: 0 0 0.5rem; }
.note .own + .own { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid #e3cfc0; }
.note .own:last-of-type { margin-bottom: 0; }
.note-source { font-size: 0.85rem; color: var(--muted); margin: 0; word-break: break-all; }
.note .note-item + .note-item,
.note .note-item + .own {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e3cfc0;
}
.note .note-item + .note-source { margin-top: 0.85rem; }
.note .note-head {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 0.4rem;
  overflow-wrap: break-word;
}
.note .note-head-link {
  color: var(--muted);
  text-decoration: none;
}
.note .note-head-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.note .note-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}
.note .note-time + .note-chapter { margin-left: 0.45rem; }
.note .note-arrow {
  margin-left: 0.25rem;
  color: var(--accent);
  white-space: nowrap;
}
.note .note-quote {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 0.55rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rule);
}
.note .note-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0;
}
.site-footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0 0 0.4rem; }
@media (max-width: 640px) {
  html { font-size: 17px; }
  .wrap { padding: 1.4rem 1rem 3rem; }
  .brand { font-size: 1.7rem; letter-spacing: 0.14em; }
  .detail h1 { font-size: 1.4rem; }
  .cats { gap: 0.32rem; }
  .cat { font-size: 0.78rem; padding: 0.1rem 0.6rem; }
}
