:root {
  color-scheme: light;
  --bg: #fff8ef;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #5a3f3a;
  --muted: #907b70;
  --soft: #f7e2d7;
  --line: #ead8c7;
  --accent: #7c8b4c;
  --accent-soft: #edf1d7;
  --rose: #db8c80;
  --peach: #f7b5a5;
  --wood: #bc7a45;
  --text-heading: #513832;
  --text-body: #604a43;
  --text-body-soft: #786156;
  --text-muted: #907b70;
  --text-subtle: #ad9587;
  --text-accent: #69753e;
  --text-warm: #a85f52;
  --text-link: #69753e;
  --text-code: #7c4f37;
  --text-inverse: #fff8ef;
  --shadow: 0 18px 50px rgba(116, 78, 54, 0.12);
  --shadow-soft: 0 10px 30px rgba(116, 78, 54, 0.08);
  --radius: 8px;
  --content: 1120px;
  --article: 1080px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-shell {
  min-height: 100dvh;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--content);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-name {
  color: var(--text-heading);
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 760;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-heading);
}

.intro {
  max-width: var(--content);
  margin: 0 auto;
  padding: 82px 24px 54px;
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(219, 140, 128, 0.14);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-accent);
  font-size: 13px;
  font-weight: 700;
}

.intro h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text-heading);
}

.intro p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-body-soft);
  font-size: 18px;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13px;
}

.intro-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: var(--peach);
}

.year-stream {
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px 24px 72px;
}

.home-content {
  max-width: var(--content);
  margin: 0 auto;
}

.featured-post {
  min-height: 360px;
  margin: 0 24px 64px;
  padding: 46px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--text-heading);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.featured-copy h2 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-family: ui-serif, Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.featured-copy h2 a {
  color: var(--text-heading);
  text-decoration: none;
}

.featured-copy h2 a:hover {
  color: var(--text-warm);
}

.featured-summary {
  max-width: 640px;
  margin: 0;
  color: var(--text-body-soft);
  font-size: 18px;
  line-height: 1.75;
}

.featured-meta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.featured-post .tag-row {
  margin-top: 6px;
  padding-top: 0;
}

.read-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 26px;
  color: var(--text-link);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.read-link span {
  font-size: 18px;
  line-height: 1;
}

.featured-mark {
  width: 184px;
  height: 184px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text-accent);
  transform: rotate(8deg);
}

.featured-mark span {
  font-family: ui-serif, Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.featured-mark i {
  width: 54px;
  height: 1px;
  background: currentColor;
}

.featured-mark em {
  align-self: flex-end;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.18em;
}

.archive {
  margin: 0 0 20px;
}

.archive-heading {
  max-width: var(--content);
  margin: 0 24px;
  padding: 0 0 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.archive-heading .eyebrow {
  margin-bottom: 8px;
}

.archive-heading h2 {
  margin: 0;
  color: var(--text-heading);
  font-family: ui-serif, Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 32px;
  line-height: 1.1;
}

.archive-heading > span {
  color: var(--text-muted);
  font-size: 13px;
}

.year-section {
  padding-top: 34px;
}

.year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.year-heading h2 {
  margin: 0;
  color: var(--text-heading);
  font-size: 24px;
  line-height: 1.25;
}

.year-heading span {
  color: var(--text-muted);
  font-size: 14px;
}

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

.post-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(219, 140, 128, 0.48);
  box-shadow: 0 22px 60px rgba(116, 78, 54, 0.16);
}

.post-card:focus-visible,
.load-more:focus-visible,
.nav a:focus-visible,
.article-footer a:focus-visible {
  outline: 3px solid rgba(219, 140, 128, 0.45);
  outline-offset: 3px;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #fee4dc, #eef1d7);
}

.post-card-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-subtle);
  font-size: 12px;
}

.post-card-meta > span {
  white-space: nowrap;
}

.post-date {
  color: var(--text-warm);
  font-size: 13px;
  font-weight: 700;
}

.post-card h3 {
  margin: 8px 0 10px;
  color: var(--text-heading);
  font-size: 21px;
  line-height: 1.28;
}

.post-excerpt {
  margin: 0;
  color: var(--text-body-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-accent);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  max-width: var(--content);
  margin: 0 auto;
  padding: 60px 24px;
  color: var(--text-muted);
}

.article-shell {
  max-width: var(--article);
  margin: 0 auto;
  padding: 48px 32px 82px;
}

.article-header {
  margin: 0 auto 20px;
  padding-bottom: 0;
}

.article-header h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-heading);
}

.article-dek {
  max-width: 1080px;
  margin: 0 0 22px;
  color: var(--text-body-soft);
  font-size: 20px;
  line-height: 1.7;
}

.article-meta-row {
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.article-tags {
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-end;
}

.article-cover {
  width: 100%;
  margin: 28px 0 34px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-content {
  margin: 0 auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 18px;
  line-height: 1.85;
}

.article-content > * + * {
  margin-top: 1.1em;
}

.article-content > p:first-child {
  color: var(--text-heading);
  font-size: 20px;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: ui-serif, Georgia, "Noto Serif SC", "Songti SC", serif;
  line-height: 1.3;
  margin-top: 2.4em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
  color: var(--text-heading);
}

.article-content h1 {
  font-size: 36px;
}

.article-content h2 {
  font-size: 31px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content h4 {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 1.7em 0 0;
  border-radius: var(--radius);
  background: rgba(247, 181, 165, 0.18);
  color: var(--text-warm);
  padding: 6px 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 780;
}

.article-content .article-note {
  margin-top: 1.7em;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--peach);
}

.article-content .article-note h4 {
  display: block;
  margin: 0 0 0.45em;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-heading);
  font-size: 1.08em;
  line-height: 1.45;
}

.article-content .article-note-body p {
  margin: 0;
}

.article-content .article-note-body p + p {
  margin-top: 0.7em;
}

.article-content .article-note-body ol {
  margin: 0.35em 0 0;
}

.article-content .article-loose-item {
  margin-left: 1.35em;
}

.article-content h5 {
  margin: 1.4em 0 0;
  color: var(--text-accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 780;
}

.article-content p {
  margin-bottom: 0;
  color: var(--text-body);
}

.article-content strong {
  color: var(--text-heading);
  font-weight: 760;
}

.article-content a {
  color: var(--text-link);
  font-weight: 650;
  text-decoration-color: rgba(105, 117, 62, 0.38);
}

.article-content a:hover {
  color: var(--text-warm);
  text-decoration-color: rgba(168, 95, 82, 0.48);
}

.article-content blockquote {
  margin-left: 0;
  padding: 10px 0 10px 20px;
  border-left: 4px solid var(--peach);
  color: var(--text-body-soft);
  background: linear-gradient(90deg, rgba(247, 181, 165, 0.22), transparent);
}

.article-content blockquote p {
  color: inherit;
}

.article-content ul,
.article-content ol {
  margin: 1em 0 0;
  padding-left: 1.35em;
  color: var(--text-body);
}

.article-content li {
  padding-left: 0.2em;
}

.article-content li + li {
  margin-top: 0.45em;
}

.article-content li::marker {
  color: var(--text-warm);
  font-weight: 760;
}

.article-content li[data-indent="1"] {
  margin-left: 1.4em;
}

.article-content li[data-indent="2"] {
  margin-left: 2.8em;
}

.article-content li[data-indent="3"] {
  margin-left: 4.2em;
}

.article-content hr {
  height: 1px;
  margin: 2.1em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--text-code);
  background: #f7e2d7;
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

.article-content pre {
  overflow-x: auto;
  border-radius: var(--radius);
  padding: 16px;
  background: #5a3f3a;
  color: var(--text-inverse);
}

.article-content pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

.article-content .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 1.6em 0 1.8em;
}

.article-content .photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(116, 78, 54, 0.1);
}

.article-content .photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 430px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.article-content img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-content figure {
  margin: 1.7em 0;
}

.article-content figure img {
  width: 100%;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 52px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-footer a {
  color: var(--text-link);
  font-weight: 700;
}

.site-footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 24px 46px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.is-hidden-year {
  display: none;
}

.load-more {
  min-height: 44px;
  margin: 34px auto 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--text-heading);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--rose);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 54px;
    padding: 0 18px;
  }

  .brand {
    min-height: 42px;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-links {
    gap: 10px;
  }

  .intro {
    padding: 42px 18px 28px;
  }

  .featured-post {
    min-height: 0;
    margin: 0 18px 46px;
    padding: 32px 24px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featured-mark {
    width: 112px;
    height: 112px;
    justify-self: start;
    padding: 15px;
  }

  .featured-mark span {
    font-size: 30px;
  }

  .archive-heading {
    margin: 0 18px;
  }

  .archive-heading h2 {
    font-size: 28px;
  }

  .intro p {
    font-size: 16px;
  }

  .year-stream {
    padding: 0 18px 54px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding: 34px 18px 62px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .article-dek,
  .article-content > p:first-child {
    font-size: 18px;
  }

  .article-content .photo-grid {
    grid-template-columns: 1fr;
  }

  .article-content .photo-grid img {
    min-height: 220px;
  }

  .article-footer {
    flex-direction: column;
  }
}

/* =========================================
   Kleebug 最终统一版样式 (2026)
========================================= */
.kleebug-article {
  background: #fef8f0;
  color: #4a3c3a;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 15px;
  text-indent: 0;
}

.kleebug-article h1 {
  font-size: 2.4rem;
  color: #6a4c46;
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: -1px;
  font-family: inherit;
  line-height: inherit;
  padding-top: 0;
  border-top: 0;
}

.kleebug-article h2 {
  font-size: 1.8rem;
  color: #6a4c46;
  font-weight: 700;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: inherit;
  line-height: inherit;
  padding-top: 0;
  border-top: 0;
}

.kleebug-article h3 {
  font-size: 1.4rem;
  color: #6a4c46;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
  line-height: inherit;
  padding-top: 0;
  border-top: 0;
}

.kleebug-article > * + * {
  margin-top: 0;
}

.kleebug-article > p:first-child {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.kleebug-article .meta-description {
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1.5rem;
  border-left: 2px solid #a8bfa2;
  color: #8a7c7a;
  font-size: 0.95rem;
}

.kleebug-article .meta-description strong {
  color: #6a4c46;
  font-weight: 600;
}

.kleebug-article p {
  margin-bottom: 1.5rem;
}

.kleebug-article blockquote {
  background: #fff4ea;
  border-left: 5px solid #eba0a5;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #5a4c4a;
  position: relative;
}

.kleebug-article blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #f3c2c6;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 15px;
  opacity: 0.5;
}

.kleebug-article ul,
.kleebug-article ol {
  padding-left: 1.8rem;
  margin-bottom: 1.5rem;
}

.kleebug-article ul {
  list-style: none;
  padding-left: 0;
}

.kleebug-article ul li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.kleebug-article ul li::before {
  content: "✦";
  color: #a8bfa2;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

.kleebug-article .highlight {
  background: #fff0e8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #6a4c46;
}

.kleebug-article code {
  background: #fff4ea;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #4a3c3a;
}

.kleebug-article pre {
  background: #fff4ea;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
}

.kleebug-article pre code {
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
}

.kleebug-article .info-box {
  background: #fff0e8;
  border: 1px solid #f3c2c6;
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(234, 160, 165, 0.08);
}

.kleebug-article .info-box strong {
  color: #6a4c46;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.kleebug-article .info-box h4 {
  display: block;
  margin: 0 0 0.5rem;
  padding: 0;
  background: transparent;
  color: #6a4c46;
  font-size: 1.1rem;
}

.kleebug-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.kleebug-article table th {
  background: #f3c2c6;
  color: #6a4c46;
  padding: 12px;
  text-align: left;
  font-weight: 700;
}

.kleebug-article table td {
  padding: 12px;
  border-bottom: 1px solid #f3e8e6;
}

.kleebug-article .image-wrapper {
  margin: 2.5rem 0;
  text-align: center;
}

.kleebug-article img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  border: 0;
}

.kleebug-article figcaption {
  margin-top: 0.8rem;
  color: #8a7c7a;
  font-size: 0.9rem;
  text-align: center;
}

.kleebug-article hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #f3c2c6, transparent);
  margin: 4rem 0;
  opacity: 0.6;
}

.kleebug-article .ending-note {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 0;
  text-align: center;
  color: #8a7c7a;
  font-size: 0.95rem;
}
