/* 个人日记 - 极简样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f4ef;
  --paper: #fffdf9;
  --ink: #2c2a26;
  --muted: #6b6560;
  --line: #e6e0d6;
  --accent: #5b6b4f;
  --accent-soft: #eef2ea;
  --shadow: 0 1px 2px rgba(44, 42, 38, 0.04), 0 8px 24px rgba(44, 42, 38, 0.05);
  --radius: 12px;
  --max: 720px;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(91, 107, 79, 0.06), transparent 28%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

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

.site-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

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

.site-title a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-desc {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  margin-top: 1.1rem;
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.entry-item {
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.entry-item:hover {
  border-color: #d7d0c4;
  transform: translateY(-1px);
}

.entry-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.entry-item a:hover {
  text-decoration: none;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.entry-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.entry-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article {
  padding: 1.75rem 1.5rem 2rem;
}

.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #333029;
}

.article-body p {
  margin-bottom: 1.15rem;
  text-align: justify;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #3d4338;
  border-radius: 0 8px 8px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--accent);
}

.about-card {
  padding: 1.75rem 1.5rem 2rem;
}

.about-card h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card p {
  margin-bottom: 1rem;
  color: #3a3631;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.beian {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .site {
    padding: 1.5rem 1rem 1.25rem;
  }

  .site-title {
    font-size: 1.45rem;
  }

  .article,
  .about-card,
  .entry-item {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .article-title {
    font-size: 1.35rem;
  }

  .article-body {
    font-size: 1rem;
  }
}
