:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5f5f5a;
  --line: #e7e6e2;
  --accent: #111111;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfbfa 0%, #f4f3f0 100%);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 245, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 74px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.hero-main,
.hero-side,
.card,
.article-shell,
.toc,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-main {
  padding: 44px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #3c3c3a;
  background: #efefec;
  border: 1px solid #e3e3df;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 60ch;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 13px;
  color: #3f3f3b;
  padding: 6px 12px;
  border: 1px solid #e5e5e1;
  border-radius: 999px;
  background: #fafaf8;
}

.hero-side {
  padding: 28px;
}

.hero-side h2 {
  margin: 4px 0 14px;
  font-size: 1.15rem;
}

.hero-side ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.about-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-link {
  margin: 2px 0 0;
  color: #2e2e2b;
  font-size: 0.95rem;
  font-weight: 600;
}

.about-link a {
  color: #1f1f1d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-title {
  margin: 8px 0 18px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.posts {
  padding: 10px 0 56px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin: 10px 0 10px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  margin-top: 16px;
  color: #2c2c2a;
  font-size: 14px;
  font-weight: 600;
}

.page-wrap {
  padding: 56px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.toc {
  height: fit-content;
  position: sticky;
  top: 96px;
  padding: 18px;
}

.toc h2 {
  margin: 4px 0 8px;
  font-size: 1rem;
}

.toc a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.article-shell {
  padding: 34px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.article-shell h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.article-shell h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.article-shell p,
.article-shell li {
  color: #2b2b28;
}

.article-shell ul,
.article-shell ol {
  padding-left: 22px;
}

blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #1d1d1b;
  background: #f7f7f4;
  color: #42423f;
}

.cta-box {
  margin-top: 30px;
  padding: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 14px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-layout,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .hero-main,
  .hero-side,
  .article-shell {
    padding: 24px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }
}
