:root {
  --bg: #f4ecdf;
  --bg-alt: #fff9f0;
  --ink: #1f2a37;
  --muted: #5f6b76;
  --line: rgba(31, 42, 55, 0.12);
  --primary: #0e8f7e;
  --primary-deep: #0a6c63;
  --accent: #ff7e45;
  --card: rgba(255, 250, 241, 0.9);
  --shadow: 0 18px 45px rgba(31, 42, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 126, 69, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(14, 143, 126, 0.14), transparent 30%),
    linear-gradient(180deg, #f7efdf 0%, #f3ebdf 48%, #fffaf2 100%);
  line-height: 1.75;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #1fc3ab);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.site-nav a.is-active,
.site-nav a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 34px;
}

.hero-copy,
.hero-art,
.panel,
.article-card,
.post,
.page-head {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  padding: 34px;
  border-radius: 32px;
}

.hero-art {
  padding: 18px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.68), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 113, 0.34), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 235, 0.92));
  box-shadow:
    0 28px 60px rgba(31, 42, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.page-head h1,
.post h1 {
  margin: 0 0 16px;
  line-height: 1.1;
  font-size: clamp(34px, 5vw, 58px);
}

.hero-text,
.page-head p,
.post-summary {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #19b298);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section-intro,
.split-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 18px 0;
}

.section-intro h2,
.panel h2 {
  margin: 0;
  font-size: 30px;
}

.text-link,
.read-more {
  color: var(--primary-deep);
  font-weight: 700;
}

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

.article-card {
  padding: 22px;
  border-radius: 26px;
}

.article-card.featured {
  background: linear-gradient(180deg, rgba(14, 143, 126, 0.08), rgba(255, 255, 255, 0.92));
}

.article-card h3 {
  margin: 10px 0;
  font-size: 26px;
  line-height: 1.2;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.meta-row,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.split-panel {
  margin: 34px 0 48px;
  align-items: stretch;
}

.panel {
  flex: 1;
  padding: 24px 26px;
  border-radius: 28px;
}

.panel.warm {
  background: linear-gradient(180deg, rgba(255, 126, 69, 0.08), rgba(255, 251, 244, 0.96));
}

.inner-page {
  padding: 18px 0 40px;
}

.page-head,
.post {
  border-radius: 30px;
  padding: 28px 30px;
}

.page-head {
  margin-bottom: 26px;
}

.post-body h2,
.post-body h3 {
  margin-top: 34px;
  line-height: 1.2;
}

.post-body p,
.post-body li {
  color: #30404d;
}

.post-body ul {
  padding-left: 22px;
}

.post-body code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(31, 42, 55, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.post-body pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 20px;
  background: #1b2530;
  color: #e6eef7;
}

.post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.page-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.page-link.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-footer {
  padding: 18px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .grid.articles-grid,
  .split-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .grid.articles-grid {
    display: grid;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .page-head h1,
  .post h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-art,
  .page-head,
  .post,
  .article-card,
  .panel {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
