:root {
  color-scheme: light;
  --navy: #102b48;
  --navy-2: #173b60;
  --paper: #fffdf8;
  --paper-2: #f5efe6;
  --ink: #223140;
  --muted: #78838c;
  --line: #e7dfd4;
  --sun: #dcae46;
  --red: #c94c43;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(220,174,70,.08), transparent 22rem),
    #f6f3ee;
}

a { color: inherit; }

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16,43,72,.08);
  background: rgba(246,243,238,.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.blog-header-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--navy);
  text-decoration: none;
}

.blog-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  color: var(--sun);
  border: 1px solid rgba(16,43,72,.12);
  background: rgba(255,255,255,.55);
  font-family: Georgia, "Times New Roman", serif;
}

.blog-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .14em;
  font-size: .86rem;
}

.blog-brand small {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .56rem;
  letter-spacing: .11em;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .22rem;
  border: 1px solid rgba(16,43,72,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.52);
}

.blog-nav a {
  padding: .44rem .82rem;
  border-radius: 999px;
  color: #65717d;
  text-decoration: none;
  font-size: .82rem;
}

.blog-nav a.active {
  color: white;
  background: var(--navy);
}

.blog-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0 5rem;
}

.blog-hero {
  max-width: 760px;
  margin-bottom: 3rem;
}

.blog-kicker {
  display: block;
  margin-bottom: .9rem;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  letter-spacing: .18em;
}

.blog-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 650;
}

.blog-hero p {
  max-width: 640px;
  margin: 1.2rem 0 0;
  color: #6f7a84;
  line-height: 1.9;
  font-size: 1rem;
}

.post-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.post-date {
  color: #8b949c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .8rem;
  letter-spacing: .04em;
}

.post-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

.post-card p {
  margin: .7rem 0 0;
  color: #747e87;
  line-height: 1.75;
  font-size: .92rem;
}

.post-arrow {
  color: var(--red);
  font-size: 1.25rem;
  transform: translateY(.1rem);
}

.article-shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 6rem;
}

.article-kicker {
  color: var(--red);
  font-size: .74rem;
  letter-spacing: .16em;
  font-family: Georgia, "Times New Roman", serif;
}

.article-title {
  margin: .8rem 0 1rem;
  color: var(--navy);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.2rem);
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: -.02em;
}

.article-meta {
  margin-bottom: 2.8rem;
  color: #8a939b;
  font-size: .87rem;
}

.article-body {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.12rem);
  line-height: 2.05;
  letter-spacing: .015em;
}

.article-body h1 { display: none; }

.article-body h2 {
  margin: 3.2rem 0 1rem;
  color: var(--navy);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.28rem;
  line-height: 1.5;
}

.article-body p { margin: 1.15rem 0; }

.article-body strong {
  color: var(--navy);
  font-weight: 700;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--red);
  background: #efe8dd;
  color: #4d5861;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}

.article-body ul {
  margin: 1.2rem 0;
  padding-left: 1.3rem;
}

.article-body li { margin: .4rem 0; }

.article-body .section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.7rem 0;
}

.article-back {
  display: inline-flex;
  margin-top: 3rem;
  color: var(--navy);
  text-decoration: none;
  font-size: .9rem;
}

.site-footer {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.2rem;
  color: #969da3;
  font-size: .78rem;
}

@media (max-width: 680px) {
  .blog-brand small { display: none; }
  .post-card {
    grid-template-columns: 1fr auto;
    gap: .8rem 1rem;
  }
  .post-date { grid-column: 1 / -1; }
  .article-body { line-height: 1.95; }
}
