:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1a1d21;
  --muted: #5b6470;
  --border: #e5e8ec;
  --accent: #0f6cbd;
  --accent-soft: #e8f1fb;
  --tag-bg: #eef2f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #171b22;
    --text: #e8ebef;
    --muted: #9aa4b2;
    --border: #2a313b;
    --accent: #4aa3ff;
    --accent-soft: #12283f;
    --tag-bg: #20262f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 1px solid var(--border);
  padding: 28px 0 20px;
  margin-bottom: 28px;
}
header.site h1 { margin: 0 0 6px; font-size: 1.7rem; }
header.site h1 a { color: var(--text); text-decoration: none; }
header.site p { margin: 0; color: var(--muted); font-size: .95rem; }
.badge {
  display: inline-block;
  font-size: .75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
  font-weight: 600;
}
article.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
article.card h2 { margin: 0 0 8px; font-size: 1.15rem; }
article.card h2 a { color: var(--text); text-decoration: none; }
article.card h2 a:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.meta span + span::before { content: " · "; }
.tags { margin-top: 12px; }
.tag {
  display: inline-block;
  font-size: .75rem;
  background: var(--tag-bg);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 6px;
}
.summary { margin: 0; }
.summary p { margin: 0 0 8px; }
.daily-head { margin-bottom: 24px; }
.daily-head h2 { margin: 0 0 6px; font-size: 1.4rem; }
.daily-head p { margin: 0; color: var(--muted); }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
}
.archive-list a:hover { border-color: var(--accent); }
.archive-list .date { font-weight: 700; }
.archive-list .count { color: var(--muted); font-size: .85rem; }
footer.site {
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}
a { color: var(--accent); }

/* ---- bilingual ---- */
html[data-lang="zh"] .t-en { display: none !important; }
html[data-lang="en"] .t-zh { display: none !important; }
header.site { position: relative; }
.lang-toggle {
  position: absolute;
  top: 28px;
  right: 0;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); }
@media (max-width: 560px) {
  .lang-toggle { top: 20px; padding: 5px 12px; }
  header.site h1 { font-size: 1.35rem; padding-right: 76px; }
}
