
:root {
  --ground: #F5F7F7;
  --ink: #1D2426;
  --ink-2: #465155;
  --muted: #7A8589;
  --rule: #DAE0E1;
  --sky: #36657F;
  --sky-wash: #E1EAEF;
  --code-bg: #EAEEEF;
  --card-bg: #FFFFFF;
  --hl-kw: #7A3E9D;
  --hl-str: #2E7049;
  --hl-num: #A4491F;
  --hl-com: #7F8B90;
  --hl-fn: #2C5B85;
  --hl-attr: #8A5A1E;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111517;
    --ink: #DCE3E5;
    --ink-2: #AAB5B9;
    --muted: #7D888C;
    --rule: #252C2F;
    --sky: #8DB5CC;
    --sky-wash: #1A2830;
    --code-bg: #1A2023;
    --card-bg: #161B1D;
    --hl-kw: #C9A3E6;
    --hl-str: #9ACB9E;
    --hl-num: #E6A47E;
    --hl-com: #6F7C81;
    --hl-fn: #8DB8D6;
    --hl-attr: #D8B98A;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.85 var(--sans);
  font-kerning: normal;
}
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.75rem 0 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.site-head nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem 1.1rem; font-size: 0.94rem; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--sky); }
.hero {
  position: relative;
  height: clamp(17rem, 46vh, 27rem);
  overflow: hidden;
  color: #fff;
  background: #4C7A93;
}
.hero--plain {
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 45% 35% at 20% 70%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #3E6E8A 0%, #6F9DB5 55%, #B9D3DE 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 26, 0.35) 0%, rgba(10, 20, 26, 0.05) 40%, rgba(10, 20, 26, 0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  height: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem 1.1rem; font-size: 0.94rem; }
.hero-nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.hero-nav a:hover, .hero-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.hero-text h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-text p { margin: 0.4rem 0 0; font-size: 1.02rem; color: rgba(255, 255, 255, 0.9); }
.hero-credit {
  position: absolute;
  z-index: 1;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.hero-credit:hover { color: #fff; }
.hero + .wrap main { padding-top: 1rem; }
.cat-block { padding-top: 2.25rem; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cat-head h2 { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; }
.cat-head h2 a { color: var(--ink); text-decoration: none; }
.cat-head h2 a:hover { color: var(--sky); }
.more { font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.cat-desc { margin: 0.2rem 0 1.1rem; color: var(--muted); font-size: 0.92rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.1rem;
  padding: 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.card--text { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
.card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sky-wash);
}
.card-body { min-width: 0; }
.card-sum {
  margin: 0.3rem 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.card-meta a { color: var(--muted); text-decoration: none; margin-right: 0.4em; }
.card-meta a:hover { color: var(--sky); }
.list-head { padding: 0.5rem 0 1.6rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.list-head h1 { margin: 0; font-family: var(--serif); font-size: 2rem; line-height: 1.4; }
.list-head p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.94rem; }
.month-label { margin: 0 0 0.6rem; font: 500 0.86rem/2.1 var(--sans); color: var(--muted); }
.month-label:not(:first-child) { margin-top: 1.4rem; }
.cat-chip {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0 0.4rem;
  text-decoration: none;
  vertical-align: 0.2em;
}
.cat-chip:hover { color: var(--sky); border-color: var(--sky); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem !important; }
.tag-cloud a {
  font-size: 0.9rem;
  color: var(--sky);
  background: var(--sky-wash);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  text-decoration: none;
}
.tag-cloud a span { margin-left: 0.35em; color: var(--muted); font-size: 0.8rem; }
.tag-group { padding-top: 1.75rem; scroll-margin-top: 1rem; }
.tag-group h2 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.2rem; }
.tag-group:target h2 { color: var(--sky); }
.year { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1rem; padding: 2rem 0 0.5rem; }
.year-label {
  margin: 0;
  font: 500 0.9rem/2.1 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.posts li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 0.75rem; }
.posts time {
  font: 0.86rem/2.15 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-link {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  text-wrap: balance;
}
.post-link:hover { color: var(--sky); }
.posts p { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.75; }
.empty { color: var(--muted); padding: 3rem 0; }
.draft {
  display: inline-block;
  margin-left: 0.5rem;
  font: 500 0.72rem/1.6 var(--sans);
  color: var(--sky);
  background: var(--sky-wash);
  border-radius: 3px;
  padding: 0 0.4rem;
  vertical-align: 0.2em;
}
.post { padding-top: 0.5rem; }
.post-cover { margin: 0 0 1.75rem; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; background: var(--sky-wash); }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--sky); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 0; }
.post-tags a {
  font-size: 0.8rem;
  color: var(--sky);
  background: var(--sky-wash);
  border-radius: 999px;
  padding: 0.05rem 0.65rem;
  text-decoration: none;
}
.post-head { padding-bottom: 1.6rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.post-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
  text-wrap: balance;
}
.meta { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.dot { margin: 0 0.5em; }
.prose > * { margin: 0 0 1.15em; }
.prose h2, .prose h3 {
  scroll-margin-top: 1.5rem;
  font-family: var(--serif);
  line-height: 1.45;
  margin: 2.2em 0 0.7em;
  text-wrap: balance;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.prose blockquote {
  margin-left: 0;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--sky-wash);
  color: var(--ink-2);
}
.prose img { max-width: 100%; height: auto; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose code {
  font: 0.86em var(--mono);
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.9em 1.1em;
  overflow-x: auto;
  line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: 0.84rem; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type, .hljs-literal { color: var(--hl-kw); }
.hljs-string, .hljs-regexp, .hljs-selector-attr, .hljs-addition { color: var(--hl-str); }
.hljs-number, .hljs-symbol, .hljs-bullet { color: var(--hl-num); }
.hljs-comment, .hljs-quote, .hljs-meta { color: var(--hl-com); font-style: italic; }
.hljs-title, .hljs-section, .hljs-selector-id, .hljs-selector-class, .hljs-function .hljs-title { color: var(--hl-fn); }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-params { color: var(--hl-attr); }
.hljs-deletion { color: var(--hl-num); }
.hljs-strong { font-weight: 700; }
.hljs-emphasis { font-style: italic; }
.post-body { position: relative; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.2rem 0; line-height: 1.6; }
.toc .toc-h3 { padding-left: 1em; font-size: 0.94em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sky); }
.toc--inline {
  margin: 0 0 1.8rem;
  padding: 0.6rem 1rem;
  background: var(--code-bg);
  border-radius: 8px;
  font-size: 0.92rem;
}
.toc--inline summary { cursor: pointer; color: var(--muted); }
.toc--inline[open] summary { margin-bottom: 0.4rem; }
.toc-side { display: none; }
@media (min-width: 80rem) {
  .toc--inline { display: none; }
  .toc-side { display: block; position: absolute; top: 0; bottom: 0; left: calc(100% + 3rem); width: 14rem; }
  .toc--side {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-left: 1rem;
    border-left: 1px solid var(--rule);
    font-size: 0.86rem;
  }
  .toc--side p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; }
}
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 0.45em 0.9em 0.45em 0; text-align: left; }
.prose th { color: var(--muted); font-weight: 500; }
.prose td { font-variant-numeric: tabular-nums; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.post-nav a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.5; }
.post-nav a:hover { color: var(--sky); }
.post-nav span { display: block; font: 400 0.8rem/1.8 var(--sans); color: var(--muted); }
.post-nav .older { text-align: right; }
.site-foot {
  margin-top: 4.5rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.9;
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--sky); }
@media (max-width: 34rem) {
  body { font-size: 16px; }
  .site-head { padding: 2rem 0 1.5rem; flex-direction: column; gap: 0.6rem; }
  .site-head nav { justify-content: flex-start; }
  .hero-nav { justify-content: flex-start; }
  .card { grid-template-columns: 1fr; gap: 0.8rem; }
  .card-img img { aspect-ratio: 16 / 9; }
  .list-head h1 { font-size: 1.6rem; }
  .brand { font-size: 1.35rem; }
  .year { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .year-label { margin-bottom: 0.4rem; }
  .post-head h1 { font-size: 1.6rem; }
}
.hero-img { object-position: 50% 82%; }
