/* =============================================================
   Fantasy Zone 前台样式 - 暖色毛玻璃
   背景 #F3EEE6  炭黑 #252321  砖红 #AD3423  灰棕 #706A64
   ============================================================= */
:root {
  --bg: #F3EEE6;
  --bg-2: #E8E0D6;
  --text: #252321;
  --text-2: #706A64;
  --accent: #AD3423;
  --accent-hover: #8f2a1d;
  --glass: rgba(255, 252, 247, 0.62);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 35px rgba(72, 55, 42, 0.07);
  --radius: 18px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Inter", "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 内容区占满剩余高度，页脚贴底（粘性页脚） */
body > main,
body > .home-grid {
  flex: 1 0 auto;
}
/* =============================================================
   光阴之墙 · 时间驱动光影背景 (替代原 bg-leaves 静态背景)
   ============================================================= */
:root { --sw-shc: rgb(33, 28, 19); }
#sw-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.sw-layer { position: absolute; inset: 0; }
#sw-wall { background: linear-gradient(160deg, #f4eee1 0%, #e0d8c4 100%); }
#sw-noise { width: 100%; height: 100%; opacity: 0.55; mix-blend-mode: multiply; }
#sw-spot, #sw-tint { pointer-events: none; }
#sw-vignette {
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(20, 16, 10, 0.28) 100%);
}
#sw-main { width: 100%; height: 100%; display: block; }
.sw-shadow {
  transform-box: view-box;
  transition: transform 1.2s linear, opacity 1.2s linear;
  will-change: transform, opacity;
}
/* 首次渲染: 禁用 transition, 避免页面加载时枝条从原位滑向目标位 (整体移动的视觉 bug) */
#sw-scene.sw-init .sw-shadow { transition: none; }
/* 三层影子远近不同的静态模糊 (由 CSS 设定, 避免 JS 每帧改 filter 的高开销) */
#sw-sh0 { filter: blur(0px); }
#sw-sh1 { filter: blur(1.2px); }
#sw-sh2 { filter: blur(2.2px); }
.sw-shadow path { fill: var(--sw-shc) !important; stroke: var(--sw-shc) !important; }
.sw-stem { fill: none; stroke-linecap: round; }
@keyframes sw-sway { 0%, 100% { transform: rotate(-1.05deg); } 50% { transform: rotate(1.05deg); } }
.sw-sway { animation: sw-sway 7s ease-in-out infinite; transform-box: view-box; will-change: transform; }
/* 滚动性能优化: 滚动期间暂停 sway 动画, 停止后恢复 (JS 在 #sw-scene 上加 sw-paused) */
#sw-scene.sw-paused .sw-sway { animation-play-state: paused; }
#sw-scene.sw-paused .sw-shadow { transition: none; }

/* 时间调节 · 右下角太阳悬浮按钮 (点击展开为圆角长条) */
.sw-ctrl {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 95;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(28, 26, 22, 0.5);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(40, 30, 18, 0.18);
  pointer-events: auto;
  user-select: none;
}
.sw-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f4ecdb;
  font-size: 12px;
  transition: max-width 0.38s ease, opacity 0.28s ease, padding 0.38s ease, margin 0.38s ease;
}
.sw-ctrl.open .sw-controls {
  max-width: min(340px, calc(100vw - 130px));
  opacity: 1;
  padding-left: 10px;
  margin-right: 2px;
}
#sw-clock { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
#sw-slider { width: 150px; max-width: 34vw; accent-color: #e8c98a; cursor: pointer; }
.sw-controls button {
  border: none;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  color: #f4ecdb;
  font-size: 12px;
  font-family: var(--sans);
}
.sw-controls button:hover { background: rgba(255, 255, 255, 0.28); }
.sw-controls button.active { background: #e8c98a; color: #3a2f1c; }
.sw-fab {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(150deg, #f2c979, #e0a94e);
  color: #5a3d15;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.sw-fab:hover { transform: scale(1.06); }
.sw-ctrl.open .sw-fab { transform: rotate(40deg); }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; }
mark { background: rgba(173, 52, 35, 0.15); color: var(--accent); padding: 0 2px; border-radius: 3px; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.muted { color: var(--text-2); }
.center { text-align: center; }

/* ---------- 顶部导航（白色毛玻璃悬浮栏） ---------- */
.site-header {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: 100%;
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 28px;
}
.header-inner {
  position: relative;
  height: 62px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.brand:hover { text-decoration: none; color: var(--text); }
/* 导航文字相对整个导航条居中：绝对定位于条中心，避免受左右栏目宽度影响 */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 14px;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--accent); font-weight: 500; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.search-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 106, 100, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-link:hover { color: var(--accent); border-color: rgba(173, 52, 35, 0.4); background: rgba(173, 52, 35, 0.06); }

/* ---------- 首页三栏 ---------- */
.home-grid {
  max-width: 1440px;
  margin: 26px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(220px, 23fr) minmax(0, 49fr) minmax(260px, 28fr);
  gap: 22px;
  align-items: start;
}
.home-grid.no-profile { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr); max-width: 1180px; }
.home-grid.no-shuoshuo { grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr); max-width: 1180px; }
.home-grid.no-profile.no-shuoshuo { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.profile-col { position: sticky; top: 98px; }
.profile-card { padding: 34px 26px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 1101px) {
  .home-grid { align-items: stretch; }
  .profile-col,
  .posts-col { min-width: 0; height: 100%; }
  .shuoshuo-col { min-width: 0; align-self: start; height: auto; }
  .profile-col { position: static; }
  .profile-card { min-height: 100%; }
  .shuoshuo-card { min-height: 0; }
  .posts-col,
  .home-candidate-browser { display: flex; flex-direction: column; }
  .home-candidate-browser { flex: 1; }
  .home-candidate-browser .home-candidate-pagination { margin-top: auto; padding-top: 14px; }
}
.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(72, 55, 42, 0.14);
}
.profile-name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.profile-bio { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 2px; }
.profile-stats a,
.profile-stats button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  background: none;
  cursor: pointer;
}
.profile-stats a:hover,
.profile-stats button:hover { color: var(--accent); text-decoration: none; }
.profile-stats a:focus-visible,
.profile-stats button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.profile-stats b { color: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.profile-divider { width: 100%; height: 1px; background: rgba(112, 106, 100, 0.16); margin: 22px 0 18px; }
.profile-sub {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.profile-links { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-bottom: 18px; }
.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.15s;
}
.profile-link:hover { background: rgba(255, 255, 255, 0.5); text-decoration: none; }
.pl-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.pl-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pl-name { font-size: 13.5px; color: var(--text); font-weight: 500; }
.pl-desc { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-shortcuts .profile-link { padding-block: 7px; }
.profile-sub-links { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 2px; }
.profile-sub-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-external-links { width: 100%; list-style: none; display: grid; gap: 3px; text-align: left; }
.profile-external-links a { display: flex; align-items: center; gap: 12px; padding: 5px 10px; color: var(--text-2); font-size: 13px; border-radius: 9px; }
.profile-external-links a::before { content: '›'; width: 20px; flex: 0 0 20px; margin-right: 0; text-align: center; color: var(--accent); }
.profile-external-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.42); text-decoration: none; }

/* 原版侧栏分类/标签弹窗 */
body.taxonomy-modal-open { overflow: hidden; }
.taxonomy-modal[hidden] { display: none !important; }
.taxonomy-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.taxonomy-modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(33, 28, 19, 0.34); cursor: default; }
.taxonomy-modal-dialog { position: relative; width: min(520px, 100%); max-height: min(640px, calc(100dvh - 40px)); overflow: auto; padding: 22px; }
.taxonomy-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.taxonomy-modal-head h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.taxonomy-modal-close { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid rgba(112, 106, 100, 0.22); border-radius: 50%; color: var(--text-2); background: rgba(255, 255, 255, 0.32); font-size: 22px; line-height: 1; cursor: pointer; }
.taxonomy-modal-close:hover { color: var(--accent); border-color: rgba(173, 52, 35, 0.38); }
.taxonomy-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.taxonomy-modal-list { display: flex; flex-wrap: wrap; gap: 10px; }
.taxonomy-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(112, 106, 100, 0.18); border-radius: 9px; color: var(--text); background: rgba(255, 255, 255, 0.3); font-size: 13px; }
.taxonomy-chip b { min-width: 18px; padding: 0 5px; border-radius: 5px; color: var(--text-2); background: rgba(112, 106, 100, 0.08); font-family: var(--mono); font-size: 11px; font-weight: 500; text-align: center; }
.taxonomy-chip:hover { color: var(--accent); border-color: rgba(173, 52, 35, 0.35); background: rgba(255, 255, 255, 0.5); text-decoration: none; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid rgba(173, 52, 35, 0.55);
  color: var(--accent);
  border-radius: 12px;
  font-size: 13.5px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-outline .arr { transition: transform 0.15s; }
.btn-outline:hover .arr { transform: translateX(3px); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.section-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* 精选文章 */
.featured-card { overflow: hidden; margin-bottom: 20px; }
.featured-cover { position: relative; }
.featured-img { width: 100%; height: 300px; object-fit: cover; display: block; }
.featured-card .featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(173, 52, 35, 0.35);
}
.featured-tag.static { position: static; display: inline-block; margin-bottom: 10px; box-shadow: none; }
.featured-tag svg { width: 13px; height: 13px; margin-right: 4px; fill: currentColor; vertical-align: -2px; }
.featured-body { padding: 26px 28px 24px; }
.featured-title { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 10px; line-height: 1.45; }
.featured-title a { color: var(--text); }
.featured-title a:hover { color: var(--accent); text-decoration: none; }
.featured-excerpt { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }

.post-meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.meta-cat { color: var(--accent); }
.meta-read { color: var(--text-2); }
.meta-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 17px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(173, 52, 35, 0.35);
  transition: background 0.15s, color 0.15s;
}
.meta-arrow:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* 文章列表 */
.post-list { display: flex; flex-direction: column; padding: 6px 24px; }
.home-candidate-page[hidden] { display: none !important; }
.post-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(112, 106, 100, 0.12);
  transition: background 0.15s;
}
.post-row:hover { background: rgba(255, 255, 255, 0.35); }
.post-row:last-child { border-bottom: none; }
.post-row-main { flex: 1; min-width: 0; }
.post-row-title { font-family: var(--serif); font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.post-row-title a { color: var(--text); }
.post-row-title a:hover { color: var(--accent); text-decoration: none; }
.post-sticky-mark { display: inline-block; margin-left: 8px; color: var(--accent); font-family: var(--sans); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.post-row-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.post-row-date { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.post-row-read { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.post-row-arrow {
  color: var(--accent);
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(173, 52, 35, 0.3);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.post-row-arrow:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* 右侧说说 */
.shuoshuo-card { padding: 26px 22px; }
.shuoshuo-timeline { position: relative; }
.shuoshuo-item { display: flex; gap: 16px; padding: 0 0 24px; position: relative; }
.shuoshuo-item::before {
  content: '';
  position: absolute;
  left: 6px; top: 26px; bottom: 0;
  width: 1px;
  background: rgba(112, 106, 100, 0.22);
}
.shuoshuo-item:last-child::before { display: none; }
.shuoshuo-item:last-child { padding-bottom: 6px; }
.shuoshuo-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(173, 52, 35, 0.55);
  margin-top: 20px;
  flex-shrink: 0;
}
.shuoshuo-content { flex: 1; min-width: 0; }
.ss-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 18px 22px 14px;
}
.shuoshuo-time { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.shuoshuo-item-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; line-height: 1.5; }
.shuoshuo-item-title a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.shuoshuo-item-title a:hover { color: var(--accent); }
.shuoshuo-col .shuoshuo-item-title { font-size: 14.5px; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shuoshuo-text { font-size: 15px; line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.shuoshuo-text p { margin: 0 0 0.9em; }
.shuoshuo-text p:last-child { margin-bottom: 0; }
.shuoshuo-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0.9em 0;
  border-radius: 10px;
}
.shuoshuo-text p > a:only-child { display: block; width: fit-content; max-width: 100%; }
.shuoshuo-text img.aligncenter { margin-left: auto; margin-right: auto; }
.shuoshuo-text img.alignleft { margin-right: auto; }
.shuoshuo-text img.alignright { margin-left: auto; }
.shuoshuo-col .shuoshuo-text img { max-height: 240px; object-fit: contain; }
.shuoshuo-col .shuoshuo-text {
  --shuoshuo-preview-height: 112px;
  position: relative;
}
.shuoshuo-col .shuoshuo-text.is-collapsed {
  max-height: var(--shuoshuo-preview-height);
  overflow: hidden;
}
.shuoshuo-col .shuoshuo-text.is-collapsed::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(246, 242, 234, 0), rgba(246, 242, 234, 0.96));
}
.ss-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 7px auto 0;
  padding: 0;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(112, 106, 100, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.ss-expand-toggle[hidden] { display: none; }
.ss-expand-toggle svg { width: 15px; height: 15px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.ss-expand-toggle:hover { color: var(--accent); border-color: rgba(173, 52, 35, 0.32); background: rgba(255, 255, 255, 0.5); }
.ss-expand-toggle:active { transform: scale(0.96); }
.ss-expand-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-expand-toggle.is-expanded svg { transform: rotate(180deg); }
.ss-actions { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.ss-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  transition: color 0.15s;
}
.ss-action svg { width: 15px; height: 15px; }
.ss-action:hover { color: var(--accent); text-decoration: none; }
.ss-detail-arrow {
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  justify-content: center;
  border: 1px solid rgba(112, 106, 100, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.ss-detail-arrow:hover {
  color: var(--accent);
  border-color: rgba(173, 52, 35, 0.32);
  background: rgba(255, 255, 255, 0.48);
  transform: translateX(2px);
}
.ss-detail-arrow:active { transform: translateX(2px) scale(0.96); }
.ss-detail-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-like.liked { color: var(--accent); }
.ss-like.liked svg { fill: var(--accent); }
.shuoshuo-more { display: block; margin-top: 14px; font-size: 13.5px; text-align: center; }
.shuoshuo-more .arr { display: inline-block; transition: transform 0.15s; }
.shuoshuo-more:hover .arr { transform: translateX(3px); }
.shuoshuo-detail-link { font-size: 12.5px; }

/* ---------- PDF 内嵌查看器 ---------- */
.pdf-embed {
  margin: 1.3em 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(112, 106, 100, 0.18);
  background: #fff;
  box-shadow: 0 6px 20px rgba(72, 55, 42, 0.06);
}
.pdf-embed iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}
@media (max-width: 800px) {
  .pdf-embed iframe { height: 480px; }
}

/* ---------- 顶栏搜索 (搜索图标左侧内联展开) ---------- */
.nav-search { position: relative; display: flex; align-items: center; gap: 10px; }
.nav-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: width 0.32s ease, opacity 0.24s ease, padding 0.32s ease;
}
.nav-search-box svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.nav-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13.5px;
  color: var(--text);
}
.nav-search-box input:focus { border: none; outline: none; }
.nav-search-clear {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  display: none;
}
.nav-search-clear:hover { color: var(--accent); }
.nav-search.open .nav-search-box {
  width: 240px;
  opacity: 1;
  padding: 8px 12px;
}
.nav-search.open .nav-search-clear { display: inline-block; }
.nav-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(72, 55, 42, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-search-results.show { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-search-results mark { background: rgba(173, 52, 35, 0.16); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.nav-no-result { text-align: center; color: var(--text-2); font-size: 13px; padding: 14px; }
.nav-result {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.nav-result:hover { background: rgba(255, 255, 255, 0.55); text-decoration: none; }
.nav-result-type { flex-shrink: 0; color: var(--accent); font-size: 11px; border: 1px solid rgba(173, 52, 35, 0.3); padding: 0 5px; border-radius: 5px; }
.nav-result-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-result-meta { flex-shrink: 0; color: var(--text-2); font-size: 11px; }
@media (max-width: 800px) {
  .nav-search-results { width: 86vw; right: -4px; }
  .nav-search.open .nav-search-box { width: min(210px, calc(100vw - 190px)); }
}

/* ---------- 页脚 (悬浮药丸, 底部留出呼吸间距) ---------- */
.site-footer {
  width: 100%;
  max-width: 1440px;
  margin: 44px auto 0;
  padding: 0 28px 42px;
}
.footer-inner {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}
.footer-registration a { color: var(--text-2); }
.footer-registration a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 文章页 ---------- */
.post-container { width: 100%; max-width: 80%; min-width: 0; margin: 28px auto; padding: 0 28px; box-sizing: border-box; }
.post-card { min-width: 0; padding: 44px 48px; }
.post-header { margin-bottom: 28px; }
.post-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.post-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
  display: block;
}
@media (max-width: 800px) {
  .post-cover { height: 200px; }
}
.post-cats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  background: rgba(173, 52, 35, 0.08);
  color: var(--accent);
}
.tag-outline { background: transparent; border: 1px solid rgba(112, 106, 100, 0.3); color: var(--text-2); }

/* 目录 */
.toc {
  background: rgba(255, 255, 255, 0.4);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.toc-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.toc a { display: block; color: var(--text-2); font-size: 13px; padding: 3px 0; }
.toc a:hover { color: var(--accent); text-decoration: none; }
.toc-lv2 { padding-left: 8px; }
.toc-lv3 { padding-left: 20px; }
.toc-lv4, .toc-lv5, .toc-lv6 { padding-left: 32px; }

/* AI 摘要 */
.ai-summary {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(184, 164, 92, 0.28);
  border-radius: 12px;
  background: rgba(184, 164, 92, 0.09);
}
.ai-summary-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.ai-summary p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}
.ai-summary-note {
  margin-top: 10px;
  color: var(--text-2);
  opacity: 0.78;
  font-size: 11.5px;
}

/* 正文 */
.post-content { min-width: 0; max-width: 100%; font-size: 16px; line-height: 1.8; overflow-wrap: break-word; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 1.6em 0 0.7em;
  scroll-margin-top: 90px;
}
.post-content h1 { font-size: 26px; }
.post-content h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid rgba(112, 106, 100, 0.15); }
.post-content h3 { font-size: 19px; }
.post-content p { margin: 0 0 1.1em; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 0 0 1.1em; padding-left: 1.6em; }
.post-content li { margin-bottom: 0.35em; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(173, 52, 35, 0.05);
  padding: 12px 18px;
  margin: 0 0 1.1em;
  color: var(--text-2);
  border-radius: 0 8px 8px 0;
}
.post-content img { border-radius: 10px; margin: 1.2em 0; }
/* WordPress 迁移内容的原始对齐类 */
.post-content .has-text-align-center { text-align: center; }
.post-content figure.aligncenter { display: block; margin: 1.2em auto; text-align: center; }
.post-content figure.aligncenter img,
.post-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-content figure.aligncenter figcaption { text-align: center; }
/* 编辑器图片对齐 (内联样式 + 清除浮动) */
.post-content::after { content: ""; display: block; clear: both; }
.post-content img[style*="float"] { margin: 0.6em 1.2em 0.6em 0; }
.post-content img[style*="float:right"], .post-content img[style*="float: right"] { margin: 0.6em 0 0.6em 1.2em; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; }
.post-content th, .post-content td { border: 1px solid rgba(112, 106, 100, 0.25); padding: 9px 12px; text-align: left; }
.post-content th { background: rgba(112, 106, 100, 0.08); font-weight: 500; }
.post-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(112, 106, 100, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
}
.post-content pre {
  max-width: 100%;
  box-sizing: border-box;
  background: #2b2926;
  color: #f0e9dd;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.2em 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content hr { border: none; border-top: 1px solid rgba(112, 106, 100, 0.2); margin: 1.6em 0; }

/* 提示框 / 折叠 / 图集 / 音视频 */
.callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 1.1em 0;
  font-size: 14.5px;
  border-left: 3px solid;
}
.callout p:last-child { margin-bottom: 0; }
.callout-info { background: rgba(112, 106, 100, 0.06); border-color: #706A64; }
.callout-warning { background: rgba(184, 164, 92, 0.12); border-color: #B8A45C; }
.callout-danger { background: rgba(173, 52, 35, 0.08); border-color: #AD3423; }
.callout-success { background: rgba(107, 122, 94, 0.12); border-color: #6B7A5E; }
.foldable {
  border: 1px solid rgba(112, 106, 100, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 1.1em 0;
  background: rgba(255, 255, 255, 0.4);
}
.foldable summary { cursor: pointer; font-weight: 500; color: var(--text); }
.foldable p { margin-top: 10px; }
figure.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
figure.gallery img { margin: 0; max-width: calc(50% - 5px); border-radius: 10px; }
.post-content video, .post-content audio { width: 100%; border-radius: 10px; margin: 1.2em 0; }
.post-content iframe { max-width: 100%; border-radius: 10px; margin: 1.2em 0; }
.legacy-pdf-embed { margin: 1.4em 0; }
.legacy-pdf-embed iframe {
  display: block;
  width: 100%;
  height: min(76vh, 820px);
  min-height: 520px;
  margin: 0;
  border: 1px solid rgba(112, 106, 100, 0.2);
  background: rgba(255, 255, 255, 0.45);
}
.legacy-pdf-embed p { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
@media (max-width: 640px) {
  .legacy-pdf-embed iframe { height: 68vh; min-height: 420px; }
}

/* 密码保护 */
.password-gate { text-align: center; padding: 60px 0; }
.password-gate h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.password-form { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.password-form input {
  width: 240px;
  padding: 10px 14px;
  border: 1px solid rgba(112, 106, 100, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.pwd-error { margin-top: 12px; }

/* ---------- 过期提醒 / 分享 / 相关文章 / 上下篇 / 返回顶部 ---------- */
.stale-reminder {
  background: rgba(173, 52, 35, 0.08);
  border: 1px solid rgba(173, 52, 35, 0.2);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(112,106,100,.15); }
.share-label { font-size: 13px; color: var(--text-2); }
.share-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(112,106,100,.3);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255,255,255,.5);
  cursor: pointer;
  font-family: var(--sans);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.related-posts { padding: 24px; margin-top: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(112,106,100,.12);
  transition: border-color .15s;
}
.related-item:hover { border-color: var(--accent); text-decoration: none; }
.related-title { font-size: 14px; color: var(--text); }
.related-date { font-size: 12px; color: var(--text-2); }
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; min-width: 0; margin-top: 20px; }
.post-nav-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  padding: 16px 18px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(115%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: border-color .15s;
}
.post-nav-item.next { text-align: right; }
.post-nav-item:hover { border-color: var(--accent); text-decoration: none; }
.post-nav-label { font-size: 12px; color: var(--text-2); }
.post-nav-title { display: block; min-width: 0; max-width: 100%; font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-scrollbar {
  position: fixed;
  top: 12px;
  right: 3px;
  bottom: 12px;
  z-index: 40;
  width: 14px;
  opacity: 0;
  transition: opacity 0.22s ease;
  touch-action: none;
}
.page-scrollbar.is-visible,
.page-scrollbar:hover,
.page-scrollbar.is-dragging { opacity: 1; }
.page-scrollbar.is-disabled { display: none; }
.page-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(112, 106, 100, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  cursor: grab;
}
.page-scrollbar-thumb:hover { background: rgba(173, 52, 35, 0.65); }
.page-scrollbar.is-dragging .page-scrollbar-thumb { background: rgba(173, 52, 35, 0.78); cursor: grabbing; }
.back-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(115%);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { color: var(--accent); }

/* ---------- 评论区 ---------- */
.comments-area { min-width: 0; max-width: 100%; padding: 28px; margin-top: 24px; box-sizing: border-box; }
.comments-title { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.comment-item { min-width: 0; max-width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(112, 106, 100, 0.1); box-sizing: border-box; }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { min-width: 0; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.comment-time { flex: none; margin-left: auto; font-size: 12px; color: var(--text-2); }
.comment-avatar {
  display: inline-flex;
  flex: none;
  vertical-align: middle;
}
.comment-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(72, 55, 42, 0.1);
  vertical-align: middle;
}
.comment-body { min-width: 0; max-width: 100%; font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.comment-body p { margin-bottom: 0.6em; }
.comment-body pre { max-width: 100%; box-sizing: border-box; background: #2b2926; color: #f0e9dd; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; margin: 0.6em 0; }
.comment-body code { font-family: var(--mono); font-size: 0.88em; background: rgba(112,106,100,.1); padding: 1px 5px; border-radius: 4px; }
.comment-whisper { color: var(--text-2); font-size: 13.5px; font-style: italic; }
.comment-reply-to {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(112,106,100,.06);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-children { min-width: 0; max-width: 100%; margin-left: 28px; padding-left: 16px; border-left: 1px solid rgba(112, 106, 100, 0.15); box-sizing: border-box; }
.comment-item.pinned { background: rgba(173, 52, 35, 0.04); border-radius: 8px; padding: 14px; }
/* 评论操作栏: 点赞 + 编辑/删除 */
.comment-ops {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
}
.comment-ops .muted { background: none; border: none; cursor: pointer; padding: 0; font-size: 12.5px; }
.comment-ops .muted:hover { color: var(--accent); }
.comment-ops-spacer { flex: 1; }
.comment-edit-btn, .comment-del-btn { display: none; }
.comment-ops.show .comment-edit-btn, .comment-ops.show .comment-del-btn { display: inline-block; }
.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(112, 106, 100, 0.25);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-2);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .15s, color .15s;
}
.comment-like:hover { border-color: var(--accent); color: var(--accent); }
.comment-like.liked { border-color: var(--accent); color: var(--accent); background: rgba(173, 52, 35, 0.07); }
.comment-like-count { font-variant-numeric: tabular-nums; }

.comment-form-wrap { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(112, 106, 100, 0.15); }
.comment-form-title { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.comment-form .cf-row { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(112, 106, 100, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; }
.cf-check { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.cf-check input { width: auto; }
.cf-emojis { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.emoji-btn {
  width: 30px; height: 30px;
  border: 1px solid rgba(112,106,100,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.5);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  transition: transform .1s;
}
.emoji-btn:hover { transform: scale(1.15); }
.cf-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.cf-captcha { display: flex; gap: 8px; align-items: center; }
.cf-captcha input { width: 130px; }
.cf-captcha img { height: 40px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(112,106,100,.2); }
.turnstile-unconfigured { margin: 0; font-size: 13px; }
.cf-turnstile { min-height: 65px; }
.comment-item-new { animation: comment-arrive .35s ease-out; }
@keyframes comment-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.comment-tip { margin-top: 10px; font-size: 13px; }

/* ---------- 归档页 ---------- */
.archive-container { width: 100%; max-width: 80%; margin: 28px auto; padding: 0 28px; }
.archive-head { padding: 28px 32px; margin-bottom: 20px; }
.archive-head h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.archive-container .post-list { padding: 8px 32px; }

.timeline { padding: 28px 36px; }
.timeline-year { margin-bottom: 24px; }
.timeline-year-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.timeline-item { display: flex; gap: 16px; padding: 6px 0; align-items: baseline; }
.timeline-date { font-family: var(--mono); font-size: 13px; color: var(--text-2); width: 48px; flex-shrink: 0; }
.timeline-link { font-size: 14.5px; color: var(--text); }
.timeline-link:hover { color: var(--accent); }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a,
.pagination button {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(112, 106, 100, 0.25);
  color: var(--text);
  font-size: 13px;
  background: var(--glass);
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pagination a.active,
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-candidate-pagination { margin-top: 14px; }
.pagination [hidden] { display: none !important; }
.pagination-ellipsis {
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
  user-select: none;
}

/* ---------- 说说页 ---------- */
.shuoshuo-container { width: 100%; max-width: 80%; margin: 28px auto; padding: 0 28px; }
.shuoshuo-page .shuoshuo-timeline.glass { padding: 28px 32px 22px; }
.shuoshuo-page .shuoshuo-timeline .shuoshuo-item { gap: 22px; }
.shuoshuo-detail { padding: 28px 32px; margin-bottom: 20px; }
.shuoshuo-detail-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}
.shuoshuo-detail .shuoshuo-time { margin-bottom: 10px; }
.shuoshuo-detail .shuoshuo-text { font-size: 15.5px; line-height: 1.8; }

/* ---------- 搜索页 ---------- */
.search-container { width: 100%; max-width: 80%; margin: 40px auto; padding: 0 28px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
}
.search-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-btn {
  padding: 6px 14px;
  border: 1px solid rgba(112, 106, 100, 0.25);
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--sans);
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-status { margin-bottom: 16px; font-size: 13px; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(115%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px 22px;
}
.sr-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.sr-title { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.sr-title a { color: var(--text); }
.sr-title a:hover { color: var(--accent); text-decoration: none; }
.sr-snippet { font-size: 13.5px; }

/* ---------- 404 ---------- */
.error-container { max-width: 560px; margin: 15vh auto; padding: 0 28px; }
.error-card { text-align: center; padding: 60px 40px; }
.error-code { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.error-card .muted { margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 30% 70%; }
  .home-grid.no-profile, .home-grid.no-shuoshuo { grid-template-columns: 1fr; }
  .profile-col { position: static; }
  .shuoshuo-col { grid-column: 1 / -1; }
  .post-row-read { display: none; }
}
@media (max-width: 800px) {
  .home-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 16px; }
  .profile-col { position: static; }
  .site-header { top: 10px; margin-top: 10px; padding: 0 12px; }
  .header-inner { padding: 10px 16px 8px; gap: 8px 14px; height: auto; min-height: 88px; flex-wrap: wrap; }
  .brand { font-size: 20px; }
  .main-nav { position: static; order: 3; width: 100%; transform: none; justify-content: center; gap: clamp(10px, 4vw, 20px); }
  .main-nav a { font-size: 12.5px; gap: 4px; white-space: nowrap; }
  .nav-icon { width: 14px; height: 14px; }
  .nav-search { margin-left: auto; }
  .site-footer { padding: 0 12px 42px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .post-card { padding: 24px 20px; }
  .featured-img { height: 190px; }
  .post-row { gap: 10px; }
  .post-row-date { display: none; }
  .post-list { padding: 4px 16px; }
  .comment-form .cf-row { flex-direction: column; gap: 8px; }
  .post-container, .archive-container, .shuoshuo-container, .search-container { padding: 0 16px; }
  .shuoshuo-page .shuoshuo-timeline.glass { padding: 20px 18px 14px; }
  .page-scrollbar { right: 1px; width: 10px; }
  .page-scrollbar-thumb { width: 3px; min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-scrollbar { transition: none; }
}
