:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2329;
  --text-soft: #5c6573;
  --muted: #9aa2ad;
  --accent: #6c7cff;
  --accent-soft: #eef0ff;
  --line: #ececf0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 35, 41, 0.06);
  --shadow-hover: 0 12px 32px rgba(108, 124, 255, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9b6cff);
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-soft); }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(900px 320px at 50% -120px, var(--accent-soft), transparent 70%);
}
.hero h1 { font-size: 40px; letter-spacing: -0.5px; margin-bottom: 16px; }
.hero p { color: var(--text-soft); font-size: 17px; max-width: 620px; margin: 0 auto; }
.hero .tags { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .tags span {
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--text-soft);
  box-shadow: var(--shadow);
}

/* ---------- Section ---------- */
.section { padding: 36px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 24px; letter-spacing: -0.3px; }
.section-head .sub { color: var(--muted); font-size: 14px; }

/* ---------- Life grid ---------- */
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.life-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.life-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.life-card .date { color: var(--muted); font-size: 13px; }
.life-card .emoji { font-size: 26px; margin: 6px 0 10px; }
.life-card h3 { font-size: 17px; margin-bottom: 8px; }
.life-card p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card .cover {
  height: 150px;
  display: grid; place-items: center;
  font-size: 46px;
  color: #fff;
}
.post-card .body { padding: 18px 20px 22px; }
.post-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-card h3 { font-size: 18px; margin-bottom: 8px; }
.post-card .excerpt { color: var(--text-soft); font-size: 14.5px; }
.post-card .pill {
  display: inline-block; margin-top: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .shot {
  aspect-ratio: 1 / 1; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 30px; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.gallery .shot:hover { transform: scale(1.04); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13.5px;
}
.site-footer .links { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.site-footer .links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .2s ease, color .2s ease;
}
.site-footer .links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .links a img { width: 16px; height: 16px; display: block; }
.site-footer .copyright { color: var(--muted); margin-top: 6px; }

@media (max-width: 860px) {
  .life-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero h1 { font-size: 30px; }
}
