/* ==========================================================================
   九堡网技术博客 — 博客主题样式
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --bg-soft: #efece4;
  --surface: #fffdf9;
  --surface-2: #faf8f3;
  --text: #211e19;
  --text-soft: #4d4840;
  --muted: #6b6458;
  --faint: #756e61;
  --line: #e3ddd1;
  --line-strong: #d3cbbb;
  --accent: #b4441f;
  --accent-hover: #963615;
  --accent-soft: #f4e2d8;
  --accent-ink: #7c2d12;
  --code-bg: #f0ede5;
  --code-text: #3b352c;
  --shadow-sm: 0 1px 2px rgba(40, 33, 20, .04);
  --shadow-md: 0 12px 32px -16px rgba(40, 33, 20, .22);
  --shadow-lg: 0 28px 60px -32px rgba(40, 33, 20, .32);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --bg: #12110e;
  --bg-soft: #181712;
  --surface: #1b1915;
  --surface-2: #201e19;
  --text: #ece7dd;
  --text-soft: #c3bcaf;
  --muted: #9c9486;
  --faint: #8a8275;
  --line: #2c2922;
  --line-strong: #3a362d;
  --accent: #e8744a;
  --accent-hover: #f08a63;
  --accent-soft: #3a2319;
  --accent-ink: #ffb394;
  --code-bg: #24221c;
  --code-text: #ddd5c7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 36px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .85);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 纸质纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(180, 68, 31, .07), transparent 34%),
    radial-gradient(circle at 84% 4%, rgba(63, 90, 138, .06), transparent 30%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.container--narrow { width: min(880px, calc(100% - 48px)); }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition: transform .35s var(--ease), background .2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg); background: var(--accent); color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-text small {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.is-active { color: var(--accent); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 38px;
  padding: 0 13px;
  gap: 7px;
  border-radius: 999px;
  border-color: var(--line);
  font-size: 13px;
}
.icon-btn--search kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}
.nav-toggle { display: none; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* --------------------------------------------------------------------------
   搜索浮层
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 14vh 24px 24px;
  background: color-mix(in srgb, var(--bg) 55%, rgba(20, 17, 12, .55));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s;
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-panel {
  width: min(680px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  transform: translateY(-10px) scale(.985);
  transition: transform .24s var(--ease);
}
.search-modal.is-open .search-panel { transform: none; }
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 16px;
}
.search-form svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  outline: 0;
}
.search-form input::placeholder { color: var(--faint); }
.search-form .search-go {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.search-panel-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 6px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
}
.search-panel-foot kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 74px 0 30px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.015em;
}
.no-break { white-space: nowrap; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 100% .12em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lede {
  max-width: 33em;
  margin: 24px 0 0;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.btn svg { width: 15px; height: 15px; }

/* 首页最近更新卡片 */
.hero-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero-feature:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.hero-feature__art {
  position: relative;
  aspect-ratio: 16 / 8.4;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #3f5a8a), var(--c2, #9db4d8));
}
.hero-feature__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 85%);
}
.hero-feature__glyph {
  font-family: var(--font-serif);
  font-size: clamp(80px, 9vw, 124px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .26);
  text-shadow: 0 8px 40px rgba(0, 0, 0, .16);
  transform: translateY(4px);
  user-select: none;
}
.hero-feature__label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #2c2a24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.hero-feature__body { padding: 22px 24px 24px; }
.hero-feature__body h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-feature__body p {
  margin: 10px 0 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-feature__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--faint);
}
.hero-feature__meta .cat-pill { font-size: 11px; }

/* 数字条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px;
  background: var(--surface);
}
.stat strong {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat span { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */
.section { padding: 58px 0 0; }
.section:last-of-type { padding-bottom: 70px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-head h2 sup {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 8px;
  letter-spacing: 0;
}
.section-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.section-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.section-link:hover { color: var(--accent-hover); }
.section-link svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.section-link:hover svg { transform: translateX(3px); }

/* 分类色板（卡片封面共用） */
.cat-datastructure { --c1: #2f5d62; --c2: #7fb7b0; }
.cat-front-end    { --c1: #a63e1c; --c2: #e8a27c; }
.cat-linux        { --c1: #3f5a8a; --c2: #9db4d8; }
.cat-framework    { --c1: #684a7a; --c2: #b79ac5; }
.cat-industry     { --c1: #7b6034; --c2: #cbb27c; }
.cat-testSkill    { --c1: #345c3f; --c2: #93b79d; }
.cat-notes        { --c1: #884956; --c2: #d6a3ab; }
.cat-tech         { --c1: #6d532f; --c2: #c4ab82; }
.cat-interest     { --c1: #596b48; --c2: #a9bd93; }
.cat-statistics   { --c1: #3e5566; --c2: #9fb7c7; }
.cat-communication{ --c1: #66502f; --c2: #c0a87e; }
.cat-android      { --c1: #3c6b3f; --c2: #9fc9a1; }
.cat-ios          { --c1: #4a4a4a; --c2: #a9a9a9; }
.cat-minjianshige { --c1: #7a3b2e; --c2: #cf9a86; }
.cat-faceRercognition { --c1: #4b3f7a; --c2: #a99ed1; }
.cat-default      { --c1: #4d4840; --c2: #a8a196; }

/* --------------------------------------------------------------------------
   文章卡片
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.post-card__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 16 / 8;
  padding: 16px 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.post-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(150deg, rgba(0, 0, 0, .9), transparent 75%);
  -webkit-mask-image: linear-gradient(150deg, rgba(0, 0, 0, .9), transparent 75%);
}
.post-card__glyph {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-serif);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .2);
  user-select: none;
}
.post-card__art .cat-name {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .95);
  text-transform: uppercase;
}
.post-card__art .art-no {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .62);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 21px 19px;
}
.post-card__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--faint);
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.cat-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
}
.post-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card h3 a { transition: color .18s; }
.post-card:hover h3 a { color: var(--accent); }
.post-card__excerpt {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.post-card__foot .read {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .18s, gap .18s;
}
.post-card:hover .post-card__foot .read { color: var(--accent); gap: 8px; }
.post-card__foot .read svg { width: 13px; height: 13px; }

/* 分类带 */
.category-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .18s var(--ease), border-color .18s, background .18s;
}
.category-chip:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.category-chip__swatch {
  width: 10px;
  height: 30px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  flex: none;
}
.category-chip__name { font-size: 14px; font-weight: 600; }
.category-chip__count { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* --------------------------------------------------------------------------
   列表页头 / 分页
   -------------------------------------------------------------------------- */
.page-head {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.page-head h1 .count {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
  margin-left: 12px;
}
.page-head p.lede { max-width: 40em; margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 46px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-soft);
  transition: border-color .18s, color .18s, background .18s;
}
.pagination a:hover { border-color: var(--text); color: var(--text); }
.pagination .is-current { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }
.pagination .ellipsis { border-color: transparent; background: transparent; color: var(--faint); }

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .08s linear;
}

.article { max-width: 760px; }
.article-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }
.article-wrap.no-toc .article { margin-inline: auto; }
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(36px, 6vw, 72px);
  padding-top: 34px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--faint);
}
.breadcrumb a { transition: color .18s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

.article-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-head .cat-pill { margin-bottom: 16px; }
.article-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  word-break: break-word;
}
.article-dek {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--faint);
}
.article-meta .sep { opacity: .55; }
.article-meta .author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.article-meta .author::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

/* 正文排版 */
.prose {
  padding-top: 32px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text-soft);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 1.15em 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h1 { font-size: 1.85em; margin: 1.6em 0 .7em; }
.prose h2 {
  position: relative;
  font-size: 1.6em;
  margin: 2em 0 .75em;
  padding-left: 16px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: 99px;
  background: var(--accent);
  opacity: .85;
}
.prose h3 { font-size: 1.3em; margin: 1.8em 0 .65em; }
.prose h4 { font-size: 1.12em; margin: 1.6em 0 .6em; }
.prose h5, .prose h6 { font-size: 1em; margin: 1.4em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.6em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--muted);
}
.prose blockquote p { margin: .4em 0; }
.prose hr {
  margin: 2.4em 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.prose img {
  display: block;
  margin: 1.6em auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--faint); }
.prose code {
  padding: .16em .42em;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: .86em;
  word-break: break-word;
}
.prose pre {
  position: relative;
  margin: 1.6em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: inherit;
  word-break: normal;
}
.prose pre::-webkit-scrollbar { height: 8px; }
.prose pre::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.copy-code {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s, color .18s, border-color .18s;
}
.prose pre:hover .copy-code, .copy-code:focus { opacity: 1; }
.copy-code:hover { color: var(--accent); border-color: var(--accent); }
@media (hover: none) { .copy-code { opacity: .85; } }
.prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--text); }
.prose tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.prose .vw { max-width: 100%; }

/* TOC */
.article-aside { position: relative; }
.toc {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.toc__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  transition: color .18s, border-color .18s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.toc a:hover { color: var(--text); border-color: var(--line-strong); }
.toc a.is-active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.toc .toc-h3 a { padding-left: 24px; font-size: 12px; }
.toc__empty { margin: 0; font-size: 12px; color: var(--faint); }

/* 文末导航 */
.article-foot { margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.post-nav a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.post-nav a.is-next { text-align: right; align-items: flex-end; }
.post-nav .label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.post-nav .title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav a:hover .title { color: var(--accent); }
.post-nav .placeholder { opacity: .5; }
.post-nav .is-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 19px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--faint);
  font-size: 12px;
}
.post-nav .is-empty .label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.post-nav .is-empty .title { font-family: var(--font-serif); font-size: 14px; }
.post-nav .is-empty:nth-child(2) { text-align: right; align-items: flex-end; }

.related { padding-top: 60px; }
.related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   搜索页
   -------------------------------------------------------------------------- */
.search-page { padding: 54px 0 40px; }
.search-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 46px);
  letter-spacing: -.015em;
}
.search-page .lede { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: 0;
}
.search-box button {
  flex: none;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.search-box button:hover { background: var(--accent); color: #fff; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.search-summary { margin: 18px 0 4px; font-size: 12.5px; color: var(--faint); }
.search-results { margin-top: 10px; border-top: 1px solid var(--line); }
.result-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.result-item:hover { background: var(--surface-2); }
.result-item time { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.result-item h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.result-item:hover h2 { color: var(--accent); }
.result-item p {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-item mark { background: var(--accent-soft); color: var(--accent-ink); padding: 0 2px; border-radius: 3px; }
.result-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.result-empty strong { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   归档
   -------------------------------------------------------------------------- */
.archive-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.archive-nav a {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.archive-nav a:hover { background: var(--bg-soft); color: var(--text); }
.archive-year { padding: 28px 0 12px; }
.archive-year h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -.02em;
}
.archive-year h2 span { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-list li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 92px;
  gap: 16px;
  align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.archive-list li:hover { background: var(--surface-2); }
.archive-list time { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.archive-list a { font-size: 14.5px; line-height: 1.55; }
.archive-list li:hover a { color: var(--accent); }
.archive-list .cat-name { font-size: 11.5px; color: var(--faint); text-align: right; }

/* --------------------------------------------------------------------------
   分类总览
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 60px;
}
.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.category-card__glyph {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.category-card h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; }
.category-card .latest {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card .count {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   关于页
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 72px);
  padding: 16px 0 70px;
}
.about-grid h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 26px;
}
.about-grid p { color: var(--text-soft); line-height: 1.95; margin: 0 0 1em; }
.about-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.about-card + .about-card { margin-top: 14px; }
.about-card h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.about-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.about-card .stat-list { display: grid; gap: 10px; margin: 0; }
.about-card .stat-list div { display: flex; justify-content: space-between; font-size: 13.5px; }
.about-card .stat-list dt { color: var(--muted); }
.about-card .stat-list dd { margin: 0; font-family: var(--font-mono); color: var(--text); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-family: var(--font-serif);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  letter-spacing: -.05em;
}
.error-page h1 { margin: -20px 0 10px; font-family: var(--font-serif); font-size: 30px; }
.error-page p { margin: 0 0 26px; color: var(--muted); }

/* --------------------------------------------------------------------------
   页脚 / 回到顶部
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 20px;
  padding: 46px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 18px; flex: none; }
.footer-brand strong { display: block; font-family: var(--font-serif); font-size: 15px; }
.footer-brand p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; font-size: 12.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.footer-bottom a:hover { color: var(--accent); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s, color .18s, border-color .18s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: 40px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .related .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .container, .container--narrow { width: calc(100% - 36px); }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, visibility .2s, transform .2s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: inline-grid; }
  .icon-btn--search kbd { display: none; }
  .icon-btn--search span { display: none; }
  .icon-btn--search { width: 38px; padding: 0; justify-content: center; }
  .hero { padding-top: 46px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-feature { max-width: 540px; }
  .stat-strip { margin-top: 40px; }
  .stat { flex-direction: column; gap: 4px; padding: 18px 12px; }
  .stat strong { font-size: 24px; }
  .section { padding-top: 44px; }
  .section-head { align-items: center; }
  .post-grid, .related .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .category-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .result-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .result-item time { order: 2; }
  .result-item .cat-pill { justify-self: start; }
  .archive-list li { grid-template-columns: 62px minmax(0, 1fr); }
  .archive-list .cat-name { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container, .container--narrow { width: calc(100% - 32px); }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15.5px; }
  .header-inner { gap: 14px; }
  .post-grid, .related .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-card__art { aspect-ratio: 16 / 7.4; }
  .post-card__glyph { font-size: 84px; }
  .category-band { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(32px, 10vw, 42px); }
  .hero .lede { font-size: 15px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .section-head { flex-wrap: wrap; }
  .article-head h1 { font-size: 28px; }
  .prose { font-size: 16px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .category-card { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 17px; gap: 14px; }
  .category-card__glyph { width: 58px; height: 58px; border-radius: 14px; font-size: 26px; }
  .archive-year h2 { font-size: 26px; }
  .pagination { flex-wrap: wrap; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 9px; }
  .search-page { padding-top: 36px; }
  .search-box button { padding: 12px 18px; }
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips .chip { flex: none; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .article-aside, .to-top, .reading-progress, .post-nav, .related, .copy-code { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
  .article-wrap { display: block; }
}
