/* ==========================================================================
   MiMo Blog — 前台主题
   设计取向：编辑部式的留白排版，暖白纸感底色 + 墨色正文，单一强调色由后台配置
   ========================================================================== */

:root {
  --brand: #2563eb;

  --bg: #ffffff;
  --bg-soft: #f8f8f6;
  --bg-code: #1b1b20;

  --ink: #191918;
  --ink-2: #55554f;
  --ink-3: #9a9a92;

  --line: #e7e6e1;
  --line-strong: #d6d5ce;

  --radius: 10px;
  --radius-sm: 6px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia,
    "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono",
    Menlo, monospace;

  --w-content: 720px;
  --w-page: 1120px;
}

/* 深色主题：手动切换（data-theme="dark"）或跟随系统（data-theme="auto"） */
html[data-theme="dark"] {
  --bg: #131211;
  --bg-soft: #1c1b18;
  --ink: #e9e6e0;
  --ink-2: #a9a59d;
  --ink-3: #726e67;
  --line: #2b2926;
  --line-strong: #3b3833;
  --bg-code: #0c0c0b;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #131211;
    --bg-soft: #1c1b18;
    --ink: #e9e6e0;
    --ink-2: #a9a59d;
    --ink-3: #726e67;
    --line: #2b2926;
    --line-strong: #3b3833;
    --bg-code: #0c0c0b;
  }
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  background: rgba(19, 18, 17, 0.88);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .nav.is-open {
  background: #1a1917;
  color: var(--ink);
}

html[data-theme="dark"] .article {
  color: #d8d5ce;
}

html[data-theme="dark"] .article code {
  background: #1f1e1b;
  border-color: var(--line);
  color: #f0a0b6;
}

html[data-theme="dark"] .btn--ghost {
  background: #1a1917;
}

html[data-theme="dark"] .comment-form,
html[data-theme="dark"] .author-card,
html[data-theme="dark"] .toc {
  background: var(--bg-soft);
}

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* 图片灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 10, 9, 0.92);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s;
}

.lightbox.is-shown {
  opacity: 1;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.article img {
  cursor: zoom-in;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--brand);
}

button {
  font: inherit;
  cursor: pointer;
}

/* ------------------------------- 顶栏 ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__logo {
  height: 26px;
  width: auto;
}

.brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-4px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13.5px;
  transition: border-color 0.15s, color 0.15s;
}

.nav__search:hover {
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.nav__admin {
  font-size: 13.5px;
  color: var(--ink-3);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-2);
  line-height: 1;
}

/* ------------------------------ 页面容器 ----------------------------- */

.container {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 24px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ------------------------------ 首页 hero ---------------------------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.hero__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 620px;
}

/* ------------------------------ 文章卡片 ----------------------------- */

.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.post-item:first-child {
  padding-top: 0;
}

.post-item__date {
  padding-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.post-item__day {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

.post-item__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.post-item__title a {
  transition: color 0.15s;
}

.post-item__summary {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.post-item__meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tag-chip__count {
  margin-left: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: middle;
}

/* ------------------------------ 列表页头 ----------------------------- */

.list-head {
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.list-head__kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

.list-head__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.list-head__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ------------------------------- 文章页 ------------------------------ */

.post {
  max-width: var(--w-content);
}

.post__header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.post__cats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.post__cats a {
  color: var(--brand);
  font-weight: 600;
}

.post__title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.post__cover {
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------------------------- 正文排版 ------------------------------ */

/* 目录 */
.toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc__title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc__item {
  counter-increment: toc;
  font-size: 14px;
  line-height: 1.9;
}

.toc__item::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 22px;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.toc__item--h3 {
  padding-left: 26px;
  counter-increment: none;
}

.toc__item--h3::before {
  content: "·";
  width: 14px;
  color: var(--ink-3);
}

.toc__item a {
  color: var(--ink-2);
}

.toc__item a:hover {
  color: var(--brand);
}

.toc__item.is-current > a {
  color: var(--brand);
  font-weight: 500;
}

.article h2[id],
.article h3[id] {
  scroll-margin-top: 84px;
}

.article {
  font-size: 16.5px;
  line-height: 1.85;
  color: #26262a;
  word-wrap: break-word;
}

.article h2,
.article h3,
.article h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.article h2 {
  margin: 2.2em 0 0.8em;
  font-size: 25px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.article h3 {
  margin: 1.9em 0 0.7em;
  font-size: 20px;
}

.article h4 {
  margin: 1.6em 0 0.6em;
  font-size: 17px;
}

.article p {
  margin: 0 0 1.2em;
}

.article a {
  color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}

.article a:hover {
  border-bottom-color: var(--brand);
}

.article ul,
.article ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.article li {
  margin-bottom: 0.45em;
}

.article blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article img {
  border-radius: var(--radius-sm);
  margin: 1.6em auto;
}

.article hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article code {
  padding: 2px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: #b4325a;
}

.code-block {
  position: relative;
  margin: 1.6em 0;
  padding: 18px 20px;
  background: var(--bg-code);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.code-block code {
  padding: 0;
  background: none;
  border: 0;
  color: #e4e4e7;
  font-family: var(--font-mono);
  white-space: pre;
}

.article .table-wrap {
  overflow-x: auto;
  margin: 1.6em 0;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.article th,
.article td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.article th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* --------------------------- 文章尾部分享 ---------------------------- */

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 0;
}

.post-nav__item {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.post-nav__item:hover {
  border-color: var(--line-strong);
}

.post-nav__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.post-nav__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.post-nav__item--next {
  text-align: right;
}

.related {
  margin-top: 44px;
}

.related__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ------------------------------- 评论 ------------------------------- */

.comments {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.comments__title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 20px;
}

.comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment--reply {
  margin-left: 46px;
  border-bottom: 0;
  padding: 12px 0 0;
}

.comment__avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
}

.comment__body {
  min-width: 0;
  flex: 1;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment__author {
  font-size: 14px;
  font-weight: 600;
}

.comment__time {
  font-size: 12px;
  color: var(--ink-3);
}

.comment__text {
  font-size: 14.5px;
  color: #33333a;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.comment__reply-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-3);
}

.comment__reply-btn:hover {
  color: var(--brand);
}

.comment-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.comment-form__title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
  color: #fff;
}

.btn--ghost {
  color: var(--ink-2);
  background: #fff;
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid;
}

.notice--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.notice--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ------------------------------- 侧栏 ------------------------------- */

.sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  font-size: 14px;
}

.widget__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.widget__list li:last-child {
  border-bottom: 0;
}

.widget__index {
  flex-shrink: 0;
  width: 18px;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.widget__link {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.widget__link:hover {
  color: var(--brand);
}

.widget__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-card {
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.author-card__name {
  font-weight: 600;
  font-size: 14.5px;
}

.author-card__stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.author-card__stats strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list a {
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ------------------------------- 分页 ------------------------------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 0;
  font-size: 13.5px;
}

.page-link {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, color 0.15s;
}

a.page-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-link.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-link.disabled {
  color: var(--ink-3);
  opacity: 0.6;
}

.page-gap {
  padding: 0 2px;
  color: var(--ink-3);
}

/* ------------------------------- 归档 ------------------------------- */

.archive-group {
  margin-bottom: 34px;
}

.archive-group__month {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.archive-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  align-items: baseline;
}

.archive-item__date {
  flex-shrink: 0;
  width: 54px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------- 搜索 ------------------------------- */

.search-form {
  display: flex;
  gap: 10px;
  margin: 0 0 32px;
}

.search-form input {
  flex: 1;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
}

.search-form input:focus {
  border-color: var(--brand);
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* 搜索关键词高亮 */
mark {
  padding: 0 2px;
  border-radius: 2px;
  background: #fef08a;
  color: inherit;
}

html[data-theme="dark"] mark {
  background: #7c5806;
  color: #fef9c3;
}

/* ------------------------------- 页脚 ------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.site-footer__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.site-footer a {
  color: var(--ink-3);
}

.site-footer a:hover {
  color: var(--brand);
}

/* ------------------------------- 404 -------------------------------- */

.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--line-strong);
  line-height: 1;
}

.error-page__text {
  margin: 18px 0 28px;
  color: var(--ink-2);
}

/* ---------------------------- 响应式 -------------------------------- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding: 32px 0 64px;
  }

  .sidebar {
    position: static;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero__title {
    font-size: 30px;
  }

  .post__title {
    font-size: 27px;
  }

  .post-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .post-item__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 0;
  }

  .post-item__day {
    font-size: 13px;
    font-weight: 600;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    padding: 0 18px;
    height: 58px;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open a {
    padding: 9px 0;
    width: 100%;
    border-bottom: 1px solid transparent;
  }

  .container {
    padding: 0 18px;
  }

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

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

  .post-nav__item--next {
    text-align: left;
  }

  .comment--reply {
    margin-left: 20px;
  }

  .site-footer__inner {
    padding: 24px 18px 32px;
  }
}
