/* assets/style.css — 极简，无外部依赖，移动友好 */
:root {
  --fg: #2b2b2b;
  --muted: #888;
  --bg: #fafaf7;
  --accent: #5a4a3a;
  --rule: #e6e2da;
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

header.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.site-title {
  font-size: 1.6rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.site-sub-en {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-notice {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rule);
  background: #f5f1e9;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem;
}

ul.whisper-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.whisper-list li {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--rule);
}
ul.whisper-list li:last-child { border-bottom: none; }
ul.whisper-list a {
  color: var(--fg);
  text-decoration: none;
}
ul.whisper-list a:hover .title { color: var(--accent); }

.whisper-meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.whisper-meta time { font-variant-numeric: tabular-nums; }
.title {
  font-size: 1.15rem;
  font-weight: 500;
}
.preview {
  margin-top: 0.4rem;
  color: #555;
  font-size: 0.95rem;
}

article.whisper {
  padding: 1rem 0 2rem;
}
article.whisper h1 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0.5rem 0 1rem;
}
article.whisper h2 { font-size: 1.25rem; margin-top: 1.5rem; }
article.whisper h3 { font-size: 1.1rem;  margin-top: 1.2rem; }
article.whisper p  { margin: 0.8em 0; }
article.whisper ul { padding-left: 1.4rem; }
article.whisper code {
  background: #efece5;
  padding: 0 0.25em;
  border-radius: 3px;
  font-size: 0.9em;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back:hover { color: var(--accent); }

details.source {
  margin: 1.5rem 0 2rem;
  padding: 0.75rem 1rem;
  background: #f3efe7;
  border-left: 3px solid var(--accent);
  border-radius: 3px;
}
details.source > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.9rem;
  user-select: none;
}
details.source[open] > summary { margin-bottom: 0.6rem; }
pre.source-json {
  margin: 0;
  padding: 0.75rem;
  background: #2b2b2b;
  color: #e8e3d8;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  max-height: 480px;
  overflow-y: auto;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.pager-link {
  display: inline-block;
  min-width: 2rem;
  padding: 0.3rem 0.6rem;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  transition: background 0.15s;
}
.pager-link:hover { background: #f3efe7; }
.pager-link.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  cursor: default;
}
.pager-link.disabled {
  color: #c5bfb4;
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}
.pager-ellipsis {
  color: var(--muted);
  padding: 0 0.2rem;
}
.pager-info {
  margin-left: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  font-style: italic;
}

footer.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}