/* Whisper Theme - 还原 Whisper.pen 样式 */
:root {
  --bg-page: #ffffff;
  --bg-sidebar: #FAFAFA;
  --bg-footer: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #888888;
  --text-footer: #E5E5E5;
  --text-footer-muted: #A3A3A3;
  --accent: #B91C1C;
  --border: #E8E8E8;
  --tag-bg: #F5F5F5;
  --tag-hover-bg: #ebebeb;
  --player-bg: #FAFAFA;
  --progress-bg: #E8E8E8;
  --progress-fill: #333333;
  --vol-pill-bg: rgba(248, 248, 248, 0.8);
  --search-bg: #F5F5F5;
  --comment-input-bg: #F5F5F5;
  --footer-btn-bg: #404040;
  --cover-placeholder-bg: #f0f0f0;
  --sidebar-width: 280px;
  --content-padding: 48px;
  --font-serif: "Noto Serif SC", "Playfair Display", Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 深色模式 - 对应 Whisper.pen 深色画板 */
[data-theme="dark"] {
  --bg-page: #121212;
  --bg-sidebar: #1A1A1A;
  --bg-footer: #121212;
  --text-primary: #F5F5F5;
  --text-secondary: #A3A3A3;
  --text-muted: #737373;
  --text-footer: #E5E5E5;
  --text-footer-muted: #A3A3A3;
  --accent: #F87171;
  --border: #2A2A2A;
  --tag-bg: #2A2A2A;
  --tag-hover-bg: #333333;
  --player-bg: #1A1A1A;
  --progress-bg: #333333;
  --progress-fill: #525252;
  --vol-pill-bg: rgba(26, 26, 26, 0.85);
  --search-bg: #2A2A2A;
  --comment-input-bg: #2A2A2A;
  --footer-btn-bg: #404040;
  --cover-placeholder-bg: #2A2A2A;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
}

/* Layout: 左侧固定侧边栏 + 右侧自适应 + 底部全宽页脚 */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-row {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1097px;
  margin: 0 auto;
}

/* 左侧侧边栏 - 固定宽度 */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  padding: 0;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* 侧栏上段：Logo + 导航 + 社交 */
.sidebar-top {
  flex-shrink: 0;
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: transform 0.35s ease;
}

/* 侧栏中段：分类面板（默认收起，点击「分类」后露出） */
.sidebar-categories {
  flex-shrink: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 32px;
  background: var(--bg-sidebar);
  transition: max-height 0.35s ease;
}

.sidebar.categories-open .sidebar-categories {
  max-height: 280px;
  padding: 16px 32px;
  overflow: auto;
}

.sidebar-categories .widget-title {
  margin-bottom: 12px;
}

.sidebar-category-list {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-category-list a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.sidebar-category-list a:hover {
  color: var(--accent);
}

.sidebar-categories-close {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}

.sidebar-categories-close:hover {
  color: var(--accent);
}

/* 侧栏下段：播放器 + 往期回顾 + 标签云 */
.sidebar-bottom {
  flex: 1;
  min-height: 0;
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: auto;
  transition: transform 0.35s ease;
}

/* 点击「分类」后：上段上滑、下段下滑，露出分类面板 */
.sidebar.categories-open .sidebar-top {
  transform: translateY(-100%);
}

.sidebar.categories-open .sidebar-bottom {
  transform: translateY(100%);
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.logo-subtitle {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-secondary);
  margin: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--accent);
}

.sidebar-nav a.active {
  color: var(--accent);
}

.sidebar-social {
  display: flex;
  gap: 16px;
}

.sidebar-social a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.sidebar-social a:hover {
  color: var(--text-primary);
}

/* 侧边栏小工具：音乐播放器 */
.global-player {
  background: var(--player-bg);
  padding: 16px 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.global-player .player-title {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-primary);
  margin: 0;
}

.global-player .player-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.progress-bar {
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 30%;
  background: var(--progress-fill);
  border-radius: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.player-controls button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-controls .progress-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
}

/* Meting / APlayer 在首页卡片中的样式适配 */
.index-meting {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--player-bg);
}

.index-meting .aplayer {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  font-family: var(--font-sans);
}

.index-meting .aplayer-body {
  padding: 0;
}

.index-meting .aplayer-info {
  padding: 0;
}

.index-meting .aplayer-music {
  font-size: 14px;
  color: var(--text-primary);
}

.index-meting .aplayer-author {
  font-size: 12px;
  color: var(--text-secondary);
}

.index-meting .aplayer-bar {
  height: 4px;
  margin-top: 8px;
  background-color: var(--progress-bg);
}

.index-meting .aplayer-bar .aplayer-played {
  background-color: var(--progress-fill);
}

.index-meting .aplayer-time {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 往期回顾 */
.widget-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.past-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.past-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.past-item img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.past-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.past-item:hover span {
  color: var(--accent);
}

/* 标签云 wp_tag_cloud 风格 */
.tag-cloud .widget-title {
  margin-bottom: 8px;
}

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

.tag-list a {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--tag-bg);
  border-radius: 12px;
  text-decoration: none;
}

.tag-list a:hover {
  color: var(--accent);
  background: var(--tag-hover-bg);
}

/* 右侧主内容区 - 自适应 */
.main-content {
  flex: 1;
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

/* Hero 区域（首页） */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  background: var(--search-bg);
  border-radius: 8px;
  min-width: 120px;
}

.search-box svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.search-box input {
  border: none;
  background: none;
  font-size: 11px;
  color: var(--text-secondary);
  outline: none;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

/* 文章列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.article-card-link:hover .card-title {
  color: var(--accent);
}

.card-cover-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cover-placeholder-bg);
}

.card-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card-link:hover .card-cover-wrap img {
  transform: scale(1.05);
}

.vol-overlay {
  position: absolute;
  top: 0;
  right: 0;
  padding: 12px 12px 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Vol 标签：毛玻璃效果（半透明白 + 背景模糊），固定宽度 */
.vol-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  min-width: 56px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2px;
  box-sizing: border-box;
}

.vol-pill .vol-num {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  letter-spacing: 0.02em;
}

.vol-pill .vol-line {
  display: block;
  width: 20px;
  height: 3px;
  background: #EE4D41;
  border-radius: 1px;
  flex-shrink: 0;
}

.vol-pill .vol-label {
  font-size: 10px;
  font-weight: 500;
  color: #666666;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* 深色模式下 Vol 容器：深色毛玻璃 */
[data-theme="dark"] .vol-pill {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .vol-pill .vol-num {
  color: #f5f5f5;
}

[data-theme="dark"] .vol-pill .vol-line {
  background: #F87171;
}

[data-theme="dark"] .vol-pill .vol-label {
  color: #a3a3a3;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.2s;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-meta .date-cat {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-meta .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.card-meta .stat svg {
  flex-shrink: 0;
}

.card-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.pagination a:hover {
  color: var(--accent);
}

.pagination .current {
  color: var(--accent);
}

/* Typecho pageNav 结构适配：确保上一页 / 下一页在一条直线上 */
.page-navigator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-navigator li a,
.page-navigator li span {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.page-navigator li a:hover {
  color: var(--accent);
}

.page-navigator li .current {
  color: var(--accent);
}

/* 底部页脚 - 全宽 */
.footer {
  width: 100%;
  padding: 48px max(48px, calc((100% - 1097px) / 2)) 48px max(16px, calc((100% - 1097px) / 2));
  background: var(--bg-footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-line1 {
  font-size: 14px;
  color: var(--text-footer);
  margin: 0;
}

.footer-line2 {
  font-size: 12px;
  color: var(--text-footer-muted);
  margin: 0;
}

/* 页脚仅保留左侧版权（右侧按钮已移至浮动操作区） */
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-footer);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  transition: color 0.2s, background 0.2s;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.footer-social-link img {
  width: 36px;
  height: 36px;
  display: block;
}

.footer-social-link i {
  font-size: 18px;
}

/* ========== 固定悬浮操作：主题切换 + 回到顶部（滚动后显示） ========== */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.floating-actions.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--footer-btn-bg);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn:hover {
  background: #525252;
}

/* 主题切换按钮：默认显示太阳，深色模式显示月亮 */
.floating-btn[aria-label="切换主题"] .icon-sun,
.floating-btn[aria-label="切换主题"] .icon-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.floating-btn[aria-label="切换主题"] .icon-sun svg,
.floating-btn[aria-label="切换主题"] .icon-moon svg {
  width: 100%;
  height: 100%;
}
.floating-btn[aria-label="切换主题"] .icon-moon {
  display: none;
}
[data-theme="dark"] .floating-btn[aria-label="切换主题"] .icon-sun {
  display: none;
}
[data-theme="dark"] .floating-btn[aria-label="切换主题"] .icon-moon {
  display: inline-flex;
}

/* ========== 详情页 ========== */
.detail-main {
  flex: 1;
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.article-detail {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.post-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-meta .date-cat {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-meta .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-cover {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cover-placeholder-bg);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

/* 文中音乐区块 */
.player-section .widget-title {
  font-size: 14px;
  margin-bottom: 12px;
}

.player-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--player-bg);
  border-radius: 8px;
  align-items: flex-start;
}

.player-row .cover-img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-info .album-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.player-info .album-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
}

.track-item .track-duration {
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-main .player-section .track-list {
  margin-top: 8px;
}

/* 评论区域 */
.comments-section h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.comment-input {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--comment-input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 16px;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item .comment-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.comment-item .comment-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* 图标内联 SVG 占位（可用 Lucide 或自定义） */
.icon-14 { width: 14px; height: 14px; flex-shrink: 0; }
.icon-12 { width: 12px; height: 12px; flex-shrink: 0; }
.icon-20 { width: 20px; height: 20px; flex-shrink: 0; }
.icon-24 { width: 24px; height: 24px; flex-shrink: 0; }

/* ========== 移动端：默认隐藏顶部栏、遮罩、底部播放条 ========== */
.mobile-header,
.drawer-backdrop,
.mobile-player-bar {
  display: none;
}

/* 响应式：小屏时侧边栏可折叠或上下布局 */
/* 平板：侧栏改为横向折叠 */
@media (max-width: 900px) {
  .content-row {
    flex-direction: column;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 16px;
  }

  .sidebar-top,
  .sidebar-bottom {
    flex: 1 1 auto;
    min-width: 200px;
  }

  .sidebar.categories-open .sidebar-top,
  .sidebar.categories-open .sidebar-bottom {
    transform: none;
  }

  .sidebar-categories {
    width: 100%;
    order: 10;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .main-content,
  .detail-main {
    padding: 24px 16px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-title {
    font-size: 22px;
  }

  .detail-cover {
    height: 200px;
  }
}

/* ========== 移动端（768px 及以下）：顶栏 + 抽屉侧栏 + 底部播放条 ========== */
@media (max-width: 768px) {
  .mobile-header,
  .mobile-player-bar {
    display: flex;
  }

  .drawer-backdrop {
    display: block;
  }

  /* 顶部栏 */
  .mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 56px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
  }

  .mobile-logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
  }

  .mobile-menu-btn {
    padding: 8px;
    margin: -8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 详情页顶栏：返回 + 标题 + 菜单 */
  .mobile-header-detail {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 12px;
  }

  .mobile-header-detail .mobile-back {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: -8px 0 0 -8px;
  }

  .mobile-header-detail .mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-header-detail .mobile-menu-btn {
    justify-self: end;
  }

  /* 抽屉遮罩 */
  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* 侧栏改为左侧抽屉 */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    min-width: 280px;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    z-index: 1000;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .content-row {
    flex-direction: column;
    max-width: 100%;
  }

  .main-content,
  .detail-main {
    padding: 24px 16px;
    padding-bottom: 88px; /* 为底部播放条留空 */
    width: 100%;
    max-width: 100%;
  }

  .article-detail {
    max-width: 100%;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .search-box {
    min-width: 100%;
  }

  .article-list {
    gap: 32px;
  }

  .card-cover-wrap {
    height: 200px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-excerpt {
    font-size: 15px;
  }

  .post-title {
    font-size: 22px;
  }

  .detail-cover {
    height: 200px;
  }

  .footer {
    padding: 24px 16px;
    margin-bottom: 64px; /* 避免被底部播放条遮挡 */
  }

  .footer-right {
    display: none;
  }

  /* 底部播放条 */
  .mobile-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
    background: var(--player-bg);
    border-top: 1px solid var(--border);
  }

  .mobile-player-play {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-player-title {
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-player-time {
    font-size: 11px;
    color: var(--text-secondary);
  }

  /* 悬浮按钮在移动端置于底部播放条上方 */
  .floating-actions {
    right: 16px;
    bottom: 88px;
  }
}

/* ========== 404 页面 ========== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-primary);
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px;
}

.error-inner {
  text-align: center;
  max-width: 420px;
}

.error-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #B91C1C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 24px;
  transition: transform 2s ease;
}

.error-icon:hover {
  transform: rotate(360deg);
}

.error-code {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
}

.error-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 24px 0;
}

.error-message {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.error-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
}

.error-actions {
  display: flex;
  justify-content: center;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.error-button:hover {
  background: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
}

@media (max-width: 768px) {
  .error-main {
    padding: 64px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

