:root {
  --bg: #f6f1e7;
  --bg-soft: #fffaf1;
  --ink: #1d2a35;
  --ink-muted: #4f5f6d;
  --accent: #cf5f32;
  --accent-deep: #9d3f1a;
  --accent-cool: #2f6f68;
  --card: rgba(255, 251, 241, 0.88);
  --line: rgba(29, 42, 53, 0.12);
  --shadow: 0 20px 45px rgba(38, 31, 21, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 111, 104, 0.18), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(207, 95, 50, 0.16), transparent 40%),
    linear-gradient(165deg, #f9f4ea 0%, #f4ead8 100%);
  min-height: 100vh;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(29, 42, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 42, 53, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 18%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.bg-shape-a {
  width: 260px;
  height: 260px;
  background: rgba(207, 95, 50, 0.22);
  top: 72%;
  left: -80px;
  animation: floatA 14s ease-in-out infinite alternate;
}

.bg-shape-b {
  width: 240px;
  height: 240px;
  background: rgba(47, 111, 104, 0.2);
  top: 6%;
  right: -70px;
  animation: floatB 16s ease-in-out infinite alternate;
}

@keyframes floatA {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-30px) translateX(30px);
  }
}

@keyframes floatB {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(35px) translateX(-25px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 244, 234, 0.74);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent-deep);
}

.hero {
  padding: 4.8rem 0 3.8rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cool);
  font-size: 0.78rem;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.18;
  margin: 0.9rem 0 1rem;
}

.hero-text {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.64rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(23, 22, 20, 0.12);
}

.btn-primary {
  background: var(--accent);
  color: #fffdf8;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-panel li {
  padding: 0.85rem 0;
  display: grid;
  gap: 0.2rem;
  border-top: 1px dashed rgba(29, 42, 53, 0.2);
}

.hero-panel li:first-child {
  border-top: 0;
}

.hero-panel span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cool);
}

.hero-panel strong {
  font-size: 1rem;
}

.section {
  padding: 1.3rem 0 3rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section h2 {
  margin: 0.3rem 0 0;
  font-size: 1.8rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(38, 31, 21, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.meta {
  color: var(--ink-muted);
  font-size: 0.83rem;
  margin: 0;
}

.post-card h3 {
  margin: 0.65rem 0;
  font-size: 1.24rem;
  line-height: 1.35;
}

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

.post-card a {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.post-card a:hover {
  text-decoration: underline;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 250, 241, 0.9), rgba(245, 235, 220, 0.84));
  border-radius: 16px;
  padding: 1rem;
}

.topic h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.topic p {
  margin: 0;
  color: var(--ink-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  padding: 1.5rem 0 2rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.8rem;
  }

  .post-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    gap: 0.8rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .post-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}
