:root {
  --bg: #f9f8f4;
  --bg-soft: #fffdf7;
  --text: #1f2a2e;
  --muted: #6d7a80;
  --primary: #0c6e78;
  --primary-dark: #084952;
  --line: #d8ddd7;
  --card: #fffef9;
  --shadow: 0 16px 34px rgba(12, 34, 40, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, #f7e6bf, transparent 38%),
    radial-gradient(circle at 95% 12%, #d0ecf2, transparent 28%), var(--bg);
  line-height: 1.7;
}

h1,
h2 {
  font-family: inherit;
  margin: 0;
  line-height: 1.2;
}

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

.background-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.35;
  z-index: -1;
}

.shape-a {
  width: 280px;
  height: 280px;
  background: #ffe4a3;
  top: 120px;
  right: -80px;
}

.shape-b {
  width: 220px;
  height: 220px;
  background: #98dce8;
  left: -90px;
  bottom: 90px;
}

.site-header,
main,
.site-footer {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  padding: 0.6rem 0 1.6rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--primary-dark);
  color: #f5fbfc;
}

.hero {
  margin-top: 0.4rem;
  max-width: 740px;
  animation: fade-up 0.7s ease-out both;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 0.45rem;
}

html[lang="en"] .hero h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: 1.08rem;
  max-width: 62ch;
  color: #2f3b3f;
}

html[lang="en"] .hero-text {
  max-width: none;
  white-space: nowrap;
}

.section {
  margin: 0rem 0 2rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.post-card a {
  color: var(--primary-dark);
  font-weight: 700;
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 760px;
}

.post-card {
  padding: 1.1rem 1.2rem;
  animation: fade-up 0.7s ease-out both;
}

.post-card:nth-child(2) {
  animation-delay: 0.1s;
}

.post-card:nth-child(3) {
  animation-delay: 0.2s;
}

.post-card h3 {
  margin: 0.35rem 0 0.35rem;
  font-family: inherit;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
}

.site-footer {
  margin: 2.6rem auto 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav {
    justify-content: flex-end;
    align-items: center;
  }

  .nav-right {
    width: auto;
    justify-content: flex-end;
  }
}
