﻿/* ==========================================================================
   游戏博客 —— 全站样式
   设计目标：中文长文阅读舒适、PC 与手机都好用、深色模式、无外部依赖
   ========================================================================== */

/* ---------- 1. 变量与主题 ---------- */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1080px;
  --wrap-narrow: 780px;
  --radius: 12px;
  --radius-sm: 8px;

  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --bg-subtle: #f4f4f2;
  --text: #1a1c1e;
  --text-soft: #55595e;
  --text-mute: #82878d;
  --border: #e5e5e2;
  --border-strong: #d4d4d0;
  --accent: #c2410c;
  --accent-soft: #fbeee7;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(16, 18, 20, 0.04), 0 4px 12px rgba(16, 18, 20, 0.05);
  --shadow-lg: 0 8px 32px rgba(16, 18, 20, 0.12);
}

html[data-theme="dark"] {
  --bg: #14161a;
  --bg-elev: #1b1e23;
  --bg-subtle: #22262c;
  --text: #e8e9ea;
  --text-soft: #a8adb4;
  --text-mute: #7d838b;
  --border: #2b2f36;
  --border-strong: #3a3f47;
  --accent: #f97316;
  --accent-soft: #2a1c12;
  --accent-text: #1a1c1e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  color: var(--accent);
  font-size: 14px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 2px;
  align-items: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

html[data-theme="dark"] .icon-sun,
html[data-theme="light"] .icon-moon {
  display: none;
}

.menu-btn {
  display: none;
}

/* 后台入口：做得低调一点，不抢视觉重点 */
.admin-link {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 4px 11px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.admin-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- 4. 首页 Hero ---------- */
/* 注意：这里只能用 padding-top / padding-bottom，不能用 padding 简写。
   .hero 和 .wrap 是同一个元素，简写会把 .wrap 的左右内边距覆盖成 0，
   导致手机上文字直接贴到屏幕边缘。下面 .page-header / .not-found 同理。 */
.hero {
  padding-top: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 620px;
  margin: 0;
}

/* ---------- 5. 板块标题 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.section-head h2 {
  font-size: 20px;
  margin: 0;
}
.section-head a {
  font-size: 14px;
  color: var(--text-mute);
}

/* ---------- 6. 文章卡片 ---------- */
.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
  display: block;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card-title {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.card-title a {
  color: var(--text);
}
.card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.card-excerpt {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mute);
}
.meta-dot {
  opacity: 0.6;
}

.chip {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-soft);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 12.5px;
  line-height: 1.7;
}
.chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.chip-cat {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 7. 页面头 / 面包屑 ---------- */
.page-header {
  padding-top: 40px;
  padding-bottom: 28px;
}
.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.page-desc {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0;
  max-width: 680px;
}

.breadcrumbs {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--text-mute);
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs [aria-current] {
  color: var(--text-soft);
}

/* ---------- 8. 文章正文 ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
}
.article-main {
  min-width: 0;
  max-width: var(--wrap-narrow);
}
.article-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-head h1 {
  font-size: 34px;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mute);
}

.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose h2 {
  font-size: 25px;
  margin: 2.2em 0 0.8em;
  padding-top: 0.2em;
  scroll-margin-top: 80px;
}
.prose h3 {
  font-size: 20px;
  margin: 1.8em 0 0.7em;
  scroll-margin-top: 80px;
}
.prose h4 {
  font-size: 17.5px;
  margin: 1.6em 0 0.6em;
}
.prose h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
  opacity: 0.85;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li > ul,
.prose li > ol {
  margin: 0.45em 0 0.2em;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.5px 6px;
}
.prose pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1.6em 0;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
}
.prose img {
  border-radius: var(--radius-sm);
  margin: 1.3em auto;
  border: 1px solid var(--border);
}
/* 连续的配图（图片占满一行、上下相邻）：
   块级图片之间的外边距本身就会合并，这里再收紧一点，避免看起来空隙很大 */
.prose img + img {
  margin-top: 0.35em;
}
/* 图片后面紧跟换行时，尾部多余的空行也去掉 */
.prose img + br {
  display: none;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose strong {
  font-weight: 700;
}
.prose del {
  color: var(--text-mute);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.6em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 400px;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-subtle);
  font-weight: 600;
  white-space: nowrap;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* 文章底部：标签、上下篇、相关 */
.article-foot {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}
.article-nav a {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  background: var(--bg-elev);
  display: block;
}
.article-nav a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.article-nav .nav-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.article-nav .nav-title {
  font-size: 15px;
  line-height: 1.5;
}
.article-nav .next {
  text-align: right;
}

/* 目录 */
.toc {
  position: sticky;
  top: 84px;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.5;
}
.toc a:hover {
  color: var(--accent);
  text-decoration: none;
}
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}
.toc .toc-level-3 a {
  padding-left: 28px;
  font-size: 13.5px;
}

/* ---------- 9. 归档 / 分类 / 标签 ---------- */
.term-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 48px;
}
.term-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}
.term-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.term-count {
  font-size: 13px;
  color: var(--text-mute);
  background: var(--bg-subtle);
  border-radius: 100px;
  padding: 1px 9px;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}
.archive-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.archive-list time {
  color: var(--text-mute);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 92px;
}
.archive-list a {
  color: var(--text);
}
.archive-list a:hover {
  color: var(--accent);
}

/* ---------- 10. 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 48px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.page-link {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--text);
  background: var(--bg-elev);
}
.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.page-link.disabled {
  color: var(--text-mute);
  opacity: 0.5;
  background: transparent;
}
.page-info {
  color: var(--text-mute);
  font-size: 14px;
}

/* ---------- 11. 搜索弹层 ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.search-modal[hidden] {
  display: none;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.45);
  backdrop-filter: blur(3px);
}
.search-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mute);
}
.search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.search-field kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-mute);
}
.search-results {
  overflow-y: auto;
  padding: 8px;
}
.search-hint {
  color: var(--text-mute);
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
  margin: 0;
}
.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.search-result:hover,
.search-result.active {
  background: var(--bg-subtle);
  text-decoration: none;
}
.search-result h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 600;
}
.search-result p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
}
.search-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
  display: block;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 28px;
  background: var(--bg-subtle);
  font-size: 14.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand strong {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p {
  color: var(--text-soft);
  max-width: 420px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-soft);
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- 13. 杂项 ---------- */
.empty {
  color: var(--text-mute);
  padding: 48px 0;
  text-align: center;
}
.not-found {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 100px;
}
.not-found h1 {
  font-size: 64px;
  margin-bottom: 8px;
}
.not-found p {
  color: var(--text-soft);
  margin-bottom: 24px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc {
    position: static;
    max-height: none;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    background: var(--bg-subtle);
  }
  .toc ol {
    border-left: 0;
  }
  .toc a {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
  .toc .toc-level-3 a {
    padding-left: 14px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16.5px;
  }
  .wrap {
    padding: 0 16px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .menu-btn {
    display: inline-flex;
  }
  /* 手机上头部空间紧张，后台入口压得更小 */
  .admin-link {
    padding: 3px 9px;
    font-size: 12.5px;
    margin-left: 2px;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    margin: 0;
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }

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

  .page-header {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .page-header h1 {
    font-size: 25px;
  }

  .article-head h1 {
    font-size: 25px;
  }
  .prose {
    font-size: 16.5px;
    line-height: 1.8;
  }
  .prose h2 {
    font-size: 21px;
  }
  .prose h3 {
    font-size: 18px;
  }

  /* 表格在手机上必须能放进屏幕宽度，
     否则会被裁切，而用户看不出可以左右滑动 */
  .table-wrap {
    margin: 1.4em -4px;
  }
  .prose table {
    min-width: 0;
    font-size: 14px;
  }
  .prose th,
  .prose td {
    padding: 8px 10px;
  }
  .prose th {
    white-space: normal;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav .next {
    text-align: left;
  }

  .archive-list li {
    flex-direction: column;
    gap: 4px;
  }
  .archive-list time {
    width: auto;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
  .page-info {
    order: -1;
  }

  .search-modal {
    padding: 0;
    align-items: stretch;
  }
  .search-panel {
    max-width: none;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

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

/* 打印 */
@media print {
  .site-header,
  .site-footer,
  .toc,
  .article-nav,
  .search-modal,
  .pagination {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .article-wrap {
    display: block;
  }
  a {
    color: #000;
  }
}

