:root {
  --bg: #f5f5f7;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: #ffffff;
  --ink: #1d1d1f;
  --muted: #646469;
  --line: rgba(29, 29, 31, 0.09);
  --accent: #0068d1;
  --accent-soft: rgba(0, 104, 209, 0.1);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  --radius-large: 30px;
  --radius-medium: 22px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(180deg, #fbfbfd, var(--bg));
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

a:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(0, 104, 209, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.site-brand {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.site-main {
  display: grid;
  gap: 24px;
}

.site-footer {
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 44px;
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 250, 0.91));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero h1,
.error-page h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 47rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.panel {
  padding: 28px;
  border-radius: 28px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin: 0;
}

.section-title-row span,
.post-date,
.post-summary,
.empty-state,
.error-page p {
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 22px;
  border: 1px solid rgba(29, 29, 31, 0.065);
  border-radius: var(--radius-medium);
  background: var(--paper-strong);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.post-card h3,
.post-detail h1,
.page-detail h1 {
  margin: 10px 0 12px;
}

.post-card h3 {
  font-size: 1.26rem;
  line-height: 1.45;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 0;
}

.post-detail,
.page-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 44px;
  background: rgba(255, 255, 255, 0.93);
}

.post-detail > h1,
.page-detail > h1 {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.post-summary {
  font-size: 1.04rem;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 560;
}

.prose {
  color: #29292d;
  font-family: "Source Han Serif SC", "Noto Serif SC", STSong, "Songti SC", serif;
  font-size: 1.06rem;
  line-height: 1.9;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.018em;
}

.prose h2 {
  margin-top: 2.1em;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose p {
  margin: 1.15em 0;
}

.prose img {
  max-width: 100%;
  border-radius: 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin: 0.45em 0;
}

.prose a,
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 104, 209, 0.3);
  text-underline-offset: 0.18em;
}

.prose code {
  padding: 0.18em 0.45em;
  border-radius: 8px;
  background: #f2f2f5;
  font-size: 0.92em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 18px;
  background: #161617;
  color: #f5f5f7;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.error-page {
  padding: 44px;
}

.error-page p {
  line-height: 1.7;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100vw - 20px), 960px);
    padding-top: 18px;
  }

  .site-header {
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .hero,
  .panel,
  .error-page {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .post-detail,
  .page-detail {
    padding: 26px 20px;
  }

  .prose {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .post-card,
  .skip-link {
    transition: none;
  }
}
