* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2430;
  --text-soft: #5b6472;
  --text-muted: #8a93a6;
  --primary: #5b6cfa;
  --primary-soft: #eef1ff;
  --border: #e6e8ee;
  --shadow: 0 10px 30px rgba(40, 50, 80, 0.08);
  --radius: 18px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Microsoft JhengHei", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.4rem 2.5rem;
}

.eyebrow {
  display: inline-block;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags span {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(20, 30, 60, 0.04);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: 1.4rem;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.post-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(40, 50, 80, 0.12);
}

.post-category {
  align-self: flex-start;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.post-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.post-card time {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.post-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  align-self: flex-start;
}

.footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-links {
    gap: 1.2rem;
  }
}
