/* ============================================
   sober 2.x 风格主题样式（复刻 tobylai.fun）
   桌面：左侧固定边栏 + 右侧内容 + 汉堡菜单
   手机：顶部资料卡 + 单栏内容 + 汉堡菜单（清爽不挤压）
   美化版：马卡龙渐变背景 + 毛玻璃卡片 + 配色体系 + 小图标
   （安全改造：只动 CSS 变量层，layout.ejs 逻辑零改动）
   ============================================ */

:root {
  /* 渐变背景（浅色）：蓝 → 紫 → 粉，柔和马卡龙 + 梦幻光斑 */
  --bg-grad:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 10% 110%, rgba(139, 92, 246, 0.13), transparent 60%),
    linear-gradient(160deg, #cdddff 0%, #e4d9ff 50%, #ffdcef 100%);
  --bg: #eef0fb;                /* 兜底纯色 */
  --card: rgba(255, 255, 255, 0.72);   /* 半透明白卡片（毛玻璃） */
  --card-solid: #ffffff;
  --text: #1f2430;
  --muted: #7a8194;
  --accent: #3b82f6;            /* 主色：清爽蓝 */
  --accent-2: #0ea5e9;          /* 辅助色：天青 */
  --accent-soft: rgba(59, 130, 246, 0.10);
  --success: #10b981;           /* 信息色：成功 */
  --warning: #f59e0b;           /* 信息色：警告 */
  --danger: #ef4444;            /* 信息色：错误 */
  --border: rgba(255, 255, 255, 0.7);
  --code-bg: rgba(244, 245, 247, 0.8);
  --radius: 14px;
  --shadow: 0 2px 12px rgba(80, 90, 140, 0.12);
  --shadow-lg: 0 14px 44px rgba(80, 90, 140, 0.22);
  --gradient: linear-gradient(135deg, #3b82f6, #0ea5e9);
}

html[data-theme="dark"] {
  /* 渐变背景（深色）：深蓝 → 深紫 → 暗红 + 光斑 */
  --bg-grad:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 10% 110%, rgba(59, 130, 246, 0.15), transparent 60%),
    linear-gradient(160deg, #10131c 0%, #171430 45%, #221627 100%);
  --bg: #15121f;
  --card: rgba(23, 26, 33, 0.72);
  --card-solid: #171a21;
  --text: #e6e9ef;
  --muted: #8b93a3;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.10);
  --code-bg: rgba(30, 34, 43, 0.7);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(135deg, #60a5fa, #22d3ee);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--accent-soft); color: var(--accent); }

body {
  margin: 0;
  /* 渐变背景固定填充，滚动时保持整体感 */
  background: var(--bg-grad) fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

body.menu-open { overflow: hidden; }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s, color 0.2s; }
a:hover { opacity: 0.75; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部 header ============ */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--card-solid) 62%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

/* 顶部品牌渐变色条 */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }

.site-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-name::before {
  content: "✦";
  font-size: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-subtitle {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.theme-toggle,
.menu-toggle,
.search-toggle,
.color-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-toggle:hover, .menu-toggle:hover,
.search-toggle:hover, .color-toggle:hover {
  transform: rotate(15deg);
  border-color: var(--accent);
  color: var(--accent);
}
.menu-toggle { font-size: 20px; }

/* ============ 汉堡菜单面板 ============ */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card-solid);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  transition: transform 0.3s ease;
  z-index: 300;
  padding: 24px;
  overflow-y: auto;
}

.menu-panel.open { transform: translateX(0); }

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

.menu-item { border-bottom: 1px solid var(--border); }

.menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  color: var(--text);
  font-size: 16px;
  transition: color 0.2s, padding-left 0.2s, background 0.2s;
  border-radius: 8px;
}

.menu-item a:hover {
  color: var(--accent);
  padding-left: 16px;
  background: var(--accent-soft);
  opacity: 1;
}
.menu-item.active a { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

.menu-icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 250;
}

.menu-overlay.show { opacity: 1; visibility: visible; }

/* ============ 布局（桌面：左栏 + 右内容） ============ */
.layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ---------- 左侧固定边栏 ---------- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sidebar-card:hover { box-shadow: var(--shadow-lg); }

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--gradient);
  background-origin: border-box;
  background-clip: content-box, border-box;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.avatar-fallback {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.sidebar-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.sidebar-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sidebar-github {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-github:hover { color: var(--accent); opacity: 1; }

.sidebar-bio {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 侧边栏动态卡片：固定高度 + 内部滚动 */
.sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-dynamics-scroll {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.sidebar-dynamics-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-dynamics-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-dynamics-scroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
.sidebar-dynamics-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sidebar-dynamic {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.sidebar-dynamic:last-of-type { border-bottom: none; }

.sidebar-dynamic-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-dynamic-content {
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.sidebar-dynamic-content p { margin: 2px 0; }
.sidebar-dynamic-content code {
  background: var(--code-bg);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.9em;
}

.sidebar-dynamics-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

/* ---------- 右侧内容区 ---------- */
.site-main {
  flex: 1;
  min-width: 0;
  padding: 48px 0 64px;
}

/* ============ 首页区块 ============ */
.home-section { margin-bottom: 48px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  max-width: 90px;
  border-radius: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.profile-content { color: var(--text); }
.profile-content p { margin: 8px 0; }
.profile-more { color: var(--muted); }

/* ============ 动态时间线（完整页） ============ */
.dynamics {
  position: relative;
  padding-left: 28px;
}

.dynamics::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.dynamic-item { position: relative; padding: 0 0 26px 0; }

.dynamic-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid var(--card-solid);
  box-shadow: 0 0 0 2px var(--accent);
}

.dynamic-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dynamic-content {
  font-size: 15px;
  word-break: break-word;
}

.dynamic-content p { margin: 6px 0; }
.dynamic-content ul, .dynamic-content ol { margin: 6px 0; padding-left: 20px; }
.dynamic-content li { margin: 3px 0; }
.dynamic-content code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
.dynamic-content a { text-decoration: underline; text-underline-offset: 3px; }

.dynamics-subtitle { color: var(--muted); margin: -12px 0 28px; font-size: 14px; }

.dynamics-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}

.dynamics-empty { color: var(--muted); }

/* ============ 文章列表页 ============ */
.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title::after {
  content: "";
  flex: 1;
  height: 3px;
  max-width: 120px;
  border-radius: 3px;
  background: var(--gradient);
  opacity: 0.55;
}

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

.post-list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s ease;
}

.post-list-item:hover { padding-left: 8px; }

.post-list-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.post-list-title a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.post-list-title a:hover { color: var(--accent); opacity: 1; }

.post-list-excerpt { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.post-list-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.post-list-meta span, .post-list-meta time { display: inline-flex; align-items: center; gap: 4px; }

.post-list-cats a, .post-list-tags a { color: var(--muted); }
.post-list-cats a:hover, .post-list-tags a:hover { color: var(--accent); }

/* ============ 归档页 ============ */
.archive-year { margin-bottom: 32px; }

.archive-year-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-year-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}

.archive-item time {
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.archive-item a { color: var(--text); }
.archive-item a:hover { color: var(--accent); }

.archive-meta { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; }

/* ============ 标签/分类 ============ */
.tag-cloud, .category-list { display: flex; flex-wrap: wrap; gap: 12px; }

.tag-item, .category-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tag-item:hover, .category-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  opacity: 1;
}

.tag-count, .category-count { color: var(--muted); font-size: 12px; }

/* ============ 友链页 ============ */
.friends-intro { color: var(--muted); font-size: 14px; }

.friends-self {
  margin: 20px 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.friend-self-name { font-weight: 600; }
.friend-self-desc, .friend-self-link { font-size: 13px; color: var(--muted); }

.friends-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.friend-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.friend-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.friend-name { font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.friend-desc { font-size: 13px; color: var(--muted); }
.friend-link { font-size: 12px; color: var(--accent); margin-top: 6px; word-break: break-all; }
.friends-empty { color: var(--muted); }

/* ============ 文章页 ============ */
.post-header { margin-bottom: 32px; }
.post-header .post-title { font-size: 30px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.post-meta time, .post-tags { display: inline-flex; align-items: center; gap: 4px; }
.post-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { color: var(--muted); }
.post-tags a:hover { color: var(--accent); }

.post-content { font-size: 16px; }

.post-content h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-content h3 { font-size: 20px; margin: 32px 0 12px; display: flex; align-items: center; gap: 6px; }
.post-content h4 { font-size: 17px; margin: 28px 0 10px; }
.post-content p { margin: 16px 0; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 24px auto;
  box-shadow: var(--shadow-lg);
}

.post-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.post-content pre {
  background: #1e222b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.post-content pre code { background: none; padding: 0; font-size: 14px; color: #e6e9ef; }

.post-content ul, .post-content ol { padding-left: 24px; margin: 16px 0; }
.post-content li { margin: 6px 0; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--accent-soft); font-weight: 600; color: var(--accent); }
.post-content hr { border: none; border-top: 2px dashed var(--border); margin: 40px 0; }

/* 上下篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.post-nav a { color: var(--muted); max-width: 45%; }
.post-nav a:hover { color: var(--accent); }
.post-nav-next { text-align: right; }

/* 分页 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-size: 14px;
}
.pagination a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.page-number, .extend { margin: 0 4px; color: var(--muted); }
.page-number.current { color: var(--accent); font-weight: 600; }

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer p { margin: 4px 0; }

/* ============ 信息色用法（供内容/组件使用） ============ */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

/* ============ 响应式 ============ */
/* 平板：边栏收窄 */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .layout { gap: 16px; }
  .sidebar { width: 200px; }
  .sidebar-card { padding: 14px; }
  .sidebar-avatar { width: 48px; height: 48px; }
  .sidebar-bio { display: none; }
  .sidebar-dynamics-scroll { max-height: 240px; }
}

/* 手机：单栏清爽布局，侧边栏改为顶部资料卡 */
@media (max-width: 640px) {
  .header-inner { height: 56px; }
  .site-name { font-size: 16px; }
  .site-subtitle { display: none; }
  .theme-toggle, .menu-toggle, .search-toggle, .color-toggle { width: 34px; height: 34px; font-size: 15px; }

  .layout { flex-direction: column; gap: 16px; }
  .sidebar {
    width: 100%;
    position: static;
    padding: 16px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  /* 资料卡：横向，头像在左，文字在右 */
  .sidebar-card:first-child {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }
  .sidebar-card:first-child .sidebar-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .sidebar-card:first-child .avatar-fallback { font-size: 22px; }
  .sidebar-card:first-child .sidebar-name { font-size: 16px; margin-bottom: 0; }
  .sidebar-card:first-child .sidebar-desc { margin-bottom: 0; }
  .sidebar-card:first-child .sidebar-github { font-size: 12px; }
  .sidebar-card:first-child .sidebar-bio { display: none; }

  /* 动态卡：宽度占满，内部滚动 */
  .sidebar-card.sidebar-dynamics-card {
    width: 100%;
    margin: 0;
  }
  .sidebar-dynamics-scroll { max-height: 240px; }

  .site-main { padding: 8px 0 40px; font-size: 15px; }
  .section-title { font-size: 18px; }
  .post-header .post-title { font-size: 22px; }
  .archive-item { flex-wrap: wrap; }
  .archive-meta { margin-left: 0; text-align: left; width: 100%; }
  .friends-list { grid-template-columns: 1fr; }
}

/* 过渡动画 */
.home-section, .dynamic-item, .post-list-item, .page, .post, .archive-year { animation: fadeUp 0.4s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
