:root {
  --bg: #ffffff;
  --surface: #f8f8f8;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #b8860b;
  --accent-dim: rgba(184, 134, 11, 0.12);
  --radius: 12px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}

.site-header {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 0 0 0.35em;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.latest-featured {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.latest-featured .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.latest-featured .title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.latest-featured .meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.latest-featured .title a {
  color: inherit;
  text-decoration: none;
}

.latest-featured .title a:hover {
  text-decoration: underline;
}

.latest-featured.empty {
  display: none;
}

.news-list h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list .item-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.news-list .item-title a {
  color: var(--text);
  text-decoration: none;
}

.news-list .item-title a:hover {
  text-decoration: underline;
}

.news-list .item-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

/* 评论、点赞、转发操作栏 */
.article-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.btn-action {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.btn-action:hover {
  color: var(--text);
  border-color: var(--text);
  background: var(--surface);
}

.comment-box {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.comment-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.comment-list li {
  padding: 0.35rem 0;
  border-bottom: none;
}

.comment-list li + li {
  border-top: 1px solid var(--border);
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.comment-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit-comment {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-submit-comment:hover {
  filter: brightness(1.08);
}

.loading,
.error {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.error {
  color: #c75c5c;
}

.site-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.update-status {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-clear-cache {
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.btn-clear-cache:hover {
  color: var(--text);
  border-color: var(--text);
}

/* 分页 */
.pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pagination-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.pagination-prev,
.pagination-next,
.pagination-num {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.pagination-prev:hover:not(:disabled),
.pagination-next:hover:not(:disabled),
.pagination-num:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-num.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

.pagination-prev:disabled,
.pagination-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
