:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #2b2926;
  --text-muted: #8a857e;
  --accent: #c96f4a;
  --accent-soft: #f4e5de;
  --border: #e8e4df;
  --radius: 14px;
  --max-width: 1080px;
}

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

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航 ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo span { color: var(--accent); }

nav .links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

nav .links a {
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 6px 0;
}

nav .links a:hover,
nav .links a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 12px;
}

/* ---------- 区块 ---------- */
section.block { padding: 40px 0 64px; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.block-head h2 { font-size: 24px; }

.block-head a { color: var(--accent); font-size: 14px; }

/* ---------- 卡片 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(43, 41, 38, 0.08);
}

.card .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card h3 { font-size: 18px; margin-bottom: 8px; }

.card p {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 照片墙 ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.photo-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  display: block;
}

.photo-grid a:hover img { transform: scale(1.05); }

/* ---------- 文章页 ---------- */
article.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

article.post .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

article.post h1 { font-size: 32px; margin-bottom: 8px; }

article.post h2 { font-size: 22px; margin: 32px 0 12px; }

article.post p { margin-bottom: 16px; }

article.post img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
}

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

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  nav .links { gap: 16px; font-size: 14px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
}
