:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #6b7280;
  --accent: #2f6fed;
  --border: #e5e7eb;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { font-size: 22px; font-weight: 700; color: var(--text); }
.brand span { color: var(--accent); }

.nav-links a {
  margin-left: 24px;
  color: var(--text);
  font-size: 15px;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

main { padding: 48px 0 72px; }

.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

section.block { margin-top: 48px; }

.block h2 {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block h2 .more { font-size: 14px; font-weight: 400; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgba(31, 35, 41, .08);
}

.photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 35, 41, .14);
}

.photo .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.photo .cap small {
  display: block;
  font-size: 12px;
  opacity: .8;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .85);
  font-size: 34px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(31, 35, 41, .08);
  transform: translateY(-2px);
}

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(47, 111, 237, .08);
  border-radius: 999px;
}

.article-list .card { display: block; margin-bottom: 16px; }
.article-list .date { color: var(--muted); font-size: 13px; margin-top: 6px; }

.article-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.article-body h1 { font-size: 28px; margin-bottom: 12px; }
.article-body .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article-body h2 { font-size: 22px; margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body code {
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
}

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

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .nav-links a { margin-left: 14px; font-size: 14px; }
}
