:root {
  --bg: #f3efe5;
  --card: rgba(255, 255, 255, 0.72);
  --text: #1f2f3a;
  --muted: #5b6b74;
  --line: rgba(31, 47, 58, 0.14);
  --brand: #1e6f73;
  --accent: #d07a31;
  --shadow: 0 18px 40px rgba(20, 33, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 12% 15%, #f9e4be 0, rgba(249, 228, 190, 0.35) 30%, transparent 52%),
    radial-gradient(circle at 88% 10%, #cde7de 0, rgba(205, 231, 222, 0.4) 36%, transparent 58%), var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", serif;
  line-height: 1.25;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  width: min(1040px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand {
  text-decoration: none;
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.6);
}

.page-wrap {
  width: min(1040px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  position: relative;
  z-index: 2;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 232, 0.74));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand);
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 14ch;
}

.hero-copy {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 60ch;
}

.cta {
  display: inline-block;
  margin-top: 1.3rem;
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), #245585);
  color: #fff;
  border: 0;
}

.posts-section {
  margin-top: 1.8rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.post-card {
  grid-column: span 4;
  min-height: 220px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(4px);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 111, 115, 0.5);
}

.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.post-card h3 {
  font-size: 1.24rem;
}

.post-card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
}

.tag-row span,
.tag-row li {
  font-size: 0.78rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #2e454f;
}

.about,
.post-view {
  margin-top: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.about h2 {
  margin-bottom: 0.6rem;
}

.post-head h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.post-excerpt {
  margin-top: 0.8rem;
  color: var(--muted);
}

.post-content {
  margin-top: 1.3rem;
}

.post-content p + p {
  margin-top: 0.8rem;
}

.post-content h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.checklist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.checklist li + li {
  margin-top: 0.4rem;
}

.empty-state h1 {
  font-size: 1.5rem;
}

.empty-state p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.site-footer {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.44;
  z-index: 0;
  pointer-events: none;
}

.bg-shape-a {
  width: 210px;
  height: 210px;
  left: -60px;
  top: 80px;
  background: #f2c177;
}

.bg-shape-b {
  width: 240px;
  height: 240px;
  right: -80px;
  top: 280px;
  background: #7ab3ad;
}

.bg-shape-c {
  width: 190px;
  height: 190px;
  right: -40px;
  top: 120px;
  background: #f0d58b;
}

.bg-shape-d {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: 100px;
  background: #90c0ca;
}

.reveal {
  animation: rise 0.55s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .post-card {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-card {
    grid-column: span 12;
  }
}
